9a0bdbb8b1840fece9b72fefb8611f6aa577a414
[platform/upstream/glibc.git] / ChangeLog
1 2017-06-19  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #21597]
4         * signal/signal.h (siginterrupt): Make declaration conditional on
5         [__USE_XOPEN_EXTENDED || __USE_MISC].
6
7         [BZ #21584]
8         * signal/signal.h: Make includes of <bits/sigstack.h> and
9         <bits/ss_flags.h> conditional on [__USE_XOPEN_EXTENDED ||
10         __USE_MISC].
11         (sigaltstack): Make declaration conditional on
12         [__USE_XOPEN_EXTENDED || __USE_MISC].
13
14         [BZ #21575]
15         * resource/bits/types/struct_rusage.h: New file.
16         * include/bits/types/struct_rusage.h: Likewise.
17         * bits/resource.h (struct rusage): Include
18         <bits/types/struct_rusage.h> instead of defining here.
19         * sysdeps/unix/sysv/linux/bits/resource.h (struct rusage):
20         Likewise.
21         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (struct rusage):
22         Likewise.
23         * sysdeps/unix/sysv/linux/mips/bits/resource.h (struct rusage):
24         Likewise.
25         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (struct rusage):
26         Likewise.
27         * resource/Makefile (headers): Add bits/types/struct_rusage.h.
28         * posix/sys/wait.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K8]:
29         Include <bits/types/struct_rusage.h>
30
31 2017-06-19  Florian Weimer  <fweimer@redhat.com>
32
33         * malloc/dynarray.h: Use libc_hidden_proto only for !_ISOMAC.
34
35 2017-06-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
36
37         * sysdeps/x86_64/multiarch/rawmemchr-sse2.S: Fix typo.
38
39 2017-06-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
40
41         * scripts/gen-tunables.awk: Avoid multi-dimensional arrays.
42
43 2017-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
44
45         [BZ #21537]
46         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET, SYSCALL_PIC_SETUP):
47         Check SHARED instead of PIC.
48         (SYSCALL_PIC_SETUP): Add missing semicolons.
49         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET, SYSCALL_PIC_SETUP):
50         Check SHARED instead of PIC.
51         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
52         (__makecontext_ret): Adjust code to jump to exit.
53
54 2017-06-19  Christian Borntraeger  <borntraeger@de.ibm.com>
55
56         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall):
57         Simplify code by always using SVC 0 instead of EX.
58         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
59
60 2017-06-16  H.J. Lu  <hongjiu.lu@intel.com>
61
62         * elf/Versions (ld): Remove _dl_out_of_memory.
63
64 2017-06-16  Joseph Myers  <joseph@codesourcery.com>
65
66         * timezone/private.h: Update from tzcode 2017b.
67         * timezone/tzfile.h: Likewise.
68         * timezone/tzselect.ksh: Likewise.
69         * timezone/zdump.c: Likewise.
70         * timezone/zic.c: Likewise.
71         * timezone/Makefile (tz-cflags): Add -D_ISOMAC
72         -DTZ_DOMAIN='"libc"' -include $(common-objpfx)config.h.
73         * time/tzset.c (SECSPERDAY): New macro.
74
75 2017-06-16  Rical Jasan  <ricaljasan@pacific.net>
76
77         * manual/string.texi (strdup): Complete header and standards
78         annotation.
79         (strncpy): Likewise.
80
81 2017-06-16  Rical Jasan  <ricaljasan@pacific.net>
82
83         * manual/arith.texi (FP_NAN): Add or complete header and standard
84         annotations.
85         (FP_INFINITE): Likewise.
86         (FP_ZERO): Likewise.
87         (FP_SUBNORMAL): Likewise.
88         (FP_NORMAL): Likewise.
89         (SNAN): Likewise.
90         (SNANL): Likewise.
91         (totalorderf): Likewise.
92         (totalorderl): Likewise.
93         (totalordermagf): Likewise.
94         (totalordermagl): Likewise.
95         (_Complex_I): Likewise.
96         (I): Likewise.
97
98 2017-06-16  Rical Jasan  <ricaljasan@pacific.net>
99
100         * manual/argp.texi (ARGP_HELP_USAGE): Add missing header and
101         standard annotation.
102         (ARGP_HELP_SHORT_USAGE): Likewise.
103         (ARGP_HELP_SEE): Likewise.
104         (ARGP_HELP_LONG): Likewise.
105         (ARGP_HELP_PRE_DOC): Likewise.
106         (ARGP_HELP_POST_DOC): Likewise.
107         (ARGP_HELP_DOC): Likewise.
108         (ARGP_HELP_BUG_ADDR): Likewise.
109         (ARGP_HELP_LONG_ONLY): Likewise.
110         (ARGP_HELP_EXIT_ERR): Likewise.
111         (ARGP_HELP_EXIT_OK): Likewise.
112         (ARGP_HELP_STD_ERR): Likewise.
113         (ARGP_HELP_STD_USAGE): Likewise.
114         (ARGP_HELP_STD_HELP): Likewise.
115
116 2017-06-15  Rical Jasan  <ricaljasan@pacific.net>
117
118         * manual/Makefile: Generate summary.texi with summary.pl.  Force
119         use of the C locale.  Update Perl dependency comment.
120         * manual/header.texi: Update reference to summary.awk.
121         * manual/macros.texi: Refer authors to `summary.pl --help'.
122         * manual/summary.awk: Remove file.
123         * manual/summary.pl: New file.  Generate summary.texi, and check
124         for @standards-related syntax errors.
125         * manual/argp.texi: Convert header and standards @comments to
126         @standards.
127         * manual/arith.texi: Likewise.
128         * manual/charset.texi: Likewise.
129         * manual/conf.texi: Likewise.
130         * manual/creature.texi: Likewise.
131         * manual/crypt.texi: Likewise.
132         * manual/ctype.texi: Likewise.
133         * manual/debug.texi: Likewise.
134         * manual/errno.texi: Likewise.
135         * manual/filesys.texi: Likewise.
136         * manual/getopt.texi: Likewise.
137         * manual/job.texi: Likewise.
138         * manual/lang.texi: Likewise.
139         * manual/llio.texi: Likewise.
140         * manual/locale.texi: Likewise.
141         * manual/math.texi: Likewise.
142         * manual/memory.texi: Likewise.
143         * manual/message.texi: Likewise.
144         * manual/pattern.texi: Likewise.
145         * manual/pipe.texi: Likewise.
146         * manual/process.texi: Likewise.
147         * manual/resource.texi: Likewise.
148         * manual/search.texi: Likewise.
149         * manual/setjmp.texi: Likewise.
150         * manual/signal.texi: Likewise.
151         * manual/socket.texi: Likewise.
152         * manual/startup.texi: Likewise.
153         * manual/stdio.texi: Likewise.
154         * manual/string.texi: Likewise.
155         * manual/sysinfo.texi: Likewise.
156         * manual/syslog.texi: Likewise.
157         * manual/terminal.texi: Likewise.
158         * manual/threads.texi: Likewise.
159         * manual/time.texi: Likewise.
160         * manual/users.texi: Likewise.
161
162 2017-06-15  Rical Jasan  <ricaljasan@pacific.net>
163
164         * manual/macros.texi (@standards): New macro.  Provide placeholder
165         for header and standards annotations.
166         (@standardsx): New macro.  Likewise, for lists of @*x elements.
167
168 2017-06-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
169
170         * io/Makefile (CFLAGS-sync_file_range.c): Remove rule.
171         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-sync_file_range.c): New
172         rule.
173         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Remove
174         sync_file_range.
175
176          * support/support_test_main.c (support_test_main):  Use optstring
177          member for option string in getopt_long.
178          * support/test-driver.c: Add comment about CMDLINE_OPTSTRING.
179          (CMDLINE_OPTSTRING): New define.
180          * support/test-driver.h (test_config): Add optstring member.
181
182 2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
183
184         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
185         strcspn-sse2, strpbrk-sse2 and strspn-sse2.
186         * sysdeps/x86_64/strcspn.S (STRPBRK_P): Removed.
187         Check USE_AS_STRPBRK instead of STRPBRK_P.
188         * sysdeps/x86_64/strpbrk.S (USE_AS_STRPBRK): New.
189         * sysdeps/x86_64/multiarch/ifunc-sse4_2.h: New file.
190         * sysdeps/x86_64/multiarch/strcspn-sse2.S: Likewise.
191         * sysdeps/x86_64/multiarch/strcspn.c: Likewise.
192         * sysdeps/x86_64/multiarch/strpbrk-sse2.S: Likewise.
193         * sysdeps/x86_64/multiarch/strpbrk.c: Likewise.
194         * sysdeps/x86_64/multiarch/strspn-sse2.S: Likewise.
195         * sysdeps/x86_64/multiarch/strspn.c: Likewise.
196         * sysdeps/x86_64/multiarch/strcspn.S: Removed.
197         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
198         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
199         * sysdeps/x86_64/multiarch/strpbrk-c.c: Remove "#ifdef SHARED"
200         and "#endif".
201
202 2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
203
204         * sysdeps/x86_64/multiarch/wcscpy.S: Removed.
205         * sysdeps/x86_64/multiarch/wcscpy.c: New file.
206
207 2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
208
209         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
210         strcat-sse2.
211         * sysdeps/x86_64/multiarch/strcat-sse2.S: New file.
212         * sysdeps/x86_64/multiarch/strcat.c: Likewise.
213         * sysdeps/x86_64/multiarch/strncat.c: Likewise.
214         * sysdeps/x86_64/multiarch/strcat.S: Removed.
215         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
216
217 2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
218             Erich Elsen  <eriche@google.com>
219
220         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
221         memcmp-sse2.
222         * sysdeps/x86_64/multiarch/ifunc-memcmp.h: New file.
223         * sysdeps/x86_64/multiarch/memcmp-sse2.S: Likewise.
224         * sysdeps/x86_64/multiarch/memcmp.c: Likewise.
225         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
226         * sysdeps/x86_64/multiarch/memcmp.S: Removed.
227         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
228
229 2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
230             Erich Elsen  <eriche@google.com>
231
232         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
233         memset-sse2-unaligned-erms, and memset_chk-nonshared.
234         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
235         (__libc_ifunc_impl_list): Add test for __memset_chk_erms.
236         Update comments.
237         * sysdeps/x86_64/multiarch/ifunc-memset.h: New file.
238         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
239         * sysdeps/x86_64/multiarch/memset.c: Likewise.
240         * sysdeps/x86_64/multiarch/memset_chk-nonshared.S: Likewise.
241         * sysdeps/x86_64/multiarch/memset_chk.c: Likewise.
242         * sysdeps/x86_64/multiarch/memset.S: Removed.
243         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
244         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
245         (__memset_chk_erms): New function.
246
247 2017-06-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
248
249         * configure.ac(--enable-tunables): Enable by default.
250         * configure: Regenerate.
251         * NEWS: Mention change.
252         * manual/install.texi (enable-tunables): Adjust documentation.
253         * INSTALL: Regenerate.
254
255 2017-06-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
256
257         [BZ #18988]
258         * benchtests/thread_create-inputs: New file.
259         * benchtests/thread_create-source.c: Likewise.
260         * support/xpthread_attr_setguardsize.c: Likewise.
261         * support/Makefile (libsupport-routines): Add
262         xpthread_attr_setguardsize object.
263         * support/xthread.h: Add xpthread_attr_setguardsize prototype.
264         * benchtests/Makefile (bench-pthread): Add thread_create.
265         * nptl/allocatestack.c (allocate_stack): Call mmap with PROT_NONE and
266         then mprotect the required area.
267         (guard_position): New function.
268         (setup_stack_prot): Likewise.
269
270 2017-06-14  H.J. Lu  <hongjiu.lu@intel.com>
271             Erich Elsen  <eriche@google.com>
272             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
273
274         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
275         memmove-sse2-unaligned-erms, memcpy_chk-nonshared,
276         mempcpy_chk-nonshared and memmove_chk-nonshared.
277         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
278         (__libc_ifunc_impl_list): Add tests for __memmove_chk_erms,
279         __memcpy_chk_erms and __mempcpy_chk_erms.  Update comments.
280         * sysdeps/x86_64/multiarch/ifunc-memmove.h: New file.
281         * sysdeps/x86_64/multiarch/memcpy.c: Likewise.
282         * sysdeps/x86_64/multiarch/memcpy_chk-nonshared.S: Likewise.
283         * sysdeps/x86_64/multiarch/memcpy_chk.c: Likewise.
284         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S: Likewise.
285         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
286         * sysdeps/x86_64/multiarch/memmove_chk-nonshared.S: Likewise.
287         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
288         * sysdeps/x86_64/multiarch/mempcpy.c: Likewise.
289         * sysdeps/x86_64/multiarch/mempcpy_chk-nonshared.S: Likewise.
290         * sysdeps/x86_64/multiarch/mempcpy_chk.c: Likewise.
291         * sysdeps/x86_64/multiarch/memcpy.S: Removed.
292         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
293         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
294         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
295         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
296         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
297         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
298         (__mempcpy_chk_erms): New function.
299         (__memmove_chk_erms): Likewise.
300         (__memcpy_chk_erms): New alias.
301
302 2017-06-14  Florian Weimer  <fweimer@redhat.com>
303
304         * sysdeps/i386/i686/multiarch/strcspn-c.c: Add IS_IN (libc) guard.
305         * sysdeps/i386/i686/multiarch/varshift.c: Likewise.
306
307 2017-06-14  Zack Weinberg  <zackw@panix.com>
308
309         * stdlib/errno.h: Remove __need_Emath and __need_error_t logic.
310         Reorganize file.  Declare errno here.  When __ASSEMBLER__ is
311         defined, don't declare anything other than the E-constants.
312
313         * include/errno.h: Change conditional for exposing internal
314         declarations to (not _ISOMAC and not __ASSEMBLER__).
315         * bits/errno.h: Remove logic for __need_Emath.  Document
316         requirements for a port-specific bits/errno.h.
317
318         * sysdeps/unix/sysv/linux/bits/errno.h
319         * sysdeps/unix/sysv/linux/alpha/bits/errno.h
320         * sysdeps/unix/sysv/linux/hppa/bits/errno.h
321         * sysdeps/unix/sysv/linux/mips/bits/errno.h
322         * sysdeps/unix/sysv/linux/sparc/bits/errno.h:
323         Add multiple-include guard and check against improper inclusion.
324         Remove __need_Emath logic.  Don't declare errno here.  Ensure all
325         constants are defined as simple integer literals.  Consistent
326         formatting.
327         * sysdeps/mach/hurd/errnos.awk: Likewise.  Only define error_t and
328         enum __error_t_codes if __ASSEMBLER__ is not defined.
329         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
330
331         * argp/argp.h, string/argz.h: Don't define __need_error_t before
332         including errno.h.
333         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S
334         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S
335         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S
336         * sysdeps/x86_64/fpu/s_cosf.S
337         * sysdeps/x86_64/fpu/s_sincosf.S
338         * sysdeps/x86_64/fpu/s_sinf.S:
339         Just include errno.h; don't define __need_Emath or include
340         bits/errno.h directly.
341
342 2017-06-14  Zack Weinberg  <zackw@panix.com>
343
344         * bits/uio_lim.h, sysdeps/unix/sysv/linux/bits/uio_lim.h
345         * bits/uio-ext.h, sysdeps/unix/sysv/linux/bits/uio-ext.h: New file.
346         * bits/uio.h, sysdeps/unix/sysv/linux/bits/uio.h: Delete file.
347
348         * include/bits/xopen_lim.h: Use bits/uio_lim.h to get the value
349         for IOV_MAX.
350         * misc/Makefile: Install bits/uio-ext.h and bits/uio_lim.h.
351         Don't install bits/uio.h.
352         * misc/sys/uio.h: Don't include bits/uio.h.  Do include
353         bits/types/struct_iovec.h and bits/uio_lim.h.  Set UIO_MAXIOV
354         based on __IOV_MAX. Under __USE_GNU, also include bits/uio-ext.h.
355
356         * stdio-common/stdio_lim.h.in: Remove logic for __need_FOPEN_MAX
357         and __need_IOV_MAX.  Don't define IOV_MAX at all.
358         * Makerules (stdio_lim.h): Remove logic for setting IOV_MAX.
359
360         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h:
361         Include bits/types/struct_iovec.h, not bits/uio.h.
362         Use __ssize_t, not ssize_t, in function prototypes.
363         Don't use hard TAB for double space after period in comments.
364
365 2017-06-14  Alan Modra  <amodra@gmail.com>
366
367         * elf/elf.h (PPC64_OPT_LOCALENTRY): Define.
368         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Add
369         refsym and sym parameters.  Adjust callers.
370         * sysdeps/aarch64/dl-machine.h (elf_machine_fixup_plt): Likewise.
371         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
372         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
373         * sysdeps/hppa/dl-machine.h (elf_machine_fixup_plt): Likewise.
374         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
375         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Likewise.
376         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
377         * sysdeps/microblaze/dl-machine.h (elf_machine_fixup_plt): Likewise.
378         * sysdeps/mips/dl-machine.h (elf_machine_fixup_plt): Likewise.
379         * sysdeps/nios2/dl-machine.h (elf_machine_fixup_plt): Likewise.
380         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_fixup_plt):
381         Likewise.
382         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_fixup_plt): Likewise.
383         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_fixup_plt): Likewise.
384         * sysdeps/sh/dl-machine.h (elf_machine_fixup_plt): Likewise.
385         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
386         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
387         * sysdeps/tile/dl-machine.h (elf_machine_fixup_plt): Likewise.
388         * sysdeps/x86_64/dl-machine.h (elf_machine_fixup_plt): Likewise.
389         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_error_localentry): New.
390         (_dl_reloc_overflow): Increase buffser size.  Formatting.
391         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
392         Delete reloc param, add refsym and sym.  Check optimized plt
393         call stubs for localentry:0 functions.  Adjust callers.
394         (elf_machine_fixup_plt, elf_machine_plt_conflict): Add refsym
395         and sym parameters.  Adjust callers.
396         (_dl_reloc_overflow): Move attribute.
397         (_dl_error_localentry): Declare.
398         * elf/dl-runtime.c (_dl_fixup): Save original sym.  Pass
399         refsym and sym to elf_machine_fixup_plt.
400         * elf/testobj6.c (preload): Call printf.
401
402 2017-06-14  Alan Modra  <amodra@gmail.com>
403
404         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
405         (NOPS, ENTRY_3): New macros.
406         (ENTRY): Rewrite.
407         (ENTRY_TOCLESS): Define.
408         (EALIGN, EALIGN_W_0, EALIGN_W_1, EALIGN_W_2, EALIGN_W_4, EALIGN_W_5,
409         EALIGN_W_6, EALIGN_W_7, EALIGN_W_8): Delete.
410         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Replace EALIGN with ENTRY.
411         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Likewise.
412         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
413         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
414         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
415         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
416         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
417         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
418         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
419         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
420         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
421         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
422         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
423         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
424         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
425         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
426         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
427         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
428         * sysdeps/powerpc/powerpc64/power7/strstr.S: Likewise.
429         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
430         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
431         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
432         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
433         * sysdeps/powerpc/powerpc64/addmul_1.S: Use ENTRY_TOCLESS.
434         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
435         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
436         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
437         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S: Likewise.
438         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
439         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
440         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
441         * sysdeps/powerpc/powerpc64/lshift.S: Likewise.
442         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
443         * sysdeps/powerpc/powerpc64/mul_1.S: Likewise.
444         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
445         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
446         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
447         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
448         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
449         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
450         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
451         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
452         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
453         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
454         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
455         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
456         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
457         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
458         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
459         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
460         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
461         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
462         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
463         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
464         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
465         * sysdeps/powerpc/powerpc64/power7/add_n.S: Likewise.
466         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
467         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
468         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
469         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
470         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
471         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
472         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
473         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
474         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S (strcasecmp_l):
475         Likewise.
476         * sysdeps/powerpc/powerpc64/power7/strchr.S: Likewise.
477         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
478         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
479         * sysdeps/powerpc/powerpc64/power7/strlen.S: Likewise.
480         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
481         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Likewise.
482         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
483         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
484         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
485         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
486         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
487         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
488         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
489         * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
490         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
491         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
492         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
493         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
494         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
495         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
496         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
497         * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
498         * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
499         * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
500         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
501         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
502         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
503         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
504         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
505         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
506         * sysdeps/powerpc/powerpc64/ppc-mcount.S: Store LR earlier.  Don't
507         add nop when SHARED.
508         * sysdeps/powerpc/powerpc64/start.S: Fix comment.
509         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S (ENTRY): Don't
510         define.
511         (ENTRY_TOCLESS): Define.
512         * sysdeps/powerpc/powerpc32/sysdep.h (ENTRY_TOCLESS): Define.
513         * sysdeps/powerpc/fpu/s_fma.S: Use ENTRY_TOCLESS.
514         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
515
516 2017-06-14  Alan Modra  <amodra@gmail.com>
517
518         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Define
519         MEMSET_is_local.
520         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
521         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
522         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
523         Define MEMSET.
524         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
525         STRLEN_is_local, STRNLEN_is_local, and STRCHR_is_local.
526         * sysdeps/powerpc/powerpc64/power7/strstr.S: Likewise.  Don't add
527         nop after local calls.
528         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Define MEMSET_is_local.
529         Don't add nop after local call.
530         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.  Add missing
531         CALL_MCOUNT.
532
533 2017-06-14  Alan Modra  <amodra@gmail.com>
534
535         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
536         (FUNC_LABEL): Rename from DOT_LABEL.
537         (ENTRY_1): Use FUNC_LABEL and remove leading space from label.
538         Use .p2align rather than .align.
539         (TRACEBACK, TRACEBACK_MASK): Use .p2align rather than .align.
540         (ABORT_TRANSACTION): Likewise.
541         (ENTRY_1, ENTRY_2, END_2, LOCALENTRY): Remove unnecessary semicolons,
542         particularly at end.  Add semicolon at invocation as necessary.
543         (TRACEBACK, TRACEBACK_MASK, PSEUDO, PSEUDO_NOERRNO): Likewise.
544         (PSEUDO_ERRVAL, PPC64_LOAD_FUNCPTR, OPD_ENT): Likewise.
545         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S (ENTRY,
546         END): Adjust to suit.
547
548 2017-06-14  Alan Modra  <amodra@gmail.com>
549
550         * sysdeps/powerpc/powerpc64/sysdep.h: (FRAME_BACKCHAIN,
551         FRAME_CR_SAVE, FRAME_LR_SAVE): Move out of conditional.
552         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
553         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
554         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Delete.
555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Replace
556         uses of FRAME_PARM[1-9]_SAVE with FRAME_PARM_SAVE plus offset.
557
558 2017-06-14  Alan Modra  <amodra@gmail.com>
559
560         * sysdeps/powerpc/powerpc64/sysdep.h: (call_mcount_parm_offset): Delete.
561         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Correct.
562
563 2017-06-13  Gordana Cmiljanovic  <gordana.cmiljanovic@imgtec.com>
564
565         [BZ #21548]
566         * sysdeps/unix/sysv/linux/mips/getcontext.S: Define MCONTEXT_SZGREG as
567         8 and use it when copying general purpose registers.
568         * sysdeps/unix/sysv/linux/mips/makecontext.S: Likewise.
569         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: Include new test for
570         mips o32.
571         * sysdeps/unix/sysv/linux/mips/mips32/bug-getcontext-mips-gp.c: Added
572         new test for mips o32.
573         * sysdeps/unix/sysv/linux/mips/setcontext.S: Define MCONTEXT_SZGREG as
574         8 and use it when copying general purpose registers.
575         * sysdeps/unix/sysv/linux/mips/swapcontext.S: Likewise.
576
577 2017-06-13  Florian Weimer  <fweimer@redhat.com>
578
579         * configure.ac (find_cxx_header): Suppress compiler error message.
580
581 2017-06-13  Florian Weimer  <fweimer@redhat.com>
582
583         * malloc/dynarray-skeleton.c: List begin/end as defined functions.
584         (DYNARRAY_PREFIX##begin, DYNARRAY_PREFIX##end): New functions.
585         * malloc/tst-dynarray-shared.h (CHECK_EMPTY): Add tests for
586         begin/end.
587         * malloc/tst-dynarray.c (test_int): Test dynarray_int_begin,
588         dynarray_int_end.
589         (test_str): Test dynarray_str_begin, dynarray_str_end.
590
591 2017-06-13  H.J. Lu  <hongjiu.lu@intel.com>
592
593         [BZ #21573]
594         * Makerules [$(c++-bits-std_abs-h) != ""] (before-compile): Add
595         $(common-objpfx)bits/std_abs.h.
596         [$(c++-bits-std_abs-h) != ""] ($(common-objpfx)bits/std_abs.h):
597         New target.
598         * config.make.in (c++-bits-std_abs-h): New.
599         * configure.ac (find_cxx_header): Use "\,$1," with sed.
600         (CXX_BITS_STD_ABS_H): New.
601         (AC_SUBST(CXX_BITS_STD_ABS_H)): Likewise.
602         * configure: Regenerated.
603
604 2017-06-13  Zack Weinberg  <zackw@panix.com>
605
606         * posix/bits/cpu-set.h: Correct indentation of preprocessor
607         directives.
608
609 2017-06-12  Zack Weinberg  <zackw@panix.com>
610
611         * bits/sched.h: Remove __need_schedparam logic and replace with a
612         normal multiple-include guard.  Change field name in struct
613         sched_param from __sched_priority to sched_priority.  Delete
614         everything under #ifndef __cpu_set_t_defined.
615         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.  Also sync with
616         kernel sched.h, adding SCHED_ISO and SCHED_DEADLINE constants.
617
618         * posix/sched.h: Include bits/cpu-set.h as well as bits/sched.h.
619         For compatibility, #define sched_priority to itself, and #define
620         __sched_priority as sched_priority.
621         * posix/bits/cpu-set.h: New file containing, verbatim, the code
622         that was under #ifndef __cpu_set_t_defined in
623         sysdeps/unix/sysv/linux/bits/sched.h.
624         * include/bits/cpu-set.h: New wrapper.
625         * posix/Makefile: Install bits/cpu-set.h.
626
627 2017-06-12  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
628             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
629             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
630
631         * math/gen-libm-test.pl (@all_floats): Add ifloat128 and float128.
632         (%all_floats_pfx): Add macro prefix for float128 (FLT128).
633         * math/libm-test-exp10.inc (pow10_test): Do not test for _FloatN,
634         * math/libm-test-isfinite.inc (finite_test): Likewise.
635         * math/libm-test-lgamma.inc (gamma_test): Likewise.
636         * math/libm-test-nexttoward.inc (nexttoward_test): Likewise.
637         (nexttoward_test_data}: Likewise.
638         * math/libm-test-remainder.inc (drem_test): Likewise.
639         * math/libm-test-scalb.inc (scalb_test): Likewise.
640         (scalb_test_data): Likewise.
641         * math/libm-test-significand.inc (significand_test): Likewise.
642         (significand_test_data): Likewise.
643         * math/libm-test-support.c (check_complex): Replace __complex__
644         FLOAT with CFLOAT to get the support for old compiler.
645         * math/libm-test-support.h (check_complex): Likewise.
646         * math/test-double.h (CFLOAT, TEST_FLOATN): New macros.
647         * math/test-float.h (CFLOAT, TEST_FLOATN): Likewise.
648         * math/test-ldouble.h (CFLOAT, TEST_FLOATN): Likewise.
649         * math/test-float128.h: New file.
650         * math/test-math-floatn.h: New file.
651
652 2017-06-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
653
654         * include/float.h: Allow the definition of macros prefixed with
655         FLT128 even if _ISOMAC is defined, but provided that
656         __STDC_WANT_IEC_60559_TYPES_EXT__ is defined as a macro.
657
658 2017-06-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
659
660         * manual/math.texi (Mathematics): Add description for _FloatN and
661         _FloatNx types and mentions that they are not support in glibc for
662         any architecture, so far.
663         * manual/arith.texi (wcstof, wcstold): Replace the mention to
664         stdlib.h with wchar.h.
665         (Parsing of Floats): Add descriptions for strtofN and wcstofN.
666         (Printing of Floats): Add description for strfromfN.
667
668 2017-06-12  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
669             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
670             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
671
672         * include/gmp.h (__mpn_construct_float128): New declaration.
673         * include/stdlib.h: Include bits/floatn.h for _Float128 tests.
674         (__strtof128_l): New declaration.
675         (__strtof128_nan): Likewise.
676         (__wcstof128_nan): Likewise.
677         (__strtof128_internal): Likewise.
678         (____strtof128_l_internal): Likewise.
679         * include/wchar.h: Include bits/floatn.h for _Float128 tests.
680         (__wcstof128_l): New declaration.
681         (__wcstof128_internal): Likewise.
682
683         * stdlib/Makefile (bug-strtod2): Link libm too.
684
685         * stdlib/stdlib.h (strtof128): New declaration.
686         (strtof128_l): Likewise.
687
688         * stdlib/tst-strtod-nan-locale-main.c: Updated to use
689         tst-strtod.h macros to ensure float128 gets tested too.
690
691         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f128): New macro.
692
693         * stdlib/tst-strtod.h: Include bits/floatn.h for _Float128
694         tests.
695         (IF_FLOAT128): New macro.
696         (GEN_TEST_STRTOD): Update to optionally include _Float128 in
697         the tests.
698         (STRTOD_TEST_FOREACH): Likewise.
699
700         * sysdeps/ieee754/float128/Makefile: Insert new strtof128 and
701         wcstof128 functions into libc.
702
703         * sysdeps/ieee754/float128/Versions: Add exports for the above
704         new functions.
705
706         * sysdeps/ieee754/float128/mpn2float128.c: New file.
707         * sysdeps/ieee754/float128/strtod_nan_float128.h: New file.
708         * sysdeps/ieee754/float128/strtof128.c: New file.
709         * sysdeps/ieee754/float128/strtof128_l.c: New file.
710         * sysdeps/ieee754/float128/strtof128_nan.c: New file.
711         * sysdeps/ieee754/float128/wcstof128.c: New file.
712         * sysdeps/ieee754/float128/wcstof128_l.c: New file.
713         * sysdeps/ieee754/float128/wcstof128_nan.c: New fike.
714         * wcsmbs/Makefile: (CFLAGS-wcstof128.c): Append strtox-CFLAGS.
715         (CFLAGS-wcstof128_l): Likewise.
716
717         * wcsmbs/wchar.h: Include bits/floatn.h for _Float128 tests.
718         (wcstof128): New declaration.
719         (wcstof128_l): Likewise.
720
721 2017-06-12  Joseph Myers  <joseph@codesourcery.com>
722
723         [BZ #21552]
724         * signal/signal.h (bsd_signal): Declare if [__USE_XOPEN_EXTENDED],
725         not [__USE_XOPEN].
726         * conform/Makefile (test-xfail-XPG4/signal.h/conform): Remove.
727
728         [BZ #21550]
729         * signal/signal.h (sigwait): Only declare if [__USE_POSIX199506].
730
731 2017-06-12  H.J. Lu  <hongjiu.lu@intel.com>
732
733         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
734         strcpy-sse2 and stpcpy-sse2.
735         * sysdeps/x86_64/multiarch/ifunc-unaligned-ssse3.h: New file.
736         * sysdeps/x86_64/multiarch/stpcpy-sse2.S: Likewise.
737         * sysdeps/x86_64/multiarch/stpcpy.c: Likewise.
738         * sysdeps/x86_64/multiarch/stpncpy.c: Likewise.
739         * sysdeps/x86_64/multiarch/strcpy-sse2.S: Likewise.
740         * sysdeps/x86_64/multiarch/strcpy.c: Likewise.
741         * sysdeps/x86_64/multiarch/strncpy.c: Likewise.
742         * sysdeps/x86_64/multiarch/stpcpy.S: Removed.
743         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
744         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
745         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
746         * sysdeps/x86_64/multiarch/stpncpy-c.c (weak_alias): New.
747         (libc_hidden_def): Always defined as empty.
748         * sysdeps/x86_64/multiarch/strncpy-c.c (libc_hidden_builtin_def):
749         Always Defined as empty.
750
751 2017-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
752
753         * string/string-inlines.c: Add undef of __stpcpy to fix build issue.
754
755 2017-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
756
757         [BZ #15105]
758         [BZ #19463]
759         * include/string.h: Add internal redirect for __stpcpy.
760         * string/Makefile: Remove bits/string2.h.
761         * string/string.h: Update comment.
762         * string/string-inlines.c: Remove bits/string2.h include and comment.
763         * string/bits/string2.h: Remove file.
764
765 2017-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
766
767         * sunrpc/bindrsvprt.c (bindresvport): Change __bzero to memset.
768         * sunrpc/clnt_gen.c (clnt_create): Likewise.
769         * sunrpc/des_impl.c (_des_crypt): Likewise.
770         * sunrpc/key_call.c (key_gendes): Likewise.
771         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
772         * sunrpc/svc_simple.c (universal): Likewise.
773         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
774         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
775         * sysdeps/arm/aeabi_memclr.c (__aeabi_memclr): Likewise.
776
777 2017-06-10  Zack Weinberg  <zackw@panix.com>
778
779         * stdlib/errno.h: Correct an outdated comment.
780
781 2017-06-09  Paul A. Clarke  <pc@us.ibm.com>
782
783         * sysdeps/unix/sysv/linux/powerpc/sysconf.c: New file.
784         Add powerpc-specific overrides for L1, L2, L3 CACHE_SIZEs,
785         CACHE_ASSOCs, and CACHE_LINESIZEs, retrieving from auxv.
786         * sysdeps/unix/sysv/linux/powerpc/test-powerpc-linux-sysconf.c:
787         New file.  Invoke newly supported sysconf values for powerpc,
788         and report results.  If none are supported, report so.
789         * sysdeps/unix/sysv/linux/powerpc/Makefile (tests):  Add new test,
790         tst-sysconf.
791
792 2017-06-09  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
793
794         * include/sys/auxv.h (__getauxval): Add a prototype and its
795         libc_hidden_proto.
796         * misc/getauxval.c (__getauxval): Use libc_hidden_def.
797
798 2017-06-09  Joseph Myers  <joseph@codesourcery.com>
799
800         [BZ #21561]
801         * posix/sys/wait.h (idtype_t): Change [__USE_XOPEN] condition to
802         [__USE_XOPEN_EXTENDED].
803         (id_t): Likewise.
804         (include of <bits/types/siginfo_t.h): Likewise.
805         (waitid): Likewise.
806         * sysdeps/unix/sysv/linux/bits/waitflags.h (WSTOPPED): Condition
807         on [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8].
808         (WEXITED): Likewise.
809         (WCONTINUED): Likewise.
810         (WNOWAIT): Likewise.
811         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove.
812         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
813         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
814
815         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Mark
816         libc.so PLT entry optional.
817         (__gtsf2): Likewise.
818         (__unorddf2): Likewise.
819         (__unordsf2): Likewise.
820         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (_Q_fgt):
821         New optional libc.so PLT entry.
822
823         [BZ #21554]
824         * signal/signal.h (sigpause):: Declare if [__USE_XOPEN_EXTENDED],
825         not [__USE_XOPEN].
826
827         [BZ #21560]
828         * posix/sys/wait.h: Condition include of <signal.h> on
829         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8].  Include <bits/types.h>
830         unconditionally.
831         [!__pid_t_defined] (pid_t): Define typedef.
832
833 2017-06-09  Zack Weinberg  <zackw@panix.com>
834
835         * include/errno.h (__errno_location): Use __attribute_const__
836         instead of bare __attribute__.
837
838 2017-06-09  Zack Weinberg  <zackw@panix.com>
839
840         * Makeconfig (dl-tunable-list.h): Generate using a stamp file.
841         (common-generated): Add libc-modules.h and libc-modules.stmp in a
842         more appropriate location. Also add dl-tunable-list.h and
843         dl-tunable-list.stmp.
844
845 2017-06-09  H.J. Lu  <hongjiu.lu@intel.com>
846
847         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Correct comments.
848
849 2017-06-09  H.J. Lu  <hongjiu.lu@intel.com>
850
851         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
852         strrchr-sse2, strrchr-avx2, wcsrchr-sse2 and wcsrchr-avx2.
853         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
854         (__libc_ifunc_impl_list): Add tests for __strrchr_avx2,
855         __strrchr_sse2, __wcsrchr_avx2 and __wcsrchr_sse2.
856         * sysdeps/x86_64/multiarch/strrchr-avx2.S: New file.
857         * sysdeps/x86_64/multiarch/strrchr-sse2.S: Likewise.
858         * sysdeps/x86_64/multiarch/strrchr.c: Likewise.
859         * sysdeps/x86_64/multiarch/wcsrchr-avx2.S: Likewise.
860         * sysdeps/x86_64/multiarch/wcsrchr-sse2.S: Likewise.
861         * sysdeps/x86_64/multiarch/wcsrchr.c: Likewise.
862
863 2017-06-09  H.J. Lu  <hongjiu.lu@intel.com>
864
865         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
866         memrchr-sse2 and memrchr-avx2.
867         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
868         (__libc_ifunc_impl_list): Add tests for __memrchr_avx2 and
869         __memrchr_sse2.
870         * sysdeps/x86_64/multiarch/memrchr-avx2.S: New file.
871         * sysdeps/x86_64/multiarch/memrchr-sse2.S: Likewise.
872         * sysdeps/x86_64/multiarch/memrchr.c: Likewise.
873
874 2017-06-09  H.J. Lu  <hongjiu.lu@intel.com>
875
876         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
877         strchr-sse2, strchrnul-sse2, strchr-avx2, strchrnul-avx2,
878         wcschr-sse2 and wcschr-avx2.
879         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
880         (__libc_ifunc_impl_list): Add tests for __strchr_avx2,
881         __strchrnul_avx2, __strchrnul_sse2, __wcschr_avx2 and
882         __wcschr_sse2.
883         * sysdeps/x86_64/multiarch/strchr-avx2.S: New file.
884         * sysdeps/x86_64/multiarch/strchr-sse2.S: Likewise.
885         * sysdeps/x86_64/multiarch/strchr.c: Likewise.
886         * sysdeps/x86_64/multiarch/strchrnul-avx2.S: Likewise.
887         * sysdeps/x86_64/multiarch/strchrnul-sse2.S: Likewise.
888         * sysdeps/x86_64/multiarch/strchrnul.c: Likewise.
889         * sysdeps/x86_64/multiarch/wcschr-avx2.S: Likewise.
890         * sysdeps/x86_64/multiarch/wcschr-sse2.S: Likewise.
891         * sysdeps/x86_64/multiarch/wcschr.c: Likewise.
892         * sysdeps/x86_64/multiarch/strchr.S: Removed.
893
894 2017-06-09  H.J. Lu  <hongjiu.lu@intel.com>
895
896         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
897         strlen-sse2, strnlen-sse2, strlen-avx2, strnlen-avx2,
898         wcslen-sse2, wcslen-avx2 and wcsnlen-avx2.
899         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
900         (__libc_ifunc_impl_list): Add tests for __strlen_avx2,
901         __strlen_sse2, __strnlen_avx2, __strnlen_sse2, __wcslen_avx2,
902         __wcslen_sse2 and __wcsnlen_avx2.
903         * sysdeps/x86_64/multiarch/strlen-avx2.S: New file.
904         * sysdeps/x86_64/multiarch/strlen-sse2.S: Likewise.
905         * sysdeps/x86_64/multiarch/strlen.c: Likewise.
906         * sysdeps/x86_64/multiarch/strnlen-avx2.S: Likewise.
907         * sysdeps/x86_64/multiarch/strnlen-sse2.S: Likewise.
908         * sysdeps/x86_64/multiarch/strnlen.c: Likewise.
909         * sysdeps/x86_64/multiarch/wcslen-avx2.S: Likewise.
910         * sysdeps/x86_64/multiarch/wcslen-sse2.S: Likewise.
911         * sysdeps/x86_64/multiarch/wcslen.c: Likewise.
912         * sysdeps/x86_64/multiarch/wcsnlen-avx2.S: Likewise.
913         * sysdeps/x86_64/multiarch/wcsnlen.c (OPTIMIZE (avx2)): New.
914         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX2 machines where
915         vzeroupper is preferred and AVX unaligned load is fast.
916
917 2017-06-09  H.J. Lu  <hongjiu.lu@intel.com>
918
919         * sysdeps/x86_64/memchr.S (MEMCHR): New.  Depending on if
920         USE_AS_WMEMCHR is defined.
921         (PCMPEQ): Likewise.
922         (memchr): Renamed to ...
923         (MEMCHR): This.  Support wmemchr if USE_AS_WMEMCHR is defined.
924         Replace pcmpeqb with PCMPEQ.
925         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
926         memchr-sse2, rawmemchr-sse2, memchr-avx2, rawmemchr-avx2,
927         wmemchr-sse4_1, wmemchr-avx2 and wmemchr-c.
928         * sysdeps/x86_64/multiarch/ifunc-avx2.h: New file.
929         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
930         * sysdeps/x86_64/multiarch/memchr-sse2.S: Likewise.
931         * sysdeps/x86_64/multiarch/memchr.c: Likewise.
932         * sysdeps/x86_64/multiarch/rawmemchr-avx2.S: Likewise.
933         * sysdeps/x86_64/multiarch/rawmemchr-sse2.S: Likewise.
934         * sysdeps/x86_64/multiarch/rawmemchr.c: Likewise.
935         * sysdeps/x86_64/multiarch/wmemchr-avx2.S: Likewise.
936         * sysdeps/x86_64/multiarch/wmemchr-sse2.S: Likewise.
937         * sysdeps/x86_64/multiarch/wmemchr.c: Likewise.
938         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
939         (__libc_ifunc_impl_list): Test __memchr_avx2, __memchr_sse2,
940         __rawmemchr_avx2, __rawmemchr_sse2, __wmemchr_avx2 and
941         __wmemchr_sse2.
942
943 2017-06-09  Florian Weimer  <fweimer@redhat.com>
944
945         * malloc/Makefile (test-srcs): Remove tst-dynarray,
946         tst-dynarray-fail.
947
948 2017-06-09  Florian Weimer  <fweimer@redhat.com>
949
950         Expose TEST_VERIFY_EXIT process termination to GCC optimizers.
951         * support/support_test_verify_impl.c
952         (support_test_verify_exit_impl): Split from
953         support_test_verify_impl.
954         * support/check.h (TEST_VERIFY): Drop status argument from
955         support_test_verify_impl call.
956         (TEST_VERIFY_EXIT): Call support_test_verify_exit_impl.
957         (support_test_verify_impl): Remove status argument.
958         (support_test_verify_exit_impl): Declare.
959
960 2017-06-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
961
962         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h: Remove
963         mention of magic numbers in comments.
964         (_dl_procinfo): Fix undefined behavior
965
966 2017-06-08  Joseph Myers  <joseph@codesourcery.com>
967
968         * conform/data/sys/wait.h-data (WIFCONTINUED): Do not expect for
969         [XPG4].
970         (WEXITED): Likewise.
971         (WSTOPPED): Likewise.
972         (WCONTINUED): Likewise.
973         (WNOHANG): Likewise.
974         (WNOWAIT): Likewise.
975         (idtype_t): Likewise.
976         (P_ALL): Likewise.
977         (P_PID): Likewise.
978         (P_PGID): Likewise.
979         (id_t): Likewise.
980         (siginfo_t): Likewise.
981         (wait3): Likewise.
982         (waitid): Likewise.
983         (signal.h): Do not allow header for [XPG4].
984         (sys/resource.h): Likewise.
985         (si_*): Do not allow for [XPG4].
986         (W*): Likewise.
987         (P_*): Likewise.
988         (BUS_): Likewise.
989         (CLD_): Likewise.
990         (FPE_): Likewise.
991         (ILL_): Likewise.
992         (POLL_): Likewise.
993         (SEGV_): Likewise.
994         (SI_): Likewise.
995         (TRAP_): Likewise.
996         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): New
997         variable.
998
999 2017-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1000
1001         [BZ #21528]
1002         * elf/dl-minimal.c (__strtoul_internal): Removed.
1003         (strtoul): Likewise.
1004         * elf/dl-misc.c (_dl_strtoul): New function.
1005         * elf/dl-tunables.c (tunables_strtoul): Removed.
1006         (tunable_initialize): Replace tunables_strtoul with _dl_strtoul.
1007         * elf/rtld.c (process_envvars): Likewise.
1008         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init):
1009         Likewise.
1010         * sysdeps/generic/ldsodefs.h (_dl_strtoul): New prototype.
1011
1012 2017-06-08  Zack Weinberg  <zackw@panix.com>
1013
1014         * libio/bits/types/FILE.h, libio/bits/types/__FILE.h
1015         * wcsmbs/bits/types/mbstate_t.h, wcsmbs/bits/types/__mbstate_t.h
1016         * wcsmbs/bits/types/wint_t.h: New single-type definition files.
1017         * wctype/bits/wctype-wchar.h: New file holding declarations shared
1018         between wctype.h and wchar.h.
1019
1020         * libio/Makefile, wcsmbs/Makefile, wctype/Makefile:
1021         Install them.
1022
1023         * include/bits/types/FILE.h, include/bits/types/__FILE.h
1024         * include/bits/types/mbstate_t.h, include/bits/types/__mbstate_t.h
1025         * include/bits/types/wint_t.h, include/bits/wcsmbs-wchar.h:
1026         New wrappers.
1027         * include/stdio.h, include/wchar.h, include/wctype.h:
1028         No need to handle __need macros.
1029
1030         * grp/grp.h, gshadow/gshadow.h, hurd/hurd.h, iconv/gconv.h
1031         * libio/stdio.h, mach/mach.h, misc/mntent.h, pwd/pwd.h
1032         * shadow/shadow.h, stdio-common/printf.h, wcsmbs/uchar.h
1033         * wcsmbs/wchar.h, wctype/wctype.h
1034         * sysdeps/generic/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h
1035         Use the new files instead of __need macros.
1036
1037 2017-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1038
1039         * string/test-memrchr.c (test_main): Add tests for len == 0
1040         and tests for positions close to the beginning, which are
1041         equivalent to positions close to the end for memchr.
1042
1043 2017-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1044
1045         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update
1046         comments.
1047         * sysdeps/x86_64/multiarch/wmemset.c: Include ifunc-wmemset.h
1048         instead of wmemset.h.
1049         * sysdeps/x86_64/multiarch/wmemset_chk.c: Likewise.
1050         * sysdeps/x86_64/multiarch/wmemset.h: Renamed to ...
1051         * sysdeps/x86_64/multiarch/ifunc-wmemset.h: This.
1052
1053 2017-06-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1054
1055         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
1056         spec->info.is_binary128 to zero.
1057         * stdio-common/printf.h (printf_info): Add new member is_binary128
1058         to indicate that the number being converted to string is compatible
1059         with the IEC 60559 binary128 format.
1060         * stdio-common/printf_fp.c (__printf_fp_l): Add code to deal with
1061         _Float128 numbers.
1062         * stdio-common/printf_fphex.c: Include ieee754_float128.h and
1063         ldbl-128/printf_fphex_macros.h
1064         (__printf_fphex): Add code to deal with _Float128 numbers.
1065         * stdio-common/printf_size.c (__printf_size): Likewise.
1066         * stdio-common/vfprintf.c (process_arg): Initialize member
1067         info.is_binary128 to zero.
1068         * stdlib/fpioconst.h (FLT128_MAX_10_EXP_LOG): New macro.
1069         * stdlib/stdlib.h: Include bits/floatn.h for _Float128 support.
1070         (strfromf128): New declaration.
1071         * stdlib/strfrom-skeleton.c (STRFROM): Set member info.is_binary128
1072         to one.
1073         * sysdeps/ieee754/float128/Makefile: Add strfromf128.
1074         * sysdeps/ieee754/float128/Versions: Likewise.
1075         * sysdeps/ieee754/float128/strfromf128.c: New file.
1076
1077 2017-06-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1078
1079         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Include
1080         ldbl-128/printf_fphex_macros.h for the definition of PRINT_FPHEX.
1081         (PRINT_FPHEX_LONG_DOUBLE): Define based on PRINT_FPHEX.
1082         * sysdeps/ieee754/ldbl-128/printf_fphex_macros.h
1083         (PRINT_FPHEX): New function-like macro that can be used for long
1084         double, as well as for _Float128
1085
1086 2017-06-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1087
1088         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): New macro.
1089         (__printf_fp_l): Use the new macro to avoid duplicating code.
1090         * stdio-common/printf_fphex.c (PRINTF_FPHEX_FETCH): New macro.
1091         (__printf_fphex): Use the new macro to avoid duplicating code.
1092         * stdio-common/printf_size.c (PRINTF_SIZE_FETCH): New macro.
1093         (__printf_size): Use the new macro to avoid duplicating code.
1094
1095 2017-06-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1096
1097         * include/gmp.h: Include bits/floatn.h
1098         (__mpn_extract_float128): Declare when __HAVE_DISTINCT_FLOAT128 is 1.
1099         * stdlib/gmp-impl.h: Also check if alloca is not defined before
1100         including stack-alloc.h.  It could have been defined by other header
1101         which not necessarily defines HAVE_ALLOCA.
1102         * sysdeps/ieee754/float128/Makefile: New file.
1103         * sysdeps/ieee754/float128/float1282mpn.c: New file.
1104         * sysdeps/ieee754/float128/float128_private.h: Include gmp.h before
1105         redefining __mpn_extract_long_double to __mpn_extract_float128, then
1106         redefine __mpn_extract_long_double to __mpn_extract_float128.
1107         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Replace long double with
1108         _Float128 to allow float128_private.h overrides.
1109
1110 2017-06-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1111
1112         * stdlib/fpioconst.h: Include bits/floatn.h.
1113         (FPIOCONST_HAVE_EXTENDED_RANGE): New macro for testing how big the
1114         power of ten table should be.
1115         (FPIOCONST_POW10_ARRAY_SIZE): Use larger table if above is true.
1116         * stdlib/fpioconst.c (__tens): Use FPIOCONST_HAVE_EXTENDED_RANGE
1117         to include larger tables when _Float128 support is enabled.
1118         (_fpioconst_pow10): Likewise.
1119
1120 2017-06-07  Joseph Myers  <joseph@codesourcery.com>
1121
1122         * include/bits/types/clock_t.h: Use #include <path> instead of
1123         #include "../../path".
1124         * include/bits/types/clockid_t.h: Likewise.
1125         * include/bits/types/struct_iovec.h: Likewise.
1126         * include/bits/types/struct_itimerspec.h: Likewise.
1127         * include/bits/types/struct_osockaddr.h: Likewise.
1128         * include/bits/types/struct_sigstack.h: Likewise.
1129         * include/bits/types/struct_timespec.h: Likewise.
1130         * include/bits/types/struct_timeval.h: Likewise.
1131         * include/bits/types/struct_tm.h: Likewise.
1132         * include/bits/types/time_t.h: Likewise.
1133         * include/bits/types/timer_t.h: Likewise.
1134
1135         [BZ #14096]
1136         * timezone/Makefile ($(objpfx)tst-timezone.out): Depend on
1137         America/New_York.
1138
1139 2017-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1140
1141         * sysdeps/x86_64/multiarch/ifunc-sse4_1.h: Removed and folded
1142         into ...
1143         * sysdeps/x86_64/multiarch/wcsnlen.c: Here.  Don't include
1144         ifunc-sse4_1.h.
1145
1146 2017-06-07  Arjun Shankar  <arjun.is@lostca.se>
1147
1148         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal):
1149         Remove check for NULL 'buf'.
1150         * login/tst-ptsname.c (do_test): Remove test with NULL 'buf'.
1151
1152 2017-06-07  Arjun Shankar  <arjun.is@lostca.se>
1153
1154         * sysdeps/unix/sysv/linux/tst-clone2.c: Do not
1155         include test-skeleton.c.
1156         Include support/check.h and support/test-driver.c.
1157
1158 2017-06-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1159
1160         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
1161         (_dl_aarch64_cap_flags): New array.
1162         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
1163         (_dl_hwcap_string, _dl_string_hwcap, _dl_procinfo): Implement
1164         functions.
1165
1166         * elf/dl-hwcaps.h [HAVE_TUNABLES]: Always read hwcap_mask.
1167         * sysdeps/sparc/sparc32/dl-machine.h [HAVE_TUNABLES]:
1168         Likewise.
1169         * sysdeps/x86/cpu-features.c (init_cpu_features): Always set
1170         up hwcap and hwcap_mask.
1171
1172         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
1173         (init_cpu_features): Use glibc.tune.hwcap_mask.
1174         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h: New file.
1175
1176         * elf/dl-hwcaps.h: New file.
1177         * elf/dl-hwcaps.c: Include it.
1178         (_dl_important_hwcaps)[HAVE_TUNABLES]: Read and update
1179         glibc.tune.hwcap_mask.
1180         * elf/dl-cache.c: Include dl-hwcaps.h.
1181         (_dl_load_cache_lookup)[HAVE_TUNABLES]: Read
1182         glibc.tune.hwcap_mask.
1183         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1184         * elf/dl-support.c (_dl_hwcap2)[HAVE_TUNABLES]: Drop
1185         _dl_hwcap_mask.
1186         * elf/rtld.c (rtld_global_ro)[HAVE_TUNABLES]: Drop
1187         _dl_hwcap_mask.
1188         (process_envvars)[HAVE_TUNABLES]: Likewise.
1189         * sysdeps/generic/ldsodefs.h (rtld_global_ro)[HAVE_TUNABLES]:
1190         Likewise.
1191         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't
1192         initialize dl_hwcap_mask when tunables are enabled.
1193
1194         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Add include
1195         guard.
1196         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
1197
1198         * elf/dl-tunables.list: Add glibc.tune.hwcap_mask.
1199         * scripts/gen-tunables.awk: Include dl-procinfo.h.
1200         * manual/tunables.texi: Document glibc.tune.hwcap_mask.
1201
1202         * elf/Versions (__tunable_set_val): Rename to __tunable_get_val.
1203         * elf/dl-tunables.c: Likewise.
1204         (do_tunable_update_val): New function.
1205         (__tunable_set_val): New function.
1206         (__tunable_get_val): Call CB only if the tunable was externally
1207         initialized.
1208         (tunables_strtoul): Replace strval with initialized.
1209         * elf/dl-tunables.h (strval): Replace with a bool initialized.
1210         (TUNABLE_ENUM_NAME, TUNABLE_ENUM_NAME1): Adjust names to
1211         prevent collision.
1212         (__tunable_set_val): New function.
1213         (TUNABLE_GET, TUNABLE_GET_FULL): New macros.
1214         (TUNABLE_SET, TUNABLE_SET_FULL): Likewise.
1215         (TUNABLE_SET_VAL): Remove.
1216         (TUNABLE_SET_VAL_WITH_CALLBACK): Likewise.
1217         * README.tunables: Document the new macros.
1218         * malloc/arena.c (ptmalloc_init): Adjust.
1219
1220 2017-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1221
1222         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1223         wcsnlen-sse4_1 and wcsnlen-c.
1224         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1225         (__libc_ifunc_impl_list): Test __wcsnlen_sse4_1 and
1226         __wcsnlen_sse2.
1227         * sysdeps/x86_64/multiarch/ifunc-sse4_1.h: New file.
1228         * sysdeps/x86_64/multiarch/wcsnlen-c.c: Likewise.
1229         * sysdeps/x86_64/multiarch/wcsnlen-sse4_1.S: Likewise.
1230         * sysdeps/x86_64/multiarch/wcsnlen.c: Likewise.
1231         * sysdeps/x86_64/wcsnlen.S: Removed.
1232
1233 2017-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1234
1235         * sysdeps/s390/nptl/pthread_spin_init.c: Delete File.
1236         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
1237         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
1238         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
1239
1240 2017-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1241
1242         * NEWS: Mention new spinlock implementation.
1243         * include/atomic.h:
1244         (__atomic_val_bysize): Cast type to omit volatile qualifier.
1245         (atomic_exchange_acq): Likewise.
1246         (atomic_load_relaxed): Likewise.
1247         (ATOMIC_EXCHANGE_USES_CAS): Check definition.
1248         * nptl/pthread_spin_init.c (pthread_spin_init):
1249         Use atomic_store_relaxed.
1250         * nptl/pthread_spin_lock.c (pthread_spin_lock):
1251         Use C11-like atomic macros.
1252         * nptl/pthread_spin_trylock.c (pthread_spin_trylock):
1253         Likewise.
1254         * nptl/pthread_spin_unlock.c (pthread_spin_unlock):
1255         Use atomic_store_release.
1256         * sysdeps/aarch64/nptl/pthread_spin_lock.c: Delete File.
1257         * sysdeps/arm/nptl/pthread_spin_lock.c: Likewise.
1258         * sysdeps/hppa/nptl/pthread_spin_lock.c: Likewise.
1259         * sysdeps/m68k/nptl/pthread_spin_lock.c: Likewise.
1260         * sysdeps/microblaze/nptl/pthread_spin_lock.c: Likewise.
1261         * sysdeps/mips/nptl/pthread_spin_lock.c: Likewise.
1262         * sysdeps/nios2/nptl/pthread_spin_lock.c: Likewise.
1263         * sysdeps/aarch64/atomic-machine.h (ATOMIC_EXCHANGE_USES_CAS): Define.
1264         * sysdeps/alpha/atomic-machine.h: Likewise.
1265         * sysdeps/arm/atomic-machine.h: Likewise.
1266         * sysdeps/i386/atomic-machine.h: Likewise.
1267         * sysdeps/ia64/atomic-machine.h: Likewise.
1268         * sysdeps/m68k/coldfire/atomic-machine.h: Likewise.
1269         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: Likewise.
1270         * sysdeps/microblaze/atomic-machine.h: Likewise.
1271         * sysdeps/mips/atomic-machine.h: Likewise.
1272         * sysdeps/powerpc/powerpc32/atomic-machine.h: Likewise.
1273         * sysdeps/powerpc/powerpc64/atomic-machine.h: Likewise.
1274         * sysdeps/s390/atomic-machine.h: Likewise.
1275         * sysdeps/sparc/sparc32/atomic-machine.h: Likewise.
1276         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: Likewise.
1277         * sysdeps/sparc/sparc64/atomic-machine.h: Likewise.
1278         * sysdeps/tile/tilegx/atomic-machine.h: Likewise.
1279         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
1280         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Likewise.
1281         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: Likewise.
1282         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: Likewise.
1283         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: Likewise.
1284         * sysdeps/x86_64/atomic-machine.h: Likewise.
1285
1286 2017-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1287
1288         * sysdeps/x86/cacheinfo.c (intel_check_word): Accept cpu_features
1289         and use it instead of dl_x86_cpu_features.
1290         (handle_intel): Replace maxidx with cpu_features.  Pass
1291         cpu_features to intel_check_word.
1292         (__cache_sysconf): Pass cpu_features to handle_intel.
1293         (init_cacheinfo): Likewise.  Use cpu_features instead of
1294         dl_x86_cpu_features.
1295
1296 2017-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1297
1298         * sysdeps/x86/cpu-features.h (index_cpu_MOVBE): New.
1299         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1300         memcmp-avx2 and wmemcmp-avx2.
1301         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1302         (__libc_ifunc_impl_list): Test __memcmp_avx2 and __wmemcmp_avx2.
1303         * sysdeps/x86_64/multiarch/memcmp-avx2.S: New file.
1304         * sysdeps/x86_64/multiarch/wmemcmp-avx2.S: Likewise.
1305         * sysdeps/x86_64/multiarch/memcmp.S: Use __memcmp_avx2 on AVX
1306         2 machines if AVX unaligned load is fast and vzeroupper is
1307         preferred.
1308         * sysdeps/x86_64/multiarch/wmemcmp.S: Use __wmemcmp_avx2 on AVX
1309         2 machines if AVX unaligned load is fast and vzeroupper is
1310         preferred.
1311
1312 2017-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1313
1314         * include/wchar.h (__wmemset_chk): New.
1315         * sysdeps/x86_64/memset.S (VDUP_TO_VEC0_AND_SET_RETURN): Renamed
1316         to MEMSET_VDUP_TO_VEC0_AND_SET_RETURN.
1317         (WMEMSET_VDUP_TO_VEC0_AND_SET_RETURN): New.
1318         (WMEMSET_CHK_SYMBOL): Likewise.
1319         (WMEMSET_SYMBOL): Likewise.
1320         (__wmemset): Add hidden definition.
1321         (wmemset): Add weak hidden definition.
1322         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1323         wmemset_chk-nonshared.
1324         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1325         (__libc_ifunc_impl_list): Add __wmemset_sse2_unaligned,
1326         __wmemset_avx2_unaligned, __wmemset_avx512_unaligned,
1327         __wmemset_chk_sse2_unaligned, __wmemset_chk_avx2_unaligned
1328         and __wmemset_chk_avx512_unaligned.
1329         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S
1330         (VDUP_TO_VEC0_AND_SET_RETURN): Renamed to ...
1331         (MEMSET_VDUP_TO_VEC0_AND_SET_RETURN): This.
1332         (WMEMSET_VDUP_TO_VEC0_AND_SET_RETURN): New.
1333         (WMEMSET_SYMBOL): Likewise.
1334         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S
1335         (VDUP_TO_VEC0_AND_SET_RETURN): Renamed to ...
1336         (MEMSET_VDUP_TO_VEC0_AND_SET_RETURN): This.
1337         (WMEMSET_VDUP_TO_VEC0_AND_SET_RETURN): New.
1338         (WMEMSET_SYMBOL): Likewise.
1339         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Updated.
1340         (WMEMSET_CHK_SYMBOL): New.
1341         (WMEMSET_CHK_SYMBOL (__wmemset_chk, unaligned)): Likewise.
1342         (WMEMSET_SYMBOL (__wmemset, unaligned)): Likewise.
1343         * sysdeps/x86_64/multiarch/memset.S (WMEMSET_SYMBOL): New.
1344         (libc_hidden_builtin_def): Also define __GI_wmemset and
1345         __GI___wmemset.
1346         (weak_alias): New.
1347         * sysdeps/x86_64/multiarch/wmemset.c: New file.
1348         * sysdeps/x86_64/multiarch/wmemset.h: Likewise.
1349         * sysdeps/x86_64/multiarch/wmemset_chk-nonshared.S: Likewise.
1350         * sysdeps/x86_64/multiarch/wmemset_chk.c: Likewise.
1351         * sysdeps/x86_64/wmemset.c: Likewise.
1352         * sysdeps/x86_64/wmemset_chk.c: Likewise.
1353
1354 2017-06-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1355             H.J. Lu  <hongjiu.lu@intel.com>
1356
1357         * sysdeps/x86/init-arch.h (PASTER1): New.
1358         (EVALUATOR1): Likewise.
1359         (PASTER2): Likewise.
1360         (EVALUATOR2): Likewise.
1361         (REDIRECT_NAME): Likewise.
1362         (OPTIMIZE): Likewise.
1363         (IFUNC_SELECTOR): Likewise.
1364
1365 2017-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1366
1367         * sysdeps/x86_64/strlen.S (PMINU): New.
1368         (PCMPEQ): Likewise.
1369         (SHIFT_RETURN): Likewise.
1370         (FIND_ZERO): Replace pcmpeqb with PCMPEQ.
1371         (strlen): Add SHIFT_RETURN before ret.  Replace pcmpeqb and
1372         pminub with PCMPEQ and PMINU.
1373         * sysdeps/x86_64/wcsnlen.S: New file.
1374
1375 2017-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1376
1377         * sysdeps/x86_64/memrchr.S (__memrchr): Use 32-bit registers for
1378         the lower 32 bits.  Remove redundant instructions.
1379
1380 2017-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1381
1382         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): Pass
1383         0 as the high part of offset.
1384         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h (LO_HI_LONG): New.
1385
1386 2017-06-05  Joseph Myers  <joseph@codesourcery.com>
1387
1388         [BZ #21538]
1389         * bits/signum.h (SIG_HOLD): Define if [__USE_XOPEN], not
1390         [__USE_UNIX98].
1391         * sysdeps/unix/bsd/bits/signum.h (SIG_HOLD): Likewise.
1392         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (SIG_HOLD):
1393         Likewise.
1394         * sysdeps/unix/sysv/linux/bits/signum.h (SIG_HOLD): Likewise.
1395         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (SIG_HOLD): Likewise.
1396         * sysdeps/unix/sysv/linux/mips/bits/signum.h (SIG_HOLD): Likewise.
1397         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (SIG_HOLD):
1398         Likewise.
1399
1400         [BZ #21517]
1401         * bits/types/stack_t.h (stack_t): Remove struct tag.
1402         * sysdeps/unix/sysv/linux/bits/types/stack_t.h (stack_t):
1403         Likewise.
1404         * sysdeps/unix/sysv/linux/mips/bits/types/stack_t.h (stack_t):
1405         Likewise.
1406         * debug/segfault.c (install_handler): Use stack_t instead of
1407         struct sigaltstack.
1408         * hurd/hurd/signal.h (struct hurd_sigstate): Likewise.
1409         * hurd/trampoline.c (_hurd_setup_sighandler): Likewise.
1410         * include/signal.h (__sigaltstack): Likwise.
1411         * signal/sigaltstack.c (__sigaltstack): Likewise.
1412         * signal/signal.h (sigaltstack): Likewise.
1413         * sysdeps/mach/hurd/i386/signal-defines.sym
1414         (SIGALTSTACK__SS_SP__OFFSET): Likewise.
1415         (SIGALTSTACK__SS_SIZE__OFFSET): Likewise.
1416         (SIGALTSTACK__SS_FLAGS__OFFSET): Likewise.
1417         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1418         * sysdeps/mach/hurd/sigstack.c (sigstack): Likewise.
1419         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h (struct
1420         elf_prstatus): Likewise.
1421         * sysdeps/unix/sysv/linux/hppa/____longjmp_chk.c (CHECK_SP):
1422         Likewise.
1423         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h (struct elf_prstatus):
1424         Likewise.
1425         * sysdeps/unix/sysv/linux/m68k/____longjmp_chk.c (CHECK_SP):
1426         Likewise.
1427         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (struct
1428         elf_prstatus): Likewise.
1429         * sysdeps/unix/sysv/linux/sh/sys/procfs.h (struct elf_prstatus):
1430         Likewise.
1431         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prstatus):
1432         Likewise.
1433
1434 2017-06-04  Zack Weinberg  <zackw@panix.com>
1435
1436         * sysdeps/gnu/errlist.c: Regenerate.
1437
1438 2017-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1439
1440         * benchtests/bench-memchr.c (do_test): Print out both length
1441         and position.
1442         (test_main): Also test the position close to the beginning for
1443         memrchr.
1444
1445 2017-06-04  Zack Weinberg  <zackw@panix.com>
1446
1447         * nis/nis_add.c, nis/nis_addmember.c, nis/nis_call.c
1448         * nis/nis_checkpoint.c, nis/nis_clone_dir.c, nis/nis_clone_obj.c
1449         * nis/nis_clone_res.c, nis/nis_creategroup.c, nis/nis_defaults.c
1450         * nis/nis_destroygroup.c, nis/nis_domain_of.c
1451         * nis/nis_domain_of_r.c, nis/nis_error.c, nis/nis_file.c
1452         * nis/nis_free.c, nis/nis_getservlist.c, nis/nis_ismember.c
1453         * nis/nis_local_names.c, nis/nis_lookup.c, nis/nis_mkdir.c
1454         * nis/nis_modify.c, nis/nis_ping.c, nis/nis_print.c
1455         * nis/nis_print_group_entry.c, nis/nis_remove.c
1456         * nis/nis_removemember.c, nis/nis_rmdir.c, nis/nis_server.c
1457         * nis/nis_subr.c, nis/nis_table.c, nis/nis_util.c
1458         * nis/nis_verifygroup.c, nis/nis_xdr.c, nis/yp_xdr.c
1459         * nis/ypclnt.c, nis/ypupdate_xdr.c, sunrpc/auth_des.c
1460         * sunrpc/auth_none.c, sunrpc/auth_unix.c, sunrpc/authdes_prot.c
1461         * sunrpc/authuxprot.c, sunrpc/clnt_gen.c, sunrpc/clnt_perr.c
1462         * sunrpc/clnt_raw.c, sunrpc/clnt_simp.c, sunrpc/clnt_tcp.c
1463         * sunrpc/clnt_udp.c, sunrpc/clnt_unix.c, sunrpc/des_crypt.c
1464         * sunrpc/des_soft.c, sunrpc/get_myaddr.c, sunrpc/key_call.c
1465         * sunrpc/key_prot.c, sunrpc/netname.c, sunrpc/pm_getmaps.c
1466         * sunrpc/pm_getport.c, sunrpc/pmap_clnt.c, sunrpc/pmap_prot.c
1467         * sunrpc/pmap_prot2.c, sunrpc/pmap_rmt.c, sunrpc/publickey.c
1468         * sunrpc/rpc_cmsg.c, sunrpc/rpc_dtable.c, sunrpc/rpc_prot.c
1469         * sunrpc/rpc_thread.c, sunrpc/rtime.c, sunrpc/svc.c
1470         * sunrpc/svc_auth.c, sunrpc/svc_raw.c, sunrpc/svc_run.c
1471         * sunrpc/svc_tcp.c, sunrpc/svc_udp.c, sunrpc/svc_unix.c
1472         * sunrpc/svcauth_des.c, sunrpc/xdr.c, sunrpc/xdr_array.c
1473         * sunrpc/xdr_float.c, sunrpc/xdr_intXX_t.c, sunrpc/xdr_mem.c
1474         * sunrpc/xdr_rec.c, sunrpc/xdr_ref.c, sunrpc/xdr_sizeof.c
1475         * sunrpc/xdr_stdio.c: Include shlib-compat.h.
1476
1477         * sunrpc/des_crypt.c, sunrpc/des_soft.c: No need to include
1478         abi-versions.h as well as shlib-compat.h.
1479         * sunrpc/get_myaddr.c: Remove obsolete comment.
1480         * sunrpc/pmap_rmt.c: Remove obsolete comment and #undef.
1481         * sunrpc/rpc_thread.c: Include libc-lock.h only once.
1482         * resolv/res_libc.c: Include shlib-compat.h only once.
1483
1484 2017-06-03  Florian Weimer  <fweimer@redhat.com>
1485
1486         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __strdup instead
1487         of strdup.
1488
1489 2017-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1490
1491         * sysdeps/x86/cacheinfo.c (__x86_shared_non_temporal_threshold):
1492         Set to the 3/4 of the total shared cache size.
1493
1494 2017-06-02  Rical Jasan  <ricaljasan@pacific.net>
1495
1496         * manual/errno.texi: Remove redundant error strings.
1497         * manual/macros.texi (@errno): Render the error string in every
1498         description.
1499
1500 2017-06-02  Joseph Myers  <joseph@codesourcery.com>
1501
1502         [BZ #21543]
1503         * signal/signal.h: Only include <bits/types/sigevent_t.h> and
1504         <bits/sigevent-consts.h> if [__USE_POSIX199309], not if
1505         [__USE_XOPEN_EXTENDED].
1506
1507 2017-06-02  Florian Weimer  <fweimer@redhat.com>
1508
1509         * sysdeps/posix/getaddrinfo.c (gethosts): Eliminate another
1510         strdupa.
1511         (getcanonname): Use __strdup instead of strdup.
1512
1513 2017-06-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1514
1515         * misc/Makefile (CFLAGS-preadv2.c): New rule.
1516         (CFLAGS-preadv64v2.c): Likewise.
1517         (CFLAGS-pwritev2.c): Likewise.
1518         (CFLAGS-pwritev64v2.c): Likewise.
1519
1520 2017-06-02  Florian Weimer  <fweimer@redhat.com>
1521
1522         Test res_init with several configuration files.
1523         * resolv/Makefile [build-shared] (tests-internal): Add
1524         tst-resolv-res_init, tst-resolv-res_init-thread.
1525         (tst-resolv-res_init): Link against libdl, libresolv.
1526         (tst-resolv-res_init-thread): Link against libdl, libresolv,
1527         libpthread.
1528         * resolv/tst-resolv-res_init.c: New file.
1529         * resolv/tst-resolv-res_init-skeleton.c: Likewise.
1530         * resolv/tst-resolv-res_init-thread.c: Likewise.
1531         * support/Makefile (libsupport-routines): Add support-xstat,
1532         support_can_chroot, support_capture_subprocess_check,
1533         support_isolate_in_subprocess, support_shared_allocate,
1534         support_write_file_string, xchroot, xmkdir, xopen.
1535         * support/capture_subprocess.h (enum support_capture_allow): Define.
1536         (support_capture_subprocess_check): Declare.
1537         * support/namespace.h (support_can_chroot)
1538         (support_isolate_in_subprocess): Declare.
1539         * support/support-xstat.c: New file.
1540         * support/support.h (support_shared_allocate, support_shared_free)
1541         (support_write_file_string): Declare.
1542         * support/support_can_chroot.c: New file.
1543         * support/support_capture_subprocess_check.c: Likewise.
1544         * support/support_isolate_in_subprocess.c: Likewise.
1545         * support/support_shared_allocate.c: Likewise.
1546         * support/support_write_file_string.c: Likewise.
1547         * support/xchroot.c: Likwise.
1548         * support/xmkdir.c: Likwise.
1549         * support/xopen.c: Likwise.
1550         * support/xunistd.h (xopen, xstat, xmkdir, xchroot): Declare.
1551
1552 2017-06-02  Florian Weimer  <fweimer@redhat.com>
1553
1554         * sysdeps/posix/getaddrinfo.c (getcanonname): New function.
1555         (gaih_inet): Remove malloc_canonbuf variable.  Call getcanonname.
1556
1557 2017-06-02  Florian Weimer  <fweimer@redhat.com>
1558
1559         * malloc/Makefile (routines): Add dynarray_at_failure,
1560         dynarray_emplace_enlarge, dynarray_finalize.
1561         (tests-internal): Add tst-dynarray, tst-dynarray-fail,
1562         tst-dynarray-at-fail.
1563         (tests-srcs): Add tst-dynarray, tst-dynarray-fail.
1564         (tests-special): Add tst-dynarray-mem.out,
1565         tst-dynarray-mem-fail.out.
1566         (tst-dynarray-ENV, tst-dynarray-fail-ENV): Set.
1567         (tst-dynarray-mem.out, tst-dynarray-fail-mem.out): Generate using
1568         mtrace.
1569         * malloc/Versions (__libc_dynarray_at_failure)
1570         (__libc_dynarray_emplace_enlarge, __libc_dynarray_finalize)
1571         (__libc_dynarray_resize, __libc_dynarray_resize_clear): Export as
1572         GLIBC_PRIVATE.
1573         * malloc/dynarray.h: New file.
1574         * malloc/dynarray-skeleton.c: Likewise.
1575         * malloc/dynarray_at_failure.c: Likewise.
1576         * malloc/dynarray_emplace_enlarge.c: Likewise.
1577         * malloc/dynarray_finalize.c: Likewise.
1578         * malloc/dynarray_resize.c: Likewise.
1579         * malloc/dynarray_resize_clear.c: Likewise.
1580         * malloc/tst-dynarray.c: Likewise.
1581         * malloc/tst-dynarray-fail.c: Likewise.
1582         * malloc/tst-dynarray-at-fail.c: Likewise.
1583         * malloc/tst-dynarray-shared.h: Likewise.
1584         * support/Makefile (libsupport-routines): Add
1585         support_capture_subprocess, xdup2, xpipe.
1586         (tests): Add tst-support_capture_subprocess.
1587         * support/capture_subprocess.h: New file.
1588         * support/support_capture_subprocess.c: Likewise.
1589         * support/tst-support_capture_subprocess.c: Likewise.
1590         * support/xdup2.c: Likewise.
1591         * support/xpipe.c: Likewise.
1592         * support/xunistd.h (xdup2, xpipe): Declare.
1593
1594 2017-06-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1595
1596         * stdlib/gmp-impl.h: Include sys/param.h instead of redefining the
1597         macros MAX and MIN.
1598
1599 2017-06-01  Joseph Myers  <joseph@codesourcery.com>
1600
1601         * conform/data/signal.h-data (sa_sigaction): Do not expect for
1602         [XPG4].
1603         (SA_SIGINFO): Likewise.
1604         (SA_ONSTACK): Likewise.
1605         (SA_RESETHAND): Likewise.
1606         (SA_RESTART): Likewise.
1607         (SA_NOCLDWAIT): Likewise.
1608         (SA_NODEFER): Likewise.
1609         (SS_ONSTACK): Likewise.
1610         (SS_DISABLE): Likewise.
1611         (MINSIGSTKSZ): Likewise.
1612         (SIGSTKSZ): Likewise.
1613         (ucontext_t): Likewise.
1614         (stack_t): Likewise.
1615         (struct sigstack): Likewise.
1616         (SI_USER): Do not expect for [XPG4 || XPG42].
1617         (SI_QUEUE): Likewise.
1618         (SI_TIMER): Likewise.
1619         (SI_ASYNCIO): Likewise.
1620         (SI_MESGQ): Likewise.
1621         (bsd_signal): Do not expect for [XPG4].
1622         (killpg): Likewise.
1623         (sigaltstack): Likewise.
1624         (sighold): Likewise.
1625         (sigignore): Likewise.
1626         (siginterrupt): Likewise.
1627         (sigpause): Likewise.
1628         (sigrelse): Likewise.
1629         (sigset): Likewise.
1630         (sigwait): Do not expect for [XPG4 || XPG42].
1631
1632 2017-06-01  Zack Weinberg  <zackw@panix.com>
1633
1634         [BZ #21514]
1635         * sysdeps/unix/sysv/linux/include/bits/syscall.h: New shim header
1636         pointing to the generated file in <builddir>/misc/bits/syscall.h.
1637
1638 2017-06-01  Joseph Myers  <joseph@codesourcery.com>
1639
1640         [BZ #21457]
1641         * sysdeps/arm/sys/ucontext.h (NGREG): Rename to __NGREG and define
1642         NGREG to __NGREG if [__USE_MISC].
1643         (gregset_t): Define using __NGREG.
1644         (__ctx): New macro.
1645         (mcontext_t): Use __ctx in defining fields.
1646         * sysdeps/i386/sys/ucontext.h (NGREG): Rename to __NGREG and
1647         define NGREG to __NGREG if [__USE_MISC].
1648         (gregset_t): Define using __NGREG.
1649         (__ctx): New macro.
1650         (__ctxt): Likewise.
1651         (fpregset_t): Use __ctx and __ctxt in defining fields.
1652         (mcontext_t): Likewise.
1653         * sysdeps/m68k/sys/ucontext.h (NGREG): Rename to __NGREG and
1654         define NGREG to __NGREG if [__USE_MISC].
1655         (gregset_t): Define using __NGREG.
1656         (__ctx): New macro.
1657         (mcontext_t): Use __ctx in defining fields.
1658         * sysdeps/mips/sys/ucontext.h (NGREG): Rename to __NGREG and
1659         define NGREG to __NGREG if [__USE_MISC].
1660         (gregset_t): Define using __NGREG.
1661         (__ctx): New macro.
1662         (fpregset_t): Use __ctx in defining fields.
1663         (mcontext_t): Likewise.
1664         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (NGREG): Rename to
1665         __NGREG and define NGREG to __NGREG if [__USE_MISC].
1666         (gregset_t): Define using __NGREG.
1667         (NFPREG): Rename to __NFPREG and define NFPREG to __NFPREG if
1668         [__USE_MISC].
1669         (fpregset_t): Define using __NFPREG.
1670         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (NGREG): Rename to
1671         __NGREG and define NGREG to __NGREG if [__USE_MISC].
1672         (gregset_t): Define using __NGREG.
1673         (__ctx): New macro.
1674         (fpregset_t): Use __ctx in defining fields.
1675         (mcontext_t): Likewise.
1676         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (NGREG): Rename to
1677         __NGREG and define NGREG to __NGREG if [__USE_MISC].
1678         (NFPREG): Rename to __NFPREG and define NFPREG to __NFPREG if
1679         [__USE_MISC].
1680         (gregset_t): Define using __NGREG.
1681         (__ctx): New macro.
1682         (fpregset_t): Use __ctx in defining fields.
1683         (mcontext_t): Likewise.
1684         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): New macro.
1685         (mcontext_t): Use __ctx in defining fields.
1686         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (__ctx): New
1687         macro.
1688         [__WORDSIZE == 32] (NGREG): Rename to __NGREG and define NGREG to
1689         __NGREG if [__USE_MISC].
1690         [__WORDSIZE == 32] (gregset_t): Define using __NGREG.
1691         [__WORDSIZE == 32] (fpregset_t): Use __ctx in defining fields.
1692         (mcontext_t): Likewise.
1693         [__WORDSIZE != 32] (NGREG): Rename to __NGREG and define NGREG to
1694         __NGREG if [__USE_MISC].
1695         [__WORDSIZE != 32] (NFPREG): Rename to __NFPREG and define NFPREG
1696         to __NFPREG if [__USE_MISC].
1697         [__WORDSIZE != 32] (NVRREG): Rename to __NVRREG and define NVRREG
1698         to __NVRREG if [__USE_MISC].
1699         [__WORDSIZE != 32] (gregset_t): Define using __NGREG.
1700         [__WORDSIZE != 32] (fpregset_t): Define using __NFPREG.
1701         [__WORDSIZE != 32] (vscr_t): Use __ctx in defining fields.
1702         [__WORDSIZE != 32] (vrregset_t): Likewise.
1703         [__WORDSIZE != 32] (mcontext_t): Likewise.
1704         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): New macro.
1705         (__psw_t): Use __ctx in defining fields.
1706         (NGREG): Rename to __NGREG and define NGREG to __NGREG if
1707         [__USE_MISC].
1708         (gregset_t): Define using __NGREG.
1709         (fpreg_t): Use __ctx in defining fields.
1710         (fpregset_t): Likewise.
1711         (mcontext_t): Likewise.
1712         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGREG): Rename to
1713         __NGREG and define NGREG to __NGREG if [__USE_MISC].
1714         (gregset_t): Define using __NGREG.
1715         (NFPREG): Rename to __NFPREG and define NFPREG to __NFPREG if
1716         [__USE_MISC].
1717         (fpregset_t): Define using __NFPREG.
1718         (__ctx): New macro.
1719         (mcontext_t): Use __ctx in defining fields.
1720         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (__ctx): New macro.
1721         [__x86_64__] (NGREG): Rename to __NGREG and define NGREG to
1722         __NGREG if [__USE_MISC].
1723         [__x86_64__] (gregset_t): Define using __NGREG.
1724         [__x86_64__] (struct _libc_fpxreg): Use __ctx in defining fields.
1725         [__x86_64__] (struct _libc_fpstate): Likewise.
1726         [__x86_64__] (mcontext_t): Likewise.
1727         [!__x86_64__] (NGREG): Rename to __NGREG and define NGREG to
1728         __NGREG if [__USE_MISC].
1729         [!__x86_64__] (gregset_t): Define using __NGREG.
1730         [!__x86_64__] (struct _libc_fpreg): Use __ctx in defining fields.
1731         [!__x86_64__] (struct _libc_fpstate): Likewise.
1732         [!__x86_64__] (mcontext_t): Likewise.
1733
1734 2017-06-01  Zack Weinberg  <zackw@panix.com>
1735
1736         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Don't include
1737         alpha/pt-vfork.S.  Provide own compat shim for vfork and __vfork.
1738         * sysdeps/unix/sysv/linux/microblaze/vfork.S: Add __libc_vfork alias.
1739         * sysdeps/unix/sysv/linux/microblaze/localplt.data:
1740         libpthread.so no longer references __errno_location.
1741
1742 2017-05-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1743
1744         * NEWS: Add note about pwritev2 and preadv2 inclusion.
1745         * misc/Makefile (routines): Add preadv2, preadv64v2, pwritev2, and
1746         pwritev64v2.
1747         (tests): Add tst-preadvwritev2 and tst-preadvwritev64v2.
1748         * misc/Versions (GLIBC_2.26): Add preadv2, preadv64v2, pwritev2, and
1749         pwritev64v2.
1750         * misc/preadv2.c: New file.
1751         * misc/preadv64v2.c: Likewise.
1752         * misc/pwritev2.c: Likewise.
1753         * misc/pwritev64v2.c: Likewise.
1754         * misc/tst-preadvwritev2.c: Likewise.
1755         * misc/tst-preadvwritev64v2.c: Likewise.
1756         * manual/llio.texi: Add preadv2 and pwritev2 documentation.
1757         * misc/sys/uio.h [__USE_GNU && !__USE_FILE_OFFSET64] (preadv2): New
1758         prototype.
1759         [__USE_GNU && !__USE_FILE_OFFSET64] (pwritev2): Likewise.
1760         [__USE_GNU && __USE_FILE_OFFSET64] (preadv64v2): Likewise.
1761         [__USE_GNU && __USE_FILE_OFFSET64] (pwritev64v2): Likewise.
1762         * misc/tst-preadvwritev-common.c (PREADV): Define if not defined.
1763         (PWRITEV): Likewise.
1764         (do_test_with_offset): Use PREADV and PWRITEV macros and check for
1765         ENOSYS.
1766         * nptl/tst-cancel4.c (tf_pwritev2): New test.
1767         (tf_preadv2): Likewise.
1768         (tf_fsync): Add tf_pwritev2 and tf_preadv2.
1769         * sysdeps/posix/preadv2.c: Likewise.
1770         * sysdeps/posix/preadv64v2.c: Likewise.
1771         * sysdeps/posix/pwritev2.c: Likewise.
1772         * sysdeps/posix/pwritev64v2.c: Likewise.
1773         * sysdeps/unix/sysv/linux/kernel-features.h: Add comment for syscall
1774         support in kernel.
1775         * sysdeps/unix/sysv/linux/preadv2.c: Likewise.
1776         * sysdeps/unix/sysv/linux/preadv64v2.c: Likewise.
1777         * sysdeps/unix/sysv/linux/pwritev2.c: Likewise.
1778         * sysdeps/unix/sysv/linux/pwritev64v2.c: Likewise.
1779         * sysdeps/unix/sysv/linux/preadv.c (preadv): Add libc_hidden_def.
1780         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
1781         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
1782         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
1783         * sysdeps/unix/sysv/linux/bits/uio.h: Add supported preadv2/pwritev2
1784         support flags on Linux.
1785         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.26): Add
1786         preadv2, preadv64v2, pwritev2, pwritev64v2.
1787         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.26): Likewise.
1788         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.26): Likewise.
1789         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.26): Likewise.
1790         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.26): Likewise.
1791         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.26): Likewise.
1792         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.26):
1793         Likewise.
1794         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.26):
1795         Likewise.
1796         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.26):
1797         Likewise.
1798         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist (GLIBC_2.26):
1799         Likewise.
1800         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist (GLIBC_2.26):
1801         Likewise.
1802         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist (GLIBC_2.26):
1803         Likewise.
1804         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist (GLIBC_2.26):
1805         Likewise.
1806         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.26): Likewise.
1807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1808         (GLIBC_2.26): Likewise.
1809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1810         (GLIBC_2.26): Likewise.
1811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist (GLIBC_2.26):
1812         Likewise.
1813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
1814         (GLIBC_2.26): Likewise.
1815         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.26):
1816         Likewise.
1817         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.26):
1818         Likewise.
1819         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.26): Likewise.
1820         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.26):
1821         Likewise.
1822         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.26):
1823         Likewise.
1824         * sysdeps/sysv/linux/tile/tilegx/tilegx32/libc.abilist (GLIBC_2.26):
1825         Likewise.
1826         * sysdeps/sysv/linux/tile/tilegx/tilegx64/libc.abilist (GLIBC_2.26):
1827         Likewise.
1828         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist (GLIBC_2.26):
1829         Likewise.
1830         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.26):
1831         Likewise.
1832         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.26):
1833         Likewise.
1834
1835 2017-05-31  Andreas Schwab  <schwab@suse.de>
1836
1837         * nptl/tst-fork3.c: Include <support/test-driver.c>.
1838         (main): Rename to do_test and make static.
1839
1840 2017-05-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1841
1842         * csu/libc-start.c [!ARCH_INIT_CPU_FEATURES]: Define
1843         ARCH_INIT_CPU_FEATURES.
1844         (LIBC_START_MAIN): Call it.
1845         * sysdeps/unix/sysv/linux/aarch64/libc-start.c
1846         (__libc_start_main): Remove.
1847         (ARCH_INIT_CPU_FEATURES): New macro.
1848         * sysdeps/x86/libc-start.c (__libc_start_main): Remove.
1849         (ARCH_INIT_CPU_FEATURES): New macro.
1850
1851 2017-05-30  Dennis Wölfing  <denniswoelfing@gmx.de>
1852             Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
1853
1854         * include/stdlib.h (__libc_reallocarray): New declaration.
1855         * malloc/Makefile (routines): Add reallocarray.
1856         (tests): Add tst-reallocarray.c.
1857         * malloc/Versions: Add reallocarray and __libc_reallocarray.
1858         * malloc/malloc-internal.h (check_mul_overflow_size_t): New inline
1859         function.
1860         * malloc/malloc.h (reallocarray): New declaration.
1861         * stdlib/stdlib.h (reallocarray): Likewise.
1862         * malloc/reallocarray.c: New file.
1863         * malloc/tst-reallocarray.c: New test file.
1864         * manual/memory.texi: Document reallocarray.
1865         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add reallocarray.
1866         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1867         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1868         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1869         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1870         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1871         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1872         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1873         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1874         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1875         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1876         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1877         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1878         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1880         Likewise.
1881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1882         Likewise.
1883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1885         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1886         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1887         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1888         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1889         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1890         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1892         * sysdeps/unix/sysv/linux/tilepro/libc.abilist: Likewise.
1893         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1894         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1895
1896 2017-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1897
1898         * sysdeps/x86_64/memchr.S (memchr): Use 32-bit registers for
1899         the lower 32 bits.
1900
1901 2017-05-29  Andreas Schwab  <schwab@linux-m68k.org>
1902
1903         * sysdeps/m68k/Makefile (ASFLAGS-.o) [$(subdir) = csu &&
1904         $(build-pie-default) = yes]: Define.
1905
1906 2017-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1907
1908         * string/test-memchr.c (test_main): Add tests for n == 0.
1909
1910 2017-05-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1911
1912         * nptl/Makefile (tests): Move nptl/tst-mutex8, nptl/tst-mutex8-static,
1913         nptl/tst-mutexpi8 and nptl/tst-mutexpi8-static to...
1914         (tests-internal): ... here.
1915
1916 2017-05-25   Siddhesh Poyarekar  <siddhesh@sourceware.org>
1917              H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         * elf/dl-tunables.c (__tunable_set_val): Make a hidden alias.
1920         * elf/dl-tunables.h (__tunables_init): Mark it hidden in rtld.
1921         (__tunable_set_val): Likewise.
1922
1923 2017-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1924
1925         * Makeconfig ($(common-objpfx)dl-tunable-list.h): Also check
1926         dl-tunables.list in subdirectories.
1927
1928 2017-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1929             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1930             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1931
1932         * math/math.h [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1933         (SNANF128): New macro.
1934         * math/e_sqrtf128.c: New file.
1935         * math/s_fmaxmag_template.c: Include math_private.h in order to
1936         make inline expansion of fabs128().
1937         * math/s_fminmag_template.c: Likewise.
1938
1939         * sysdeps/ieee754/float128/e_acosf128.c: New file.
1940         * sysdeps/ieee754/float128/e_acoshf128.c: New file.
1941         * sysdeps/ieee754/float128/e_asinf128.c: New file.
1942         * sysdeps/ieee754/float128/e_atan2f128.c: New file.
1943         * sysdeps/ieee754/float128/e_atanhf128.c: New file.
1944         * sysdeps/ieee754/float128/e_coshf128.c: New file.
1945         * sysdeps/ieee754/float128/e_exp10f128.c: New file.
1946         * sysdeps/ieee754/float128/e_expf128.c: New file.
1947         * sysdeps/ieee754/float128/e_fmodf128.c: New file.
1948         * sysdeps/ieee754/float128/e_gammaf128_r.c: New file.
1949         * sysdeps/ieee754/float128/e_hypotf128.c: New file.
1950         * sysdeps/ieee754/float128/e_ilogbf128.c: New file.
1951         * sysdeps/ieee754/float128/e_j0f128.c: New file.
1952         * sysdeps/ieee754/float128/e_j1f128.c: New file.
1953         * sysdeps/ieee754/float128/e_jnf128.c: New file.
1954         * sysdeps/ieee754/float128/e_lgammaf128_r.c: New file.
1955         * sysdeps/ieee754/float128/e_log10f128.c: New file.
1956         * sysdeps/ieee754/float128/e_log2f128.c: New file.
1957         * sysdeps/ieee754/float128/e_logf128.c: New file.
1958         * sysdeps/ieee754/float128/e_powf128.c: New file.
1959         * sysdeps/ieee754/float128/e_rem_pio2f128.c: New file.
1960         * sysdeps/ieee754/float128/e_remainderf128.c: New file.
1961         * sysdeps/ieee754/float128/e_scalbf128.c: New file.
1962         * sysdeps/ieee754/float128/e_sinhf128.c: New file.
1963         * sysdeps/ieee754/float128/float128_private.h: New file.
1964         * sysdeps/ieee754/float128/gamma_productf128.c: New file.
1965         * sysdeps/ieee754/float128/ieee754_float128.h: New file.
1966         * sysdeps/ieee754/float128/k_cosf128.c: New file.
1967         * sysdeps/ieee754/float128/k_sincosf128.c: New file.
1968         * sysdeps/ieee754/float128/k_sinf128.c: New file.
1969         * sysdeps/ieee754/float128/k_tanf128.c: New file.
1970         * sysdeps/ieee754/float128/lgamma_negf128.c: New file.
1971         * sysdeps/ieee754/float128/lgamma_productf128.c: New file.
1972         * sysdeps/ieee754/float128/s_asinhf128.c: New file.
1973         * sysdeps/ieee754/float128/s_atanf128.c: New file.
1974         * sysdeps/ieee754/float128/s_cbrtf128.c: New file.
1975         * sysdeps/ieee754/float128/s_ceilf128.c: New file.
1976         * sysdeps/ieee754/float128/s_copysignf128.c: New file.
1977         * sysdeps/ieee754/float128/s_cosf128.c: New file.
1978         * sysdeps/ieee754/float128/s_erff128.c: New file.
1979         * sysdeps/ieee754/float128/s_expm1f128.c: New file.
1980         * sysdeps/ieee754/float128/s_fabsf128.c: New file.
1981         * sysdeps/ieee754/float128/s_finitef128.c: New file.
1982         * sysdeps/ieee754/float128/s_floorf128.c: New file.
1983         * sysdeps/ieee754/float128/s_fmaf128.c: New file.
1984         * sysdeps/ieee754/float128/s_fpclassifyf128.c: New file.
1985         * sysdeps/ieee754/float128/s_frexpf128.c: New file.
1986         * sysdeps/ieee754/float128/s_fromfpf128.c: New file.
1987         * sysdeps/ieee754/float128/s_fromfpxf128.c: New file.
1988         * sysdeps/ieee754/float128/s_getpayloadf128.c: New file.
1989         * sysdeps/ieee754/float128/s_isinff128.c: New file.
1990         * sysdeps/ieee754/float128/s_isnanf128.c: New file.
1991         * sysdeps/ieee754/float128/s_issignalingf128.c: New file.
1992         * sysdeps/ieee754/float128/s_llrintf128.c: New file.
1993         * sysdeps/ieee754/float128/s_llroundf128.c: New file.
1994         * sysdeps/ieee754/float128/s_log1pf128.c: New file.
1995         * sysdeps/ieee754/float128/s_logbf128.c: New file.
1996         * sysdeps/ieee754/float128/s_lrintf128.c: New file.
1997         * sysdeps/ieee754/float128/s_lroundf128.c: New file.
1998         * sysdeps/ieee754/float128/s_modff128.c: New file.
1999         * sysdeps/ieee754/float128/s_nearbyintf128.c: New file.
2000         * sysdeps/ieee754/float128/s_nextafterf128.c: New file.
2001         * sysdeps/ieee754/float128/s_nexttowardf128.c: New file.
2002         * sysdeps/ieee754/float128/s_nextupf128.c: New file.
2003         * sysdeps/ieee754/float128/s_remquof128.c: New file.
2004         * sysdeps/ieee754/float128/s_rintf128.c: New file.
2005         * sysdeps/ieee754/float128/s_roundevenf128.c: New file.
2006         * sysdeps/ieee754/float128/s_roundf128.c: New file.
2007         * sysdeps/ieee754/float128/s_scalblnf128.c: New file.
2008         * sysdeps/ieee754/float128/s_scalbnf128.c: New file.
2009         * sysdeps/ieee754/float128/s_setpayloadf128.c: New file.
2010         * sysdeps/ieee754/float128/s_setpayloadsigf128.c: New file.
2011         * sysdeps/ieee754/float128/s_signbitf128.c: New file.
2012         * sysdeps/ieee754/float128/s_significandf128.c: New file.
2013         * sysdeps/ieee754/float128/s_sincosf128.c: New file.
2014         * sysdeps/ieee754/float128/s_sinf128.c: New file.
2015         * sysdeps/ieee754/float128/s_tanf128.c: New file.
2016         * sysdeps/ieee754/float128/s_tanhf128.c: New file.
2017         * sysdeps/ieee754/float128/s_totalorderf128.c: New file.
2018         * sysdeps/ieee754/float128/s_totalordermagf128.c: New file.
2019         * sysdeps/ieee754/float128/s_truncf128.c: New file.
2020         * sysdeps/ieee754/float128/s_ufromfpf128.c: New file.
2021         * sysdeps/ieee754/float128/s_ufromfpxf128.c: New file.
2022         * sysdeps/ieee754/float128/t_sincosf128.c: New file.
2023         * sysdeps/ieee754/float128/x2y2m1f128.c: New file.
2024
2025         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h:
2026         (__iscanonicalf128): Define as a macro.
2027
2028 2017-05-24  Steve Ellcey  <sellcey@caviumnetworks.com>
2029
2030         * sysdeps/aarch64/memcpy.S (MEMMOVE, MEMCPY): New macros.
2031         (memmove): Use MEMMOVE for name.
2032         (memcpy): Use MEMCPY for name.  Change internal labels
2033         to external labels.
2034         * sysdeps/aarch64/multiarch/Makefile: New file.
2035         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Likewise.
2036         * sysdeps/aarch64/multiarch/init-arch.h: Likewise.
2037         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
2038         * sysdeps/aarch64/multiarch/memcpy_generic.S: Likewise.
2039         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Likewise.
2040         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
2041
2042 2017-05-24  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2043
2044         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
2045         (_dl_arm_cap_flags): Fix array subscript.
2046         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2047         Fix count.
2048
2049 2017-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2050
2051         * sysdeps/x86/cacheinfo.c: Skip if not in libc.
2052
2053 2017-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2054
2055         * sysdeps/x86/cacheinfo.c (is_intel): Removed.
2056         (is_amd): Likewise.
2057         (max_cpuid): Likewise.
2058         (__cache_sysconf): Use __get_cpu_features to get cpu_features.
2059         (init_cacheinfo): Likewise.
2060
2061 2017-05-23  Joseph Myers  <joseph@codesourcery.com>
2062
2063         [BZ #21511]
2064         * signal/signal.h: Include <bits/types/struct_sigstack.h> only if
2065         [(__USE_XOPEN_EXTENDED && !__USE_XOPEN2K8) || __USE_MISC].
2066         (sigstack): Declare only if [(__USE_XOPEN_EXTENDED &&
2067         !__USE_XOPEN2K) || __USE_MISC].
2068         * conform/data/signal.h-data (struct sigstack): Expect type only
2069         if [!XOPEN2K8 && !POSIX2008].
2070         (sigstack): Expect function only if [XPG42 || UNIX98].
2071
2072         [BZ #21457]
2073         * sysdeps/arm/sys/ucontext.h: Do not include <signal.h>,
2074         <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2075         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2076         <bits/types/__sigset_t.h>.
2077         (ucontext_t): Use sigset_t instead of __sigset_t.
2078         * sysdeps/generic/sys/ucontext.h: Do not include <signal.h>,
2079         <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2080         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2081         <bits/types/__sigset_t.h>.
2082         (ucontext_t): Use sigset_t instead of __sigset_t.
2083         * sysdeps/i386/sys/ucontext.h: Do not include <signal.h>,
2084         <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2085         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2086         <bits/types/__sigset_t.h>.
2087         (ucontext_t): Use sigset_t instead of __sigset_t.
2088         * sysdeps/m68k/sys/ucontext.h: Do not include <signal.h>,
2089         <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2090         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2091         <bits/types/__sigset_t.h>.
2092         (ucontext_t): Use sigset_t instead of __sigset_t.
2093         * sysdeps/mips/sys/ucontext.h: Do not include <signal.h>,
2094         <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2095         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2096         <bits/types/__sigset_t.h>.
2097         (ucontext_t): Use sigset_t instead of __sigset_t.
2098         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
2099         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2100         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2101         <bits/types/__sigset_t.h>.
2102         (ucontext_t): Use sigset_t instead of __sigset_t.
2103         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
2104         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2105         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2106         <bits/types/__sigset_t.h>.
2107         (ucontext_t): Use sigset_t instead of __sigset_t.
2108         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
2109         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2110         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2111         <bits/types/__sigset_t.h>.
2112         (ucontext_t): Use sigset_t instead of __sigset_t.
2113         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
2114         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2115         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2116         <bits/types/__sigset_t.h>.
2117         (ucontext_t): Use sigset_t instead of __sigset_t.
2118         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
2119         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2120         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h>.
2121         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
2122         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2123         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2124         <bits/types/__sigset_t.h>.
2125         (ucontext_t): Use sigset_t instead of __sigset_t.
2126         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
2127         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2128         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2129         <bits/types/__sigset_t.h>.
2130         (ucontext_t): Use sigset_t instead of __sigset_t.
2131         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
2132         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2133         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2134         <bits/types/__sigset_t.h>.
2135         (ucontext_t): Use sigset_t instead of __sigset_t.
2136         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
2137         <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2138         <bits/ss_flags.h>.
2139         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
2140         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2141         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2142         <bits/types/__sigset_t.h>.
2143         (ucontext_t): Use sigset_t instead of __sigset_t.
2144         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
2145         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2146         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2147         <bits/types/__sigset_t.h>.
2148         (ucontext_t): Use sigset_t instead of __sigset_t.
2149         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
2150         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2151         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2152         <bits/types/__sigset_t.h>.
2153         (ucontext_t): Use sigset_t instead of __sigset_t.
2154         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
2155         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2156         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2157         <bits/types/__sigset_t.h>.
2158         (ucontext_t): Use sigset_t instead of __sigset_t.
2159         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: Include
2160         <bits/types.h>.
2161         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
2162         <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
2163         <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
2164         <bits/types/__sigset_t.h>.
2165         (ucontext_t): Use sigset_t instead of __sigset_t.
2166
2167 2017-05-22  Zack Weinberg  <zackw@panix.com>
2168
2169         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h
2170         (__SI_ASYNCIO_AFTER_SIGIO): Define default after including
2171         bits/siginfo-arch.h, only if not already defined.
2172         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
2173         (__SI_ALIGNMENT, __SI_BAND_TYPE, __SI_CLOCK_T)
2174         (__SI_ERRNO_THEN_CODE, __SI_HAVE_SIGSYS, __SI_SEGFAULT_ADDL):
2175         Likewise.
2176
2177         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-arch.h
2178         * sysdeps/unix/sysv/linux/mips/bits/siginfo-arch.h
2179         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
2180         * sysdeps/unix/sysv/linux/tile/bits/siginfo-arch.h
2181         * sysdeps/unix/sysv/linux/x86/bits/siginfo-arch.h:
2182         Unconditionally define __SI_* macros.
2183
2184 2017-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2185
2186         [BZ #21393]
2187         * libio/freopen.c (freopen): Avoid dup already opened file descriptor
2188         and add a check for dup3 failure.
2189         * libio/freopen64.c (freopen64): Likewise.
2190         * libio/tst-freopen.c (do_test): Rename to do_test_basic and use
2191         libsupport.
2192         (do_test_bz21398): New test.
2193         * manual/stdio.texi (freopen): Add documentation of EBUSY failure.
2194
2195 2017-05-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2196
2197         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_matches_host):
2198         Remove invalid comment.
2199
2200 2017-05-21  Zack Weinberg  <zackw@panix.com>
2201
2202         * signal/Makefile (headers): Add bits/types/sigval_t.h.
2203
2204 2017-05-20  Zack Weinberg  <zackw@panix.com>
2205
2206         * bits/sigevent-consts.h
2207         * bits/siginfo-consts.h
2208         * bits/types/__sigset_t.h
2209         * bits/types/sigevent_t.h
2210         * bits/types/siginfo_t.h
2211         * sysdeps/unix/sysv/linux/bits/sigevent-consts.h
2212         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h
2213         * sysdeps/unix/sysv/linux/bits/types/__sigset_t.h
2214         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h
2215         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h:
2216         New system-dependent bits headers.
2217
2218         * sysdeps/unix/sysv/linux/bits/siginfo-arch.h
2219         * sysdeps/unix/sysv/linux/bits/siginfo-consts-arch.h
2220         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-arch.h
2221         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
2222         * sysdeps/unix/sysv/linux/mips/bits/siginfo-arch.h
2223         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
2224         * sysdeps/unix/sysv/linux/tile/bits/siginfo-arch.h
2225         * sysdeps/unix/sysv/linux/tile/bits/siginfo-consts-arch.h
2226         * sysdeps/unix/sysv/linux/x86/bits/siginfo-arch.h:
2227         New Linux-only system-dependent bits headers.
2228
2229         * signal/bits/types/sig_atomic_t.h
2230         * signal/bits/types/sigset_t.h
2231         * signal/bits/types/sigval_t.h:
2232         New non-system-dependent bits headers.
2233
2234         * sysdeps/generic/sigsetops.h
2235         * sysdeps/unix/sysv/linux/sigsetops.h:
2236         New internal headers.
2237
2238         * include/bits/types/sig_atomic_t.h
2239         * include/bits/types/sigset_t.h
2240         * include/bits/types/sigval_t.h:
2241         New wrappers.
2242
2243         * signal/sigsetops.h
2244         * bits/siginfo.h
2245         * bits/sigset.h
2246         * sysdeps/unix/sysv/linux/bits/siginfo.h
2247         * sysdeps/unix/sysv/linux/bits/sigset.h
2248         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h
2249         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h
2250         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h
2251         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h
2252         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h
2253         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h:
2254         Deleted.
2255
2256         * signal/Makefile, sysdeps/unix/sysv/linux/Makefile:
2257         Update lists of installed headers.
2258
2259         * posix/bits/types.h: Define __sig_atomic_t here.
2260         * signal/signal.h: Use the new bits headers; no need to handle
2261         __need_sig_atomic_t nor __need_sigset_t.  Don't use __sigmask
2262         to define sigmask.
2263         * include/signal.h: No need to handle __need_sig_atomic_t
2264         nor __need_sigset_t.  Don't define __sigemptyset.
2265
2266         * io/sys/poll.h, setjmp/setjmp.h
2267         * sysdeps/arm/sys/ucontext.h, sysdeps/generic/sys/ucontext.h
2268         * sysdeps/i386/sys/ucontext.h, sysdeps/m68k/sys/ucontext.h
2269         * sysdeps/mach/hurd/i386/bits/sigcontext.h
2270         * sysdeps/mips/sys/ucontext.h, sysdeps/powerpc/novmxsetjmp.h
2271         * sysdeps/pthread/bits/sigthread.h
2272         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
2273         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
2274         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
2275         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
2276         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
2277         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
2278         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
2279         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
2280         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
2281         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
2282         Use bits/types/__sigset_t.h.
2283
2284         * misc/sys/select.h, posix/spawn.h
2285         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
2286         * sysdeps/unix/sysv/linux/sys/epoll.h
2287         * sysdeps/unix/sysv/linux/sys/signalfd.h:
2288         Use bits/types/sigset_t.h.
2289
2290         * resolv/netdb.h, rt/mqueue.h: Use bits/types/sigevent_t.h.
2291         * rt/aio.h: Use bits/types/sigevent_t.h and bits/sigevent-consts.h.
2292         * socket/sys/socket.h: Don't include bits/sigset.h.
2293
2294         * login/utmp_file.c, shadow/lckpwdf.c, signal/sigandset.c
2295         * signal/sigisempty.c, stdlib/abort.c, sysdeps/posix/profil.c
2296         * sysdeps/posix/sigignore.c, sysdeps/posix/sigintr.c
2297         * sysdeps/posix/signal.c, sysdeps/posix/sigset.c
2298         * sysdeps/posix/sprofil.c, sysdeps/posix/sysv_signal.c
2299         * sysdeps/unix/sysv/linux/nptl-signals.h:
2300         Include sigsetops.h.
2301
2302         * signal/sigaddset.c, signal/sigandset.c, signal/sigdelset.c
2303         * signal/sigorset.c, stdlib/abort.c, sysdeps/posix/sigignore.c
2304         * sysdeps/posix/signal.c, sysdeps/posix/sigset.c:
2305         __sigaddset, __sigandset, __sigdelset, __sigemptyset, __sigorset
2306         now return no value.
2307
2308         * signal/sigaddset.c, signal/sigdelset.c, signal/sigismem.c
2309         Include <errno.h>, <signal.h>, and <sigsetops.h> instead of
2310         "sigsetops.h".
2311
2312         * signal/sigsetops.c: Explicitly define __sigismember,
2313         __sigaddset, and __sigdelset as compatibility symbols.
2314
2315         * signal/Versions: Correct commentary on __sigpause,
2316         __sigaddset, __sigdelset, __sigismember.
2317
2318         * inet/rcmd.c: Include sigsetops.h.  Convert old code using
2319         __sigblock/__sigsetmask to use __sigprocmask and friends.
2320
2321         * resolv/resolv.h: Remove __need_res_state logic.
2322         Move definition of res_state and related constants to ...
2323         * resolv/bits/types/res_state.h: ...this new file.
2324         * resolv/Makefile: Install bits/types/res_state.h.
2325         * include/bits/types/res_state.h: New wrapper.
2326         * include/list.h: Remove __need_list_t logic.
2327         Move definition of list_t to ...
2328         * include/list_t.h: ...this new file.
2329
2330         * nptl/descr.h: Include list_t.h and bits/types/res_state.h
2331         instead of list.h and resolv.h.
2332
2333         * resolv/resolv.h: Remove __need_res_state logic.
2334         Move definition of res_state and related constants to ...
2335         * resolv/bits/types/res_state.h: ...this new file.
2336         * resolv/Makefile: Install bits/types/res_state.h.
2337         * include/bits/types/res_state.h: New wrapper.
2338         * include/list.h: Remove __need_list_t logic.
2339         Move definition of list_t to ...
2340         * include/list_t.h: ...this new file.
2341
2342         * nptl/descr.h: Include list_t.h and bits/types/res_state.h
2343         instead of list.h and resolv.h.
2344
2345 2017-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2346
2347         * sysdeps/x86_64/rawmemchr.S (L(return_null)): Removed.
2348
2349 2017-05-20  Zack Weinberg  <zackw@panix.com>
2350
2351         * sysdeps/arm/sysdep.h
2352         (ARM_SFI_MACROS, sfi_breg, sfi_pld, sfi_sp): Delete definitions.
2353
2354         * sysdeps/arm/__longjmp.S, sysdeps/arm/add_n.S
2355         * sysdeps/arm/addmul_1.S, sysdeps/arm/arm-mcount.S
2356         * sysdeps/arm/armv6/rawmemchr.S, sysdeps/arm/armv6/strchr.S
2357         * sysdeps/arm/armv6/strcpy.S, sysdeps/arm/armv6/strlen.S
2358         * sysdeps/arm/armv6/strrchr.S, sysdeps/arm/armv6t2/memchr.S
2359         * sysdeps/arm/armv6t2/strlen.S
2360         * sysdeps/arm/armv7/multiarch/memcpy_impl.S
2361         * sysdeps/arm/armv7/strcmp.S, sysdeps/arm/dl-tlsdesc.S
2362         * sysdeps/arm/memcpy.S, sysdeps/arm/memmove.S
2363         * sysdeps/arm/memset.S, sysdeps/arm/setjmp.S
2364         * sysdeps/arm/strlen.S, sysdeps/arm/submul_1.S:
2365         Remove all uses of sfi_breg, sfi_pld, and sfi_sp.
2366
2367 2017-05-20  Zack Weinberg  <zackw@panix.com>
2368
2369         Remove the NaCl port.
2370         * sysdeps/arm/nacl: Remove directory and contents.
2371         * sysdeps/nacl: Remove directory and contents.
2372         * abi-tags: Remove .*-.*-nacl.* entry.
2373
2374 2017-05-19  Rical Jasan  <ricaljasan@pacific.net>
2375
2376         * manual/errno.texi: Convert @comment-based errno documentation to
2377         @errno.
2378         * manual/macros.texi (@errno): New macro.  Consolidate errors,
2379         their values, and messages, adding the error string to the Concept
2380         Index.  Provide a warning in the comment about external (to the
2381         manual) dependencies.
2382         * sysdeps/gnu/errlist.awk: Use @errno instead of @comments.
2383         * sysdeps/mach/hurd/errnos.awk: Likewise.
2384
2385 2017-05-19  Joseph Myers  <joseph@codesourcery.com>
2386
2387         * bits/ss_flags.h: New file.
2388         * bits/types/stack_t.h: Likewise.
2389         * include/bits/types/struct_sigstack.h: Likewise.
2390         * signal/bits/types/struct_sigstack.h: Likewise.
2391         * sysdeps/unix/sysv/linux/bits/ss_flags.h: Likewise.
2392         * sysdeps/unix/sysv/linux/bits/types/stack_t.h: Likewise.
2393         * sysdeps/unix/sysv/linux/mips/bits/types/stack_t.h: Likewise.
2394         * signal/Makefile (headers): Add bits/types/struct_sigstack.h,
2395         bits/types/stack_t.h and bits/ss_flags.h.
2396         * signal/signal.h [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8]:
2397         Include <bits/types/struct_sigstack.h>, <bits/types/stack_t.h> and
2398         <bits/ss_flags.h>.
2399         * bits/sigstack.h (struct sigstack): Remove.
2400         (stack_t): Likewise.
2401         (SS_ONSTACK): Likewise.
2402         (SS_DISABLE): Likewise.
2403         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
2404         (struct sigstack): Likewise.
2405         (stack_t): Likewise.
2406         (SS_ONSTACK): Likewise.
2407         (SS_DISABLE): Likewise.
2408         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h (struct sigstack):
2409         Likewise.
2410         (stack_t): Likewise.
2411         (SS_ONSTACK): Likewise.
2412         (SS_DISABLE): Likewise.
2413         * sysdeps/unix/sysv/linux/bits/sigstack.h (struct sigstack):
2414         Likewise.
2415         (stack_t): Likewise.
2416         (SS_ONSTACK): Likewise.
2417         (SS_DISABLE): Likewise.
2418         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h: Likewise.
2419         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (struct sigstack):
2420         Likewise.
2421         (stack_t): Likewise.
2422         (SS_ONSTACK): Likewise.
2423         (SS_DISABLE): Likewise.
2424         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
2425         (struct sigstack): Likewise.
2426         (stack_t): Likewise.
2427         (SS_ONSTACK): Likewise.
2428         (SS_DISABLE): Likewise.
2429         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h (struct sigstack):
2430         Likewise.
2431         (stack_t): Likewise.
2432         (SS_ONSTACK): Likewise.
2433         (SS_DISABLE): Likewise.
2434         * sysdeps/arm/sys/ucontext.h: Include
2435         <bits/types/struct_sigstack.h>, <bits/types/stack_t.h> and
2436         <bits/ss_flags.h>.
2437         * sysdeps/generic/sys/ucontext.h: Likewise.
2438         * sysdeps/i386/sys/ucontext.h: Likewise.
2439         * sysdeps/m68k/sys/ucontext.h: Likewise.
2440         * sysdeps/mips/sys/ucontext.h: Likewise.
2441         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Likewise.
2442         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Likewise.
2443         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Likewise.
2444         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
2445         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Likewise.
2446         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Likewise.
2447         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Likewise.
2448         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2449         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Likewise.
2450         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
2451         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Likewise.
2452         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Likewise.
2453         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Likewise.
2454         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Likewise.
2455         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Likewise.
2456
2457 2017-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2458
2459         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Use
2460         "edx + ecx - 16" to avoid possible addition overflow.
2461         * sysdeps/x86_64/memchr.S (memchr): Likewise.
2462
2463 2017-05-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2464
2465         * misc/Makefile (CFLAGS-vmsplice.c): Remove rule.
2466         (CFLAGS-splice.c): Likewise.
2467         (CFLAGS-open_by_handle_at.c): Likewise.
2468         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-vmsplice.c): New rule.
2469         (CFLAGS-splice.c): Likewise.
2470         (CFLAGS-open_by_handle_at.c): Likewise.
2471
2472 2017-05-19  Joseph Myers  <joseph@codesourcery.com>
2473
2474         * scripts/versions.awk: Generate ldbl-compat-choose.h.
2475         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Include
2476         <ldbl-compat-choose.h>.
2477         (maybe_long_double_symbol): New macro.
2478         [!declare_mgen_alias] (declare_mgen_alias): Use
2479         maybe_long_double_symbol.
2480         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Remove.
2481         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
2482         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
2483         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: Likewise.
2484         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
2485         * Makerules [$(build-shared) = yes && !avoid-generated]
2486         (before-compile): Add $(common-objpfx)ldbl-compat-choose.h.
2487         [$(build-shared) = yes && !avoid-generated]
2488         ($(common-objpfx)ldbl-compat-choose.h): New target.
2489
2490         * scripts/versions.awk: Generate first-versions.h.
2491         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Include
2492         <first-versions.h>.
2493         (LDOUBLE_cabsl_libm_version): Remove macro.
2494         (LDOUBLE_cargl_libm_version): Likewise.
2495         (LDOUBLE_cimagl_libm_version): Likewise.
2496         (LDOUBLE_conjl_libm_version): Likewise.
2497         (LDOUBLE_creall_libm_version): Likewise.
2498         (LDOUBLE_cacosl_libm_version): Likewise.
2499         (LDOUBLE_cacoshl_libm_version): Likewise.
2500         (LDOUBLE_ccosl_libm_version): Likewise.
2501         (LDOUBLE_ccoshl_libm_version): Likewise.
2502         (LDOUBLE_casinl_libm_version): Likewise.
2503         (LDOUBLE_csinl_libm_version): Likewise.
2504         (LDOUBLE_casinhl_libm_version): Likewise.
2505         (LDOUBLE_csinhl_libm_version): Likewise.
2506         (LDOUBLE_catanl_libm_version): Likewise.
2507         (LDOUBLE_catanhl_libm_version): Likewise.
2508         (LDOUBLE_ctanl_libm_version): Likewise.
2509         (LDOUBLE_ctanhl_libm_version): Likewise.
2510         (LDOUBLE_cexpl_libm_version): Likewise.
2511         (LDOUBLE_clogl_libm_version): Likewise.
2512         (LDOUBLE_cprojl_libm_version): Likewise.
2513         (LDOUBLE_csqrtl_libm_version): Likewise.
2514         (LDOUBLE_cpowl_libm_version): Likewise.
2515         (LDOUBLE_clog10l_libm_version): Likewise.
2516         (LDOUBLE___clog10l_libm_version): Likewise.
2517         (LDOUBLE_fdiml_libm_version): Likewise.
2518         (LDOUBLE_fmaxl_libm_version): Likewise.
2519         (LDOUBLE_fminl_libm_version): Likewise.
2520         (LDOUBLE_ilogbl_libm_version): Likewise.
2521         (LDOUBLE_nanl_libm_version): Likewise.
2522         [!M_LIBM_NEED_COMPAT] (M_LIBM_NEED_COMPAT): Use
2523         FIRST_VERSION_libm_* macros.
2524         [!declare_mgen_libm_compat] (declare_mgen_libm_compat): Likewise.
2525         * Makerules [$(build-shared) = yes && !avoid-generated]
2526         (before-compile): Add $(common-objpfx)first-versions.h.
2527         [$(build-shared) = yes && !avoid-generated]
2528         ($(common-objpfx)first-versions.h): New target.
2529         ($(common-objpfx)sysd-versions): Depend on and change to rule for
2530         building $(common-objpfx)versions.stmp.
2531
2532 2017-05-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2533
2534         * rt/Makefile (CFLAGS-mq_timedsend.c): New flag.
2535         * sysdeps/unix/sysv/linux/mq_timedsend.c: New file.
2536         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Remove from
2537         auto-generation list.
2538
2539         * rt/Makefile (CFLAGS-mq_timedreceive.c): New flag.
2540         * sysdeps/unix/sysv/linux/mq_timedreceive.c: New file.
2541         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedreceive): Remove
2542         from auto-generation list.
2543
2544         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2545         open_by_handle_at.
2546         (CFLAGS-open_by_handle_at.c): New flag.
2547         * sysdeps/unix/sysv/linux/open_by_handle_at.c: New file.
2548         * sysdeps/unix/sysv/linux/syscalls.list (open_by_handle_at): New
2549         file.
2550         * misc/Makefile (CFLAGS-open_by_handle_at.c): New rule.
2551
2552         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add splice.
2553         (CFLAGS-splice.c): New flag.
2554         * sysdeps/unix/sysv/linux/splice.c: New file.
2555         * sysdeps/unix/sysv/linux/syscalls.list (splice): Remove from
2556         auto-generation syscall list.
2557         * misc/Makefile (CFLAGS-splice.c): New rule.
2558
2559         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-vmsplice.c): New flag.
2560         * sysdeps/unix/sysv/linux/syscalls.list (vmsplice): Remove from
2561         auto-generation syscall list.
2562         * sysdeps/unix/sysv/linux/vmsplice.c: New file.
2563         * misc/Makefile (CFLAGS-vmsplice.c): New rule.
2564
2565         * misc/Makefile (CFLAGS-fsync.c): New flag.
2566         * nptl/Makefile (CFLAGS-fsync.c): Likewise.
2567         * sysdeps/unix/syscalls.list (fsync): Remove from auto-generation
2568         syscall list.
2569         * sysdeps/unix/sysv/linux/fsync.c: New file.
2570         * sysdeps/unix/sysv/linux/arm/localplt.data [libpthread.so]
2571         (__errno_location): Remove.
2572
2573         * misc/Makefile (CFLAGS-fdatasync.c): New rule.
2574         * nptl/Makefile (CFLAGS-fdatasync.c): Likewise.
2575         * sysdeps/unix/syscalls.list: Remove fdatasync from auto-generation
2576         list.
2577         * sysdeps/unix/sysv/linux/fdatasync.c: New file.
2578
2579         * misc/Makefile (CFLAGS-msync.c): New rule.
2580         * nptl/Makefile (CFLAGS-msync.c): Likewise.
2581         * sysdeps/unix/syscalls.list: Remove msync from auto-generation list.
2582         * sysdeps/unix/sysv/linux/msync.c: New file.
2583
2584         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Remove file.
2585         * sysdeps/unix/sysv/linux/sigsuspend.c: Simplify include list.
2586         * nptl/Makefile (CFLAGS-sigsuspend.c): New rule.
2587         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
2588         (CFLAGS-sigsuspend.c): Remove rule.
2589
2590         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add tee.
2591         (CFLAGS-tee.c): New rule.
2592         * sysdeps/unix/sysv/linux/syscalls.list: Remove tee from
2593         auto-generated list.
2594         * sysdeps/unix/sysv/linux/tee.c: New file.
2595
2596         * nptl/Makefile (CFLAGS-nanosleep.c): New rule.
2597         * posix/Makefile (CFLAGS-nanosleep.c): Likewise.
2598         * sysdeps/unix/sysv/linux/nanosleep.c: New file.
2599         * sysdeps/unix/sysv/linux/syscalls.list: Remove nanosleep from
2600         auto-generated list.
2601
2602         * sysdeps/unix/sysv/linux/sh/syscalls.list: Remove waitid from
2603         auto-generated list.
2604         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
2605         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2606         * sysdeps/unix/sysv/linux/sparc/syscalls.list: Remove file.
2607         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
2608         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
2609
2610         * sysdeps/unix/sysv/linux/generic/pause.c: Remove file.
2611         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Likewise.
2612         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [__arch64__]
2613         (__NR_pause): Undefine.
2614         * sysdeps/unix/sysv/linux/pause.c: New file.
2615         * sysdeps/unix/sysv/linux/syscalls.list: Remove pause from
2616         auto-generation list.
2617         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (CFLAGS-pause.c):
2618         Remove rule.
2619         * posix/Makefile (CFLAGS-pause.c): Remove redundant rule.
2620
2621 2017-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2622
2623         * sysdeps/x86_64/multiarch/memcmp.S (__GI_memcmp): Correct
2624         comments.
2625
2626 2017-05-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2627
2628         * elf/Makefile (tst-env-setuid-ENV): Reduce value of
2629         LD_HWCAP_MASK.
2630
2631 2017-05-18  Rical Jasan  <ricaljasan@pacific.net>
2632
2633         * manual/conf.texi: Convert @tables of annotated @items to
2634         @vtables.
2635         * manual/lang.texi: Likewise.
2636         * manual/pattern.texi: Likewise.
2637         * manual/resource.texi: Likewise.
2638         * manual/socket.texi: Likewise.
2639
2640 2017-05-18  Rical Jasan  <ricaljasan@pacific.net>
2641
2642         * manual/crypt.texi: Move a comment out of an @*x list.
2643         * manual/filesys.texi: Refactor some comments, one of which looks
2644         like a standard.  Fix incorrectly separated standards.
2645         * manual/locale.texi: Invert an annotation.
2646         * manual/resource.texi: Fix incorrectly separated standards.
2647         * manual/time.texi: Refactor a @vtable that obscures an
2648         annotation.
2649         * manual/users.texi: Refactor multiple headers to occupy a single
2650         @comment.
2651
2652 2017-05-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2653
2654         * sysdeps/powerpc/powerpc64/multiarch/Makefile
2655         (sysdep_routines): Add memcmp-power8.
2656         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2657         (memcmp): Add __memcmp_power8 to list of memcmp functions.
2658         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c
2659         (memcmp): Add __memcmp_power8 to ifunc list.
2660         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: New file.
2661         * sysdeps/powerpc/powerpc64/power8/memcmp.S: New file.
2662
2663 2017-05-17  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2664             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2665
2666         * math/math.h (__MATH_TG): Extend the conditions to add
2667         _Float128 support.
2668         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): New macro.
2669
2670 2017-05-17  Paul A. Clarke  <pc@us.ibm.com>
2671
2672         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2673         [$(subdir) = math] (libm-sysdep_routines): Add s_cosf-power8 and
2674         s_cosf-ppc64.
2675         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: New file.
2676         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
2677         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
2678         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
2679
2680 2017-05-17  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2681
2682         * math/Makefile (libm-calls): Move e_exp2F to gen-libm-calls.
2683         (gen-libm-calls): Add e_exp2F to use the template.
2684         * math/e_exp2l.c: Rename to math/e_exp2_template.c.
2685         * math/e_exp2_template.c: New file, renamed from
2686         math/e_exp2l.c, and made into a template.
2687         * sysdeps/generic/math-type-macros.h (M_MIN_EXP): New macro.
2688
2689 2017-05-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2690
2691         * elf/dl-tunable-types.h (tunable_type_code_t): New type
2692         TUNABLE_TYPE_UINT_64.
2693         * elf/dl-tunables.c (tunables_strtoul): Return uint64_t.
2694         Simplify computation of overflow.
2695         (tunable_set_val_if_valid_range_signed,
2696         tunable_set_val_if_valid_range_unsigned): Remove and replace
2697         with this...
2698         (TUNABLE_SET_VAL_IF_VALID_RANGE): ... New macro.
2699         (tunable_initialize): Adjust.  Add uint64_t support.
2700         (__tunable_set_val): Add uint64_t support.
2701         * README.tunables: Document it.
2702
2703         * scripts/gen-tunables.awk: Recognize 'default' keyword in
2704         dl-tunables.list.
2705         * README.tunables: Document it.
2706
2707 2017-05-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2708
2709         * sysdeps/posix/preadv.c: Use sysdeps/posix/preadv_common.c.
2710         * sysdeps/posix/preadv64.c: Likewise.
2711         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
2712         * sysdeps/unix/sysv/linux/preadv64.c: Likewise.
2713         * sysdeps/posix/pwritev.c: Use sysdeps/posix/pwritev_common.c.
2714         * sysdeps/posix/pwritev64.c: Likewise.
2715         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2716         * sysdeps/unix/sysv/linux/pwritev64.c: Likewise.
2717         * sysdeps/posix/preadv_common.c: New file.
2718         * sysdeps/posix/pwritev_common.c: Likewise.
2719
2720 2017-05-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2721
2722         * sysdeps/generic/math-type-macros-float128.h
2723         (__USE_WRAPPER_TEMPLATE): Define to 1 to enable use of the
2724         wrapper templates.
2725
2726 2017-05-14  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2727             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2728
2729         * include/complex.h (__kernel_casinhf128): New declaration.
2730         * include/float.h: New file.
2731         * include/math.h (__finitef128): Add a hidden def.
2732         (__isinff128): Likewise.
2733         (__isnanf128): Likewise.
2734         (__fpclassify): Likewise.
2735         (__issignalling): Likewise.
2736         (__expf128): Likewise.
2737         (__expm1f128): Likewise.
2738
2739         * sysdeps/generic/fix-fp-int-convert-overflow.h:
2740         (FIX_FLT128_LONG_CONVERT_OVERFLOW): New macro.
2741         (FIX_FLT128_LLONG_CONVERT_OVERFLOW): Likewise.
2742
2743         * sysdeps/generic/math-type-macros-float128.h: New file.
2744
2745         * sysdeps/generic/math_private.h: Include bits/floatn.h and
2746         math_private_calls.h for _Float128.
2747         (__isinff128): New inline implementation used when GCC < 7.0,
2748         since in this case __builtin_isinf_sign is broken.
2749         (fabsf128): New inline implementation that calls the builtin.
2750         (__EXPR_FLT128): New macro.
2751         (min_of_type): Optionally include _Float128 types too.
2752
2753         * sysdeps/generic/math_private_calls.h (__kernel_sincos):
2754         Declare for _Float128.
2755         (__kernel_rem_pio2): Likewise.
2756
2757         * sysdeps/ieee754/ldbl-opt/s_sin.c:
2758         (__DECL_SIMD_sincos_disablef128): New macro.
2759
2760 2017-05-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2761
2762         * math/math.h: Include bits/math-finite.h for float128.
2763         (__MATH_DECLARING_FLOATN): Define to control declaration of
2764         float128 functions.
2765         * math/bits/math-finite.h (pow10): Do not declare for float128.
2766         (gamma): Likewise.
2767         (scalb): Likewise.
2768
2769 2017-05-14  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2770             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2771
2772         * bits/floatn.h: New file.
2773         * bits/huge_val_flt128.h: Likewise.
2774
2775         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf128): New macro.
2776         (__DECL_SIMD_sinf128): Likewise.
2777         (__DECL_SIMD_sincosf128): Likewise.
2778         (__DECL_SIMD_logf128): Likewise.
2779         (__DECL_SIMD_expf128): Likewise.
2780         (__DECL_SIMD_powf128): Likewise.
2781
2782         * math/Makefile (headers): Install bits/floatn.h and
2783         bits/huge_val_flt128.h.
2784
2785         * math/bits/cmathcalls.h (_Mdouble_complex_): Only define if not
2786         defined.
2787
2788         * math/bits/mathcalls.h (pow10, isinf, finite, drem, significand)
2789         (isnan, gamma, nexttoward, scalb): Only define if not
2790         __MATH_DECLARING_FLOATN.
2791         (nextdown, nextup, llogb, roundeven, fromfp, ufromfp, fromfpx)
2792         (ufromfpx, fmaxmag, fminmag, totalorder, totalordermag)
2793         (canonicalize, getpayload, setpayload, setpayloadsig): Declare for
2794         _FloatN even if __STDC_WANT_IEC_60559_BFP_EXT__ is not defined.
2795
2796         * math/complex.h: Include bits/libc-header-start.h and bits/floatn.h.
2797         Include bits/cmathcalls.h to get the declarations of _Float128
2798         versions of complex functions.
2799         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF128):
2800         Define macro.
2801
2802         * math/math.h: Include bits/floatn.h and bits/huge_val_flt128.h.
2803         Include bits/mathcalls-helper-functions.h and bits/mathcalls.h to
2804         get the declarations of _Float128 versions of math functions.
2805         (__MATH_DECLARING_FLOATN): New macro to control declaration of
2806         _FloatN types.
2807         [__GNUC_PREREQ (6,0)] (signbit): Since GCC 6.0, __builtin_signbit
2808         is type-generic, so use it without __MATH_TG.
2809         [__HAVE_DISTINCT_FLOAT128] (isinf): This builtin is broken for
2810         _Float128 type on GCC < 7.0.  Explicitly call __isinff128 for
2811         _Float128 type and GCC < 7.0, otherwise use the builtin.
2812         [__HAVE_FLOAT128 && defined __USE_GNU] (M_Ef128, M_LOG2Ef128)
2813         (M_LOG10Ef128, M_LN2f128, M_LN10f128, M_PIf128, M_PI_2f128)
2814         (M_PI_4f128, M_1_PIf128, M_2_PIf128, M_SQRT2f128, M_SQRT1_2f128):
2815         New _GNU_SOURCE enabled macros.
2816
2817 2017-05-12  Joseph Myers  <joseph@codesourcery.com>
2818
2819         * sysdeps/sparc/sparc32/fpu/s_signbit.S (signbit): Remove alias.
2820         (signbitf): Likewise.
2821         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S (signbit):
2822         Likewise.
2823         (signbitl): Likewise.
2824         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S (signbitf):
2825         Likewise.
2826         * sysdeps/sparc/sparc64/fpu/s_signbit.S (signbit): Likewise.
2827         (signbitl): Likewise.
2828         * sysdeps/sparc/sparc64/fpu/s_signbitf.S (signbitf): Likewise.
2829
2830 2017-05-12  Florian Weimer  <fweimer@redhat.com>
2831
2832         [BZ #21386]
2833         * sysdeps/nptl/fork.c (__libc_fork): Remove assertions on the
2834         parent PID.  The assertion in the child is incorrect with PID
2835         namespaces.
2836
2837 2017-05-12  Joseph Myers  <joseph@codesourcery.com>
2838
2839         * sysdeps/unix/sysv/linux/kernel-features.h
2840         (__ASSUME_STATFS_F_FLAGS): Remove macro.
2841         * sysdeps/unix/sysv/linux/internal_statvfs.c
2842         [!__ASSUME_STATFS_F_FLAGS]: Remove conditional code.
2843
2844 2017-05-11  Zack Weinberg  <zackw@panix.com>
2845
2846         * Makerules: New subdir configuration variables 'tests-internal'
2847         and 'test-internal-extras'.  Test files in these categories will
2848         still be compiled with MODULE_NAME=nonlib.  Test files in the
2849         existing categories (tests, xtests, test-srcs, test-extras) are
2850         now compiled with MODULE_NAME=testsuite.
2851         New subdir configuration variable 'modules-names-tests'.  Files
2852         which are in both 'modules-names' and 'modules-names-tests' will
2853         be compiled with MODULE_NAME=testsuite instead of
2854         MODULE_NAME=extramodules.
2855         (gen-as-const-headers): Move to tests-internal.
2856         (do-tests-clean, common-mostlyclean): Support tests-internal.
2857         * Makeconfig (built-modules): Add testsuite.
2858         * Makefile: Change libof-check-installed-headers-c and
2859         libof-check-installed-headers-cxx to 'testsuite'.
2860         * Rules: Likewise.  Support tests-internal.
2861         * benchtests/strcoll-inputs/filelist#en_US.UTF-8:
2862         Remove extra-modules.mk.
2863
2864         * config.h.in: Don't check for __OPTIMIZE__ or __FAST_MATH__ here.
2865         * include/libc-symbols.h: Move definitions of _GNU_SOURCE,
2866         PASTE_NAME, PASTE_NAME1, IN_MODULE, IS_IN, and IS_IN_LIB to the
2867         very top of the file and rationalize their order.
2868         If MODULE_NAME is not defined at all, define IS_IN to always be
2869         false, and don't define _ISOMAC.
2870         If any of IS_IN (testsuite), IS_IN_build, or __cplusplus are
2871         true, define _ISOMAC and suppress everything else in this file,
2872         starting with the inclusion of config.h.
2873         Do check for inappropriate definitions of __OPTIMIZE__ and
2874         __FAST_MATH__ here, but only if _ISOMAC is not defined.
2875         Correct some out-of-date commentary.
2876
2877         * include/math.h: If _ISOMAC is defined, undefine NO_LONG_DOUBLE
2878         and _Mlong_double_ before including math.h.
2879         * include/string.h: If _ISOMAC is defined, don't expose
2880         _STRING_ARCH_unaligned. Move a comment to a more appropriate
2881         location.
2882
2883         * include/errno.h, include/stdio.h, include/stdlib.h, include/string.h
2884         * include/time.h, include/unistd.h, include/wchar.h: No need to
2885         check __cplusplus nor use __BEGIN_DECLS/__END_DECLS.
2886
2887         * misc/sys/cdefs.h (__NTHNL): New macro.
2888         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h
2889         (__m81_defun): Use __NTHNL to avoid errors with GCC 6.
2890
2891         * elf/tst-env-setuid-tunables.c: Include config.h with _LIBC
2892         defined, for HAVE_TUNABLES.
2893         * inet/tst-checks-posix.c: No need to define _ISOMAC.
2894         * intl/tst-gettext2.c: Provide own definition of N_.
2895         * math/test-signgam-finite-c99.c: No need to define _ISOMAC.
2896         * math/test-signgam-main.c: No need to define _ISOMAC.
2897         * stdlib/tst-strtod.c: Convert to test-driver. Split locale_test to...
2898         * stdlib/tst-strtod1i.c: ...this new file.
2899         * stdlib/tst-strtod5.c: Convert to test-driver and add copyright notice.
2900         Split tests of __strtod_internal to...
2901         * stdlib/tst-strtod5i.c: ...this new file.
2902         * string/test-string.h: Include stdint.h. Duplicate definition of
2903         inhibit_loop_to_libcall here (from libc-symbols.h).
2904         * string/test-strstr.c: Provide dummy definition of
2905         libc_hidden_builtin_def when including strstr.c.
2906         * sysdeps/ia64/fpu/libm-symbols.h: Suppress entire file in _ISOMAC
2907         mode; no need to test __STRICT_ANSI__ nor __cplusplus as well.
2908         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
2909         Don't include init-arch.h.
2910         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
2911         Don't include init-arch.h.
2912
2913         * elf/Makefile: Move tst-ptrguard1-static, tst-stackguard1-static,
2914         tst-tls1-static, tst-tls2-static, tst-tls3-static, loadtest,
2915         unload, unload2, circleload1, neededtest, neededtest2,
2916         neededtest3, neededtest4, tst-tls1, tst-tls2, tst-tls3,
2917         tst-tls6, tst-tls7, tst-tls8, tst-dlmopen2, tst-ptrguard1,
2918         tst-stackguard1, tst-_dl_addr_inside_object, and all of the
2919         ifunc tests to tests-internal.
2920         Don't add $(modules-names) to test-extras.
2921         * inet/Makefile: Move tst-inet6_scopeid_pton to tests-internal.
2922         Add tst-deadline to tests-static-internal.
2923         * malloc/Makefile: Move tst-mallocstate and tst-scratch_buffer to
2924         tests-internal.
2925         * misc/Makefile: Move tst-atomic and tst-atomic-long to tests-internal.
2926         * nptl/Makefile: Move tst-typesizes, tst-rwlock19, tst-sem11,
2927         tst-sem12, tst-sem13, tst-barrier5, tst-signal7, tst-tls3,
2928         tst-tls3-malloc, tst-tls5, tst-stackguard1, tst-sem11-static,
2929         tst-sem12-static, and tst-stackguard1-static to tests-internal.
2930         Link tests-internal with libpthread also.
2931         Don't add $(modules-names) to test-extras.
2932         * nss/Makefile: Move tst-field to tests-internal.
2933         * posix/Makefile: Move bug-regex5, bug-regex20, bug-regex33,
2934         tst-rfc3484, tst-rfc3484-2, and tst-rfc3484-3 to tests-internal.
2935         * stdlib/Makefile: Move tst-strtod1i, tst-strtod3, tst-strtod4,
2936         tst-strtod5i, tst-tls-atexit, and tst-tls-atexit-nodelete to
2937         tests-internal.
2938         * sunrpc/Makefile: Move tst-svc_register to tests-internal.
2939         * sysdeps/powerpc/Makefile: Move test-get_hwcap and
2940         test-get_hwcap-static to tests-internal.
2941         * sysdeps/unix/sysv/linux/Makefile: Move tst-setgetname to
2942         tests-internal.
2943         * sysdeps/x86_64/fpu/Makefile: Add all libmvec test modules to
2944         modules-names-tests.
2945
2946 2017-05-11  Zack Weinberg  <zackw@panix.com>
2947
2948         * libio/libio.h: Condition dummy definition of _IO_lock_t on
2949         _IO_lock_t_defined, not _IO_MTSAFE_IO. Unconditionally use the
2950         non-_IO_MTSAFE_IO definitions for _IO_peekc, _IO_flockfile,
2951         _IO_funlockfile, and _IO_ftrylockfile.  Only define
2952         _IO_cleanup_region_start and _IO_cleanup_region_end if not
2953         already defined.
2954         * include/libio.h: If _IO_MTSAFE_IO is defined, redefine
2955         _IO_peekc, _IO_flockfile, _IO_funlockfile, and _IO_ftrylockfile
2956         appropriately.
2957         * sysdeps/generic/stdio-lock.h, sysdeps/nptl/stdio-lock.h:
2958         Define _IO_lock_t_defined after defining _IO_lock_t.
2959
2960 2016-05-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2961
2962         * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address): Use
2963         void* for argument type and use VDSO_SYMBOL macro.
2964         (is_sigtramp_address_rt): Likewise.
2965         (__backtrace): Setup expected frame pointer address for signal
2966         handling.
2967         * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address): Use
2968         void* for argumetn type and use VSDO_SYMBOL macro.
2969         (__backtrace): Setup expected frame pointer address for signal
2970         handling.
2971
2972         * sysdeps/unix/sysv/linux/writev.c: New file.
2973
2974         * sysdeps/unix/sysv/linux/readv.c: New file.
2975
2976         * include/unistd.h (write): Add hidden proto.
2977         * io/Makefile (CFLAGS-write.c): New define.
2978         * nptl/Makefile (CFLAGS-write.c): Likewise.
2979         * sysdeps/unix/sysv/linux/write.c: New file.
2980
2981         [BZ #21428]
2982         * include/unistd.h (read): Add hidden proto.
2983         * io/Makefile (CFLAGS-read.c): New define.
2984         * nptl/Makefile (CFLAGS-read.c): Likewise.
2985         * sysdeps/unix/sysv/linux/read.c: New file.
2986
2987         * io/Makefile (CFLAGS-creat.c): New rule.
2988         (CFLAGS-creat64.c): Likewise.
2989         * sysdeps/unix/sysv/linux/alpha/creat.c: Remove file.
2990         * sysdeps/unix/sysv/linux/generic/creat.c: Likewise.
2991         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: Likewise.
2992         * sysdeps/unix/sysv/linux/creat.c: New file.
2993         * sysdeps/unix/sysv/linux/creat64.c: Likewise.
2994         * sysdeps/unix/sysv/linux/syscalls.list: Remove create from
2995         auto-generated list.
2996         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
2997
2998         * sysdeps/unix/sysv/linux/generic/open.c: Remove file.
2999         * sysdeps/unix/sysv/linux/generic/open64.c: Likewise.
3000         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: Likewise.
3001         * sysdeps/unix/sysv/linux/open.c: New file.
3002         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Define symbol
3003         iff __WORDSIZE != 64 and use __NR_openat when available.
3004         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Remove open
3005         from auto-generated list.
3006
3007         * nptl/Makefile (CFLAGS-close.c): New flag.
3008         * sysdeps/unix/sysv/linux/close.c: New file.
3009
3010 2017-05-11  DJ Delorie  <dj@redhat.com>
3011
3012         * MAINTAINERS: New.  Points to wiki.
3013
3014 2017-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3015
3016         * scripts/gen-tunables.awk: Add attribute_relro to
3017         tunable_list.
3018
3019 2017-05-11  Joseph Myers  <joseph@codesourcery.com>
3020
3021         [BZ #21457]
3022         * sysdeps/arm/sys/ucontext.h (R0): Condition on [__USE_MISC].
3023         (R1): Likewise.
3024         (R2): Likewise.
3025         (R3): Likewise.
3026         (R4): Likewise.
3027         (R5): Likewise.
3028         (R6): Likewise.
3029         (R7): Likewise.
3030         (R8): Likewise.
3031         (R9): Likewise.
3032         (R10): Likewise.
3033         (R11): Likewise.
3034         (R12): Likewise.
3035         (R13): Likewise.
3036         (R14): Likewise.
3037         (R15): Likewise.
3038         * sysdeps/i386/sys/ucontext.h (REG_GS): Likewise.
3039         (REG_FS): Likewise.
3040         (REG_ES): Likewise.
3041         (REG_DS): Likewise.
3042         (REG_EDI): Likewise.
3043         (REG_ESI): Likewise.
3044         (REG_EBP): Likewise.
3045         (REG_ESP): Likewise.
3046         (REG_EBX): Likewise.
3047         (REG_EDX): Likewise.
3048         (REG_ECX): Likewise.
3049         (REG_EAX): Likewise.
3050         (REG_TRAPNO): Likewise.
3051         (REG_ERR): Likewise.
3052         (REG_EIP): Likewise.
3053         (REG_CS): Likewise.
3054         (REG_EFL): Likewise.
3055         (REG_UESP): Likewise.
3056         (REG_SS): Likewise.
3057         * sysdeps/m68k/sys/ucontext.h (R_D0): Likewise.
3058         (R_D1): Likewise.
3059         (R_D2): Likewise.
3060         (R_D3): Likewise.
3061         (R_D4): Likewise.
3062         (R_D5): Likewise.
3063         (R_D6): Likewise.
3064         (R_D7): Likewise.
3065         (R_A0): Likewise.
3066         (R_A1): Likewise.
3067         (R_A2): Likewise.
3068         (R_A3): Likewise.
3069         (R_A4): Likewise.
3070         (R_A5): Likewise.
3071         (R_A6): Likewise.
3072         (R_A7): Likewise.
3073         (R_SP): Likewise.
3074         (R_PC): Likewise.
3075         (R_PS): Likewise.
3076         (fpregset_t): Likewise.
3077         (MCONTEXT_VERSION): Likewise.
3078         * sysdeps/mips/sys/ucontext.h (CTX_R0): Likewise.
3079         (CTX_AT): Likewise.
3080         (CTX_V0): Likewise.
3081         (CTX_V1): Likewise.
3082         (CTX_A0): Likewise.
3083         (CTX_A1): Likewise.
3084         (CTX_A2): Likewise.
3085         (CTX_A3): Likewise.
3086         (CTX_T0): Likewise.
3087         (CTX_T1): Likewise.
3088         (CTX_T2): Likewise.
3089         (CTX_T3): Likewise.
3090         (CTX_T4): Likewise.
3091         (CTX_T5): Likewise.
3092         (CTX_T6): Likewise.
3093         (CTX_T7): Likewise.
3094         (CTX_S0): Likewise.
3095         (CTX_S1): Likewise.
3096         (CTX_S2): Likewise.
3097         (CTX_S3): Likewise.
3098         (CTX_S4): Likewise.
3099         (CTX_S5): Likewise.
3100         (CTX_S6): Likewise.
3101         (CTX_S7): Likewise.
3102         (CTX_T8): Likewise.
3103         (CTX_T9): Likewise.
3104         (CTX_K0): Likewise.
3105         (CTX_K1): Likewise.
3106         (CTX_GP): Likewise.
3107         (CTX_SP): Likewise.
3108         (CTX_S8): Likewise.
3109         (CTX_RA): Likewise.
3110         (CTX_MDLO): Likewise.
3111         (CTX_MDHI): Likewise.
3112         (CTX_CAUSE): Likewise.
3113         (CTX_EPC): Likewise.
3114         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Condition
3115         inclusion of <sys/procfs.h> on [__USE_MISC].
3116         (greg_t): Condition on [__USE_MISC].
3117         (gregset_t): Likewise.
3118         (fpregset_t): Likewise.
3119         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (greg_t): Likewise.
3120         (NGREG): Likewise.
3121         (gregset_t): Likewise.
3122         (REG_R0): Likewise.
3123         (REG_R1): Likewise.
3124         (REG_R2): Likewise.
3125         (REG_R3): Likewise.
3126         (REG_R4): Likewise.
3127         (REG_R5): Likewise.
3128         (REG_R6): Likewise.
3129         (REG_R7): Likewise.
3130         (REG_R8): Likewise.
3131         (REG_R9): Likewise.
3132         (REG_R10): Likewise.
3133         (REG_R11): Likewise.
3134         (REG_R12): Likewise.
3135         (REG_R13): Likewise.
3136         (REG_R14): Likewise.
3137         (REG_R15): Likewise.
3138         (struct _libc_fpstate): Likewise.
3139         (fpregset_t): Likewise.
3140         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (NGREG): Likewise.
3141         (NFPREG): Likewise.
3142         (gregset_t): Likewise.
3143         (fpregset_t): Likewise.
3144         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (R_D0): Likewise.
3145         (R_D1): Likewise.
3146         (R_D2): Likewise.
3147         (R_D3): Likewise.
3148         (R_D4): Likewise.
3149         (R_D5): Likewise.
3150         (R_D6): Likewise.
3151         (R_D7): Likewise.
3152         (R_A0): Likewise.
3153         (R_A1): Likewise.
3154         (R_A2): Likewise.
3155         (R_A3): Likewise.
3156         (R_A4): Likewise.
3157         (R_A5): Likewise.
3158         (R_A6): Likewise.
3159         (R_A7): Likewise.
3160         (R_SP): Likewise.
3161         (R_PC): Likewise.
3162         (R_PS): Likewise.
3163         (fpregset_t): Likewise.
3164         (MCONTEXT_VERSION): Likewise.
3165         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (MCONTEXT_VERSION):
3166         Likewise.
3167         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (REG_R0): Likewise.
3168         (REG_R1): Likewise.
3169         (REG_R2): Likewise.
3170         (REG_R3): Likewise.
3171         (REG_R4): Likewise.
3172         (REG_R5): Likewise.
3173         (REG_R6): Likewise.
3174         (REG_R7): Likewise.
3175         (REG_R8): Likewise.
3176         (REG_R9): Likewise.
3177         (REG_R10): Likewise.
3178         (REG_R11): Likewise.
3179         (REG_R12): Likewise.
3180         (REG_R13): Likewise.
3181         (REG_R14): Likewise.
3182         (REG_R15): Likewise.
3183         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Condition inclusion
3184         of <arch/abi.h> on [__USE_MISC].
3185         (greg_t): Condition on [__USE_MISC].
3186         (NGREG): Likewise.
3187         (gregset_t): Likewise.
3188
3189 2017-05-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3190
3191         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
3192         (__pthread_rwlock_arch_t): Remove __data definition.
3193         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
3194         (__pthread_rwlock_arch_t): Likewise.
3195
3196 2017-05-11  Florian Weimer  <fweimer@redhat.com>
3197
3198         * resolv/inet_pton.c: Reformat in GNU style.  Remove
3199         internal_function on static functions.
3200
3201 2017-05-11  Florian Weimer  <fweimer@redhat.com>
3202
3203         * support/support_format_addrinfo.c (format_ai_flags_1): Renamed
3204         from format_ai_flags.
3205         (format_ai_flags): New function.  Incorporate flag formatting code
3206         from format_ai_one.
3207         (format_ai_canonname): New function.
3208         (format_ai_one): Remove flags parameter.
3209         (format_ai_family): Likewise.
3210         (support_format_addrinfo): Call format_ai_flags,
3211         format_ai_canonname.
3212         * resolv/tst-resolv-basic.c (check_ai_hints): Extracted from
3213         check_ai.
3214         (check_ai): Call check_ai_hints.
3215         (do_test): Add AI_CANONNAME tests.
3216
3217 2017-05-11  Florian Weimer  <fweimer@redhat.com>
3218
3219         * sysdeps/posix/getaddrinfo.c (gethosts): Remove malloc_addrmem.
3220         (gaih_inet): Likewise.
3221
3222 2017-05-10  Andreas Schwab  <schwab@suse.de>
3223
3224         * nptl/tst-fork1.c: Include <support/test-driver.c>.
3225         (main): Rename to do_test and make static.
3226
3227 2017-05-10  Joseph Myers  <joseph@codesourcery.com>
3228
3229         * string/rawmemchr.c: Include <libc-diag.h>.
3230         (RAWMEMCHR): Disable -Wstringop-overflow around call to memchr
3231         with size (size_t)-1.
3232
3233 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
3234
3235         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Remove file.
3236         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
3237         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
3238
3239         * sysdeps/unix/sysv/linux/accept4.c (accept4): Use syscall if
3240         [__ASSUME_ACCEPT4_SYSCALL], otherwise socketcall.
3241         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Use syscall if
3242         [__ASSUME_RECVMMSG_SYSCALL], otherwise socketcall.
3243         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Use syscall if
3244         [__ASSUME_SENDMMSG_SYSCALL], otherwise socketcall.
3245         * sysdeps/unix/sysv/linux/kernel-features.h
3246         (__ASSUME_ACCEPT4_SYSCALL): Move to general list of macros for
3247         socket syscalls.
3248         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3249         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3250         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3251         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Remove.
3252         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
3253         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3254         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Remove.
3255         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3256         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
3257         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3258         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
3259         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
3260         (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
3261         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
3262         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
3263
3264 2017-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3265
3266         * posix/Makefile (headers): Add pthreadtypes-arch.h and
3267         thread-shared-types.h.
3268         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h: New file: arch
3269         specific thread definition.
3270         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h: Likewise.
3271         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h: Likewise.
3272         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h: Likewise.
3273         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h: Likewise.
3274         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h: Likewise.
3275         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h: Likewise.
3276         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h: Likewise.
3277         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h: Likewise.
3278         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h: Likewise.
3279         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
3280         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h: Likewise.
3281         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h: Likewise.
3282         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h: Likewise.
3283         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h: Likewise.
3284         * sysdeps/nptl/bits/thread-shared-types.h: New file: shared
3285         thread definition between POSIX and C11.
3286         * sysdeps/aarch64/nptl/bits/pthreadtypes.h.: Remove file.
3287         * sysdeps/alpha/nptl/bits/pthreadtypes.h: Likewise.
3288         * sysdeps/arm/nptl/bits/pthreadtypes.h: Likewise.
3289         * sysdeps/hppa/nptl/bits/pthreadtypes.h: Likewise.
3290         * sysdeps/m68k/nptl/bits/pthreadtypes.h: Likewise.
3291         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Likewise.
3292         * sysdeps/mips/nptl/bits/pthreadtypes.h: Likewise.
3293         * sysdeps/nios2/nptl/bits/pthreadtypes.h: Likewise.
3294         * sysdeps/ia64/nptl/bits/pthreadtypes.h: Likewise.
3295         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: Likewise.
3296         * sysdeps/s390/nptl/bits/pthreadtypes.h: Likewise.
3297         * sysdeps/sh/nptl/bits/pthreadtypes.h: Likewise.
3298         * sysdeps/sparc/nptl/bits/pthreadtypes.h: Likewise.
3299         * sysdeps/tile/nptl/bits/pthreadtypes.h: Likewise.
3300         * sysdeps/x86/nptl/bits/pthreadtypes.h: Likewise.
3301         * sysdeps/nptl/bits/pthreadtypes.h: New file: common thread
3302         definitions shared across all architectures.
3303
3304 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
3305
3306         * sysdeps/unix/sysv/linux/kernel-features.h
3307         (__ASSUME_SENDMMSG_SYSCALL): Define unconditionally.
3308         (__ASSUME_SENDMMSG): Likewise.
3309         (__ASSUME_SENDMMSG_SOCKETCALL): Remove macro.
3310         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Define using
3311         sendmmsg syscall if that can be assumed to be present, socketcall
3312         otherwise, with no fallback for runtime failure.
3313
3314         * sysdeps/unix/sysv/linux/kernel-features.h
3315         (__ASSUME_RECVMMSG_SYSCALL): Define unconditionally.
3316         (__ASSUME_RECVMMSG_SOCKETCALL): Remove macro.
3317         (__ASSUME_RECVMMSG): Likewise.
3318         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Define using
3319         recvmmsg syscall if it can be assumed to be present, socketcall
3320         otherwise, with no fallback for runtime failure.
3321
3322 2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3323             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3324
3325         * bits/libc-header-start.h:
3326         (__GLIBC_USE_IEC_60559_TYPES_EXT): New macro.
3327         * include/features.h: Describe __STDC_WANT_IEC_60559_TYPES_EXT__.
3328         * manual/creature.texi: Likewise.
3329
3330 2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3331             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3332
3333         * math/Makefile:
3334         (type-float128-suffix): New variable
3335         (type-float128-routines): Likewise
3336         (type-float128-yes): Likewise
3337         (types): Append float128 if supported
3338         (types-basic): New variable to control the use of templates for
3339         float, double, and long double, but not for float128 or newer types.
3340         (type-basic-foreach): Likewise.
3341
3342         * sysdeps/ieee754/float128/Makeconfig: New file.
3343         * sysdeps/ieee754/float128/Versions: New file.
3344
3345 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
3346
3347         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRLIMIT64):
3348         Remove macro.
3349         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Assume
3350         prlimit64 is always available and does not give an ENOSYS error.
3351         * sysdeps/unix/sysv/linux/prlimit.c [__NR_prlimit64]: Make code
3352         unconditional.
3353         [!__NR_prlimit64]: Remove conditional code.
3354         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Assume
3355         prlimit64 is always available and does not give an ENOSYS error.
3356         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit64): Likewise.
3357
3358 2017-05-09  Zack Weinberg  <zackw@panix.com>
3359
3360         * sunrpc/tst-xdrmem2.c: Include stdint.h.
3361
3362 2017-05-09  Florian Weimer  <fweimer@redhat.com>
3363
3364         [BZ #21474]
3365         * resolv/res_libc.c (res_init): Use RES_DFLRETRY.
3366         (__res_maybe_init): Likewise.
3367
3368 2017-05-09  Zack Weinberg  <zackw@panix.com>
3369
3370         * extra-modules.mk: Delete file.
3371         * cppflags-iterator.mk: Rename to ...
3372         * libof-iterator.mk: ...this.  Adjust comments.
3373
3374         * Makerules, extra-lib.mk, benchtests/Makefile, elf/Makefile
3375         * elf/rtld-Rules, iconv/Makefile, locale/Makefile, malloc/Makefile
3376         * nscd/Makefile, sunrpc/Makefile, sysdeps/s390/Makefile:
3377         Use libof-iterator.mk instead of cppflags-iterator.mk or
3378         extra-modules.mk.
3379
3380         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Remove
3381         extra-modules.mk and cppflags-iterator.mk, add libof-iterator.mk.
3382
3383 2017-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
3384
3385         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3386
3387 2017-05-08  Carlos O'Donell  <carlos@redhat.com>
3388
3389         * stdio-common/vfprintf.c (EXTSIZ): Define.
3390         (vfprintf): Use EXTSIZ.
3391         (printf_positional): Likewise.
3392
3393 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
3394
3395         * sysdeps/unix/sysv/linux/kernel-features.h
3396         (__ASSUME_PROC_PID_TASK_COMM): Remove macro.
3397         * sysdeps/unix/sysv/linux/tst-setgetname.c: Do not include
3398         <kernel-features.h>.
3399         (do_test) [!__ASSUME_PROC_PID_TASK_COMM]: Remove conditional code.
3400
3401         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
3402         (__ASSUME_GETCPU_SYSCALL): Remove macro.
3403
3404 2017-05-08  Florian Weimer  <fweimer@redhat.com>
3405
3406         Prevent multiple deletion of temporary files.
3407         * support/temp_file.c (struct temp_name_list): Add owner member.
3408         (add_temp_file): Record owner.
3409         (support_delete_temp_files): Delete file only if owner matches.
3410         * posix/tst-exec.c (temp_fd1, temp_fd2): Define.
3411         (do_prepare): Use create_temp_file instead of add_temp_file.
3412         Initialize temp_fd1, temp_fd2.
3413         (do_test): Use global temp_fd1, temp_fd2 variables.  Let the test
3414         framework remove the temporary files.
3415         * posix/tst-exec.c (temp_fd1, temp_fd2, temp_fd3): Define.
3416         (do_prepare): Use create_temp_file instead of add_temp_file.
3417         Initialize temp_fd1, temp_fd2, temp_fd3.
3418         (do_test): Use global temp_fd1, temp_fd2, temp_fd3 variables.  Let
3419         the test framework remove the temporary files.
3420         * posix/tst-vfork3.c (do_prepare): Adjust for LIFO order of file
3421         deletion.
3422         * posix/tst-pathconf.c (do_test): Do not call rmdir on the
3423         temporary directory.  It is removed by the test framework.
3424         * dirent/tst-scandir.c (do_test): Likewise.
3425
3426 2017-05-08  Florian Weimer  <fweimer@redhat.com>
3427
3428         Delete temporary files in LIFO order.
3429         * support/temp_file.c (struct temp_name_list): Replace q member
3430         with next.
3431         (add_temp_file): Add new file to front of linked list.
3432         (support_delete_temp_files): Use next member.
3433         (support_print_temp_files): Likewise.
3434
3435 2017-05-08  Florian Weimer  <fweimer@redhat.com>
3436
3437         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
3438         sys/ultrasound.h.
3439         * sysdeps/unix/sysv/linux/sys/ultrasound.h: Remove file.
3440
3441 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
3442
3443         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
3444         Remove.
3445         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
3446         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
3447         (arch_minimum_kernel): Remove.
3448         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
3449         * README: Update statement about Linux kernel requirements.
3450
3451 2017-05-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3452
3453         * manual/llio.texi: Add preadv and pwritev documentation.
3454
3455 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
3456
3457         [BZ #21455]
3458         * bits/stdint-intn.h: New file.
3459         * bits/stdint-uintn.h: Likewise.
3460         * stdlib/Makefile (headers): Add bits/stdint-intn.h and
3461         bits/stdint-uintn.h.
3462         * inet/netinet/in.h: Include <bits/stdint-uintn.h> instead of
3463         <stdint.h>.
3464         * posix/sys/types.h: Include <bits/stdint-intn.h>.
3465         (__int8_t_defined): Do not define here.
3466         (int8_t): Likewise.
3467         (int16_t): Likewise.
3468         (int32_t): Likewise.
3469         (int64_t): Likewise.
3470         [__GNUC_PREREQ (2, 7)] (__intN_t): Likewise.
3471         * resolv/netdb.h: Include <bits/stdint-uintn.h> instead of
3472         <stdint.h>.
3473         * include/netdb.h [_ISOMAC]: Do not include <stdint.h>.
3474         * sysdeps/generic/stdint.h: Include <bits/stdint-intn.h> and
3475         <bits/stdint-uintn.h>.
3476         (int8_t): Do not define here.
3477         (int16_t): Likewise.
3478         (int32_t): Likewise.
3479         (int64_t): Likewise.
3480         (uint8_t): Likewise.
3481         (uint16_t): Likewise.
3482         (uint32_t): Likewise.
3483         (uint64_t): Likewise.
3484         * conform/Makefile (test-xfail-XPG42/arpa/inet.h/conform): Remove
3485         variable.
3486         (test-xfail-XPG42/netdb.h/conform): Likewise.
3487         (test-xfail-XPG42/netinet/in.h/conform): Likewise.
3488         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
3489         (test-xfail-UNIX98/netdb.h/conform): Likewise.
3490         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
3491
3492 2017-05-04  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3493
3494         * sysdeps/generic/math_private.h (mathx_hidden_def): New macro.
3495         * sysdeps/ieee754/ldbl-128/s_finitel.c: Replace hidden_def with
3496         the above.
3497         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3498         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3499
3500 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
3501
3502         [BZ #21445]
3503         * signal/signal.h [__USE_XOPEN2K8] (bsd_signal): Do not declare.
3504
3505         [BZ #21457]
3506         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
3507         [_MIPS_SIM != _ABIO32] (mcontext_t): Rename field reserved to
3508         __glibc_reserved1.
3509         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
3510         (struct _fpx_sw_bytes): Rename field padding to __glibc_reserved1.
3511         (struct _fpxreg): Likewise.
3512         [!__x86_64__] (struct _fpstate): Rename field reserved to
3513         __glibc_reserved1.  Rename field padding to __glibc_reserved2.
3514         [__x86_64__] (struct _fpstate): Rename field padding to
3515         __glibc_reserved1.
3516         (struct _xsave_hdr): Rename field reserved1 to __glibc_reserved1.
3517         Rename field reserved2 to __glibc_reserved2.
3518         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h
3519         [__x86_64__] (struct _libc_fpxreg): Rename field padding to
3520         __glibc_reserved1.
3521         [__x86_64__] (struct _libc_fpstate): Rename field padding to
3522         __glibc_reserved1.
3523
3524 2017-05-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3525
3526         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
3527         variable name.
3528
3529 2017-05-03  H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         [BZ #21391]
3532         * sysdeps/i386/dl-machine.h (dl_platform_init) [IS_IN (rtld)]:
3533         Only call init_cpu_features.
3534         [!IS_IN (rtld)]: Only set GLRO(dl_platform) to NULL if needed.
3535         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
3536         * sysdeps/i386/dl-procinfo.h: Removed.
3537         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Don't include
3538         <sysdeps/i386/dl-procinfo.h> nor <ldsodefs.h>.  Include
3539         <sysdeps/x86/dl-procinfo.h>.
3540         (_dl_procinfo): Replace _DL_HWCAP_COUNT with 32.
3541         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h [!IS_IN (ldconfig)]:
3542         Include <sysdeps/x86/dl-procinfo.h> instead of
3543          <sysdeps/generic/dl-procinfo.h>.
3544         * sysdeps/x86/cpu-features.c: Include <dl-hwcap.h>.
3545         (init_cpu_features): Set dl_platform, dl_hwcap and dl_hwcap_mask.
3546         * sysdeps/x86/cpu-features.h (bit_cpu_LZCNT): New.
3547         (bit_cpu_MOVBE): Likewise.
3548         (bit_cpu_BMI1): Likewise.
3549         (bit_cpu_BMI2): Likewise.
3550         (index_cpu_BMI1): Likewise.
3551         (index_cpu_BMI2): Likewise.
3552         (index_cpu_LZCNT): Likewise.
3553         (index_cpu_MOVBE): Likewise.
3554         (index_cpu_POPCNT): Likewise.
3555         (reg_BMI1): Likewise.
3556         (reg_BMI2): Likewise.
3557         (reg_LZCNT): Likewise.
3558         (reg_MOVBE): Likewise.
3559         (reg_POPCNT): Likewise.
3560         * sysdeps/x86/dl-hwcap.h: New file.
3561         * sysdeps/x86/dl-procinfo.h: Likewise.
3562         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): New.
3563         (_dl_x86_platforms): Likewise.
3564
3565 2017-05-03  DJ Delorie  <dj@redhat.com>
3566
3567         [BZ #21411]
3568         * malloc/malloc.c: Tweak realloc/MREMAP comment to be more accurate.
3569
3570 2017-05-03  Phil Blundell  <pb@pbcl.net>
3571
3572         * inet/netinet/in.h (struct ip_mreq_source): Correct misplaced
3573         comments.
3574
3575 2017-05-03  Carlos O'Donell  <carlos@redhat.com>
3576
3577         [BZ #20116]
3578         * nptl/pthread_create.c: Expand comments to describe
3579         semaphore-like and mutex-like uses of PD->lock.
3580
3581 2017-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3582
3583         * sysdeps/unix/sysv/linux/epoll_wait.c: New file.
3584         * sysdeps/unix/sysv/linux/generic/epoll_wait.c: Remove file.
3585         * sysdeps/unix/sysv/linux/syscalls.list: Remove epoll_wait from
3586         auto-generation list.
3587         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3588         epoll_wait.
3589         * sysdeps/unix/sysv/linux/generic/Makefile (sysdep_routines):
3590         Remove epoll_wait.
3591
3592         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Add
3593         osf_select.
3594         * sysdeps/unix/sysv/linux/alpha/select.c: New file.
3595         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove select and
3596         osf_select from auto-generation list.
3597         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3598         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3599         * sysdeps/unix/sysv/linux/generic/select.c: Remove file.
3600         * sysdeps/unix/sysv/linux/select.c: New file.
3601
3602         * sysdeps/unix/sysv/linux/generic/poll.c: Remove file.
3603         * sysdeps/unix/sysv/linux/poll.c: New file.
3604         * sysdeps/unix/sysv/linux/syscalls.list: Remove poll from
3605         auto-generation list.
3606
3607 2017-05-03  Joseph Myers  <joseph@codesourcery.com>
3608
3609         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDRDM):
3610         New macro.
3611
3612 2017-05-02  Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
3613
3614         [BZ #21179]
3615         * sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
3616         R_SPARC_REGISTER relocations.
3617
3618 2017-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3619
3620         * include/unistd.h (__pread): Add libc_hidden_proto.
3621         (__pread64): Likewise.
3622         (__pwrite): Likewise.
3623         * sysdeps/unix/sysv/linux/microblaze/localplt.data [libc.so]
3624         (__pread64): Remove.
3625         * sysdeps/unix/sysv/linux/pread.c (__pread64): Add libc_hidden_weak.
3626         * sysdeps/unix/sysv/linux/pread64.c (__pread64): Likewise.
3627         * sysdeps/unix/sysv/linux/pwrite.c (__pwrite): Likewise.
3628
3629 2017-05-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3630
3631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3632
3633 2017-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3634
3635         * nptl/tst-cancel4-common.c: Use libsupport.
3636         * nptl/tst-cancel4-common.h: Likewise.
3637         * nptl/tst-cancel4.c (tf_read): Likewise.
3638         (tf_readv): Likewise.
3639         (tf_write): Likewise.
3640         (tf_writev): Likewise.
3641         (tf_sleep): Likewise.
3642         (tf_usleep): Likewise.
3643         (tf_nanosleep): Likewise.
3644         (tf_select): Likewise.
3645         (tf_pselect): Likewise.
3646         (tf_poll): Likewise.
3647         (tf_ppoll): Likewise.
3648         (tf_wait): Likewise.
3649         (tf_waitpid): Likewise.
3650         (tf_waitid): Likewise.
3651         (tf_sigpause): Likewise.
3652         (tf_sigsuspend): Likewise.
3653         (tf_sigwait): Likewise.
3654         (tf_sigwaitinfo): Likewise.
3655         (tf_sigtimedwait): Likewise.
3656         (tf_pause): Likewise.
3657         (tf_accept): Likewise.
3658         (tf_send): Likewise.
3659         (tf_recv): Likewise.
3660         (tf_recvfrom): Likewise.
3661         (tf_recvmsg): Likewise.
3662         (tf_open): Likewise.
3663         (tf_close): Likewise.
3664         (tf_pread): Likewise.
3665         (tf_pwrite): Likewise.
3666         (tf_preadv): Likewise.
3667         (tf_pwritev): Likewise.
3668         (tf_fsync): Likewise.
3669         (tf_fdatasync): Likewise.
3670         (tf_msync): Likewise.
3671         (tf_sendto): Likewise.
3672         (tf_sendmsg): Likewise.
3673         (tf_creat): Likewise.
3674         (tf_connect): Likewise.
3675         (tf_tcdrain): Likewise.
3676         (tf_msgrcv): Likewise.
3677         (tf_msgsnd): Likewise.
3678         * nptl/tst-cancel4_1.c (tf_sendmmsg): Likewise.
3679         * nptl/tst-cancel4_2.c (tf_recvmmsg): Likewise.
3680
3681         * misc/tst-preadvwritev-common.c (do_prepare): Use libsupport
3682         expected arguments.
3683         (do_test): Adapt to use libsupport.
3684
3685 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
3686
3687         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.
3688
3689         * sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
3690         (PF_MAX): Set to 44.
3691         (AF_SMC): New macro.
3692
3693         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3694         kernel version to 4.11.
3695
3696 2017-04-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3697
3698         [BZ #21280]
3699         * sysdeps/powerpc/power7/fpu/s_logbl.c (__logbl): Ignore the
3700         signal of subnormals and adjust the exponent of power of 2 down
3701         when low part has opposite sign.
3702
3703 2017-04-28  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3704
3705         * sysdeps/powerpc/powerpc64le/Implies: New file.
3706         * sysdeps/powerpc/powerpc64le/fpu/Implies: New file.
3707         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file.
3708         * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file.
3709         * sysdeps/powerpc/powerpc64le/power7/Implies: New file.
3710         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file.
3711         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file.
3712         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file.
3713         * sysdeps/powerpc/powerpc64le/power8/Implies: New file.
3714         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file.
3715         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file.
3716         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file.
3717         * sysdeps/powerpc/powerpc64le/power9/Implies: New file.
3718         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file.
3719         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file.
3720         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file.
3721         * sysdeps/powerpc/preconfigure: New file.
3722         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file.
3723         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
3724
3725 2017-04-28  Joseph Myers  <joseph@codesourcery.com>
3726
3727         * conform/data/semaphore.h-data [XOPEN2K] (time.h): Allow header
3728         inclusion.
3729         * conform/Makefile (test-xfail-XOPEN2K/semaphore.h/conform):
3730         Remove.
3731
3732 2017-04-27  Joseph Myers  <joseph@codesourcery.com>
3733
3734         * conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
3735         (XPG3): Rename standard to XPG4.
3736         * conform/Makefile: Likewise.
3737         * conform/list-header-symbols.pl: Likewise.
3738         * conform/data/aio.h-data: Likewise.
3739         * conform/data/arpa/inet.h-data: Likewise.
3740         * conform/data/complex.h-data: Likewise.
3741         * conform/data/ctype.h-data: Likewise.
3742         * conform/data/dlfcn.h-data: Likewise.
3743         * conform/data/fcntl.h-data: Likewise.
3744         * conform/data/fenv.h-data: Likewise.
3745         * conform/data/float.h-data: Likewise.
3746         * conform/data/fmtmsg.h-data: Likewise.
3747         * conform/data/ftw.h-data: Likewise.
3748         * conform/data/grp.h-data: Likewise.
3749         * conform/data/inttypes.h-data: Likewise.
3750         * conform/data/iso646.h-data: Likewise.
3751         * conform/data/langinfo.h-data: Likewise.
3752         * conform/data/libgen.h-data: Likewise.
3753         * conform/data/limits.h-data: Likewise.
3754         * conform/data/locale.h-data: Likewise.
3755         * conform/data/math.h-data: Likewise.
3756         * conform/data/mqueue.h-data: Likewise.
3757         * conform/data/ndbm.h-data: Likewise.
3758         * conform/data/net/if.h-data: Likewise.
3759         * conform/data/netdb.h-data: Likewise.
3760         * conform/data/netinet/in.h-data: Likewise.
3761         * conform/data/poll.h-data: Likewise.
3762         * conform/data/pthread.h-data: Likewise.
3763         * conform/data/pwd.h-data: Likewise.
3764         * conform/data/sched.h-data: Likewise.
3765         * conform/data/search.h-data: Likewise.
3766         * conform/data/semaphore.h-data: Likewise.
3767         * conform/data/signal.h-data: Likewise.
3768         * conform/data/spawn.h-data: Likewise.
3769         * conform/data/stdbool.h-data: Likewise.
3770         * conform/data/stdint.h-data: Likewise.
3771         * conform/data/stdio.h-data: Likewise.
3772         * conform/data/stdlib.h-data: Likewise.
3773         * conform/data/string.h-data: Likewise.
3774         * conform/data/strings.h-data: Likewise.
3775         * conform/data/stropts.h-data: Likewise.
3776         * conform/data/sys/mman.h-data: Likewise.
3777         * conform/data/sys/resource.h-data: Likewise.
3778         * conform/data/sys/select.h-data: Likewise.
3779         * conform/data/sys/socket.h-data: Likewise.
3780         * conform/data/sys/stat.h-data: Likewise.
3781         * conform/data/sys/statvfs.h-data: Likewise.
3782         * conform/data/sys/time.h-data: Likewise.
3783         * conform/data/sys/timeb.h-data: Likewise.
3784         * conform/data/sys/types.h-data: Likewise.
3785         * conform/data/sys/uio.h-data: Likewise.
3786         * conform/data/sys/un.h-data: Likewise.
3787         * conform/data/sys/wait.h-data: Likewise.
3788         * conform/data/syslog.h-data: Likewise.
3789         * conform/data/termios.h-data: Likewise.
3790         * conform/data/tgmath.h-data: Likewise.
3791         * conform/data/time.h-data: Likewise.
3792         * conform/data/ucontext.h-data: Likewise.
3793         * conform/data/unistd.h-data: Likewise.
3794         * conform/data/utmpx.h-data: Likewise.
3795         * conform/data/varargs.h-data: Likewise.
3796         * conform/data/wchar.h-data: Likewise.
3797         * conform/data/wctype.h-data: Likewise.
3798
3799 2017-04-26  Joseph Myers  <joseph@codesourcery.com>
3800
3801         * scripts/build-many-glibcs.py (Context.checkout): Default gcc
3802         version to 7 branch.
3803
3804 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
3805
3806         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Add
3807         earlyclobber to output operand of sqrt insn.
3808         (__ieee754_sqrtf): Ditto.
3809
3810 2017-04-25  Joseph Myers  <joseph@codesourcery.com>
3811
3812         [BZ #21426]
3813         * misc/bits/types/struct_iovec.h: New file.
3814         * misc/Makefile (headers): Add bits/types/struct_iovec.h.
3815         * include/bits/types/struct_iovec.h: New file.
3816         * bits/uio.h (struct iovec): Replace by inclusion of
3817         <bits/types/struct_iovec.h>.
3818         * sysdeps/unix/sysv/linux/bits/uio.h (struct iovec): Likewise.
3819         * socket/sys/socket.h: Include <bits/types/struct_iovec.h> instead
3820         of <sys/uio.h>.
3821         * nptl/tst-cancel4.c: Include <sys/uio.h>
3822         * posix/test-errno.c: Likewise.
3823         * support/resolv_test.c: Likewise.
3824         * conform/Makefile (test-xfail-POSIX2008/arpa/inet.h/conform):
3825         Remove.
3826         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
3827         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
3828         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
3829
3830         * conform/data/sys/socket.h-data (*_t): Allow.
3831
3832 2017-04-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3833
3834         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Remove ununsed
3835         assignment.
3836
3837 2017-04-24  Daurnimator  <quae@daurnimator.com>
3838             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3839
3840         [BZ #21340]
3841         * posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
3842         * posix/spawn.h: define POSIX_SPAWN_SETSID flag.
3843         * posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
3844         valid flags.
3845         * posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
3846         * sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
3847         POSIX_SPAWN_SETSID.
3848         * sysdeps/posix/spawni.c (__spawni): Likewise.
3849         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3850         * NEWS: Add note about POSIX_SPAWN_SETSID support.
3851
3852 2017-04-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3853
3854         * sysdeps/generic/math_private.h: Move the declaration of many
3855         functions to sysdeps/generic/math_private_calls.h.
3856         * sysdeps/generic/math_private_calls.h: New file with the
3857         declarations of the functions removed from math_private.h
3858         macroized by floating-point type.
3859
3860 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3861
3862         * sysdeps/s390/multiarch/utf8-utf32-z9.c: New File.
3863         * sysdeps/s390/utf8-utf32-z9.c: Move ifunc resolvers to multiarch
3864         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
3865         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
3866         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
3867         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
3868
3869 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3870
3871         * sysdeps/s390/multiarch/utf16-utf32-z9.c: New File.
3872         * sysdeps/s390/utf16-utf32-z9.c: Move ifunc resolvers to multiarch
3873         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|VX].
3874         (HAVE_FROM_C, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX, FROM_LOOP_DEFAULT,
3875         FROM_LOOP_C, FROM_LOOP_VX, TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX):
3876         New Define.
3877
3878 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3879
3880         * sysdeps/s390/multiarch/utf8-utf16-z9.c: New File.
3881         * sysdeps/s390/utf8-utf16-z9.c: Move ifunc resolvers to multiarch
3882         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
3883         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
3884         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
3885         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
3886
3887 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3888
3889         * sysdeps/s390/multiarch/ifunc-resolve.h
3890         (s390_libc_ifunc_expr_init, s390_libc_ifunc_expr): New Define.
3891         * sysdeps/s390/multiarch/8bit-generic.c
3892         (__to_generic, __from_generic): Use s390_libc_ifunc_expr to
3893         define ifunc resolvers.
3894
3895 2017-04-21  Florian Weimer  <fweimer@redhat.com>
3896
3897         [BZ #20424]
3898         * manual/memory.texi (Replacing malloc): New section.
3899         (Allocating Storage For Program Data): Reference it.
3900         (The GNU Allocator): Likewise.
3901
3902 2017-04-20  Joseph Myers  <joseph@codesourcery.com>
3903
3904         * stdlib/Versions (__strtod_internal): List explicitly, not as
3905         wildcard.
3906         (__strtof_internal): Likewise.
3907         (__strtold_internal): Likewise.
3908         (__strtol_internal): Likewise.
3909         (__strtoll_internal): Likewise.
3910         (__strtoul_internal): Likewise.
3911         (__strtoull_internal): Likewise.
3912         (__strtoq_internal): Likewise.
3913         (__strtouq_internal): Likewise.
3914         * wcsmbs/Versions (__wcstod_internal): Likewise.
3915         (__wcstof_internal): Likewise.
3916         (__wcstold_internal): Likewise.
3917         (__wcstol_internal): Likewise.
3918         (__wcstoll_internal): Likewise.
3919         (__wcstoul_internal): Likewise.
3920         (__wcstoull_internal): Likewise.
3921
3922 2017-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3923
3924         * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
3925         struct timespec definition.
3926
3927 2017-04-19  Florian Weimer  <fweimer@redhat.com>
3928
3929         * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
3930
3931 2017-04-19  Florian Weimer  <fweimer@redhat.com>
3932
3933         * inet/rcmd.c (rresvport_af): Fix typo in comment.
3934         * inet/rexec.c (rexec_af): Likewise.
3935
3936 2017-04-19  Zack Weinberg  <zackw@panix.com>
3937
3938         * posix/tst-mmap-offset.c: Include stdint.h.
3939         * resolv/tst-ns_name_compress.c: Include string.h.
3940         * resolv/tst-resolv-edns.c: Include resolv.h.
3941
3942 2017-04-19  Florian Weimer  <fweimer@redhat.com>
3943
3944         * resolv/gai_suspend.c (gai_suspend): Replace __builtin_expect
3945         with __glibc_likely.
3946         * resolv/nss_dns/dns-host.c (getanswer_r, gaih_getanswer_slice):
3947         Replace __builtin_expect with __glibc_unlikely.
3948         * resolv/res_init.c (__res_vinit): Likewise.
3949         * resolv/res_query.c (__libc_res_nquery): Likewise.
3950         * resolv/res_send.c (__libc_res_nsend): Likewise.
3951
3952 2017-04-19  Florian Weimer  <fweimer@redhat.com>
3953
3954         [BZ #15722]
3955         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Create socket
3956         with SOCK_CLOEXEC.
3957         * resolv/res_send.c (send_vc, reopen): Likewise.
3958         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
3959         * sysdeps/unix/sysv/linux/check_native.c (__check_native):
3960         Likewise.
3961         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open): Likewise.
3962         * inet/rexec.c (rexec_af): Add comment.
3963         * inet/rcmd.c (rresvport_af): Likewise.
3964
3965 2017-04-19  Florian Weimer  <fweimer@redhat.com>
3966
3967         * nscd/connections.c (have_accept4): Removed definition.
3968         (nscd_run_worker, main_loop_poll, main_loop_epolll): Assume that
3969         accept4 works.
3970         * manual/install.texi (Linux): Require at least kernel 3.2.18 for
3971         ia64 because that was the first version with accept4 support.
3972         * support/Makefile (libsupport-routines): Add xaccept4.
3973         * support/xsocket.h (xaccept4): Declare.
3974         * support/xaccept4.c: New file.
3975         * socket/tst-accept4.c: New file.
3976         * socket/Makefile (tests): Add tst-accept4.
3977         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Remove
3978         definition.
3979         * sysdeps/nacl/kernel-features.h (__ASSUME_ACCEPT4): Remove
3980         comment.
3981         * sysdeps/unix/sysv/linux/accept4.c: Assume that an accept4
3982         implementation is available.
3983         (accept4): Use the system call if available, otherwise use the
3984         socket call.
3985         * sysdeps/unix/sysv/linux/ia64/configure.ac (arch_minimum_kernel):
3986         Set to 3.2.18.
3987         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3988         (__ASSUME_ACCEPT4_SYSCALL, __ASSUME_ACCEPT4): Do not undefine.
3989         accept4 is unconditionally available in later 3.2 stable kernels.
3990         (__ASSUME_ACCEPT4_SYSCALL): Define.
3991         * sysdeps/unix/sysv/linux/kernel-features.h
3992         (__ASSUME_ACCEPT4_SOCKETCALL, __ASSUME_ACCEPT4): Remove
3993         definitions.
3994         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3995         (__ASSUME_ACCEPT4_SYSCALL): Define for Linux 4.3 or later.
3996
3997 2017-04-18  Joseph Myers  <joseph@codesourcery.com>
3998
3999         * conform/Makefile (tests-special): Do not make addition of
4000         $(conformtest-header-tests) conditional on [$(cross-compiling) = no].
4001         (generated): Do not make addition of $(conformtest-header-base)
4002         conditional on [$(cross-compiling) = no].
4003
4004         [BZ #21267]
4005         * sysdeps/unix/sysv/linux/bits/socket.h (IOCSIZE_MASK): Undefine
4006         if defined by <asm/socket.h> and not previously defined.
4007         (IOCSIZE_SHIFT): Likewise.
4008         (IOC_IN): Likewise.
4009         (IOC_INOUT): Likewise.
4010         (IOC_OUT): Likewise.
4011
4012 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
4013
4014         [BZ #21396]
4015         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4016         Prefer_No_AVX512 if AVX512ER isn't available.
4017         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_No_AVX512): New.
4018         (index_arch_Prefer_No_AVX512): Likewise.
4019         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Don't use
4020         AVX512 version if Prefer_No_AVX512 is set.
4021         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk):
4022         Likewise.
4023         * sysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Likewise.
4024         * sysdeps/x86_64/multiarch/memmove_chk.S (__memmove_chk):
4025         Likewise.
4026         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
4027         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk):
4028         Likewise.
4029         * sysdeps/x86_64/multiarch/memset.S (memset): Likewise.
4030         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk):
4031         Likewise.
4032
4033 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
4034
4035         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4036         Prefer_No_VZEROUPPER if AVX512ER is available.
4037         * sysdeps/x86/cpu-features.h
4038         (bit_cpu_AVX512PF): New.
4039         (bit_cpu_AVX512ER): Likewise.
4040         (bit_cpu_AVX512CD): Likewise.
4041         (bit_cpu_AVX512BW): Likewise.
4042         (bit_cpu_AVX512VL): Likewise.
4043         (index_cpu_AVX512PF): Likewise.
4044         (index_cpu_AVX512ER): Likewise.
4045         (index_cpu_AVX512CD): Likewise.
4046         (index_cpu_AVX512BW): Likewise.
4047         (index_cpu_AVX512VL): Likewise.
4048         (reg_AVX512PF): Likewise.
4049         (reg_AVX512ER): Likewise.
4050         (reg_AVX512CD): Likewise.
4051         (reg_AVX512BW): Likewise.
4052         (reg_AVX512VL): Likewise.
4053
4054 2017-04-18  Florian Weimer  <fweimer@redhat.com>
4055
4056         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Assume that
4057         O_CLOEXEC is defined.
4058         * include/fcntl.h (__have_o_cloexec): Remove declaration.
4059         * io/Makefile (aux): Remove.
4060         * io/have_o_cloexec.c: Remove file.
4061         * libio/fileops.c (_IO_new_file_fopen): Assume that O_CLOEXEC is
4062         defined and works.
4063         * libio/iopopen.c (_IO_new_proc_open): Assume that O_CLOEXEC is
4064         defined.
4065         * login/utmp_file.c (O_flags): Remove definition.
4066         (setutent_file): Use O_CLOEXEC instead of O_flags.  Assume that
4067         O_CLOEXEC works.
4068         (pututline_file): Likewise.
4069         * malloc/mtrace.c: Assume that O_CLOEXEC works.
4070         * nis/nss_compat/compat-grp.c (__compat_have_cloexec): Remove
4071         definition.
4072         (internal_setgrent): Assume that O_CLOEXEC works.
4073         * nis/nss_compat/compat-initgroups.c (__compat_have_cloexec):
4074         Remove definition.
4075         (internal_setgrent): Assume that O_CLOEXEC works.
4076         * nis/nss_compat/compat-pwd.c (__compat_have_cloexec): Remove
4077         definition.
4078         (internal_setpwent): Assume that O_CLOEXEC works.
4079         * nis/nss_compat/compat-spwd.c (__compat_have_cloexec): Remove
4080         definition.
4081         (internal_setspent): Assume that O_CLOEXEC works.
4082         * nscd/connections.c (EXTRA_O_FLAGS): Remove definition.
4083         (nscd_init): Use O_CLOEXEC instead of EXTRA_O_FLAGS.  Assume that
4084         O_CLOEXEC is defined and works.
4085         * nss/Makefile (libnss_files-routines): Remove
4086         files-have_o_cloexec.
4087         * nss/nss_db/db-open.c (internal_setent): Assume that O_CLOEXEC is
4088         defined.
4089         * nss/nss_files/files-XXX.c (internal_setent): Assume that
4090         O_CLOEXEC is defined and works.
4091         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4092         * nss/nss_files/files-have_o_cloexec.c: Remove.
4093         * posix/wordexp.c (exec_comm_child): Assume that O_CLOEXEC is
4094         defined.
4095         * shadow/lckpwdf.c (__lckpwdf): Assume that O_CLOEXEC is defined
4096         and works.
4097         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_O_CLOEXEC): Remove
4098         definition.
4099         * sysdeps/nacl/kernel-features.h (__ASSUME_O_CLOEXEC): Likewise.
4100         * sysdeps/posix/getcwd.c (__getcwd): Assume that O_CLOEXEC works.
4101         * sysdeps/posix/opendir.c (opendir_oflags): Turn into enum constant.
4102         (__opendirat, __opendir): Adjust opendir_oflags call.
4103         (check_have_o_cloexec): Remove.
4104         (__alloc_dir): Assume that O_CLOEXEC is defined and works.
4105         * sysdeps/posix/shm_open.c (shm_open): Assume that O_CLOEXEC is
4106         defined.
4107         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_O_CLOEXEC):
4108         Remove definition.
4109
4110 2017-04-18  Florian Weimer  <fweimer@redhat.com>
4111
4112         * include/unistd.h (__have_dup3): Remove declaration.
4113         * libio/freopen.c (freopen): Assume that O_CLOEXEC is defined and
4114         dup3 is available.
4115         * libio/freopen64.c (freopen64): Likewise.
4116         * socket/Makefile (aux): Remove have_sock_cloexec.
4117         * socket/have_sock_cloexec.c: Remove file.
4118         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Remove
4119         definition.
4120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_DUP3):
4121         Likewise.
4122         * sysdeps/nacl/kernel-features.h: Update comment.
4123
4124 2017-04-18  Florian Weimer  <fweimer@redhat.com>
4125
4126         * include/unistd.h (__have_pipe2): Remove declaration.
4127         * socket/have_sock_cloexec.c (__have_pipe2): Remove definition.
4128         * libio/iopopen.c (_IO_new_proc_open): Assume that pipe2 is
4129         available.
4130         * posix/wordexp.c (exec_comm_child, exec_comm): Likewise.
4131         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PIPE2):
4132         Remove definition.
4133
4134 2017-04-18  Florian Weimer  <fweimer@redhat.com>
4135
4136         * malloc/malloc.c (cfree): Turn into compat symbol.
4137         (__cfree): Remove alias.
4138         * stdlib/stdlib.h (cfree): Remove declaration.
4139         * malloc/malloc.h (cfree): Likewise.
4140         * manual/memory.texi (Freeing after Malloc): Remove cfree.
4141         * malloc/Versions (GLIBC_2.26): Add.
4142
4143 2017-04-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4144
4145         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4146         (sysdep_routines): Add strrchr-power8.
4147         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4148         (strrchr): Add __strrchr_power8 to list of strrchr functions.
4149         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: New file.
4150         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c
4151         (strrchr): Add __strrchr_power8 to ifunc list.
4152         * sysdeps/powerpc/powerpc64/power8/strrchr.S: New file.
4153
4154 2017-04-17  Rabin Vincent  <rabinv@axis.com>
4155
4156         [BZ #21357]
4157         * sysdeps/generic/unwind-dw2-fde.c (__deregister_frame_info_bases):
4158         Call free() outside of mutex.
4159
4160 2017-04-13  Florian Weimer  <fweimer@redhat.com>
4161
4162         * csu/check_fds.c (__libc_check_standard_fds): Assume O_NOFOLLOW
4163         is defined.
4164         * elf/rtld.c (process_envvars): Likewise.
4165         * sysdeps/posix/shm_open.c (shm_open): Likewise.
4166         * elf/dl-profile.c (EXTRA_FLAGS): Remove definition.  Use
4167         O_NOFOLLOW directly.
4168         * gmon/gmon.c (O_NOFOLLOW): Remove definition.
4169
4170 2017-04-13  Florian Weimer  <fweimer@redhat.com>
4171
4172         [BZ #21369]
4173         Remove EDNS fallback.
4174         * resolv/res_query.c (__libc_res_nquery): Remove RES_F_EDNS0ERR
4175         handling.
4176         * resolv/res_send.c (send_dg): Likewise.
4177         * resolv/tst-resolv-edns.c (response): Handle "formerr." and
4178         "tcp." prefixes.
4179         (do_test): Send a "formerr."-prefixed query in an attempt to
4180         trigger EDNS fallback.
4181
4182 2017-04-13  Florian Weimer  <fweimer@redhat.com>
4183
4184         [BZ #21361]
4185         Limit EDNS buffer size to 1200 bytes.
4186         * include/resolv.h (__res_nopt): Remove declaration.
4187         * resolv/Makefile (tests): tst-resolv-edns.
4188         (tst-resolv-edns): Link with -lresolv, -lpthread.
4189         * resolv/res_mkquery.c (__res_ntop): Limit EDNS buffer size to the
4190         interval [512, 1200].
4191         * resolv/res_query.c (__libc_res_nquery): Use 1200 buffer size if
4192         we can resize the buffer.
4193         * resolv/resolv-internal.h (RESOLV_EDNS_BUFFER_SIZE): Define.
4194         (__res_nopt): Declare.
4195         * resolv/tst-resolv-edns.c: New file.
4196         * resolv/resolv_test.h (struct resolv_edns_info): Define.
4197         (struct resolv_response_context): Add edns member.
4198         * resolv/resolv_test.c (struct query_info): Add edns member.
4199         (parse_query): Extract EDNS information from the query.
4200         (server_thread_udp_process_one): Propagate EDNS data.
4201         (server_thread_tcp_client): Likewise.
4202
4203 2017-04-13  Florian Weimer  <fweimer@redhat.com>
4204
4205         [BZ #21359]
4206         * resolv/ns_name.c (ns_name_pack): Do not require an additional
4207         byte in the destination buffer.  Avoid out-of-bounds pointer
4208         arithmetic.
4209         * resolv/Makefile (tests): Add tst-ns_name_compress.
4210         (tst-ns_name_compress): Link with -lresolv.
4211         * resolv/tst-ns_name_compress.c: New file.
4212         * resolv/tst-resolv-basic.c (LONG_NAME): Define.
4213         (response): Recognize LONG_NAME.
4214         (do_test): Add LONG_NAME tests.
4215         * resolv/tst-ns_name.c (run_test_case): Fix expected data check
4216         for ns_name_unpack.  Add tests for ns_name_pton and
4217         ns_name_compress.
4218
4219 2017-04-13  Florian Weimer  <fweimer@redhat.com>
4220
4221         * resolv/resolv.h (RES_EXHAUSTIVE, p_section, res_npquery)
4222         (res_nisourserver): Remove definition.
4223         (p_section, res_npquery, res_nisourserver): Remove declaration.
4224         (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR): Move ...
4225         * resolv/resolv-internal.h (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR):
4226         ... here.
4227         * resolv/res_send.c: Include <resolv/resolv-internal.h> instead of
4228         <resolv.h>.
4229         * resolv/res_query.c: Likewise.
4230         * resolv/res_debug.c (p_section): Define as static.
4231
4232 2017-04-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4233
4234         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add
4235         strncat-power8.
4236         * sysdeps/powerpc/powerpc64/multiarch/strncat.c (strncat): Add
4237         __strncat_power8 to ifunc list.
4238         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4239         (strncat): Add __strncat_power8 to list of strncat functions.
4240         * sysdeps/powerpc/powerpc64/multiarch/strncat-power8.c: New file.
4241
4242 2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4243
4244         [BZ #21270]
4245         * posix/tst-mmap-offset.c (do_prepare): New function.
4246         (do_test): Rename to do_test_bz18877 and use FAIL_RET.
4247         (do_test_bz21270): New function.
4248         * sysdeps/unix/sysv/linux/aarch64/mmap.c: Remove file.
4249         * sysdeps/unix/sysv/linux/arm/mmap.c: Remove file.
4250         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c: Likewise.
4251         * sysdeps/unix/sysv/linux/hppa/mmap.c: Likewise.
4252         * sysdeps/unix/sysv/linux/i386/mmap.c: Likewise.
4253         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
4254         * sysdeps/unix/sysv/linux/m68k/mmap64.c: Likewise.
4255         * sysdeps/unix/sysv/linux/microblaze/mmap.S: Likewise.
4256         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: Likewise.
4257         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: Likewise.
4258         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: Likewise.
4259         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4260         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4261         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
4262         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: Likewise.
4263         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: Likewise.
4264         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
4265         * sysdeps/unix/sysv/linux/mmap_internal.h: New file.
4266         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h: Likewise.
4267         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap_internal.h: Likewise.
4268         * sysdeps/unix/sysv/linux/s390/mmap_internal.h: Likewise.
4269         * sysdeps/unix/sysv/linux/x86_64/64/mmap_internal.h: Likewise.
4270         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Remove mmap
4271         from auto-generation list.
4272         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Likewise.
4273         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
4274         * sysdeps/unix/sysv/linux/mmap.c: New file.
4275         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Add check for invalid
4276         offsets and support for mmap2 syscall.
4277
4278         * posix/globtest.sh: Add cleanup routine on trap 0.
4279
4280 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
4281
4282         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Define the
4283         implementation-specific function name and remove unneeded
4284         macros definition.
4285         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
4286         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
4287         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
4288         name if not defined and pass as parameter to macros accordingly.
4289         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
4290         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
4291
4292         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Define the
4293         implementation-specific function name and remove unneeded
4294         macros definition.
4295         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
4296         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
4297         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
4298         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
4299         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
4300         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
4301         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Set a default function
4302         name if not defined and pass as parameter to macros accordingly.
4303         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
4304         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4305         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4306         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4307         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4308         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
4309
4310         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the
4311         implementation-specific function name and remove unneeded macros
4312         definition.
4313         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
4314         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
4315         * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default
4316         function name if not defined and pass as parameter to macros
4317         accordingly.
4318         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
4319         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
4320
4321         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Define the
4322         implementation-specific function name and remove unneeded macros
4323         definition.
4324         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
4325         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
4326         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
4327         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
4328         * sysdeps/powerpc/powerpc64/memset.S: Set a default function name if
4329         not defined and pass as parameter to macros accordingly.
4330         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4331         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4332         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4333         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
4334
4335         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Define the
4336         strcasestr implementation name and remove unneeded macros definition.
4337         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
4338         strstr implementation name and remove unneeded macros definition.
4339         * sysdeps/powerpc/powerpc64/power7/strstr.S: Set a default function
4340         name if not defined and pass as parameter to macros accordingly.
4341         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
4342
4343         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
4344         implementation-specific function name and remove unneeded macros
4345         definition.
4346         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
4347         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
4348         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
4349         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
4350         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
4351         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
4352         function name if not defined and pass as parameter to macros
4353         accordingly.
4354         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
4355         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
4356         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
4357         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
4358
4359         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
4360         the strlen implementation name and remove unneeded macros definition.
4361         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
4362         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
4363         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
4364         the strnlen implementation name and remove unneeded macros definition.
4365         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
4366         name if not defined and pass as parameter to macros accordingly.
4367         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
4368         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
4369         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
4370
4371         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
4372         the implementation-specific function name and remove unneeded
4373         macros definition.
4374         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
4375         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
4376         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
4377         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
4378         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
4379         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
4380         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
4381         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
4382         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
4383         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
4384         name if not defined and pass as parameter to macros accordingly.
4385         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
4386         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4387         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
4388         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
4389         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
4390         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
4391         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
4392         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4393
4394         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
4395         implementation-specific function name and remove unneeded macros
4396         definition.
4397         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
4398         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
4399         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
4400         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
4401         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
4402         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
4403         function name if not defined.
4404         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
4405         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
4406
4407 2017-04-11  Paul Clarke  <pc@us.ibm.com>
4408
4409         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
4410         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
4411         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
4412         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
4413
4414 2017-04-11  Florian Weimer  <fweimer@redhat.com>
4415             Zack Weinberg  <zackw@panix.com>
4416
4417         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
4418         readdir64 as thread-safe.  Update warning about readdir_r.
4419
4420 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4421
4422         * sysdeps/unix/sysv/linux/x86/Implies: New file.
4423         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
4424         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
4425         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
4426         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
4427         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
4428         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
4429
4430 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4431
4432         * sysdeps/i386/dl-procinfo.c: Include
4433         <sysdeps/x86/dl-procinfo.c>.
4434         * sysdeps/x86_64/dl-procinfo.c: Likewise.
4435         * sysdeps/x86/dl-procinfo.c: New file.
4436
4437 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4438
4439         * sysdeps/generic/math_private.h: Remove declarations of
4440         many functions that are already declared in math.h.
4441         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
4442         declaration for __frexpl.
4443         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
4444         the declarations for __scalbnl and fabsl.
4445
4446 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
4447
4448         [BZ #20831]
4449         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
4450         of __mprotect to change protection on the excess portion
4451         to disallow all access.
4452
4453 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
4454
4455         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
4456         HAS_CPU_FEATURE to check for SSE.
4457         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4458         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
4459         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
4460         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
4461         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
4462         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
4463         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
4464         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
4465         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
4466         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
4467         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
4468         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
4469         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
4470         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
4471         (index_cpu_SSE): Likewise.
4472         (reg_SSE): Likewise.
4473
4474 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
4475
4476         * posix/getopt1.c: Include <config.h>, not "config.h".
4477
4478 2017-04-07  Zack Weinberg  <zackw@panix.com>
4479
4480         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
4481         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
4482         Mention in top-of-file boilerplate that these files are shared
4483         with gnulib.
4484         * posix/getopt.h, posix/bits/getopt_posix.h:
4485         Mention in top-of-file boilerplate that these files are NOT shared
4486         with gnulib, unlike the rest of the getopt implementation.
4487
4488         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
4489         New files, intended to be shared with gnulib.
4490         * posix/bits/getopt_posix.h:
4491         New file, not intended to be shared with gnulib.
4492         * posix/getopt.h: Now just includes features.h,
4493         bits/getopt_core.h, and bits/getopt_ext.h.  Will
4494         no longer be shared with gnulib.
4495         * include/bits/getopt_core.h, include/bits/getopt_ext.h
4496         * include/bits/getopt_posix.h: New wrappers.
4497         * posix/Makefile: Install new headers.
4498         * posix/unistd.h, libio/stdio.h:
4499         Include bits/getopt_posix.h instead of getopt.h.
4500
4501         * include/libc-symbols.h: For gnulib compatibility, define
4502         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
4503         _GL_ATTRIBUTE_CONST.
4504         * posix/getopt.c (_getopt_initialize): Mark argc and argv
4505         parameters with _GL_UNUSED.
4506
4507         * posix/getopt.c: When used standalone, define __libc_use_alloca
4508         as always false and alloca to abort if called.
4509         (process_long_option): Rewrite handling of ambiguous long options
4510         to use a single boolean vector, not a linked list; use
4511         __libc_use_alloca to decide whether to allocate this using alloca.
4512         * posix/tst-getopt_long1.c: Adjust text of expected error message.
4513
4514         * posix/getopt.c (process_long_option): New function split out
4515         from _getopt_internal_r.
4516         (_getopt_internal_r): Replace both copies of the long-option
4517         processing code with calls to process_long_option.
4518         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
4519         (do_test): Differentiate argv[0] in the two subtests.
4520
4521         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
4522         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
4523         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
4524
4525         * posix/getopt.h: Add backup definition of __nonnull for
4526         consistency with gnulib.  Define __getopt_argv_const to const
4527         if not already defined.
4528         (getopt): Update doc comment from gnulib.  Prototype
4529         unconditionally.  Add __nonnull annotation.
4530         (__posix_getopt): Add __nonnull annotation.
4531         (getopt_long, getopt_long_only): Use __getopt_argv_const in
4532         prototypes for consistency with gnulib.  Add __nonnull
4533         annotations.
4534         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
4535         (getopt_internal): Change 'argv' argument to type 'char **'.
4536         Remove now-unnecessary casts.
4537         (getopt, __posix_getopt): Eliminate repetition with a macro.
4538         Cast 'argv' to 'char **' when calling _getopt_internal.
4539         * posix/getopt1.c (getopt_long, getopt_long_only):
4540         Use __getopt_argv_const for consistency with gnulib.
4541         Cast 'argv' to 'char **' when calling _getopt_internal.
4542         (_getopt_long_r, _getopt_long_only_r):
4543         Change 'argv' argument to type 'char **'.
4544         (main): Constify 'long_options'.
4545         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
4546         (_getopt_long_r, _getopt_long_only_r):
4547         Change 'argv' argument to type 'char **'.
4548
4549         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
4550         (locked_vfxprintf): New helper function. Handle arbitrary
4551         multibyte strings, not just ASCII.
4552         * include/stdio.h: Declare __fxprintf_nocancel.
4553         * posix/getopt.c: When _LIBC is defined, define fprintf to
4554         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
4555         to _IO_funlockfile.  When neither _LIBC nor
4556         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
4557         funlockfile as no-ops.
4558         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
4559         the standalone error-printing code can now be used for libc as
4560         well.  Add an flockfile/funlockfile pair around one case where
4561         the error message is printed in several chunks.  Don't use fputc.
4562         * posix/tst-getopt-cancel.c: New test.
4563         * posix/Makefile: Run it.
4564
4565         * posix/getopt.c (_getopt_internal_r): Don't increment
4566         d->optind a second time when reporting ambiguous -W options.
4567
4568         * posix/getopt_int.h: Include getopt.h.
4569         Use impl-namespace names for all arguments to _getopt_internal and
4570         _getopt_internal_r.
4571         Declare __ordering enum outside the struct.
4572         Harmonize comments with gnulib.
4573         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
4574         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
4575         #ifdef TEST block and make unconditional.  Do not define NULL.
4576         * posix/getopt.c: Partial merge from gnulib, covering the
4577         initial includes and global declarations, commentary, and
4578         a couple of semantically-neutral code changes.
4579
4580         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
4581         Use '...' instead of `...' for quotation marks inside
4582         comments and strings.
4583
4584         * config.h.in (USE_NONOPTION_FLAGS): Remove.
4585         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
4586         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4587         * posix/getopt_int.h: Likewise.
4588         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
4589         __libc_argc and __libc_argv externs, which were only used by
4590         #ifdef USE_NONOPTION_FLAGS blocks.
4591         * posix/getopt_init.c: Remove file.
4592         * posix/Makefile (routines): Remove getopt_init.
4593         * include/getopt.h: Don't declare __getopt_initialize_environment.
4594         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
4595         a comment.
4596
4597 2017-04-07  Florian Weimer  <fweimer@redhat.com>
4598
4599         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
4600
4601 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4602
4603         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
4604         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
4605         to __wrap_.udiv.
4606         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
4607         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
4608
4609         * sysdeps/i386/symbol-hacks.h: New file.
4610         * sysdeps/m68k/symbol-hacks.h: New file.
4611         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
4612         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
4613         * sysdeps/unix/sysv/linux/i386/Makefile
4614         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
4615         [$(subdir) = csu] (sysdep-only-routines): Likewise.
4616         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
4617         * sysdeps/unix/sysv/linux/m68k/Makefile
4618         [$(subdir) = csu] (sysdep_routines): Likewise.
4619         [$(subdir) = csu] (sysdep-only-routines): Likewise.
4620         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
4621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4622         [$(subdir) = csu] (sysdep_routines): Likewise.
4623         [$(subdir) = csu] (sysdep-only-routines): Likewise.
4624         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
4625         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
4626         [$(subdir) = csu] (sysdep_routines): Likewise.
4627         [$(subdir) = csu] (sysdep-only-routines): Likewise.
4628         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
4629         * sysdeps/wordsize-32/Makefile: Remove file.
4630         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
4631         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
4632
4633 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
4634
4635         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
4636         (TEST_FUNCTION_ARGV): New.
4637
4638 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
4639
4640         * elf/next.c: Import support/test-driver.c instead of
4641         test-skeleton.c and delete TEST_FUNCTION macro definition.
4642         * elf/nodelete.c: Likewise.
4643         * elf/order2.c: Likewise.
4644         * elf/tst-_dl_addr_inside_object.c: Likewise.
4645         * elf/tst-addr1.c: Likewise.
4646         * elf/tst-align.c: Likewise.
4647         * elf/tst-align2.c: Likewise.
4648         * elf/tst-audit11.c: Likewise.
4649         * elf/tst-audit12.c: Likewise.
4650         * elf/tst-audit2.c: Likewise.
4651         * elf/tst-audit9.c: Likewise.
4652         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
4653         * elf/tst-deep1.c: Likewise.
4654         * elf/tst-dl-iter-static.c: Likewise.
4655         * elf/tst-dlmodcount.c: Likewise.
4656         * elf/tst-dlmopen1.c: Likewise.
4657         * elf/tst-dlmopen2.c: Likewise.
4658         * elf/tst-dlmopen3.c: Likewise.
4659         * elf/tst-dlopen-aout.c: Likewise.
4660         * elf/tst-dlopenrpath.c: Likewise.
4661         * elf/tst-dlsym-error.c: Likewise.
4662         * elf/tst-execstack-needed.c: Likewise.
4663         * elf/tst-execstack-prog.c: Likewise.
4664         * elf/tst-execstack.c: Likewise.
4665         * elf/tst-global1.c: Likewise.
4666         * elf/tst-gnu2-tls1.c: Likewise.
4667         * elf/tst-latepthread.c: Likewise.
4668         * elf/tst-leaks1.c: Likewise.
4669         * elf/tst-linkall-static.c: Likewise.
4670         (do_test): New function.
4671         * elf/tst-nodelete-opened.c: Likewise.
4672         * elf/tst-nodelete.cc: Likewise.
4673         * elf/tst-nodelete2.c: Likewise.
4674         * elf/tst-noload.c: Likewise.
4675         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
4676         * elf/tst-order-main.c: Likewise.
4677         * elf/tst-pathopt.c: Likewise.
4678         * elf/tst-pie2.c: Likewise.
4679         * elf/tst-piemod1.c: Likewise.
4680         * elf/tst-prelink.c: Likewise.
4681         * elf/tst-protected1a.c: Likewise.
4682         * elf/tst-protected1b.c: Likewise.
4683         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
4684         and define _GNU_SOURCE macro.
4685         (cmdline_process_function): New function.
4686         * elf/tst-relsort1.c: Likewise.
4687         * elf/tst-stackguard1.c: Likewise, import getopt.h,
4688         and define _GNU_SOURCE macro.
4689         (cmdline_process_function): New function.
4690         * elf/tst-thrlock.c: Likewise.
4691         * elf/tst-tls-dlinfo.c: Likewise.
4692         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
4693         * elf/tst-tls1.c: Likewise.
4694         * elf/tst-tls10.c: Likewise.
4695         * elf/tst-tls11.c: Likewise.
4696         * elf/tst-tls12.c: Likewise.
4697         * elf/tst-tls13.c: Likewise.
4698         * elf/tst-tls14.c: Likewise.
4699         * elf/tst-tls15.c: Likewise.
4700         * elf/tst-tls16.c: Likewise.
4701         * elf/tst-tls17.c: Likewise.
4702         * elf/tst-tls18.c: Likewise.
4703         * elf/tst-tls19.c: Likewise.
4704         * elf/tst-tls2.c: Likewise.
4705         * elf/tst-tls3.c: Likewise.
4706         * elf/tst-tls4.c: Likewise.
4707         * elf/tst-tls5.c: Likewise.
4708         * elf/tst-tls6.c: Likewise.
4709         * elf/tst-tls7.c: Likewise.
4710         * elf/tst-tls8.c: Likewise.
4711         * elf/tst-tls9.c: Likewise.
4712         * elf/tst-tlsalign-extern.c: Likewise.
4713         * elf/tst-tlsalign.c: Likewise.
4714         * elf/tst-unique1.c: Likewise.
4715         * elf/tst-unique2.c: Likewise.
4716         * elf/vismain.c: Likewise.
4717
4718 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
4719
4720         * string/test-strnlen.c (do_page_tests): New function
4721         to check length of strings ending at the page boundary.
4722         (test_main): Added call to the do_page_tests function.
4723
4724 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
4725             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4726
4727         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4728         (sysdep_routines): Add strnlen-power8.
4729         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4730         (strnlen): Add __strnlen_power8 to list of strnlen functions.
4731         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
4732         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
4733         (__strnlen): Add __strnlen_power8 to ifunc list.
4734         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
4735
4736 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
4737
4738         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
4739         the TEST_FUNCTION macro definition.
4740         * wcsmbs/tst-mbrtowc2.c: Likewise.
4741         * wcsmbs/tst-mbsrtowcs.c: Likewise.
4742         * wcsmbs/tst-wchar-h.c: Likewise.
4743         * wcsmbs/tst-wcpncpy.c: Likewise.
4744         * wcsmbs/tst-wcrtomb.c: Likewise.
4745         * wcsmbs/tst-wcsnlen.c: Likewise.
4746         * wcsmbs/tst-wcstof.c: Likewise.
4747
4748 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4749
4750         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
4751         CALL_THREAD_FCT macro usage.
4752         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
4753         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
4754         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
4755
4756         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
4757         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4758         (__ASSUME_REQUEUE_PI): Likewise.
4759         * sysdeps/unix/sysv/linux/kernel-features.h
4760         (__ASSUME_REQUEUE_PI): Likewise.
4761         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4762         (__ASSUME_REQUEUE_PI): Likewise.
4763         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4764         (__ASSUME_REQUEUE_PI): Likewise.
4765         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4766         (__ASSUME_REQUEUE_PI): Likewise.
4767
4768 2017-04-04  Florian Weimer  <fweimer@redhat.com>
4769
4770         * resolv/tst-resolv-canonname.c: New file.
4771         * resolv/Makefile (tests): Add tst-resolv-canonname.
4772         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
4773
4774 2017-04-04  Florian Weimer  <fweimer@redhat.com>
4775
4776         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
4777         Declare.
4778         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
4779         (NS_MAXCDNAME): Remove definition.
4780         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
4781         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
4782         (NS_MAXCDNAME): Remove definition.
4783         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
4784
4785 2017-04-04  Florian Weimer  <fweimer@redhat.com>
4786
4787         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
4788         call whose result is not used.
4789
4790 2017-04-04  Florian Weimer  <fweimer@redhat.com>
4791
4792         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
4793         * resolv/Makefile (tests): Add tst-ns_name.
4794         (tst-ns_name): Link with -lresolv.
4795         (tst-ns_name.out): Depend on the input data file.
4796
4797 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
4798
4799         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
4800         Clobber also r14.
4801
4802 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
4803
4804         [BZ #21253]
4805         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
4806         slack space by 32KiB.
4807
4808 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
4809
4810         [BZ #21338]
4811         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
4812         instead of incorrect do_set_arena_test
4813
4814 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4815
4816         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
4817         * math/bits/math-finite.h: Likewise.
4818
4819 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
4820
4821         [BZ #21289]
4822         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
4823
4824 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4825
4826         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
4827         non expected inotify_add_watch and quotactl return.
4828
4829 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4830
4831         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
4832         to int32_t.
4833         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
4834         as returning int32_t.
4835
4836 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4837
4838         * math/math.h: Include bits/math-finite.h once per
4839         floating-point type.
4840         * math/bits/math-finite.h: Macroize all declarations by
4841         floating-point type.
4842
4843 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4844
4845         [BZ #21182]
4846         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
4847         near end of a page.
4848         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
4849         overflow calculation.
4850
4851 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
4852
4853         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
4854         (IMPL) Call with 1 instead of 0 as argument.
4855
4856 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4857
4858         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
4859         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
4860         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
4861         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
4862         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
4863         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
4864         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
4865         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
4866         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
4867         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
4868         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
4869         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
4870         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4871         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
4872         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
4873         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
4874         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4875         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
4876         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
4877         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
4878         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
4879         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
4880         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
4881         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
4882         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
4883         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
4884         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
4885         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
4886         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
4887         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
4888         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
4889         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
4890         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
4891         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
4892         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
4893         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
4894         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
4895         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
4896         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
4897         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
4898         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
4899         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
4900         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
4901         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
4902         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
4903         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
4904         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
4905         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
4906         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
4907         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
4908         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
4909         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
4910         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
4911         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
4912         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
4913         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
4914         INLINE_SYSCALL_ERROR_RETURN_VALUE.
4915         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
4916         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
4917         defined.
4918         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
4919         __NR_setgroups32 if defined.
4920         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
4921         if defined.
4922         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
4923         __NR_setresgid32 is defined.
4924         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
4925         __NR_setresuid32 if defined.
4926         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
4927         __NR_setreuid32 if defined.
4928         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
4929         defined.
4930         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
4931         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
4932         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
4933         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
4934         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
4935         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
4936         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
4937         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
4938         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
4939         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
4940         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
4941         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
4942         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4943         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
4944         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
4945         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
4946         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4947         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
4948         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
4949         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
4950         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
4951         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
4952         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
4953         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
4954         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
4955         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
4956         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
4957         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
4958         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
4959         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
4960         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
4961         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
4962         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
4963         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
4964         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
4965         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
4966         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
4967         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
4968         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
4969         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
4970         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
4971         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
4972         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
4973         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
4974         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
4975         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
4976         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
4977         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
4978         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
4979         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
4980         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
4981         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
4982         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
4983         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
4984         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
4985         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
4986         INLINE_SYSCALL_ERROR_RETURN_VALUE.
4987         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
4988         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
4989         defined.
4990         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
4991         __NR_setgroups32 if defined.
4992         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
4993         if defined.
4994         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
4995         __NR_setresgid32 is defined.
4996         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
4997         __NR_setresuid32 if defined.
4998         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
4999         __NR_setreuid32 if defined.
5000         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
5001         defined.
5002
5003 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
5004
5005         [BZ #21277]
5006         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
5007         unconditionally.
5008         (IMAXBEL): Likewise.
5009         (IUTF8): Likewise.
5010
5011 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5012
5013         * sysdeps/aarch64/libm-test-ulps: Update.
5014
5015 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
5016
5017         * README.tunables: Updated descriptions.
5018         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
5019         * scripts/gen-tunables.awk: Updated the code related to the
5020         commit.
5021
5022 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
5023
5024         * benchtests/Makefile (string-benchset): Add memcpy-random.
5025         * benchtests/bench-memcpy-random.c: New file.
5026
5027 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5028
5029         * stdio-common/printf.h (register_printf_modifier): Change the
5030         order of __wur and __THROW.
5031         (register_printf_type): Likewise.
5032
5033 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
5034
5035         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
5036         test_main ().
5037         (CMDLINE_PROCESS): Use function instead of defined macro.
5038         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
5039         <suppport/support.h> to use set_fortify_handler().
5040         * string/bug-envz1.c: Import support/test-driver.c instead of
5041         test-skeleton.c.
5042         * string/bug-strcoll2.c: Likewise.
5043         * string/bug-strtok1.c: Likewise.
5044         * string/stratcliff.c: Likewise.
5045         * string/test-ffs.c: Likewise.
5046         * string/test-memccpy.c: Likewise.
5047         * string/test-memchr.c: Likewise.
5048         * string/test-memcmp.c: Likewise.
5049         * string/test-memcpy.c: Likewise.
5050         * string/test-memmem.c: Likewise.
5051         * string/test-memmove.c: Likewise.
5052         * string/test-memrchr.c: Likewise.
5053         * string/test-memset.c: Likewise.
5054         * string/test-rawmemchr.c: Likewise.
5055         * string/test-strcasecmp.c: Likewise.
5056         * string/test-strcasestr.c: Likewise.
5057         * string/test-strcat.c: Likewise.
5058         * string/test-strchr.c: Likewise.
5059         * string/test-strcmp.c: Likewise.
5060         * string/test-strcpy.c: Likewise.
5061         * string/test-string.h: Likewise.
5062         * string/test-strlen.c: Likewise.
5063         * string/test-strncasecmp.c: Likewise.
5064         * string/test-strncat.c: Likewise.
5065         * string/test-strncmp.c: Likewise.
5066         * string/test-strncpy.c: Likewise.
5067         * string/test-strnlen.c: Likewise.
5068         * string/test-strpbrk.c: Likewise.
5069         * string/test-strrchr.c: Likewise.
5070         * string/test-strspn.c: Likewise.
5071         * string/test-strstr.c: Likewise.
5072         * string/tst-bswap.c: Likewise.
5073         * string/tst-cmp.c: Likewise.
5074         * string/tst-endian.c: Likewise.
5075         * string/tst-inlcall.c: Likewise.
5076         * string/tst-strcoll-overflow.c: Likewise.
5077         * string/tst-strfry.c: Likewise.
5078         * string/tst-strlen.c: Likewise.
5079         * string/tst-strtok.c: Likewise.
5080         * string/tst-strtok_r.c: Likewise.
5081         * string/tst-strxfrm.c: Likewise.
5082         * string/tst-strxfrm2.c: Likewise.
5083         * string/tst-svc.c: Likewise.
5084         * string/tst-svc2.c: Likewise.
5085
5086 2017-03-22  Zack Weinberg  <zackw@panix.com>
5087
5088         * stdio-common/bug25.c: Include stdlib.h.
5089         * support/tst-support_format_dns_packet.c: Include stdio.h,
5090         stdlib.h, and string.h.
5091         * support/tst-support_record_failure.c: Include string.h.
5092         * support/tst-support_record_failure-2.sh: Adjust line number
5093         expectations and correct a typo in an error message.
5094
5095 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5096
5097         [BZ #21258]
5098         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
5099         Define only if _dl_runtime_resolve is defined to
5100         _dl_runtime_resolve_sse_vex.
5101         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
5102         Fallthrough to _dl_runtime_resolve_sse_vex.
5103
5104 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
5105
5106         * INSTALL: Regenerated.
5107
5108 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
5109
5110         * config.h.in: Add LINK_OBSOLETE_NSL.
5111         * config.make.in: Add build-obsolete-nsl.
5112         * configure.ac: Add obsolete-nsl option.
5113         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
5114         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
5115         * include/rpcsvc/nislib.h: Likewise.
5116         * include/rpcsvc/ypclnt.h: Likewise.
5117         * manual/install.texi: Document --enable-obsolete-nsl.
5118         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
5119         * nis/nis_add.c: Replace libnsl_hidden_def with
5120         libnsl_hidden_nolink_def.
5121         * nis/nis_addmember.c: Likewise.
5122         * nis/nis_call.c: Likewise.
5123         * nis/nis_clone_obj.c: Likewise.
5124         * nis/nis_defaults.c: Likeise.
5125         * nis/nis_domain_of_r.c: Likewise.
5126         * nis/nis_error.c: Likewise.
5127         * nis/nis_file.c: Likewise.
5128         * nis/nis_free.c: Likewise.
5129         * nis_local_names.c: Likewise.
5130         * nis/nis_lookup.c: Likewise.
5131         * nis/nis_modify.c: Likewise.
5132         * nis/nis_print.c: Likewise.
5133         * nis/nis_remove.c: Likewise.
5134         * nis/nis_table.c: Likewise.
5135         * nis/nis_util.c: Likewise.
5136         * nis/nis_xdr.c: Likewise.
5137         * nis/yp_xdr.c: Likewise.
5138         * nis/ypclnt.c: Likewise.
5139         * nis/ypupdate_xdr.c: Likewise.
5140         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
5141         * nis/nis_clone_dir.c: Likewise.
5142         * nis/nis_clone_res.c: Likewise.
5143         * nis/nis_creategroup.c: Likewise.
5144         * nis/nis_destroygroup.c: Likewise.
5145         * nis/nis_domain_of.c: Likewise.
5146         * nis/nis_getservlist.c: Likewise.
5147         * nis/nis_ismember.c: Likewise.
5148         * nis/nis_mkdir.c: Likewise.
5149         * nis/nis_ping.c: Likewise.
5150         * nis/nis_print_group_entry.c: Likewise.
5151         * nis/nis_removemember.c: Likewise.
5152         * nis/nis_rmdir.c: Likewise.
5153         * nis/nis_server.c: Likewise.
5154         * nis/nis_subr.c: Likewise.
5155         * nis/nis_verifygroup.c: Likewise.
5156
5157 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
5158
5159         * malloc/tst-interpose-aux.c (check_for_allocations):
5160         Move compiler barrier before free.
5161
5162 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
5163
5164         [BZ #21279]
5165         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
5166         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
5167         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
5168         x86_64-x32-linux.
5169         (mq_attr.mq_maxmsg): Likewise.
5170         (mq_attr.mq_msgsize): Likewise.
5171         (mq_attr.mq_curmsgs): Likewise.
5172
5173         [BZ #21278]
5174         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
5175         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
5176         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
5177         mips-o32-linux.
5178
5179         [BZ #21268]
5180         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
5181         if [__USE_MISC]
5182         (NL3): Likewise.
5183
5184 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
5185
5186         [BZ #21275]
5187         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
5188         __stack to __stackbase.
5189         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
5190         checks so we can include defined(__ia64__) first.
5191
5192 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
5193
5194         * sysdeps/unix/sysv/linux/ttyname.h: New file.
5195         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
5196         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
5197         Call is_pty when the link does not exist or does not match, fail
5198         with ENODEV when it returns true.
5199         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
5200         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
5201         Call is_pty when the link does not exist or does not match, fail
5202         with ENODEV when it returns true.
5203
5204 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
5205
5206         [BZ #16437]
5207         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
5208         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
5209         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
5210         x86_64-x32-linux.
5211         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
5212         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
5213         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
5214
5215         [BZ #21261]
5216         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
5217         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
5218         names for all fields.
5219         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
5220         for jmp_buf field renaming.
5221         (_JMPBUF_UNWINDS_ADJ): Likewise.
5222
5223         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
5224         with allow-header.
5225
5226 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
5227
5228         * malloc/malloc.c (unlink): Add consistency check between size and
5229         next->prev->size, to further harden against 1-byte overflows.
5230
5231 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5232
5233         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
5234         CPU_FEATURES_CPU_P.
5235
5236 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
5237
5238         [BZ #21259]
5239         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
5240         unconditionally, not just for [__USE_MISC].
5241
5242         [BZ #17786]
5243         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
5244         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
5245         mips-o32-linux.
5246
5247         [BZ #21260]
5248         * sysdeps/unix/sysv/linux/alpha/Makefile
5249         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
5250         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
5251
5252         * conform/conformtest.pl ($cross): New variable.
5253         (--cross): New command-line option.
5254         (runtest): Skip test execution when cross-compiling.
5255         * conform/Makefile (conformtest-cross): New variable.
5256         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
5257         conformtest.pl.
5258
5259         * conform/conformtest.pl ($xfail_str): New variable.
5260         (--xfail=): New command-line option.
5261         (top level): Handle expectations starting xfail[cond]-.
5262         * conform/Makefile (conformtest-xfail): New variable.
5263         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
5264         conformtest.pl.
5265
5266 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
5267
5268         * conform/conformtest.pl: Use compilation instead of execution
5269         tests for testing values of constants and usability in #if.
5270
5271 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5272
5273         * math/auto-libm-test-in: Mark some catan and catanh as
5274         xfail-rounding:ibm128-libgcc.
5275         * math/auto-libm-test-out-catan: Regenerate.
5276         * math/auto-libm-test-out-catanh: Likewise.
5277
5278 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
5279
5280         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
5281         (__END_NAMESPACE_STD): Likewise.
5282         (__USING_NAMESPACE_STD): Likewise.
5283         (__BEGIN_NAMESPACE_C99): Likewise.
5284         (__END_NAMESPACE_C99): Likewise.
5285         (__USING_NAMESPACE_C99): Likewise.
5286         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
5287         undefine macro.
5288         (_Mdouble_END_NAMESPACE): Likewise.
5289         * ctype/ctype.h: Do not handle C++ namespaces.
5290         * libio/bits/stdio-ldbl.h: Likewise.
5291         * libio/stdio.h: Likewise.
5292         * locale/locale.h: Likewise.
5293         * math/bits/mathcalls.h: Likewise.
5294         * setjmp/setjmp.h: Likewise.
5295         * signal/signal.h: Likewise.
5296         * stdlib/bits/stdlib-float.h: Likewise.
5297         * stdlib/bits/stdlib-ldbl.h: Likewise.
5298         * stdlib/stdlib.h: Likewise.
5299         * string/string.h: Likewise.
5300         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
5301         * time/bits/types/clock_t.h: Likewise.
5302         * time/bits/types/struct_tm.h: Likewise.
5303         * time/bits/types/time_t.h: Likewise.
5304         * time/time.h: Likewise.
5305         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5306         * wcsmbs/uchar.h: Likewise.
5307         * wcsmbs/wchar.h: Likewise.
5308         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
5309         * wctype/wctype.h: Do not handle C++ namespaces.
5310         * scripts/begin-end-check.pl: Remove.
5311         * Makefile (installed-headers): Likewise.
5312         (tests-special): Do not add $(objpfx)begin-end-check.out.
5313         ($(objpfx)begin-end-check.out): Remove.
5314
5315 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
5316             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5317
5318         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
5319         (DL_PLATFORM_INIT): New define.
5320         (dl_platform_init): New function.
5321         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
5322         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
5323         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
5324         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
5325         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
5326
5327 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
5328
5329         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
5330         instead of PIC.
5331
5332 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
5333
5334         [BZ #21094]
5335         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
5336         24+24+24-bit pi for wider range of values around pi/2.
5337         * math/auto-libm-test-in: Add more tests of cos and tan.
5338         * math/auto-libm-test-out-cos: Regenerated.
5339         * math/auto-libm-test-out-tan: Likewise.
5340
5341 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
5342
5343         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
5344         (RTLD_START): Don't record stack end address in _dl_start_user.
5345
5346 2017-03-15  Alexey Neyman  <stilor@att.net>
5347
5348         [BZ #21088]
5349         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
5350         around definitions match those around use.
5351
5352 2017-03-15  Alexey Neyman  <stilor@att.net>
5353
5354         * configure.ac: Avoid empty subexpression in grep.
5355         * configure: Regenerate.
5356
5357 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5358
5359         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
5360         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
5361         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
5362         (test_wrp_rv): Fix format.
5363         (test_wrp_rv2): New macro.
5364         (do_test): Handle mlock return on 64 bits kernels with 32 bits
5365         binaries.
5366
5367 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
5368
5369         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
5370         Use a union when storing pointers.
5371         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
5372         cast result when passing to INIT_VEC_PTRS_LOOP.
5373         (VECTOR_WRAPPER_fFF_3): Likewise.
5374         (VECTOR_WRAPPER_fFF_4): Likewise.
5375
5376 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5377
5378         * include/bits/mathcalls-helper-functions.h: New file.
5379         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
5380         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
5381         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
5382         math/bits/mathcalls-helper-functions.h.
5383         * math/bits/mathcalls-helper-functions.h: New file.
5384         * math/math.h: Include bits/mathcalls-helper-functions.h for
5385         float, double, and long double.
5386
5387 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5388
5389         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
5390         instead of feraiseexcept.
5391
5392 2017-03-15  Florian Weimer  <fweimer@redhat.com>
5393
5394         [BZ #21243]
5395         * support/temp_file.c (support_delete_temp_files): Add comment
5396         about ignored errors.
5397
5398 2017-03-15  Florian Weimer  <fweimer@redhat.com>
5399
5400         [BZ #21244]
5401         * support/xclose.c: New file.
5402         * support/Makefile (libsupport-routines): Add xclose.
5403         * support/xunistd.h (xclose): Declare.
5404         * support/resolv_test.c (server_thread_tcp_client)
5405         (server_thread_tcp, make_server_sockets, resolv_test_start)
5406         (resolv_test_end): Call xclose instead of close.
5407         * support/support_enter_network_namespace.c
5408         (support_enter_network_namespace): Likewise.
5409         * support/support_run_diff.c (write_to_temp_file): Likewise.
5410
5411 2017-03-15  Florian Weimer  <fweimer@redhat.com>
5412
5413         * support/support_format_dns_packet.c (support_format_dns_packet):
5414         Handle CNAME records in the response.  Extract RDATA names from
5415         rdata, not the whole packet.  Check AAAA record length.
5416         * support/tst-support_format_dns_packet.c: New file.
5417         * support/Makefile (tests): Add tst-support_format_dns_packet.
5418         (tst-support_format_dns_packet): Link against libresolv.
5419
5420 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5421
5422         [BZ #21232]
5423         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
5424         posix_fadvise64 weak_alias for static build.
5425
5426 2017-03-14  Andreas Schwab  <schwab@suse.de>
5427
5428         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
5429         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
5430         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
5431         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
5432         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
5433         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
5434         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
5435         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
5436
5437 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5438
5439         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
5440         posix error code.
5441         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
5442
5443 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5444
5445         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
5446         no_isolate usage for SH.
5447
5448 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
5449
5450         [BZ #15105]
5451         [BZ #19463]
5452         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
5453         * inet/rcmd.c (rcmd_af): Likewise.
5454         * inet/rexec.c   (rexec_af): Likewise.
5455         * intl/dcigettext.c (_LIBC): Likewise.
5456         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
5457         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
5458         * locale/setlocale.c (setlocale): Likewise.
5459         * posix/spawn_faction_addopen.c
5460         (posix_spawn_file_actions_addopen): Likewise.
5461         * stdlib/putenv.c (putenv): Use __strndup.
5462         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
5463         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
5464         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
5465         (__Need_M_And_C) Remove define/undef.
5466         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
5467         (__malloc_and_calloc_defined): Remove define.
5468         * string/bits/string2.h (__strdup): Remove define.
5469         (strdup): Likewise.
5470         (__strndup): Likewise.
5471         (strndup): Likewise.
5472
5473 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
5474
5475         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
5476         macro.
5477         (IPV6_ADDR_PREFERENCES): Likewise.
5478         (IPV6_MINHOPCOUNT): Likewise.
5479         (IPV6_ORIGDSTADDR): Likewise.
5480         (IPV6_RECVORIGDSTADDR): Likewise.
5481         (IPV6_TRANSPARENT): Likewise.
5482         (IPV6_UNICAST_IF): Likewise.
5483         (IPV6_RECVFRAGSIZE): Likewise.
5484
5485 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
5486
5487         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
5488
5489 2017-03-12  Alexey Neyman <stilor@att.net>
5490
5491         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
5492         in R_SH_DIR32 case is always false when inlined from
5493         dl-conflict.c. Ifdef out to prevent GCC from insertin an
5494
5495 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
5496
5497         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5498         (__ASSUME_RECV_SYSCALL): Replace duplicate by
5499         __ASSUME_SEND_SYSCALL.
5500
5501 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
5502
5503         * sunrpc/Makefile: don't build and install rpcsvc header
5504         files, rpcgen and librpcsvc.a by default.
5505
5506 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
5507
5508         * math/auto-libm-test-out-catan: Regenerated.
5509         * math/auto-libm-test-out-catanh: Likewise.
5510         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5511
5512 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
5513
5514         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
5515         for long double with corrected test expectations.
5516
5517 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5518
5519         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
5520         Define.
5521         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
5522         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
5523         * sysdeps/unix/sysv/linux/nios2/sysdep.h
5524         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
5525         * sysdeps/unix/sysv/linux/tile/sysdep.h
5526         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
5527         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5528         (__ASSUME_RECV_SYSCALL): Define.
5529         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5530         (__ASSUME_RECV_SYSCALL): Likewise.
5531         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5532         (__ASSUME_RECV_SYSCALL): Likewise.
5533         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5534         (__ASSUME_RECV_SYSCALL): Likewise.
5535         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5536         (__ASSUME_RECV_SYSCALL): Likewise.
5537         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5538         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
5539         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5540         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5541         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5542         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5543         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
5544         auto-generation list.
5545         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
5546         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5547         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
5548         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5549         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5550         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
5551         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
5552         __ASSUME_SENDTO_SYSCALL.
5553         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
5554         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
5555         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
5556
5557         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
5558         auto-generation list.
5559         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
5560         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
5561         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5562         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5563         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5564         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5565         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5566         * sysdeps/unix/sysv/linux/kernel-features.h
5567         (__ASSUME_SENDTO_SYSCALL): Define by default.
5568         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5569         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
5570         __NR_sendto.
5571         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5572         (__ASSUME_SENDTO_SYSCALL): Likewise.
5573         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5574         (__ASSUME_SENDTO_SYSCALL): Likewise.
5575         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5576         (__ASSUME_SENDTO_SYSCALL): Remove definition.
5577         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5578         (__ASSUME_SENDTO_SYSCALL): Likewise.
5579         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
5580         (__ASSUME_SENDTO_SYSCALL): Likewise.
5581         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
5582
5583         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
5584         auto-generation list.
5585         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
5586         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5587         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5588         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5589         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5590         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5591         (__ASSUME_RECV_SYSCALL): New define.
5592         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5593         (__ASSUME_RECV_SYSCALL): Likewise.
5594         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5595         (__ASSUME_RECV_SYSCALL): Likewise.
5596         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5597         (__ASSUME_RECV_SYSCALL): Likewise.
5598         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5599         (__ASSUME_RECV_SYSCALL): Likewise.
5600         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5601         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
5602         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5603         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
5604         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5605         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
5606         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
5607         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
5608         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
5609         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
5610         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
5611         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
5612
5613         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
5614         auto-generation list.
5615         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
5616         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
5617         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5618         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5619         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5620         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5621         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5622         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5623         (__ASSUME_RECVFROM_SYSCALL): Define by default.
5624         * sysdeps/unix/sysv/linux/kernel-features.h
5625         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
5626         __NR_recvfrom.
5627         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5628         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5629         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5630         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5631         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5632         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
5633         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5634         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5635         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5636         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5637         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5638         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5639         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
5640
5641         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
5642         auto-generation list.
5643         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
5644         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
5645         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5646         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5647         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5648         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5649         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5650         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
5651         * sysdeps/unix/sysv/linux/kernel-features.h
5652         (__ASSUME_CONNECT_SYSCALL): Define.
5653         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5654         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
5655         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5656         (__ASSUME_CONNECT_SYSCALL): Likewise.
5657         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5658         (__ASSUME_CONNECT_SYSCALL): Likewise.
5659         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5660         (__ASSUME_CONNECT_SYSCALL): Likewise.
5661
5662         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
5663         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
5664         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
5665         auto-generation list.
5666         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
5667         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
5668         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5669         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5670         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5671         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5672         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5673         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5674         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
5675         (__ASSUME_ACCEPT_SYSCALL): Undefine.
5676         * sysdeps/unix/sysv/linux/kernel-features.h
5677         (__ASSUME_ACCEPT_SYSCALL): New define.
5678         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5679         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
5680         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
5681         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5682         (__ASSUME_ACCEPT_SYSCALL): Define.
5683         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5684         (__ASSUME_ACCEPT_SYSCALL): Undefine.
5685         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5686         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
5687         (__ASSUME_ACCEPT_SYSCALL): Undefine.
5688         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5689         (__ASSUME_ACCEPT_SYSCALL): Undefine.
5690         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5691         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
5692
5693 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
5694             Zack Weinberg  <zackw@panix.com>
5695
5696         * posix/test-errno.c: New file.
5697         * posix/Makefile (tests): Add test-errno.
5698         * sysdeps/unix/sysv/linux/test-errno.c: New file.
5699         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
5700
5701 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
5702
5703         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5704
5705 2017-03-07  Florian Weimer  <fweimer@redhat.com>
5706
5707         * time/tzset.c (compute_offset): Open-code min macro.
5708         (min, max, sign): Remove.
5709
5710 2017-03-07  Florian Weimer  <fweimer@redhat.com>
5711
5712         [BZ #15576]
5713         Remove TZNAME_MAX limit from sysconf.
5714         * include/time.h (__tzname_cur_max, __tzname_max): Remove
5715         declaration.
5716         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
5717         compute_tzname_max.
5718         (compute_tzname_max): Remove.
5719         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
5720         (update_vars): Do not update __tzname_cur_max.
5721         (tzset_internal): Remove argument.
5722         (__tzset): Adjust call to tzset_internal.
5723         (__tz_convert): Likewise.
5724
5725         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
5726         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
5727         * manual/conf.texi (Sysconf Definition): Update comment.
5728
5729 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5730
5731         [BZ #21209]
5732         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
5733         AT_SECURE processes.
5734         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
5735         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
5736         (test_child): Likewise.
5737         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
5738
5739 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5740
5741         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
5742
5743 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
5744
5745         * sysdeps/s390/atomic-machine.h
5746         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
5747         (__arch_compare_and_exchange_val_8_acq,
5748         __arch_compare_and_exchange_val_16_acq,
5749         __arch_compare_and_exchange_val_32_acq,
5750         __arch_compare_and_exchange_val_64_acq):
5751         Delete macro.
5752         (atomic_compare_and_exchange_val_acq,
5753         atomic_compare_and_exchange_val_rel,
5754         atomic_compare_and_exchange_bool_acq,
5755         catomic_compare_and_exchange_bool_acq,
5756         atomic_exchange_acq, atomic_exchange_rel,
5757         atomic_exchange_and_add_acq,
5758         atomic_exchange_and_add_rel,
5759         catomic_exchange_and_add, atomic_or_val,
5760         atomic_or, catomic_or, atomic_bit_test_set,
5761         atomic_and_val, atomic_and, catomic_and):
5762         Define macros with help of C11 atomic builtins.
5763
5764 2017-03-03  Justus Winter <justus@gnupg.org>
5765
5766         * sysdeps/mach/hurd/ftruncate64.c: New file.
5767         * sysdeps/mach/hurd/truncate64.c: Likewise.
5768
5769 2017-03-03  Florian Weimer  <fweimer@redhat.com>
5770
5771         * time/tzfile.c (NOID): Do not define.
5772         * time/tzset.c (NOID): Likewise.
5773
5774 2017-03-03  Florian Weimer  <fweimer@redhat.com>
5775
5776         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
5777
5778 2017-03-02  Florian Weimer  <fweimer@redhat.com>
5779
5780         * elf/get-dynamic-info.h: Remove header file inclusion guard.
5781
5782 2017-03-02  Florian Weimer  <fweimer@redhat.com>
5783
5784         [BZ #21015]
5785         * manual/install.texi (Configuring and compiling): Document
5786         --enable-bind-now.
5787         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
5788         (build-shlib-helper): Use $(LDFLAGS-lib.so).
5789         (format.lds): Likewise.
5790         [bind-now] (LDFLAGS-c.so): Remove.
5791         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
5792         be R_X86_64_GLOB_DAT.
5793         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
5794         relocation can be R_386_GLOB_DAT.
5795         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
5796         relocaiton can be R_ALPHA_GLOB_DAT.
5797         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
5798
5799 2017-03-01  Zack Weinberg  <zackw@panix.com>
5800
5801         * include/libc-pointer-arith.h: New file.  Define
5802         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
5803         PTR_ALIGN_DOWN here.
5804         * include/libc-internal.h: Definitions of above macros
5805         moved from here.  Don't include libc-diag.h anymore either.
5806         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
5807         Don't include libc-internal.h.
5808
5809         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
5810         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
5811         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
5812         * string/strcoll_l.c, sysdeps/nacl/brk.c
5813         * sysdeps/unix/clock_settime.c
5814         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
5815         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
5816         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
5817         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
5818         Don't include libc-internal.h.
5819
5820         * elf/get-dynamic-info.h, iconv/loop.c
5821         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
5822         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
5823         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
5824         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
5825         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
5826         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
5827         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
5828         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
5829         * sysdeps/ieee754/ldbl-128/k_tanl.c
5830         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
5831         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
5832         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
5833         Include libc-diag.h instead of libc-internal.h.
5834
5835         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
5836         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
5837         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
5838         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
5839         * sysdeps/unix/sysv/linux/spawni.c
5840         * sysdeps/x86_64/nptl/tls.h:
5841         Include libc-pointer-arith.h instead of libc-internal.h.
5842
5843         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
5844         * sysdeps/x86_64/atomic-machine.h:
5845         Add multiple include guard.
5846
5847         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
5848         * string/strcasestr.c: No need to include config.h.
5849         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
5850         sys/auxv.h. Don't include sysdep.h.
5851         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
5852
5853         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
5854         DL_LOOKUP_ADDRESS.
5855         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
5856         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
5857         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
5858         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
5859         of ARTIFICIAL_LIMIT.
5860         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
5861         declaration of __clone2.
5862
5863 2017-02-28  Florian Weimer  <fweimer@redhat.com>
5864
5865         * scripts/backport-support.sh (latest_commit): New file.
5866
5867 2017-02-28  Florian Weimer  <fweimer@redhat.com>
5868
5869         [BZ #20257]
5870         * inet/Makefile (routines): Add deadline.
5871         (tests-static): Add tst-deadline.
5872         * inet/net-internal.h (struct deadline_current_time)
5873         (__deadline_current_time, struct deadline, __deadline_is_infinite)
5874         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
5875         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
5876         * inet/deadline.c: New file.
5877         * inet/tst-deadline.c: Likewise.
5878         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
5879         tst-udp-timeout, tst-udp-garbage.
5880         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
5881         explicitly.
5882         (tst-udp-garbage): Likewise.  Also link against thread library.
5883         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
5884         struct layout is part of the ABI.
5885         (clntudp_call): Rework timeout handling.
5886         * sunrpc/tst-udp-garbage.c: New file.
5887         * sunrpc/tst-udp-nonblocking.c: Likewise.
5888         * sunrpc/tst-udp-timeout.c: Likewise.
5889
5890 2017-02-28  Florian Weimer  <fweimer@redhat.com>
5891
5892         [BZ #5010]
5893         * sunrpc/svc.c (svc_is_mapped): Remove.
5894         (svc_unregister): Obtain mapped status while the service is still
5895         registered.
5896         * sunrpc/Makefile [have-thread-library] (tests): Add
5897         tst-svc_register.
5898         (tst-svc_register): Link against libc.so explicitly and the thread
5899         library.
5900         * sunrpc/tst-svc_register.c: New file.
5901
5902 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
5903
5904         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
5905         * sysdeps/pthread/bits/sigthread.h: Likewise.
5906
5907 2017-02-27  Florian Weimer  <fweimer@redhat.com>
5908
5909         [BZ #21115]
5910         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
5911         * sunrpc/Makefile (tests): Add tst-udp-error.
5912         (tst-udp-error): Link against libc.so explicitly.
5913         * sunrpc/tst-udp-error: New file.
5914
5915 2017-02-25  Zack Weinberg  <zackw@panix.com>
5916
5917         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
5918         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
5919
5920         * sysdeps/generic/math_ldbl.h
5921         * sysdeps/ia64/fpu/math_ldbl.h
5922         * sysdeps/ieee754/ldbl-128/math_ldbl.h
5923         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5924         * sysdeps/ieee754/ldbl-96/math_ldbl.h
5925         * sysdeps/powerpc/fpu/math_ldbl.h
5926         * sysdeps/x86_64/fpu/math_ldbl.h:
5927         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
5928         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
5929         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
5930         Add copyright notices.
5931
5932         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5933         Don't use EXTRACT_WORDS64.
5934
5935         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
5936         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
5937         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
5938         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
5939         Include math_ldbl.h, not math_private.h.
5940
5941 2017-02-25  Zack Weinberg  <zackw@panix.com>
5942
5943         * include/libc-diag.h: New file.  Define ignore_value,
5944         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
5945         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
5946
5947         * include/libc-internal.h: Definitions of above macros moved from
5948         here.  Include libc-diag.h.  Add copyright notice.
5949
5950         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
5951         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
5952         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
5953         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
5954         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
5955         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
5956         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
5957         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
5958         Include libc-diag.h instead of libc-internal.h.
5959
5960         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
5961         call to unsetenv (NULL).
5962         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
5963         call to pthread_mutexattr_destroy (NULL).
5964
5965 2017-02-25  Zack Weinberg  <zackw@panix.com>
5966
5967         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
5968         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
5969         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
5970         gets was removed from C++ in C++14.
5971         * include/stdio.h: Remove redundant declaration of gets.
5972         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
5973         be declared, since we are testing it.
5974         * stdio-common/Makefile (tst-gets.c): Compile with
5975         -Wno-deprecated-declarations.
5976         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
5977         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
5978         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
5979         Compile with -Wno-deprecated-declarations.
5980
5981 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5982
5983         * math/libm-test-support.c (check_ulp): Use LIT() around literal
5984         numbers.
5985
5986 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5987
5988         * resolv/tst-resolv-qtypes.c (domain):
5989         Change type to const pointer to const char.
5990
5991 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
5992
5993         * math/Makefile (libm-tests-generated): Remove variable.
5994         (libm-tests-base-normal): New variable.
5995         (libm-tests-base-finite): Likewise.
5996         (libm-tests-base-inline): Likewise.
5997         (libm-tests-base): Likewise.
5998         (libm-tests-normal): Likewise.
5999         (libm-tests-finite): Likewise.
6000         (libm-tests-inline): Likewise.
6001         (libm-tests-vector): Likewise.
6002         (libm-tests): Define in terms of these new variables.
6003         (libm-tests-for-type): New variable.
6004         (libm-tests.o): Move definition.
6005         (tests): Move addition of $(libm-tests).
6006         (generated): Update for new and removed libm test files.
6007         ($(objpfx)libm-test.c): Remove target.
6008         ($(objpfx)libm-have-vector-test.h): Likewise.
6009         (CFLAGS-test-double-vlen2.c): Remove variable.
6010         (CFLAGS-test-double-vlen4.c): Likewise.
6011         (CFLAGS-test-double-vlen8.c): Likewise.
6012         (CFLAGS-test-float-vlen4.c): Likewise.
6013         (CFLAGS-test-float-vlen8.c): Likewise.
6014         (CFLAGS-test-float-vlen16.c): Likewise.
6015         (CFLAGS-test-float.c): Likewise.
6016         (CFLAGS-test-float-finite.c): Likewise.
6017         (CFLAGS-libm-test-support-float.c): Likewise.
6018         (CFLAGS-test-double.c): Likewise.
6019         (CFLAGS-test-double-finite.c): Likewise.
6020         (CFLAGS-libm-test-support-double.c): Likewise.
6021         (CFLAGS-test-ldouble.c): Likewise.
6022         (CFLAGS-test-ldouble-finite.c): Likewise.
6023         (CFLAGS-libm-test-support-ldouble.c): Likewise.
6024         (libm-test-inline-cflags): New variable.
6025         (CFLAGS-test-ifloat.c): Remove variable.
6026         (CFLAGS-test-idouble.c): Likewise.
6027         (CFLAGS-test-ildouble.c): Likewise.
6028         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
6029         dependencies.
6030         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
6031         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
6032         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
6033         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
6034         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
6035         Likewise.
6036         (dependencies on libm-test-support-*.o): Remove.
6037         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
6038         rules using iterators.
6039         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
6040         Likewise.
6041         ($(objpfx)libm-test-support-$(o).o): Likewise.
6042         ($(addprefix $(objpfx),$(filter-out $(tests-static)
6043         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
6044         instead.
6045         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
6046         define rule instead.
6047         * math/README.libm-test: Update.
6048         * math/libm-test-acos.inc: Include libm-test-driver.c.
6049         (do_test): New function.
6050         * math/libm-test-acosh.inc: Include libm-test-driver.c.
6051         (do_test): New function.
6052         * math/libm-test-asin.inc: Include libm-test-driver.c.
6053         (do_test): New function.
6054         * math/libm-test-asinh.inc: Include libm-test-driver.c.
6055         (do_test): New function.
6056         * math/libm-test-atan.inc: Include libm-test-driver.c.
6057         (do_test): New function.
6058         * math/libm-test-atan2.inc: Include libm-test-driver.c.
6059         (do_test): New function.
6060         * math/libm-test-atanh.inc: Include libm-test-driver.c.
6061         (do_test): New function.
6062         * math/libm-test-cabs.inc: Include libm-test-driver.c.
6063         (do_test): New function.
6064         * math/libm-test-cacos.inc: Include libm-test-driver.c.
6065         (do_test): New function.
6066         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
6067         (do_test): New function.
6068         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
6069         (do_test): New function.
6070         * math/libm-test-carg.inc: Include libm-test-driver.c.
6071         (do_test): New function.
6072         * math/libm-test-casin.inc: Include libm-test-driver.c.
6073         (do_test): New function.
6074         * math/libm-test-casinh.inc: Include libm-test-driver.c.
6075         (do_test): New function.
6076         * math/libm-test-catan.inc: Include libm-test-driver.c.
6077         (do_test): New function.
6078         * math/libm-test-catanh.inc: Include libm-test-driver.c.
6079         (do_test): New function.
6080         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
6081         (do_test): New function.
6082         * math/libm-test-ccos.inc: Include libm-test-driver.c.
6083         (do_test): New function.
6084         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
6085         (do_test): New function.
6086         * math/libm-test-ceil.inc: Include libm-test-driver.c.
6087         (do_test): New function.
6088         * math/libm-test-cexp.inc: Include libm-test-driver.c.
6089         (do_test): New function.
6090         * math/libm-test-cimag.inc: Include libm-test-driver.c.
6091         (do_test): New function.
6092         * math/libm-test-clog.inc: Include libm-test-driver.c.
6093         (do_test): New function.
6094         * math/libm-test-clog10.inc: Include libm-test-driver.c.
6095         (do_test): New function.
6096         * math/libm-test-conj.inc: Include libm-test-driver.c.
6097         (do_test): New function.
6098         * math/libm-test-copysign.inc: Include libm-test-driver.c.
6099         (do_test): New function.
6100         * math/libm-test-cos.inc: Include libm-test-driver.c.
6101         (do_test): New function.
6102         * math/libm-test-cosh.inc: Include libm-test-driver.c.
6103         (do_test): New function.
6104         * math/libm-test-cpow.inc: Include libm-test-driver.c.
6105         (do_test): New function.
6106         * math/libm-test-cproj.inc: Include libm-test-driver.c.
6107         (do_test): New function.
6108         * math/libm-test-creal.inc: Include libm-test-driver.c.
6109         (do_test): New function.
6110         * math/libm-test-csin.inc: Include libm-test-driver.c.
6111         (do_test): New function.
6112         * math/libm-test-csinh.inc: Include libm-test-driver.c.
6113         (do_test): New function.
6114         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
6115         (do_test): New function.
6116         * math/libm-test-ctan.inc: Include libm-test-driver.c.
6117         (do_test): New function.
6118         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
6119         (do_test): New function.
6120         * math/libm-test-erf.inc: Include libm-test-driver.c.
6121         (do_test): New function.
6122         * math/libm-test-erfc.inc: Include libm-test-driver.c.
6123         (do_test): New function.
6124         * math/libm-test-exp.inc: Include libm-test-driver.c.
6125         (do_test): New function.
6126         * math/libm-test-exp10.inc: Include libm-test-driver.c.
6127         (do_test): New function.
6128         * math/libm-test-exp2.inc: Include libm-test-driver.c.
6129         (do_test): New function.
6130         * math/libm-test-expm1.inc: Include libm-test-driver.c.
6131         (do_test): New function.
6132         * math/libm-test-fabs.inc: Include libm-test-driver.c.
6133         (do_test): New function.
6134         * math/libm-test-fdim.inc: Include libm-test-driver.c.
6135         (do_test): New function.
6136         * math/libm-test-floor.inc: Include libm-test-driver.c.
6137         (do_test): New function.
6138         * math/libm-test-fma.inc: Include libm-test-driver.c.
6139         (do_test): New function.
6140         * math/libm-test-fmax.inc: Include libm-test-driver.c.
6141         (do_test): New function.
6142         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
6143         (do_test): New function.
6144         * math/libm-test-fmin.inc: Include libm-test-driver.c.
6145         (do_test): New function.
6146         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
6147         (do_test): New function.
6148         * math/libm-test-fmod.inc: Include libm-test-driver.c.
6149         (do_test): New function.
6150         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
6151         (do_test): New function.
6152         * math/libm-test-frexp.inc: Include libm-test-driver.c.
6153         (do_test): New function.
6154         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
6155         (do_test): New function.
6156         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
6157         (do_test): New function.
6158         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
6159         (do_test): New function.
6160         * math/libm-test-hypot.inc: Include libm-test-driver.c.
6161         (do_test): New function.
6162         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
6163         (do_test): New function.
6164         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
6165         (do_test): New function.
6166         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
6167         (do_test): New function.
6168         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
6169         (do_test): New function.
6170         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
6171         (do_test): New function.
6172         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
6173         (do_test): New function.
6174         * math/libm-test-isinf.inc: Include libm-test-driver.c.
6175         (do_test): New function.
6176         * math/libm-test-isless.inc: Include libm-test-driver.c.
6177         (do_test): New function.
6178         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
6179         (do_test): New function.
6180         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
6181         (do_test): New function.
6182         * math/libm-test-isnan.inc: Include libm-test-driver.c.
6183         (do_test): New function.
6184         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
6185         (do_test): New function.
6186         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
6187         (do_test): New function.
6188         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
6189         (do_test): New function.
6190         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
6191         (do_test): New function.
6192         * math/libm-test-iszero.inc: Include libm-test-driver.c.
6193         (do_test): New function.
6194         * math/libm-test-j0.inc: Include libm-test-driver.c.
6195         (do_test): New function.
6196         * math/libm-test-j1.inc: Include libm-test-driver.c.
6197         (do_test): New function.
6198         * math/libm-test-jn.inc: Include libm-test-driver.c.
6199         (do_test): New function.
6200         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
6201         (do_test): New function.
6202         * math/libm-test-llogb.inc: Include libm-test-driver.c.
6203         (do_test): New function.
6204         * math/libm-test-llrint.inc: Include libm-test-driver.c.
6205         (do_test): New function.
6206         * math/libm-test-llround.inc: Include libm-test-driver.c.
6207         (do_test): New function.
6208         * math/libm-test-log.inc: Include libm-test-driver.c.
6209         (do_test): New function.
6210         * math/libm-test-log10.inc: Include libm-test-driver.c.
6211         (do_test): New function.
6212         * math/libm-test-log1p.inc: Include libm-test-driver.c.
6213         (do_test): New function.
6214         * math/libm-test-log2.inc: Include libm-test-driver.c.
6215         (do_test): New function.
6216         * math/libm-test-logb.inc: Include libm-test-driver.c.
6217         (do_test): New function.
6218         * math/libm-test-lrint.inc: Include libm-test-driver.c.
6219         (do_test): New function.
6220         * math/libm-test-lround.inc: Include libm-test-driver.c.
6221         (do_test): New function.
6222         * math/libm-test-modf.inc: Include libm-test-driver.c.
6223         (do_test): New function.
6224         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
6225         (do_test): New function.
6226         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
6227         (do_test): New function.
6228         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
6229         (do_test): New function.
6230         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
6231         (do_test): New function.
6232         * math/libm-test-nextup.inc: Include libm-test-driver.c.
6233         (do_test): New function.
6234         * math/libm-test-pow.inc: Include libm-test-driver.c.
6235         (do_test): New function.
6236         * math/libm-test-remainder.inc: Include libm-test-driver.c.
6237         (do_test): New function.
6238         * math/libm-test-remquo.inc: Include libm-test-driver.c.
6239         (do_test): New function.
6240         * math/libm-test-rint.inc: Include libm-test-driver.c.
6241         (do_test): New function.
6242         * math/libm-test-round.inc: Include libm-test-driver.c.
6243         (do_test): New function.
6244         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
6245         (do_test): New function.
6246         * math/libm-test-scalb.inc: Include libm-test-driver.c.
6247         (do_test): New function.
6248         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
6249         (do_test): New function.
6250         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
6251         (do_test): New function.
6252         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
6253         (do_test): New function.
6254         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
6255         (do_test): New function.
6256         * math/libm-test-signbit.inc: Include libm-test-driver.c.
6257         (do_test): New function.
6258         * math/libm-test-significand.inc: Include libm-test-driver.c.
6259         (do_test): New function.
6260         * math/libm-test-sin.inc: Include libm-test-driver.c.
6261         (do_test): New function.
6262         * math/libm-test-sincos.inc: Include libm-test-driver.c.
6263         (do_test): New function.
6264         * math/libm-test-sinh.inc: Include libm-test-driver.c.
6265         (do_test): New function.
6266         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
6267         (do_test): New function.
6268         * math/libm-test-tan.inc: Include libm-test-driver.c.
6269         (do_test): New function.
6270         * math/libm-test-tanh.inc: Include libm-test-driver.c.
6271         (do_test): New function.
6272         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
6273         (do_test): New function.
6274         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
6275         (do_test): New function.
6276         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
6277         (do_test): New function.
6278         * math/libm-test-trunc.inc: Include libm-test-driver.c.
6279         (do_test): New function.
6280         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
6281         (do_test): New function.
6282         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
6283         (do_test): New function.
6284         * math/libm-test-y0.inc: Include libm-test-driver.c.
6285         (do_test): New function.
6286         * math/libm-test-y1.inc: Include libm-test-driver.c.
6287         (do_test): New function.
6288         * math/libm-test-yn.inc: Include libm-test-driver.c.
6289         (do_test): New function.
6290         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
6291         (HAVE_VECTOR): Remove macro.
6292         (START): Do not call HAVE_VECTOR.
6293         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
6294         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
6295         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
6296         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
6297         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
6298         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
6299         * math/test-math-vector.h (FUNC_TEST): New macro.
6300         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
6301         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
6302         (double-vlen4-funcs): Likewise.
6303         (double-vlen4-avx2-funcs): Likewise.
6304         (double-vlen8-funcs): Likewise.
6305         (float-vlen4-funcs): Likewise.
6306         (float-vlen8-funcs): Likewise.
6307         (float-vlen8-avx2-funcs): Likewise.
6308         (float-vlen16-funcs): Likewise.
6309         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
6310         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
6311         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
6312         macro.
6313         (TEST_VECTOR_sin): Likewise.
6314         (TEST_VECTOR_sincos): Likewise.
6315         (TEST_VECTOR_log): Likewise.
6316         (TEST_VECTOR_exp): Likewise.
6317         (TEST_VECTOR_pow): Likewise.
6318         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
6319         Likewise.
6320         (TEST_VECTOR_sin): Likewise.
6321         (TEST_VECTOR_sincos): Likewise.
6322         (TEST_VECTOR_log): Likewise.
6323         (TEST_VECTOR_exp): Likewise.
6324         (TEST_VECTOR_pow): Likewise.
6325         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
6326         Likewise.
6327         (TEST_VECTOR_sinf): Likewise.
6328         (TEST_VECTOR_sincosf): Likewise.
6329         (TEST_VECTOR_logf): Likewise.
6330         (TEST_VECTOR_expf): Likewise.
6331         (TEST_VECTOR_powf): Likewise.
6332         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
6333         Likewise.
6334         (TEST_VECTOR_sinf): Likewise.
6335         (TEST_VECTOR_sincosf): Likewise.
6336         (TEST_VECTOR_logf): Likewise.
6337         (TEST_VECTOR_expf): Likewise.
6338         (TEST_VECTOR_powf): Likewise.
6339         * math/gen-libm-have-vector-test.sh: Remove file.
6340         * math/libm-test.inc: Likewise.
6341         * math/libm-test-support-double.c: Likewise.
6342         * math/libm-test-support-float.c: Likewise.
6343         * math/libm-test-support-ldouble.c: Likewise.
6344         * math/test-double-finite.c: Likewise.: Likewise.
6345         * math/test-double.c: Likewise.
6346         * math/test-float-finite.c: Likewise.
6347         * math/test-float.c: Likewise.
6348         * math/test-idouble.c: Likewise.
6349         * math/test-ifloat.c: Likewise.
6350         * math/test-ildouble.c: Likewise.
6351         * math/test-ldouble-finite.c: Likewise.
6352         * math/test-ldouble.c: Likewise.
6353         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
6354         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
6355         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
6356         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
6357         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
6358         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
6359         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
6360         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
6361         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
6362         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
6363
6364 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6365            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6366
6367         * math/Makefile: Add wrappers to gen-libm-calls.
6368         * math/w_acos_template.c: New file.
6369         * math/w_acosh_template.c: Likewise.
6370         * math/w_asin_template.c: Likewise.
6371         * math/w_atan2_template.c: Likewise.
6372         * math/w_atanh_template.c: Likewise.
6373         * math/w_cosh_template.c: Likewise.
6374         * math/w_exp10_template.c: Likewise.
6375         * math/w_exp2_template.c: Likewise.
6376         * math/w_exp_template.c: Likewise.
6377         * math/w_fmod_template.c: Likewise.
6378         * math/w_hypot_template.c: Likewise.
6379         * math/w_j0_template.c: Likewise.
6380         * math/w_j1_template.c: Likewise.
6381         * math/w_jn_template.c: Likewise.
6382         * math/w_lgamma_r_template.c: Likewise.
6383         * math/w_lgamma_template.c: Likewise.
6384         * math/w_log10_template.c: Likewise.
6385         * math/w_log2_template.c: Likewise.
6386         * math/w_log_template.c: Likewise.
6387         * math/w_pow_template.c: Likewise.
6388         * math/w_remainder_template.c: Likewise.
6389         * math/w_sinh_template.c: Likewise.
6390         * math/w_sqrt_template.c: Likewise.
6391         * math/w_tgamma_template.c: Likewise.: Likewise.
6392         * sysdeps/generic/math-type-macros-double.h
6393         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
6394         the new wrappers.
6395         * sysdeps/generic/math-type-macros-float.h: Likewise.
6396         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
6397
6398 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
6399
6400         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
6401         New enum constant and macro.
6402
6403         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6404         kernel version to 4.10.
6405
6406 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
6407
6408         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
6409
6410 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6411
6412         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6413
6414 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
6415
6416         * sysdeps/powerpc/tst-set_ppr.c: New file.
6417         Implement test cases for __ppc_set_ppr_* functions.
6418         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
6419         in the list of tests.
6420
6421 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
6422
6423         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
6424         instead of test-skeleton.c.
6425         (do_test): Replaced pthread_create and pthread_join with
6426         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
6427         Removed unneeded status variable.
6428         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
6429         instead of test-skeleton.c.
6430         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
6431
6432 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
6433
6434         [BZ #20313]
6435         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6436         201605L, for Unicode 9.
6437
6438 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
6439
6440         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
6441         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6442         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6443         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6444         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
6445         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6446
6447 2017-02-19  Zack Weinberg  <zackw@panix.com>
6448
6449         * rt/tst-mqueue4.c: Include stdint.h.
6450
6451 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
6452
6453         * sysdeps/arm/libm-test-ulps: Update.
6454         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6455         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6456         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6457
6458 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6459
6460         [BZ #21029]
6461         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
6462         * sysdeps/unix/sysv/linux/i386/Makefile
6463         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
6464         (uses-6-syscall-arguments): Remove.
6465         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
6466         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
6467         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
6468         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
6469         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
6470         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
6471         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
6472         [$(subdir) = misc] (cflags-pselect.o): Likewise.
6473         [$(subdir) = misc] (cflags-pselect.os): Likewise.
6474         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
6475         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
6476         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
6477         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
6478         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
6479         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
6480         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
6481         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
6482         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
6483         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
6484         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
6485         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
6486         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
6487         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
6488         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
6489         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
6490         Likewise.
6491         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
6492         Likewise.
6493         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
6494         Likewise.
6495         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
6496         Likewise.
6497         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
6498         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
6499         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
6500         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
6501         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
6502         ebp on inline assembly.
6503         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
6504         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
6505         Set if CAN_USE_REGISTER_ASM_EBP is set.
6506
6507 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
6508
6509         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
6510         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
6511
6512 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
6513
6514         * math/auto-libm-test-in: Add tests of catan and catanh.
6515         * math/auto-libm-test-out-catan: New generated file.
6516         * math/auto-libm-test-out-catanh: Likewise.
6517         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
6518         Move tests with finite inputs, except divide-by-zero cases, to
6519         auto-libm-test-in.
6520         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
6521         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
6522         (libm-test-funcs-noauto): Remove catan and catanh.
6523         * sysdeps/i386/fpu/libm-test-ulps: Update.
6524         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6526
6527         * math/auto-libm-test-in: Add tests of casin and casinh.
6528         * math/auto-libm-test-out-casin: New generated file.
6529         * math/auto-libm-test-out-casinh: Likewise.
6530         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
6531         Move tests with finite inputs to auto-libm-test-in.
6532         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
6533         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
6534         (libm-test-funcs-noauto): Remove casin and casinh.
6535         * sysdeps/i386/fpu/libm-test-ulps: Update.
6536         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6538
6539         * math/auto-libm-test-in: Add tests of cacos and cacosh.
6540         * math/auto-libm-test-out-cacos: New generated file.
6541         * math/auto-libm-test-out-cacosh: Likewise.
6542         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
6543         Move tests with finite inputs to auto-libm-test-in.
6544         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
6545         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
6546         (libm-test-funcs-noauto): Remove cacos and cacosh.
6547         * sysdeps/i386/fpu/libm-test-ulps: Update.
6548         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6550
6551         Revert:
6552         2017-02-16  Zack Weinberg  <zackw@panix.com>
6553
6554         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
6555         Don't include init-arch.h.
6556         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
6557         Don't include init-arch.h.
6558
6559 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6560
6561         [BZ #21171]
6562         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
6563         +Inf and raise divide-by-zero when x is negative.
6564         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
6565         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
6566         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
6567         -Inf and raise divide-by-zero when x = +-0.
6568         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
6569         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
6570         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
6571         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
6572         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
6573         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
6574         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
6575
6576 2017-02-16  Zack Weinberg  <zackw@panix.com>
6577
6578         * scripts/build-many-glibcs.py (bot_build_mail): If the
6579         bot_config does not contain all of the necessary email-
6580         related settings, just print a warning and continue.
6581
6582 2017-02-16  Zack Weinberg  <zackw@panix.com>
6583
6584         * crypt/md5.h: Test _LIBC with #if defined, not #if.
6585         * dirent/opendir-tst1.c: Include sys/stat.h.
6586         * dirent/tst-fdopendir.c: Include sys/stat.h.
6587         * dirent/tst-fdopendir2.c: Include stdlib.h.
6588         * dirent/tst-scandir.c: Include stdbool.h.
6589         * elf/tst-auditmod1.c: Include link.h and stddef.h.
6590         * elf/tst-tls15.c: Include stdlib.h.
6591         * elf/tst-tls16.c: Include stdlib.h.
6592         * elf/tst-tls17.c: Include stdlib.h.
6593         * elf/tst-tls18.c: Include stdlib.h.
6594         * iconv/tst-iconv6.c: Include endian.h.
6595         * iconvdata/bug-iconv11.c: Include limits.h.
6596         * io/test-utime.c: Include stdint.h.
6597         * io/tst-faccessat.c: Include sys/stat.h.
6598         * io/tst-fchmodat.c: Include sys/stat.h.
6599         * io/tst-fchownat.c: Include sys/stat.h.
6600         * io/tst-fstatat.c: Include sys/stat.h.
6601         * io/tst-futimesat.c: Include sys/stat.h.
6602         * io/tst-linkat.c: Include sys/stat.h.
6603         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
6604         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
6605         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
6606         * io/tst-openat.c: Include stdbool.h.
6607         * io/tst-readlinkat.c: Include sys/stat.h.
6608         * io/tst-renameat.c: Include sys/stat.h.
6609         * io/tst-symlinkat.c: Include sys/stat.h.
6610         * io/tst-unlinkat.c: Include stdbool.h.
6611         * libio/bug-memstream1.c: Include stdlib.h.
6612         * libio/bug-wmemstream1.c: Include stdlib.h.
6613         * libio/tst-fwrite-error.c: Include stdlib.h.
6614         * libio/tst-memstream1.c: Include stdlib.h.
6615         * libio/tst-memstream2.c: Include stdlib.h.
6616         * libio/tst-memstream3.c: Include stdlib.h.
6617         * malloc/tst-interpose-aux.c: Include stdint.h.
6618         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
6619         * nptl/tst-basic7.c: Include limits.h.
6620         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
6621         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
6622         * nptl/tst-cancel4_1.c: Include stddef.h.
6623         * nptl/tst-cancel4_2.c: Include stddef.h.
6624         * nptl/tst-cond16.c: Include limits.h.
6625         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
6626         * nptl/tst-cond18.c: Include limits.h.
6627         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
6628         * nptl/tst-cond4.c: Include stdint.h.
6629         * nptl/tst-cond6.c: Include stdint.h.
6630         * nptl/tst-stack2.c: Include limits.h.
6631         * nptl/tst-stackguard1.c: Include stddef.h.
6632         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
6633         * nptl/tst-tls4moda.c: Include stddef.h.
6634         Don't include stdio.h, unistd.h, or tls.h.
6635         * nptl/tst-tls4modb.c: Include stddef.h.
6636         Don't include stdio.h, unistd.h, or tls.h.
6637         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
6638         * posix/tst-getaddrinfo2.c: Include stdio.h.
6639         * posix/tst-getaddrinfo5.c: Include stdio.h.
6640         * posix/tst-pathconf.c: Include sys/stat.h.
6641         * posix/tst-posix_fadvise-common.c: Include stdint.h.
6642         * posix/tst-preadwrite-common.c: Include sys/stat.h.
6643         * posix/tst-regex.c: Include stdint.h.
6644         Don't include spawn.h or spawn_int.h.
6645         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
6646         * posix/tst-vfork3.c: Include sys/stat.h.
6647         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
6648         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
6649         * resolv/tst-resolv-search.c: Include stdlib.h.
6650         * stdio-common/tst-fmemopen2.c: Include stdint.h.
6651         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
6652         * stdlib/test-canon.c: Include sys/stat.h.
6653         * stdlib/tst-tls-atexit.c: Include stdbool.h.
6654         * string/test-memchr.c: Include stdint.h.
6655         * string/tst-cmp.c: Include stdint.h.
6656         * sysdeps/pthread/tst-timer.c: Include stdint.h.
6657         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
6658         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
6659         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
6660         Don't include init-arch.h.
6661         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
6662         Don't include init-arch.h.
6663         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
6664         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
6665         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
6666         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
6667         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
6668         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
6669         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
6670         * time/clocktest.c: Include stdint.h.
6671         * time/tst-posixtz.c: Include stdint.h.
6672         * timezone/tst-timezone.c: Include stdint.h.
6673
6674 2017-02-16  Zack Weinberg  <zackw@panix.com>
6675
6676         * string/string.h [__USE_MISC]: Include strings.h.
6677         (__bzero, bcmp, bcopy, bzero, index, rindex)
6678         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
6679         (ffs, ffsl, ffsll): Don't declare.
6680         * string/strings.h: Do not suppress the file if string.h has
6681         already been included.
6682         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
6683         annotations.
6684         (index, rindex): Define inline forwarders even if
6685         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
6686         (ffs): Use __attribute_const__.
6687         (ffsl, ffsll): Declare here.
6688         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
6689         have now been standardized.
6690         * include/string.h (__bzero): Declare here.
6691
6692         * bits/types.h: Move to posix/bits.
6693         * include/bits/types.h: New wrapper.
6694
6695 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
6696
6697         * string/bits/string2.h (strcmp): Remove define.
6698         (__strcmp_cg): Likewise.
6699         (strncmp): Likewise.
6700
6701 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
6702
6703         * include/string.h: Add __cplusplus check.
6704
6705 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6706
6707         [BZ #21134]
6708         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
6709         "divide by zero" exception when the input is zero.
6710         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
6711         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
6712         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
6713         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
6714         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6715
6716 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
6717
6718         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
6719         and include ...
6720         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
6721         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
6722         to, and include ...
6723         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
6724         file.
6725         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
6726         and include ...
6727         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
6728         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
6729         and include ...
6730         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
6731         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
6732         and include ...
6733         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
6734         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
6735         and include ...
6736         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
6737         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
6738         to, and include ...
6739         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
6740         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
6741         and include ...
6742         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
6743
6744 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
6745
6746         * math/libm-test-support.h: Do not include <math-tests-arch.h>
6747         here.
6748         * math/libm-test-support.c (libm_test_init): Do not call
6749         INIT_ARCH_EXT here.
6750         * math/libm-test-driver.c: Include <math-tests-arch.h>.
6751         (main): Call INIT_ARCH_EXT.
6752
6753 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6754
6755         [BZ #21130]
6756         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
6757         with the "invalid" exception raised when x is -Inf.
6758         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6759
6760 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
6761
6762         * string/bits/string2.h (strchr): Remove define.
6763
6764 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
6765
6766         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
6767         tst-avx512.
6768         (test-extras): Add tst-avx-aux and tst-avx512-aux.
6769         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
6770         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
6771         ($(objpfx)tst-sse): New rule.
6772         ($(objpfx)tst-avx): Likewise.
6773         ($(objpfx)tst-avx512): Likewise.
6774         (CFLAGS-tst-avx-aux.c): New.
6775         (CFLAGS-tst-avxmod.c): Likewise.
6776         (CFLAGS-tst-avx512-aux.c): Likewise.
6777         (CFLAGS-tst-avx512mod.c): Likewise.
6778         * sysdeps/x86_64/tst-avx-aux.c: New file.
6779         * sysdeps/x86_64/tst-avx.c: Likewise.
6780         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
6781         * sysdeps/x86_64/tst-avx512.c: Likewise.
6782         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
6783         * sysdeps/x86_64/tst-avxmod.c: Likewise.
6784         * sysdeps/x86_64/tst-sse.c: Likewise.
6785         * sysdeps/x86_64/tst-ssemod.c: Likewise.
6786
6787 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
6788
6789         * math/auto-libm-test-in: Add more tests of csin and csinh.
6790         * math/auto-libm-test-out-csin: Regenerated.
6791         * math/auto-libm-test-out-csinh: Likewise.
6792         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
6793         auto-libm-test-in.
6794         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
6795
6796 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6797
6798         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
6799         libm-compat-calls-auto.
6800         (libm-compat-calls): Likewise.
6801         (libm-compat-calls-auto): Rename to libm-compat-calls and add
6802         w_lgamma_compatF and k_standardF (merged from the items above).
6803         (libm-routines): Use libm-compat-calls, instead of
6804         libm-compat-calls-auto, with type-foreach.
6805
6806 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
6807
6808         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
6809         macro.
6810         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
6811         (CFLAGS-test-ifloat.c): ... this.  Remove
6812         -U__LIBC_INTERNAL_MATH_INLINES.
6813         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
6814         (CFLAGS-test-idouble.c): ... this.  Remove
6815         -U__LIBC_INTERNAL_MATH_INLINES.
6816         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
6817         (CFLAGS-test-ildouble.c): ... this.  Remove
6818         -U__LIBC_INTERNAL_MATH_INLINES.
6819
6820 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
6821
6822         * math/libm-test-support.c: New file.  Content from
6823         math/libm-test-driver.c.
6824         * math/libm-test-support.h: Likewise.
6825         * math/libm-test-support-double.c: New file.
6826         * math/libm-test-support-float.c: Likewise.
6827         * math/libm-test-support-ldouble.c: Likewise.
6828         * math/libm-test-driver.c: Remove main comment and header
6829         includes.  Include libm-test-support.h.
6830         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
6831         (flag_test_errno): Remove static.
6832         (flag_test_exceptions): Likewise.
6833         (flag_test_finite): Likewise.
6834         (flag_test_inline): Likewise.
6835         (flag_test_mathvec): Likewise.
6836         (test_msg): Likewise.
6837         (NO_EXCEPTION): Remove.
6838         (INVALID_EXCEPTION): Likewise.
6839         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
6840         (OVERFLOW_EXCEPTION): Likewise.
6841         (UNDERFLOW_EXCEPTION): Likewise.
6842         (INEXACT_EXCEPTION): Likewise.
6843         (INVALID_EXCEPTION_OK): Likewise.
6844         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6845         (OVERFLOW_EXCEPTION_OK): Likewise.
6846         (UNDERFLOW_EXCEPTION_OK): Likewise.
6847         (NO_INEXACT_EXCEPTION): Likewise.
6848         (EXCEPTIONS_OK): Likewise.
6849         (IGNORE_ZERO_INF_SIGN): Likewise.
6850         (TEST_NAN_SIGN): Likewise.
6851         (TEST_NAN_PAYLOAD): Likewise.
6852         (NO_TEST_INLINE): Likewise.
6853         (XFAIL_TEST): Likewise.
6854         (ERRNO_UNCHANGED): Likewise.
6855         (ERRNO_EDOM): Likewise.
6856         (ERRNO_ERANGE): Likewise.
6857         (IGNORE_RESULT): Likewise.
6858         (NON_FINITE): Likewise.
6859         (TEST_SNAN): Likewise.
6860         (NO_TEST_MATHVEC): Likewise.
6861         (__CONCATX): Likewise.
6862         (TYPE_MIN): Likewise.
6863         (TYPE_TRUE_MIN): Likewise.
6864         (TYPE_MAX): Likewise.
6865         (MIN_EXP): Likewise.
6866         (MAX_EXP): Likewise.
6867         (MANT_DIG): Likewise.
6868         (FSTR_MAX): Likewise.
6869         (ulp_idx): Likewise.
6870         (qtype_str): Remove static.
6871         (TEST_COND_binary32): Remove.
6872         (TEST_COND_binary64): Likewise.
6873         (TEST_COND_binary128): Likewise.
6874         (TEST_COND_ibm128): Likewise.
6875         (TEST_COND_intel96): Likewise.
6876         (TEST_COND_m68k96): Likewise.
6877         (TEST_COND_ibm128_libgcc): Likewise.
6878         (XFAIL_IBM128_LIBGCC): Likewise.
6879         (PAYLOAD_DIG): Likewise.
6880         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6881         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6882         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6883         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
6884         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6885         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
6886         (TEST_COND_long32): Likewise.
6887         (TEST_COND_long64): Likewise.
6888         (TEST_COND_before_rounding): Likewise.
6889         (TEST_COND_after_rounding): Likewise.
6890         (ulps_file_name): Likewise.
6891         (ulps_file): Likewise.
6892         (output_ulps): Likewise.
6893         (output_dir): Likewise.
6894         (noErrors): Likewise.
6895         (noTests): Likewise.
6896         (noExcTests): Likewise.
6897         (noErrnoTests): Likewise.
6898         (verbose): Likewise.
6899         (output_max_error): Likewise.
6900         (output_points): Likewise.
6901         (ignore_max_ulp): Likewise.
6902         (max_error): Likewise.
6903         (real_max_error): Likewise.
6904         (imag_max_error): Likewise.
6905         (prev_max_error): Likewise.
6906         (prev_real_max_error): Likewise.
6907         (prev_imag_max_error): Likewise.
6908         (max_valid_error): Likewise.
6909         (TYPE_DECIMAL_DIG): Likewise.
6910         (TYPE_HEX_DIG): Likewise.
6911         (fmt_ftostr): Likewise.
6912         (compare_ulp_data): Likewise.
6913         (find_ulps): Likewise.
6914         (init_max_error): Likewise.
6915         (set_max_error): Likewise.
6916         (print_float): Likewise.
6917         (print_screen): Likewise.
6918         (print_screen_max_error): Likewise.
6919         (update_stats): Likewise.
6920         (print_function_ulps): Likewise.
6921         (print_complex_function_ulps): Likewise.
6922         (fpstack_test): Likewise.
6923         (print_max_error): Likewise.
6924         (print_complex_max_error): Likewise.
6925         (test_single_exception): Likewise.
6926         (test_exceptions): Likewise.
6927         (test_single_errno): Likewise.
6928         (test_errno): Likewise.
6929         (ULPDIFF): Likewise.
6930         (ulp): Likewise.
6931         (check_float_internal): Likewise.
6932         (check_float): Likewise.
6933         (check_complex): Likewise.
6934         (check_int): Likewise.
6935         (check_long): Likewise.
6936         (check_bool): Likewise.
6937         (check_longlong): Likewise.
6938         (check_intmax_t): Likewise.
6939         (check_uintmax_t): Likewise.
6940         (enable_test): Likewise.
6941         (matherr): Likewise.
6942         (initialize): Likewise.
6943         (options): Likewise.
6944         (doc): Remove static.
6945         (argp): Likewise.
6946         (parse_opt): Remove.
6947         (check_ulp): Likewise.
6948         (libm_test_init): Likewise.
6949         (libm_test_finish): Likewise.
6950         * math/Makefile (libm-test-support): New variable.
6951         (test-extras): Add libm-test-support files.
6952         (extra-test-objs): Likewise.
6953         (CFLAGS-libm-test-support-float.c): New variable.
6954         (CFLAGS-libm-test-support-double.c): Likewise.
6955         (CFLAGS-libm-test-support-ldouble.c): Likewise.
6956         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
6957         libm-test-support objects.
6958
6959 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6960
6961         * math/Makefile (libm-calls): Move w_exp...
6962         (libm-compat-calls-auto): Here.
6963
6964         * math/w_expl.c: Add suffix "_compat" to filename.
6965         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6966         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6967         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6968         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6969         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6970         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6971         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
6972         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6973
6974         * math/w_expl_compat.c: New file, copied from above.
6975         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
6976         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
6977         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
6978         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
6979         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6980         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6981         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6982         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6983
6984         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
6985         to filename.
6986         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
6987
6988         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
6989         copied from above and adjusted for the new filenames.
6990         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
6991
6992 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6993
6994         * math/Makefile (libm-calls): Move w_lgammaF...
6995         (libm-compat-calls-auto): Here.
6996
6997         * math/w_lgamma.c: Add suffix "_compat2" to filename.
6998         * math/w_lgammaf.c: Likewise.
6999         * math/w_lgammal.c: Likewise.
7000
7001         * math/w_lgamma_compat2.c: New file, copied from above.
7002         * math/w_lgammaf_compat2.c: Likewise.
7003         * math/w_lgammal_compat2.c: Likewise.
7004
7005 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7006
7007         * math/Makefile (libm-calls): Move w_lgammaF_r...
7008         (libm-compat-calls-auto): Here.
7009
7010         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
7011         * math/w_lgammaf_r.c: Likewise.
7012         * math/w_lgammal_r.c: Likewise.
7013         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
7014         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
7015         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
7016
7017         * math/w_lgamma_r_compat.c: New file, copied from above.
7018         * math/w_lgammaf_r_compat.c: Likewise.
7019         * math/w_lgammal_r_compat.c: Likewise.
7020         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
7021         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
7022         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
7023
7024         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
7025         to filename.
7026         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
7027
7028         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
7029         copied from above and adjusted for the new filenames.
7030         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
7031
7032 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
7033
7034         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
7035         calculation in SYSCALL_ERROR_HANDLER().
7036
7037 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
7038
7039         * manual/contrib.texi: Fix typo.
7040
7041 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7042
7043         [BZ #21109]
7044         * elf/dl-tunable-types.h (tunable_callback_t): Accept
7045         tunable_val_t as argument.
7046         * elf/dl-tunables.c (__tunable_set_val): Add comment.
7047         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
7048         argument.
7049         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
7050
7051 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
7052
7053         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
7054         Add PTRACE_EVENT_STOP.
7055         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7056         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7057         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7058         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7059         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
7060         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
7061
7062 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
7063
7064         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
7065         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
7066         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
7067         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
7068         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
7069         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
7070         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
7071         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
7072         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
7073         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
7074
7075         [BZ #21112]
7076         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
7077         12 bits zero.
7078         (cp_l): Update for new value of cp_h.
7079         * math/auto-libm-test-in: Add another test of pow.
7080         * math/auto-libm-test-out-pow: Regenerated.
7081
7082 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7083
7084         * manual/contrib.texi: Fix typo.
7085
7086 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7087
7088         [BZ #15998]
7089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
7090         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
7091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
7092
7093 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7094
7095         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
7096         STRCHR as __strchr_power8.
7097         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
7098         strlen as __strlen_power8.
7099
7100 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7101
7102         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
7103         unaligned load for shorter strings.
7104         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
7105
7106 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
7107
7108         * math/libm-test-driver.c (flag_test_errno): New variable.
7109         (flag_test_exceptions): Likewise.
7110         (flag_test_finite): Likewise.
7111         (flag_test_inline): Likewise.
7112         (flag_test_mathvec): Likewise.
7113         (test_msg): Likewise.
7114         (ulp_idx): Likewise.
7115         (qtype_str): Likewise.
7116         (ULP_IDX): Remove macro.
7117         (QTYPE_STR): Likewise.
7118         (find_ulps): Use ulp_idx not ULP_IDX.
7119         (print_function_ulps): Use qtype_str, printed with %s, not
7120         QTYPE_STR, printed with concatentation to format string.
7121         (print_complex_function_ulps): Likewise.
7122         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
7123         (test_errno): Use flag_test_errno not TEST_ERRNO.
7124         (enable_test): Use flag_test_inline, flag_test_finite and
7125         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
7126         TEST_MATHVEC.
7127         (libm_test_init): New function.  Factored out of main.
7128         (libm_test_finish): Likewise.
7129         (main): Call libm_test_init and libm_test_finish and move most
7130         code to those functions.
7131
7132         * math/libm-test-driver.c (STRX): New macro.
7133         (STR): Likewise.
7134         (STR_FLOAT): Likewise.
7135         (STR_VEC_LEN): Likewise.
7136         (TEST_MSG): Likewise.  Define here instead of expecting to be
7137         defined by including file.
7138         * math/test-double-finite.c (TEST_MSG): Remove macro.
7139         * math/test-double-vlen2.h (TEST_MSG): Likewise.
7140         * math/test-double-vlen4.h (TEST_MSG): Likewise.
7141         * math/test-double-vlen8.h (TEST_MSG): Likewise.
7142         * math/test-double.c (TEST_MSG): Likewise.
7143         * math/test-float-finite.c (TEST_MSG): Likewise.
7144         * math/test-float-vlen16.h (TEST_MSG): Likewise.
7145         * math/test-float-vlen4.h (TEST_MSG): Likewise.
7146         * math/test-float-vlen8.h (TEST_MSG): Likewise.
7147         * math/test-float.c (TEST_MSG): Likewise.
7148         * math/test-idouble.c (TEST_MSG): Likewise.
7149         * math/test-ifloat.c (TEST_MSG): Likewise.
7150         * math/test-ildouble.c (TEST_MSG): Likewise.
7151         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
7152         * math/test-ldouble.c (TEST_MSG): Likewise.
7153
7154         * math/libm-test.inc: Move all tests of individual functions to
7155         libm-test-*.inc and #include libm-test-*.c files.
7156         (acos_test_data): Remove.
7157         (acos_test): Likewise.
7158         (acosh_test_data): Likewise.
7159         (acosh_test): Likewise.
7160         (asin_test_data): Likewise.
7161         (asin_test): Likewise.
7162         (asinh_test_data): Likewise.
7163         (asinh_test): Likewise.
7164         (atan_test_data): Likewise.
7165         (atan_test): Likewise.
7166         (atanh_test_data): Likewise.
7167         (atanh_test): Likewise.
7168         (atan2_test_data): Likewise.
7169         (atan2_test): Likewise.
7170         (cabs_test_data): Likewise.
7171         (cabs_test): Likewise.
7172         (cacos_test_data): Likewise.
7173         (cacos_test): Likewise.
7174         (cacosh_test_data): Likewise.
7175         (cacosh_test): Likewise.
7176         (canonicalize_test_data): Likewise.
7177         (canonicalize_test): Likewise.
7178         (carg_test_data): Likewise.
7179         (carg_test): Likewise.
7180         (casin_test_data): Likewise.
7181         (casin_test): Likewise.
7182         (casinh_test_data): Likewise.
7183         (casinh_test): Likewise.
7184         (catan_test_data): Likewise.
7185         (catan_test): Likewise.
7186         (catanh_test_data): Likewise.
7187         (catanh_test): Likewise.
7188         (cbrt_test_data): Likewise.
7189         (cbrt_test): Likewise.
7190         (ccos_test_data): Likewise.
7191         (ccos_test): Likewise.
7192         (ccosh_test_data): Likewise.
7193         (ccosh_test): Likewise.
7194         (ceil_test_data): Likewise.
7195         (ceil_test): Likewise.
7196         (cexp_test_data): Likewise.
7197         (cexp_test): Likewise.
7198         (cimag_test_data): Likewise.
7199         (cimag_test): Likewise.
7200         (clog_test_data): Likewise.
7201         (clog_test): Likewise.
7202         (clog10_test_data): Likewise.
7203         (clog10_test): Likewise.
7204         (conj_test_data): Likewise.
7205         (conj_test): Likewise.
7206         (copysign_test_data): Likewise.
7207         (copysign_test): Likewise.
7208         (cos_test_data): Likewise.
7209         (cos_test): Likewise.
7210         (cosh_test_data): Likewise.
7211         (cosh_test): Likewise.
7212         (cpow_test_data): Likewise.
7213         (cpow_test): Likewise.
7214         (cproj_test_data): Likewise.
7215         (cproj_test): Likewise.
7216         (creal_test_data): Likewise.
7217         (creal_test): Likewise.
7218         (csin_test_data): Likewise.
7219         (csin_test): Likewise.
7220         (csinh_test_data): Likewise.
7221         (csinh_test): Likewise.
7222         (csqrt_test_data): Likewise.
7223         (csqrt_test): Likewise.
7224         (ctan_test_data): Likewise.
7225         (ctan_test): Likewise.
7226         (ctanh_test_data): Likewise.
7227         (ctanh_test): Likewise.
7228         (erf_test_data): Likewise.
7229         (erf_test): Likewise.
7230         (erfc_test_data): Likewise.
7231         (erfc_test): Likewise.
7232         (exp_test_data): Likewise.
7233         (exp_test): Likewise.
7234         (exp10_test_data): Likewise.
7235         (exp10_test): Likewise.
7236         (pow10_test): Likewise.
7237         (exp2_test_data): Likewise.
7238         (exp2_test): Likewise.
7239         (expm1_test_data): Likewise.
7240         (expm1_test): Likewise.
7241         (fabs_test_data): Likewise.
7242         (fabs_test): Likewise.
7243         (fdim_test_data): Likewise.
7244         (fdim_test): Likewise.
7245         (floor_test_data): Likewise.
7246         (floor_test): Likewise.
7247         (fma_test_data): Likewise.
7248         (fma_test): Likewise.
7249         (fmax_test_data): Likewise.
7250         (fmax_test): Likewise.
7251         (fmaxmag_test_data): Likewise.
7252         (fmaxmag_test): Likewise.
7253         (fmin_test_data): Likewise.
7254         (fmin_test): Likewise.
7255         (fminmag_test_data): Likewise.
7256         (fminmag_test): Likewise.
7257         (fmod_test_data): Likewise.
7258         (fmod_test): Likewise.
7259         (fpclassify_test_data): Likewise.
7260         (fpclassify_test): Likewise.
7261         (frexp_test_data): Likewise.
7262         (frexp_test): Likewise.
7263         (fromfp_test_data): Likewise.
7264         (fromfp_test): Likewise.
7265         (fromfpx_test_data): Likewise.
7266         (fromfpx_test): Likewise.
7267         (getpayload_test_data): Likewise.
7268         (getpayload_test): Likewise.
7269         (hypot_test_data): Likewise.
7270         (hypot_test): Likewise.
7271         (ilogb_test_data): Likewise.
7272         (ilogb_test): Likewise.
7273         (iscanonical_test_data): Likewise.
7274         (iscanonical_test): Likewise.
7275         (iseqsig_test_data): Likewise.
7276         (iseqsig_test): Likewise.
7277         (isfinite_test_data): Likewise.
7278         (isfinite_test): Likewise.
7279         (finite_test): Likewise.
7280         (isgreater_test_data): Likewise.
7281         (isgreater_test): Likewise.
7282         (isgreaterequal_test_data): Likewise.
7283         (isgreaterequal_test): Likewise.
7284         (isinf_test_data): Likewise.
7285         (isinf_test): Likewise.
7286         (isless_test_data): Likewise.
7287         (isless_test): Likewise.
7288         (islessequal_test_data): Likewise.
7289         (islessequal_test): Likewise.
7290         (islessgreater_test_data): Likewise.
7291         (islessgreater_test): Likewise.
7292         (isnan_test_data): Likewise.
7293         (isnan_test): Likewise.
7294         (isnormal_test_data): Likewise.
7295         (isnormal_test): Likewise.
7296         (issignaling_test_data): Likewise.
7297         (issignaling_test): Likewise.
7298         (issubnormal_test_data): Likewise.
7299         (issubnormal_test): Likewise.
7300         (isunordered_test_data): Likewise.
7301         (isunordered_test): Likewise.
7302         (iszero_test_data): Likewise.
7303         (iszero_test): Likewise.
7304         (j0_test_data): Likewise.
7305         (j0_test): Likewise.
7306         (j1_test_data): Likewise.
7307         (j1_test): Likewise.
7308         (jn_test_data): Likewise.
7309         (jn_test): Likewise.
7310         (lgamma_test_data): Likewise.
7311         (lgamma_test): Likewise.
7312         (gamma_test): Likewise.
7313         (llogb_test_data): Likewise.
7314         (llogb_test): Likewise.
7315         (lrint_test_data): Likewise.
7316         (lrint_test): Likewise.
7317         (llrint_test_data): Likewise.
7318         (llrint_test): Likewise.
7319         (log_test_data): Likewise.
7320         (log_test): Likewise.
7321         (log10_test_data): Likewise.
7322         (log10_test): Likewise.
7323         (log1p_test_data): Likewise.
7324         (log1p_test): Likewise.
7325         (log2_test_data): Likewise.
7326         (log2_test): Likewise.
7327         (logb_test_data): Likewise.
7328         (logb_test): Likewise.
7329         (lround_test_data): Likewise.
7330         (lround_test): Likewise.
7331         (llround_test_data): Likewise.
7332         (llround_test): Likewise.
7333         (modf_test_data): Likewise.
7334         (modf_test): Likewise.
7335         (nearbyint_test_data): Likewise.
7336         (nearbyint_test): Likewise.
7337         (nextafter_test_data): Likewise.
7338         (nextafter_test): Likewise.
7339         (nextup_test_data): Likewise.
7340         (nextup_test): Likewise.
7341         (nextdown_test_data): Likewise.
7342         (nextdown_test): Likewise.
7343         (nexttoward_test_data): Likewise.
7344         (nexttoward_test): Likewise.
7345         (pow_test_data): Likewise.
7346         (pow_test): Likewise.
7347         (remainder_test_data): Likewise.
7348         (remainder_test): Likewise.
7349         (drem_test): Likewise.
7350         (remquo_test_data): Likewise.
7351         (remquo_test): Likewise.
7352         (rint_test_data): Likewise.
7353         (rint_test): Likewise.
7354         (round_test_data): Likewise.
7355         (round_test): Likewise.
7356         (roundeven_test_data): Likewise.
7357         (roundeven_test): Likewise.
7358         (scalb_test_data): Likewise.
7359         (scalb_test): Likewise.
7360         (scalbn_test_data): Likewise.
7361         (scalbn_test): Likewise.
7362         (ldexp_test): Likewise.
7363         (scalbln_test_data): Likewise.
7364         (scalbln_test): Likewise.
7365         (setpayload_test_data): Likewise.
7366         (setpayload_test): Likewise.
7367         (setpayloadsig_test_data): Likewise.
7368         (setpayloadsig_test): Likewise.
7369         (signbit_test_data): Likewise.
7370         (signbit_test): Likewise.
7371         (sin_test_data): Likewise.
7372         (sin_test): Likewise.
7373         (sincos_test_data): Likewise.
7374         (sincos_test): Likewise.
7375         (sinh_test_data): Likewise.
7376         (sinh_test): Likewise.
7377         (sqrt_test_data): Likewise.
7378         (sqrt_test): Likewise.
7379         (tan_test_data): Likewise.
7380         (tan_test): Likewise.
7381         (tanh_test_data): Likewise.
7382         (tanh_test): Likewise.
7383         (tgamma_test_data): Likewise.
7384         (tgamma_test): Likewise.
7385         (totalorder_test_data): Likewise.
7386         (totalorder_test): Likewise.
7387         (totalordermag_test_data): Likewise.
7388         (totalordermag_test): Likewise.
7389         (trunc_test_data): Likewise.
7390         (trunc_test): Likewise.
7391         (ufromfp_test_data): Likewise.
7392         (ufromfp_test): Likewise.
7393         (ufromfpx_test_data): Likewise.
7394         (ufromfpx_test): Likewise.
7395         (y0_test_data): Likewise.
7396         (y0_test): Likewise.
7397         (y1_test_data): Likewise.
7398         (y1_test): Likewise.
7399         (yn_test_data): Likewise.
7400         (yn_test): Likewise.
7401         (significand_test_data): Likewise.
7402         (significand_test): Likewise.
7403         * math/Makefile (auto-libm-test-out-files): Remove variable.
7404         (libm-test-funcs-noauto): New variable.
7405         (libm-test-funcs-all): Likewise.
7406         (libm-test-c-auto): Likewise.
7407         (libm-test-c-noauto): Likewise.
7408         (libm-tests-generated): Add $(libm-test-c-auto) and
7409         $(libm-test-c-noauto).
7410         (generated): Do not add auto-libm-test-out.
7411         (libm-test-c-auto-obj): New variable.
7412         (libm-test-c-noauto-obj): Likewise.
7413         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
7414         ($(libm-test-c-noauto-obj)): New static pattern rule.
7415         ($(libm-test-c-auto-obj)): Likewise.
7416         (libm-test-incs): New variable.
7417         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
7418         and pass it to gen-libm-have-vector-test.sh.
7419         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
7420         be passed on command line.
7421         * math/libm-test-acos.inc: New file.  Content from
7422         math/libm-test.inc.
7423         * math/libm-test-acosh.inc: Likewise.
7424         * math/libm-test-asin.inc: Likewise.
7425         * math/libm-test-asinh.inc: Likewise.
7426         * math/libm-test-atan.inc: Likewise.
7427         * math/libm-test-atan2.inc: Likewise.
7428         * math/libm-test-atanh.inc: Likewise.
7429         * math/libm-test-cabs.inc: Likewise.
7430         * math/libm-test-cacos.inc: Likewise.
7431         * math/libm-test-cacosh.inc: Likewise.
7432         * math/libm-test-canonicalize.inc: Likewise.
7433         * math/libm-test-carg.inc: Likewise.
7434         * math/libm-test-casin.inc: Likewise.
7435         * math/libm-test-casinh.inc: Likewise.
7436         * math/libm-test-catan.inc: Likewise.
7437         * math/libm-test-catanh.inc: Likewise.
7438         * math/libm-test-cbrt.inc: Likewise.
7439         * math/libm-test-ccos.inc: Likewise.
7440         * math/libm-test-ccosh.inc: Likewise.
7441         * math/libm-test-ceil.inc: Likewise.
7442         * math/libm-test-cexp.inc: Likewise.
7443         * math/libm-test-cimag.inc: Likewise.
7444         * math/libm-test-clog.inc: Likewise.
7445         * math/libm-test-clog10.inc: Likewise.
7446         * math/libm-test-conj.inc: Likewise.
7447         * math/libm-test-copysign.inc: Likewise.
7448         * math/libm-test-cos.inc: Likewise.
7449         * math/libm-test-cosh.inc: Likewise.
7450         * math/libm-test-cpow.inc: Likewise.
7451         * math/libm-test-cproj.inc: Likewise.
7452         * math/libm-test-creal.inc: Likewise.
7453         * math/libm-test-csin.inc: Likewise.
7454         * math/libm-test-csinh.inc: Likewise.
7455         * math/libm-test-csqrt.inc: Likewise.
7456         * math/libm-test-ctan.inc: Likewise.
7457         * math/libm-test-ctanh.inc: Likewise.
7458         * math/libm-test-erf.inc: Likewise.
7459         * math/libm-test-erfc.inc: Likewise.
7460         * math/libm-test-exp.inc: Likewise.
7461         * math/libm-test-exp10.inc: Likewise.
7462         * math/libm-test-exp2.inc: Likewise.
7463         * math/libm-test-expm1.inc: Likewise.
7464         * math/libm-test-fabs.inc: Likewise.
7465         * math/libm-test-fdim.inc: Likewise.
7466         * math/libm-test-floor.inc: Likewise.
7467         * math/libm-test-fma.inc: Likewise.
7468         * math/libm-test-fmax.inc: Likewise.
7469         * math/libm-test-fmaxmag.inc: Likewise.
7470         * math/libm-test-fmin.inc: Likewise.
7471         * math/libm-test-fminmag.inc: Likewise.
7472         * math/libm-test-fmod.inc: Likewise.
7473         * math/libm-test-fpclassify.inc: Likewise.
7474         * math/libm-test-frexp.inc: Likewise.
7475         * math/libm-test-fromfp.inc: Likewise.
7476         * math/libm-test-fromfpx.inc: Likewise.
7477         * math/libm-test-getpayload.inc: Likewise.
7478         * math/libm-test-hypot.inc: Likewise.
7479         * math/libm-test-ilogb.inc: Likewise.
7480         * math/libm-test-iscanonical.inc: Likewise.
7481         * math/libm-test-iseqsig.inc: Likewise.
7482         * math/libm-test-isfinite.inc: Likewise.
7483         * math/libm-test-isgreater.inc: Likewise.
7484         * math/libm-test-isgreaterequal.inc: Likewise.
7485         * math/libm-test-isinf.inc: Likewise.
7486         * math/libm-test-isless.inc: Likewise.
7487         * math/libm-test-islessequal.inc: Likewise.
7488         * math/libm-test-islessgreater.inc: Likewise.
7489         * math/libm-test-isnan.inc: Likewise.
7490         * math/libm-test-isnormal.inc: Likewise.
7491         * math/libm-test-issignaling.inc: Likewise.
7492         * math/libm-test-issubnormal.inc: Likewise.
7493         * math/libm-test-isunordered.inc: Likewise.
7494         * math/libm-test-iszero.inc: Likewise.
7495         * math/libm-test-j0.inc: Likewise.
7496         * math/libm-test-j1.inc: Likewise.
7497         * math/libm-test-jn.inc: Likewise.
7498         * math/libm-test-lgamma.inc: Likewise.
7499         * math/libm-test-llogb.inc: Likewise.
7500         * math/libm-test-llrint.inc: Likewise.
7501         * math/libm-test-llround.inc: Likewise.
7502         * math/libm-test-log.inc: Likewise.
7503         * math/libm-test-log10.inc: Likewise.
7504         * math/libm-test-log1p.inc: Likewise.
7505         * math/libm-test-log2.inc: Likewise.
7506         * math/libm-test-logb.inc: Likewise.
7507         * math/libm-test-lrint.inc: Likewise.
7508         * math/libm-test-lround.inc: Likewise.
7509         * math/libm-test-modf.inc: Likewise.
7510         * math/libm-test-nearbyint.inc: Likewise.
7511         * math/libm-test-nextafter.inc: Likewise.
7512         * math/libm-test-nextdown.inc: Likewise.
7513         * math/libm-test-nexttoward.inc: Likewise.
7514         * math/libm-test-nextup.inc: Likewise.
7515         * math/libm-test-pow.inc: Likewise.
7516         * math/libm-test-remainder.inc: Likewise.
7517         * math/libm-test-remquo.inc: Likewise.
7518         * math/libm-test-rint.inc: Likewise.
7519         * math/libm-test-round.inc: Likewise.
7520         * math/libm-test-roundeven.inc: Likewise.
7521         * math/libm-test-scalb.inc: Likewise.
7522         * math/libm-test-scalbln.inc: Likewise.
7523         * math/libm-test-scalbn.inc: Likewise.
7524         * math/libm-test-setpayload.inc: Likewise.
7525         * math/libm-test-setpayloadsig.inc: Likewise.
7526         * math/libm-test-signbit.inc: Likewise.
7527         * math/libm-test-significand.inc: Likewise.
7528         * math/libm-test-sin.inc: Likewise.
7529         * math/libm-test-sincos.inc: Likewise.
7530         * math/libm-test-sinh.inc: Likewise.
7531         * math/libm-test-sqrt.inc: Likewise.
7532         * math/libm-test-tan.inc: Likewise.
7533         * math/libm-test-tanh.inc: Likewise.
7534         * math/libm-test-tgamma.inc: Likewise.
7535         * math/libm-test-totalorder.inc: Likewise.
7536         * math/libm-test-totalordermag.inc: Likewise.
7537         * math/libm-test-trunc.inc: Likewise.
7538         * math/libm-test-ufromfp.inc: Likewise.
7539         * math/libm-test-ufromfpx.inc: Likewise.
7540         * math/libm-test-y0.inc: Likewise.
7541         * math/libm-test-y1.inc: Likewise.
7542         * math/libm-test-yn.inc: Likewise.
7543         * math/README.libm-test: Update.
7544
7545         * math/gen-auto-libm-tests.c: Update comment about use of program.
7546         (generate_output): Add argument FUNCTION.
7547         (main): Require extra argument.  Pass function name to
7548         generate_output.
7549         * math/Makefile (generated): Add auto-libm-test-out.
7550         (libm-test-funcs-auto): New variable.
7551         (auto-libm-test-out-files): New variable.
7552         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
7553         Concatenate those files to form $(objpfx)auto-libm-test-out and
7554         use it as input to gen-libm-test.pl.
7555         * math/README.libm-test: Update.
7556         * math/auto-libm-test-out: Remove.
7557         * math/auto-libm-test-out-acos: New generated file.
7558         * math/auto-libm-test-out-acosh: Likewise.
7559         * math/auto-libm-test-out-asin: Likewise.
7560         * math/auto-libm-test-out-asinh: Likewise.
7561         * math/auto-libm-test-out-atan: Likewise.
7562         * math/auto-libm-test-out-atan2: Likewise.
7563         * math/auto-libm-test-out-atanh: Likewise.
7564         * math/auto-libm-test-out-cabs: Likewise.
7565         * math/auto-libm-test-out-carg: Likewise.
7566         * math/auto-libm-test-out-cbrt: Likewise.
7567         * math/auto-libm-test-out-ccos: Likewise.
7568         * math/auto-libm-test-out-ccosh: Likewise.
7569         * math/auto-libm-test-out-cexp: Likewise.
7570         * math/auto-libm-test-out-clog: Likewise.
7571         * math/auto-libm-test-out-clog10: Likewise.
7572         * math/auto-libm-test-out-cos: Likewise.
7573         * math/auto-libm-test-out-cosh: Likewise.
7574         * math/auto-libm-test-out-cpow: Likewise.
7575         * math/auto-libm-test-out-csin: Likewise.
7576         * math/auto-libm-test-out-csinh: Likewise.
7577         * math/auto-libm-test-out-csqrt: Likewise.
7578         * math/auto-libm-test-out-ctan: Likewise.
7579         * math/auto-libm-test-out-ctanh: Likewise.
7580         * math/auto-libm-test-out-erf: Likewise.
7581         * math/auto-libm-test-out-erfc: Likewise.
7582         * math/auto-libm-test-out-exp: Likewise.
7583         * math/auto-libm-test-out-exp10: Likewise.
7584         * math/auto-libm-test-out-exp2: Likewise.
7585         * math/auto-libm-test-out-expm1: Likewise.
7586         * math/auto-libm-test-out-fma: Likewise.
7587         * math/auto-libm-test-out-hypot: Likewise.
7588         * math/auto-libm-test-out-j0: Likewise.
7589         * math/auto-libm-test-out-j1: Likewise.
7590         * math/auto-libm-test-out-jn: Likewise.
7591         * math/auto-libm-test-out-lgamma: Likewise.
7592         * math/auto-libm-test-out-log: Likewise.
7593         * math/auto-libm-test-out-log10: Likewise.
7594         * math/auto-libm-test-out-log1p: Likewise.
7595         * math/auto-libm-test-out-log2: Likewise.
7596         * math/auto-libm-test-out-pow: Likewise.
7597         * math/auto-libm-test-out-sin: Likewise.
7598         * math/auto-libm-test-out-sincos: Likewise.
7599         * math/auto-libm-test-out-sinh: Likewise.
7600         * math/auto-libm-test-out-sqrt: Likewise.
7601         * math/auto-libm-test-out-tan: Likewise.
7602         * math/auto-libm-test-out-tanh: Likewise.
7603         * math/auto-libm-test-out-tgamma: Likewise.
7604         * math/auto-libm-test-out-y0: Likewise.
7605         * math/auto-libm-test-out-y1: Likewise.
7606         * math/auto-libm-test-out-yn: Likewise.
7607
7608         * math/Makefile (generated): Do not include libm-test.stmp.
7609         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
7610         on $(objpfx)libm-test.stmp.
7611         ($(objpfx)libm-test.stmp): Remove rule.
7612         ($(objpfx)libm-test-ulps.h): New rule.
7613         ($(objpfx)libm-test.c): Likewise.
7614         ($(objpfx)libm-have-vector-test.h): Likewise.
7615         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
7616         individual generated files, not libm-test.stmp.
7617
7618         * math/gen-libm-test.pl ($output_dir): Remove variable.
7619         ($srcdir): Likewise.
7620         ($opt_a): New variable.
7621         ($opt_c): Likewise.
7622         ($opt_C): Likewise.
7623         ($opt_H): Likewise.
7624         (-n): Make option take argument and use it as NewUlps output.
7625         (-a): New option.  Use its argument for auto-libm-test-out input.
7626         (-c): New option.  Use its argument for libm-test.inc input.
7627         (-C): New option.  Use its argument for libm-test.c output.
7628         (-H): New option.  Use its argument for libm-test-ulps.h output.
7629         (top level): Only process inputs needed to generate outputs
7630         specified by command-line options.  Only generate outputs
7631         specified by command-line options.
7632         * math/README.libm-test: Update example gen-libm-test.pl command.
7633         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
7634         commands.
7635         (regen-ulps): Likewise.
7636
7637 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
7638
7639         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
7640         * include/string.h (index): Remove define.
7641         (rindex): Likewise.
7642         * misc/getttyent.c (__getttyent): Rename index to strchr.
7643         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
7644         * sunrpc/rpc_main.c (mkfile_output): Likewise.
7645
7646 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
7647
7648         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
7649         * math/libm-test.inc: Move all contents, other than tests of
7650         individual functions, to libm-test-driver.c.
7651         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
7652         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
7653         [!FE_UPWARD] (FE_UPWARD): Likewise.
7654         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
7655         (NO_EXCEPTION): Likewise.
7656         (INVALID_EXCEPTION): Likewise.
7657         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
7658         (OVERFLOW_EXCEPTION): Likewise.
7659         (UNDERFLOW_EXCEPTION): Likewise.
7660         (INEXACT_EXCEPTION): Likewise.
7661         (INVALID_EXCEPTION_OK): Likewise.
7662         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7663         (OVERFLOW_EXCEPTION_OK): Likewise.
7664         (UNDERFLOW_EXCEPTION_OK): Likewise.
7665         (NO_INEXACT_EXCEPTION): Likewise.
7666         (EXCEPTIONS_OK): Likewise.
7667         (IGNORE_ZERO_INF_SIGN): Likewise.
7668         (TEST_NAN_SIGN): Likewise.
7669         (TEST_NAN_PAYLOAD): Likewise.
7670         (NO_TEST_INLINE): Likewise.
7671         (XFAIL_TEST): Likewise.
7672         (ERRNO_UNCHANGED): Likewise.
7673         (ERRNO_EDOM): Likewise.
7674         (ERRNO_ERANGE): Likewise.
7675         (IGNORE_RESULT): Likewise.
7676         (NON_FINITE): Likewise.
7677         (TEST_SNAN): Likewise.
7678         (NO_TEST_MATHVEC): Likewise.
7679         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
7680         (__CONCATX): Likewise.
7681         (TYPE_MIN): Likewise.
7682         (TYPE_TRUE_MIN): Likewise.
7683         (TYPE_MAX): Likewise.
7684         (MIN_EXP): Likewise.
7685         (MAX_EXP): Likewise.
7686         (MANT_DIG): Likewise.
7687         (FSTR_MAX): Likewise.
7688         (ULP_IDX): Likewise.
7689         (QTYPE_STR): Likewise.
7690         (TEST_COND_binary32): Likewise.
7691         (TEST_COND_binary64): Likewise.
7692         (TEST_COND_binary128): Likewise.
7693         (TEST_COND_ibm128): Likewise.
7694         (TEST_COND_intel96): Likewise.
7695         (TEST_COND_m68k96): Likewise.
7696         (TEST_COND_ibm128_libgcc): Likewise.
7697         (XFAIL_IBM128_LIBGCC): Likewise.
7698         (PAYLOAD_DIG): Likewise.
7699         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7700         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7701         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7702         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
7703         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7704         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
7705         (TEST_COND_long32): Likewise.
7706         (TEST_COND_long64): Likewise.
7707         (TEST_COND_before_rounding): Likewise.
7708         (TEST_COND_after_rounding): Likewise.
7709         (lit_pi_3_m_4_d): Likewise.
7710         (lit_pi_3_m_4_ln10_m_d): Likewise.
7711         (lit_pi_2_ln10_m_d): Likewise.
7712         (lit_pi_4_ln10_m_d): Likewise.
7713         (lit_pi_ln10_d): Likewise.
7714         (lit_pi_2_d): Likewise.
7715         (lit_pi_4_d): Likewise.
7716         (lit_pi): Likewise.
7717         (lit_e): Likewise.
7718         (ulps_file_name): Likewise.
7719         (ulps_file): Likewise.
7720         (output_ulps): Likewise.
7721         (output_dir): Likewise.
7722         (noErrors): Likewise.
7723         (noTests): Likewise.
7724         (noExcTests): Likewise.
7725         (noErrnoTests): Likewise.
7726         (verbose): Likewise.
7727         (output_max_error): Likewise.
7728         (output_points): Likewise.
7729         (ignore_max_ulp): Likewise.
7730         (plus_zero): Likewise.
7731         (minus_zero): Likewise.
7732         (plus_infty): Likewise.
7733         (minus_infty): Likewise.
7734         (qnan_value_pl): Likewise.
7735         (qnan_value): Likewise.
7736         (snan_value_pl): Likewise.
7737         (snan_value): Likewise.
7738         (max_value): Likewise.
7739         (min_value): Likewise.
7740         (min_subnorm_value): Likewise.
7741         (snan_value_ld): Likewise.
7742         (max_error): Likewise.
7743         (real_max_error): Likewise.
7744         (imag_max_error): Likewise.
7745         (prev_max_error): Likewise.
7746         (prev_real_max_error): Likewise.
7747         (prev_imag_max_error): Likewise.
7748         (max_valid_error): Likewise.
7749         (TYPE_DECIMAL_DIG): Likewise.
7750         (TYPE_HEX_DIG): Likewise.
7751         (fmt_ftostr): Likewise.
7752         (compare_ulp_data): Likewise.
7753         (find_ulps): Likewise.
7754         (init_max_error): Likewise.
7755         (set_max_error): Likewise.
7756         (print_float): Likewise.
7757         (print_screen): Likewise.
7758         (print_screen_max_error): Likewise.
7759         (update_stats): Likewise.
7760         (print_function_ulps): Likewise.
7761         (print_complex_function_ulps): Likewise.
7762         (fpstack_test): Likewise.
7763         (print_max_error): Likewise.
7764         (print_complex_max_error): Likewise.
7765         (test_single_exception): Likewise.
7766         (test_exceptions): Likewise.
7767         (test_single_errno): Likewise.
7768         (test_errno): Likewise.
7769         (ULPDIFF): Likewise.
7770         (ulp): Likewise.
7771         (check_float_internal): Likewise.
7772         (check_float): Likewise.
7773         (check_complex): Likewise.
7774         (check_int): Likewise.
7775         (check_long): Likewise.
7776         (check_bool): Likewise.
7777         (check_longlong): Likewise.
7778         (check_intmax_t): Likewise.
7779         (check_uintmax_t): Likewise.
7780         (enable_test): Likewise.
7781         (struct test_f_f_data): Likewise.
7782         (struct test_ff_f_data): Likewise.
7783         (struct test_fj_f_data): Likewise.
7784         (struct test_fi_f_data): Likewise.
7785         (struct test_fl_f_data): Likewise.
7786         (struct test_if_f_data): Likewise.
7787         (struct test_fff_f_data): Likewise.
7788         (struct test_fiu_M_data): Likewise.
7789         (struct test_fiu_U_data): Likewise.
7790         (struct test_c_f_data): Likewise.
7791         (struct test_f_f1_data): Likewise.
7792         (struct test_fF_f1_data): Likewise.
7793         (struct test_ffI_f1_data): Likewise.
7794         (struct test_c_c_data): Likewise.
7795         (struct test_cc_c_data): Likewise.
7796         (struct test_f_i_data): Likewise.
7797         (struct test_ff_i_data): Likewise.
7798         (struct test_f_l_data): Likewise.
7799         (struct test_f_L_data): Likewise.
7800         (struct test_fFF_11_data): Likewise.
7801         (struct test_Ff_b1_data): Likewise.
7802         (IF_ROUND_INIT_): Likewise.
7803         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
7804         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7805         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7806         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7807         (ROUND_RESTORE_): Likewise.
7808         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
7809         (ROUND_RESTORE_FE_TONEAREST): Likewise.
7810         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
7811         (ROUND_RESTORE_FE_UPWARD): Likewise.
7812         (RM_): Likewise.
7813         (RM_FE_DOWNWARD): Likewise.
7814         (RM_FE_TONEAREST): Likewise.
7815         (RM_FE_TOWARDZERO): Likewise.
7816         (RM_FE_UPWARD): Likewise.
7817         (COMMON_TEST_SETUP): Likewise.
7818         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
7819         (COMMON_TEST_CLEANUP): Likewise.
7820         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
7821         (RUN_TEST_f_f): Likewise.
7822         (RUN_TEST_LOOP_f_f): Likewise.
7823         (RUN_TEST_fp_f): Likewise.
7824         (RUN_TEST_LOOP_fp_f): Likewise.
7825         (RUN_TEST_2_f): Likewise.
7826         (RUN_TEST_LOOP_2_f): Likewise.
7827         (RUN_TEST_ff_f): Likewise.
7828         (RUN_TEST_LOOP_ff_f): Likewise.
7829         (RUN_TEST_LOOP_fj_f): Likewise.
7830         (RUN_TEST_fi_f): Likewise.
7831         (RUN_TEST_LOOP_fi_f): Likewise.
7832         (RUN_TEST_fl_f): Likewise.
7833         (RUN_TEST_LOOP_fl_f): Likewise.
7834         (RUN_TEST_if_f): Likewise.
7835         (RUN_TEST_LOOP_if_f): Likewise.
7836         (RUN_TEST_fff_f): Likewise.
7837         (RUN_TEST_LOOP_fff_f): Likewise.
7838         (RUN_TEST_fiu_M): Likewise.
7839         (RUN_TEST_LOOP_fiu_M): Likewise.
7840         (RUN_TEST_fiu_U): Likewise.
7841         (RUN_TEST_LOOP_fiu_U): Likewise.
7842         (RUN_TEST_c_f): Likewise.
7843         (RUN_TEST_LOOP_c_f): Likewise.
7844         (RUN_TEST_f_f1): Likewise.
7845         (RUN_TEST_LOOP_f_f1): Likewise.
7846         (RUN_TEST_fF_f1): Likewise.
7847         (RUN_TEST_LOOP_fF_f1): Likewise.
7848         (RUN_TEST_fI_f1): Likewise.
7849         (RUN_TEST_LOOP_fI_f1): Likewise.
7850         (RUN_TEST_ffI_f1_mod8): Likewise.
7851         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
7852         (RUN_TEST_Ff_b1): Likewise.
7853         (RUN_TEST_LOOP_Ff_b1): Likewise.
7854         (RUN_TEST_Ffp_b1): Likewise.
7855         (RUN_TEST_LOOP_Ffp_b1): Likewise.
7856         (RUN_TEST_c_c): Likewise.
7857         (RUN_TEST_LOOP_c_c): Likewise.
7858         (RUN_TEST_cc_c): Likewise.
7859         (RUN_TEST_LOOP_cc_c): Likewise.
7860         (RUN_TEST_f_i): Likewise.
7861         (RUN_TEST_LOOP_f_i): Likewise.
7862         (RUN_TEST_f_i_tg): Likewise.
7863         (RUN_TEST_LOOP_f_i_tg): Likewise.
7864         (RUN_TEST_ff_b): Likewise.
7865         (RUN_TEST_LOOP_ff_b): Likewise.
7866         (RUN_TEST_ff_i_tg): Likewise.
7867         (RUN_TEST_LOOP_ff_i_tg): Likewise.
7868         (RUN_TEST_f_b): Likewise.
7869         (RUN_TEST_LOOP_f_b): Likewise.
7870         (RUN_TEST_f_b_tg): Likewise.
7871         (RUN_TEST_LOOP_f_b_tg): Likewise.
7872         (RUN_TEST_f_l): Likewise.
7873         (RUN_TEST_LOOP_f_l): Likewise.
7874         (RUN_TEST_f_L): Likewise.
7875         (RUN_TEST_LOOP_f_L): Likewise.
7876         (RUN_TEST_fFF_11): Likewise.
7877         (RUN_TEST_LOOP_fFF_11): Likewise.
7878         (VEC_SUFF): Likewise.
7879         (STR_CONCAT): Likewise.
7880         (STR_CON3): Likewise.
7881         (HAVE_VECTOR): Likewise.
7882         (START): Likewise.
7883         (END): Likewise.
7884         (END_COMPLEX): Likewise.
7885         (ALL_RM_TEST): Likewise.
7886         (matherr): Likewise.
7887         (initialize): Likewise.
7888         (options): Likewise.
7889         (doc): Likewise.
7890         (parse_opt): Likewise.
7891         (argp): Likewise.
7892         (check_ulp): Likewise.
7893         (main): Likewise.
7894         (do_test): New function.  Call tests of individual functions
7895         previously called from main.
7896
7897         * math/libm-test.inc: Remove comment listing functions tested and
7898         not tested.
7899
7900 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7901
7902         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
7903         (allocate_stack): Remove COLORING_INCREMENT usage.
7904         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
7905         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
7906
7907 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
7908
7909         * manual/libm-err-tab.pl (@all_functions): Change to
7910         %all_functions.  Initialize as empty.
7911         (parse_ulps): Add to %all_functions based on functions found in
7912         ulps files.  Ignore results for non-default rounding modes and
7913         vector functions.
7914         (print_platforms): Use %all_platforms.
7915         * manual/math.texi (Errors in Math Functions): Document omissions
7916         from the table.
7917
7918         * math/Makefile (before-compile): Remove.
7919
7920 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
7921
7922         [BZ #21075]
7923         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
7924         unused assignment.
7925         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
7926
7927 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
7928
7929         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
7930         Add __glibc_unlikely hint.
7931
7932 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7933
7934         [BZ #16640]
7935         * sysdeps/i386/i686/strtok.S: Remove file.
7936         * sysdeps/i386/i686/strtok_r.S: Likewise.
7937         * sysdeps/i386/strtok.S: Likewise.
7938         * sysdeps/i386/strtok_r.S: Likewise.
7939         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
7940         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
7941         * sysdeps/x86_64/strtok.S: Likewise.
7942         * sysdeps/x86_64/strtok_r.S: Likewise.
7943
7944         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
7945         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
7946         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7947         (__ASSUME_FADVISE64_AS_64_64): Define.
7948         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
7949         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
7950         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
7951         __ALIGNMENT_ARG usage.
7952         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
7953         __NR_fadvise64_64 if it is not defined.
7954
7955 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7956
7957         * version.h (RELEASE): Set to "development"
7958         (VERSION): Set to 2.25.90.
7959         * NEWS: Add 2.26 section.
7960
7961         * version.h (RELEASE): Set to "stable"
7962         (VERSION): Set to 2.25.
7963         * include/features.h (__GLIBC_MINOR__): Set to 25.
7964
7965         * manual/contrib.texi: Add more contributors from this release
7966         and past releases.
7967
7968         * NEWS (2.25): Add list of bugs fixed.
7969
7970         * NEWS: Add missing news items.
7971
7972 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7973
7974         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
7975         parent if child exited in that manner.  Print WEXITSTATUS
7976         instead of the raw status.
7977         (do_test_prep): Rename to do_test.
7978         (do_test): Return the result of run_executable_sgid.
7979         (TEST_FUNCTION_ARGV): Adjust.
7980
7981 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
7982             Florian Weimer  <fweimer@redhat.com>
7983             Carlos O'Donell  <carlos@redhat.com>
7984
7985         [BZ #20915]
7986         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
7987         Do not initialize DTV.
7988         * nptl/allocatestack.c (init_one_static_tls): Likewise.
7989
7990 2017-02-03  David S. Miller  <davem@davemloft.net>
7991
7992         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
7993         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
7994         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
7995         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
7996         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
7997         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
7998         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
7999         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
8000         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
8001         (libm-sysdep_routines): Update.
8002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
8003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
8004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8005         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
8006         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8007         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
8008         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
8009         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
8010         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
8011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
8012         Likewise.
8013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
8015         Likewise.
8016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
8017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
8018         Likewise.
8019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
8021         Likewise.
8022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
8023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
8024         (libm-sysdep_routines): Update.
8025
8026 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
8027
8028         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
8029         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
8030         against unrelocated shared library.
8031         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8032
8033 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8034
8035         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
8036         * elf/tst-env-setuid-tunables.c
8037         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
8038         GLIBC_TUNABLES is removed in a setgid process.
8039
8040         [BZ #21073]
8041         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
8042         * elf/dl-tunables.c (tunables_strdup): Remove.
8043         (get_next_env): Also return the previous envp.
8044         (parse_tunables): Erase tunables of category
8045         TUNABLES_SECLEVEL_SXID_ERASE.
8046         (maybe_enable_malloc_check): Make MALLOC_CHECK_
8047         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
8048         (__tunables_init)[TUNABLES_FRONTEND ==
8049         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
8050         after parsing.
8051         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
8052         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
8053         * elf/dl-tunables.h (struct _tunable): Change member is_secure
8054         to security_level.
8055         * elf/dl-tunables.list: Add security_level annotations for all
8056         tunables.
8057         * scripts/gen-tunables.awk: Recognize and generate enum values
8058         for security_level.
8059         * elf/tst-env-setuid.c: New test case.
8060         * elf/tst-env-setuid-tunables: new test case.
8061         * elf/Makefile (tests-static): Add them.
8062
8063 2017-02-01  Richard Henderson  <rth@twiddle.net>
8064
8065         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
8066         adjusting the byte count.
8067
8068 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
8069
8070         * conform/Makefile (linknamespace-libs): Define.
8071
8072         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
8073         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
8074         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
8075         operands.
8076
8077 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
8078
8079         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
8080
8081 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
8082
8083         [BZ #21081]
8084         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
8085         (L(stosb)): Add VZEROUPPER before ret.
8086
8087 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
8088             Alexey Makhalov <amakhalov@vmware.com>
8089             Florian Weimer <fweimer@redhat.com>
8090
8091         [BZ #20116]
8092         * nptl/pthread_create.c: Document concurrency notes.
8093         Enhance thread creation notes.
8094         (create_thread): Use bool *stopped_start.
8095         (START_THREAD_DEFN): Comment ownership of PD.
8096         (__pthread_create_2_1): Add local bool stopped_start and use
8097         that instead of pd->stopped_start where appropriate.
8098         * nptl/createthread.c (create_thread): Use bool *stopped_start.
8099         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
8100         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
8101         * nptl/tst-create-detached.c: New file.
8102         * nptl/Makefile (tests): Add tst-create-detached.
8103         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8104         Reference the enhanced thread creation notes.
8105         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
8106         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
8107         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
8108         (__pthread_current_priority): Likewise.
8109         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
8110         xpthread_attr_init, xpthread_attr_setdetachstate, and
8111         xpthread_attr_setstacksize.
8112         * support/xpthread_attr_destroy.c: New file.
8113         * support/xpthread_attr_init.c: New file.
8114         * support/xpthread_attr_setdetachstate.c: New file.
8115         * support/xpthread_attr_setstacksize.c: New file.
8116         * support/xthread.h: Define prototypes for xpthread_attr_destroy
8117         xpthread_attr_init, xpthread_attr_setdetachstate, and
8118         xpthread_attr_setstacksize.
8119
8120 2017-01-27  Florian Weimer  <fweimer@redhat.com>
8121
8122         * nptl/Makefile (tests): Add tst-robust-fork.
8123         * nptl/tst-robust-fork.c: New file.
8124         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
8125         xpthread_mutex_consistent, xpthread_mutex_destroy,
8126         xpthread_mutex_init, xpthread_mutexattr_destroy,
8127         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
8128         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
8129         xpthread_mutexattr_settype.
8130         * support/xmmap.c: New file.
8131         * support/xmunmap.c: Likewise.
8132         * support/xpthread_mutex_consistent.c: Likewise.
8133         * support/xpthread_mutex_destroy.c: Likewise.
8134         * support/xpthread_mutex_init.c: Likewise.
8135         * support/xpthread_mutexattr_destroy.c: Likewise.
8136         * support/xpthread_mutexattr_init.c: Likewise.
8137         * support/xpthread_mutexattr_setprotocol.c: Likewise.
8138         * support/xpthread_mutexattr_setpshared.c: Likewise.
8139         * support/xpthread_mutexattr_setrobust.c: Likewise.
8140         * support/xpthread_mutexattr_settype.c: Likewise.
8141         * support/xthread.h (xpthread_mutexattr_destroy)
8142         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
8143         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
8144         (xpthread_mutexattr_settype, xpthread_mutex_init)
8145         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
8146         * support/xunistd.h (xmmap, xmunmap): Likewise.
8147
8148 2017-01-25  Florian Weimer  <fweimer@redhat.com>
8149
8150         * string/Makefile (xtests): Add comment.
8151         (LOCALES): Add en_GB.UTF-8.
8152         (tst-strcoll-overflow.out): Depend on generated locales.
8153         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
8154         (SIZE, TIMEOUT): Update comments.
8155         (do_test): Define as static.  Fail test if setlocale fails.
8156         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
8157         messages.
8158         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
8159         TIMEOUT at 300 seconds should be enough to run this test
8160         successfully.
8161
8162 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
8163
8164         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
8165         /* FALLTHRU */ comments.
8166
8167 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
8168
8169         [BZ #21053]
8170         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
8171         constants instead of the old R* ones.
8172         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
8173         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
8174         (NGREG): ... to this, to fit in with other architectures.
8175         (gpregset_t): Use new NGREG macro.
8176         [__USE_GNU]: Remove condition; all architectures other than tile
8177         are unconditional.
8178         (R*): Rename to REG_R*.
8179
8180 2017-01-20  DJ Delorie  <dj@redhat.com>
8181
8182         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
8183         (tunable_set_val_if_valid_range_signed) ... this, and ...
8184         (tunable_set_val_if_valid_range_unsigned) ... this.
8185         (tunable_initialize): Call the correct one of the above based on type.
8186
8187 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
8188
8189         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
8190         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
8191         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
8192         * sysdeps/microblaze/libm-test-ulps: Likewise.
8193         * sysdeps/sh/libm-test-ulps: Likewise.
8194
8195         * math/README.libm-test: Update list of characters for input and
8196         output types.
8197
8198 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8199
8200         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
8201         (__lll_unlock_elision): Fix adapt_count decrement.
8202
8203 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
8204
8205         * README.pretty-printers (Known issues): Warn about printers not
8206         always covering everything.
8207         * nptl/nptl-printers.py (MutexPrinter): Change output.
8208         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
8209
8210 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
8211
8212         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
8213         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
8214         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
8215         (__lll_lock_elision): Do not test futex before starting a
8216         transaction.  Use __glibc_likely instead of __builtin_expect.
8217         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
8218         (__lll_trylock_elision): Do not test futex before starting a
8219         transaction.  Use __glibc_likely instead of __builtin_expect.
8220
8221 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8222
8223         * po/Makefile (update-translations): New target.
8224
8225 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
8226
8227         [BZ #21061]
8228         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
8229
8230 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8231
8232         * elf/dl-tunables (get_next_env): Always advance envp.
8233         * stdlib/tst-empty-env.c: New test case.
8234         * stdlib/Makefile (tests): Use it.
8235
8236 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
8237
8238         [BZ #21047]
8239         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
8240         name for instruction.
8241         [!__SOFTFP__] (_FPU_SETCW): Likewise.
8242
8243 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
8244
8245         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
8246         for make install.
8247
8248 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8249
8250         * po/bg.po: Merge from Translation Project.
8251         * po/fr.po: Likewise.
8252         * po/ko.po: Likewise.
8253         * po/nl.po: Likewise.
8254         * po/sv.po: Likewise.
8255
8256 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
8257
8258         * manual/install.texi (Tools for Compilation): Update GCC version
8259         known to work to build glibc.
8260         * INSTALL: Regenerated.
8261
8262 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
8263
8264         [BZ #21006]
8265         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
8266
8267 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
8268
8269         [BZ #21045]
8270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
8271         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
8272         to __sigprocmask.
8273
8274 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
8275
8276         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
8277         wrap-around.
8278         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
8279
8280         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
8281
8282 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8283
8284         * NEWS: Fix typo.
8285
8286 2016-01-13  Torvald Riegel  <triegel@redhat.com>
8287
8288         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
8289         barriers and comments.
8290         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
8291         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
8292         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8293
8294 2016-01-13  Torvald Riegel  <triegel@redhat.com>
8295
8296         [BZ #19402]
8297         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
8298         mutexes.
8299
8300 2016-01-13  Torvald Riegel  <triegel@redhat.com>
8301
8302         [BZ #20985]
8303         * nptl/Makefile: Adapt.
8304         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
8305         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
8306         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
8307         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
8308         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
8309         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
8310         lll_robust* functions and adapt.
8311         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8312         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
8313         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
8314         __lll_robust_timedlock, __lll_robust_unlock): Remove.
8315         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
8316         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
8317         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
8318         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
8319         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
8320         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
8321         __lll_robust_timedlock, __lll_robust_unlock): Remove.
8322         * nptl/lowlevelrobustlock.c: Remove file.
8323         * nptl/lowlevelrobustlock.sym: Likewise.
8324         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
8325         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
8326
8327 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8328
8329         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
8330
8331 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8332
8333         * po/cs.po: Merge translations from the Translation Project.
8334         * po/de.po: Likewise.
8335         * po/pl.po: Likewise.
8336         * po/ru.po: Likewise.
8337         * po/tr.po: Likewise.
8338         * po/uk.po: Likewise.
8339         * po/vi.po: Likewise.
8340         * po/zh_CN.po: Likewise.
8341
8342 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
8343
8344         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
8345
8346         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
8347         object.
8348
8349 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
8350
8351         [BZ #16458]
8352         * bits/uintn-identity.h: New file.
8353         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
8354         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
8355         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
8356         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
8357         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
8358         * string/endian.h: Include <bits/uintn-identity.h>.
8359         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
8360         __uint16_identity.
8361         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
8362         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
8363         __uint32_identity.
8364         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
8365         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
8366         __uint64_identity.
8367         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
8368         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
8369         __uint16_identity.
8370         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
8371         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
8372         __uint32_identity.
8373         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
8374         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
8375         __uint64_identity.
8376         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
8377         * string/Makefile (headers): Add bits/uintn-identity.h.
8378         (tests): Add test-endian-types.
8379         * string/test-endian-types.c: New file.
8380         * inet/Makefile (tests): Add test-hnto-types.
8381         * inet/test-hnto-types.c: New file.
8382
8383 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8384
8385         * po/be.po: Update from Translation Project.
8386         * po/bg.po: Likewise.
8387         * po/ca.po: Likewise.
8388         * po/cs.po: Likewise.
8389         * po/da.po: Likewise.
8390         * po/de.po: Likewise.
8391         * po/el.po: Likewise.
8392         * po/eo.po: Likewise.
8393         * po/es.po: Likewise.
8394         * po/fi.po: Likewise.
8395         * po/fr.po: Likewise.
8396         * po/gl.po: Likewise.
8397         * po/hr.po: Likewise.
8398         * po/hu.po: Likewise.
8399         * po/ia.po: Likewise.
8400         * po/id.po: Likewise.
8401         * po/it.po: Likewise.
8402         * po/ja.po: Likewise.
8403         * po/ko.po: Likewise.
8404         * po/lt.po: Likewise.
8405         * po/nb.po: Likewise.
8406         * po/nl.po: Likewise.
8407         * po/pl.po: Likewise.
8408         * po/pt_BR.po: Likewise.
8409         * po/ru.po: Likewise.
8410         * po/rw.po: Likewise.
8411         * po/sk.po: Likewise.
8412         * po/sl.po: Likewise.
8413         * po/sv.po: Likewise.
8414         * po/tr.po: Likewise.
8415         * po/uk.po: Likewise.
8416         * po/vi.po: Likewise.
8417         * po/zh_CN.po: Likewise.
8418         * po/zh_TW.po: Likewise.
8419
8420 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
8421
8422         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
8423         -Wformat-truncation instead of -Wformat-length.
8424         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
8425         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
8426         GCC 7.
8427         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
8428         (do_test): Ignore -Wformat-truncation for GCC 7.
8429
8430         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
8431         buffer used to print long int value.
8432
8433         * elf/sotruss-lib.c (init): Increase space allocated for pid by
8434         one byte.  Print it with %ld, cast to long int.
8435
8436 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8437
8438         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
8439         (re.fullmatch, subprocess.run): Likewise.
8440
8441 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8442
8443         * po/libc.pot: Regenerate.
8444
8445 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8446
8447         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
8448         (min_strlen): Likewise.
8449         (disable_tunable): Likewise.
8450         (maybe_disable_malloc_check): Rename to
8451         maybe_enable_malloc_check.
8452         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
8453         if /etc/suid-debug file exists.
8454         (__tunables_init): Update caller.
8455         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
8456         secure.
8457
8458 2016-01-10  Torvald Riegel  <triegel@redhat.com>
8459
8460         * nptl/DESIGN-rwlock.txt: Remove.
8461         * nptl/lowlevelrwlock.sym: Remove.
8462         * nptl/Makefile: Add new tests.
8463         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
8464         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
8465         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
8466         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
8467         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
8468         PTHREAD_RWLOCK_FUTEX_USED): New.
8469         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
8470         implementation.
8471         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
8472         (__pthread_rwlock_rdlock): Adapt.
8473         * nptl/pthread_rwlock_timedrdlock.c
8474         (pthread_rwlock_timedrdlock): Adapt.
8475         * nptl/pthread_rwlock_timedwrlock.c
8476         (pthread_rwlock_timedwrlock): Adapt.
8477         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
8478         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
8479         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
8480         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
8481         (__pthread_rwlock_wrlock): Adapt.
8482         * nptl/tst-rwlock10.c: Adapt.
8483         * nptl/tst-rwlock11.c: Adapt.
8484         * nptl/tst-rwlock17.c: New file.
8485         * nptl/tst-rwlock18.c: New file.
8486         * nptl/tst-rwlock19.c: New file.
8487         * nptl/tst-rwlock2b.c: New file.
8488         * nptl/tst-rwlock8.c: Adapt.
8489         * nptl/tst-rwlock9.c: Adapt.
8490         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8491         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8492         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8493         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8494         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8495         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8496         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8497         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8498         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8499         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8500         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8501         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8502         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
8503         (pthread_rwlock_t): Adapt.
8504         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8505         (pthread_rwlock_t): Adapt.
8506         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
8507         * nptl/nptl-printers.py (): Adapt.
8508         * nptl/nptl_lock_constants.pysym: Adapt.
8509         * nptl/test-rwlock-printers.py: Adapt.
8510         * nptl/test-rwlockattr-printers.c: Adapt.
8511         * nptl/test-rwlockattr-printers.py: Adapt.
8512
8513 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
8514
8515         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
8516         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
8517         (fma_test_data): Likewise.
8518         (hypot_test_data): Likewise.
8519         (log1p_test_data): Likewise.
8520         (modf_test_data): Likewise.
8521         (pow_test_data): Likewise.
8522         (remainder_test_data): Likewise.
8523         (remquo_test_data): Likewise.
8524         (scalb_test_data): Likewise.
8525         (scalbn_test_data): Likewise.
8526         (scalbln_test_data): Likewise.
8527         * math/gen-libm-test.pl (parse_args): Transform
8528         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
8529         on the rounding mode.
8530
8531 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
8532
8533         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
8534         xfail-rounding:ibm128-libgcc automatically to tests overflowing
8535         and those that can underflow to zero.
8536         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
8537         add others.
8538         * math/auto-libm-test-out: Regenerated.
8539
8540         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
8541         supported.
8542         (feholdexcept_tests): Skip tests requiring exceptions or rounding
8543         modes support if not supported.
8544
8545         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
8546         Add libc.so PLT entry.
8547         (__tls_get_addr): Make ld.so PLT entry optional.
8548
8549 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8550
8551         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
8552         * string/bits/string3.h: ... here.
8553
8554 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
8555
8556         [BZ #21028]
8557         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
8558         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
8559         if EXCEPTION_TESTS returns false.
8560
8561 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8562
8563         [BZ #20558]
8564         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
8565         strings_fortified.h.
8566         [__USE_MISC] (bzero): Likewise.
8567         [__USE_MISC] (explicit_bzero): Likewise.
8568         * string/strings.h: Include strings_fortified.h.
8569         * string/Makefile (headers): Add strings_fortified.h.
8570         * string/bits/strings_fortified.h: New file.
8571         * include/bits/strings_fortified.h: Likewise.
8572
8573 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
8574
8575         * elf/tst-tls13.c (TIMEOUT): Remove.
8576         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
8577         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
8578         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
8579         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
8580         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
8581
8582         [BZ #21026]
8583         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
8584         (readahead): New syscall entry.
8585
8586 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
8587
8588         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
8589         around tests of strncat with large sizes.
8590
8591         * malloc/tst-malloc.c: Include <libc-internal.h>.
8592         (do_test): Disable -Walloc-size-larger-than= around tests of
8593         malloc with negative sizes.
8594         * malloc/tst-mcheck.c: Include <libc-internal.h>.
8595         (do_test): Disable -Walloc-size-larger-than= around tests of
8596         malloc and realloc with negative sizes.
8597         * malloc/tst-realloc.c: Include <libc-internal.h>.
8598         (do_test): Disable -Walloc-size-larger-than= around tests of
8599         realloc with negative sizes.
8600
8601         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
8602         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
8603         allowed to 16 ulps.
8604         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
8605         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
8606         * math/auto-libm-test-out: Regenerated.
8607
8608 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8609
8610         * math/Makefile (libm-calls): Move wrappers...
8611         (libm-compat-call-auto): Here.
8612         (libm-routines): Add items in libm-compat-calls-auto.
8613         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
8614         the filenames of the wrappers that have been renamed.
8615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
8616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8617
8618         * math/w_acos.c: Add _compat suffix to filename.
8619         * math/w_acosf.c: Likewise.
8620         * math/w_acosh.c: Likewise.
8621         * math/w_acoshf.c: Likewise.
8622         * math/w_acoshl.c: Likewise.
8623         * math/w_acosl.c: Likewise.
8624         * math/w_asin.c: Likewise.
8625         * math/w_asinf.c: Likewise.
8626         * math/w_asinl.c: Likewise.
8627         * math/w_atan2.c: Likewise.
8628         * math/w_atan2f.c: Likewise.
8629         * math/w_atan2l.c: Likewise.
8630         * math/w_atanh.c: Likewise.
8631         * math/w_atanhf.c: Likewise.
8632         * math/w_atanhl.c: Likewise.
8633         * math/w_cosh.c: Likewise.
8634         * math/w_coshf.c: Likewise.
8635         * math/w_coshl.c: Likewise.
8636         * math/w_exp10.c: Likewise.
8637         * math/w_exp10f.c: Likewise.
8638         * math/w_exp10l.c: Likewise.
8639         * math/w_exp2.c: Likewise.
8640         * math/w_exp2f.c: Likewise.
8641         * math/w_exp2l.c: Likewise.
8642         * math/w_fmod.c: Likewise.
8643         * math/w_fmodf.c: Likewise.
8644         * math/w_fmodl.c: Likewise.
8645         * math/w_hypot.c: Likewise.
8646         * math/w_hypotf.c: Likewise.
8647         * math/w_hypotl.c: Likewise.
8648         * math/w_j0.c: Likewise.
8649         * math/w_j0f.c: Likewise.
8650         * math/w_j0l.c: Likewise.
8651         * math/w_j1.c: Likewise.
8652         * math/w_j1f.c: Likewise.
8653         * math/w_j1l.c: Likewise.
8654         * math/w_jn.c: Likewise.
8655         * math/w_jnf.c: Likewise.
8656         * math/w_jnl.c: Likewise.
8657         * math/w_log10.c: Likewise.
8658         * math/w_log10f.c: Likewise.
8659         * math/w_log10l.c: Likewise.
8660         * math/w_log2.c: Likewise.
8661         * math/w_log2f.c: Likewise.
8662         * math/w_log2l.c: Likewise.
8663         * math/w_log.c: Likewise.
8664         * math/w_logf.c: Likewise.
8665         * math/w_logl.c: Likewise.
8666         * math/w_pow.c: Likewise.
8667         * math/w_powf.c: Likewise.
8668         * math/w_powl.c: Likewise.
8669         * math/w_remainder.c: Likewise.
8670         * math/w_remainderf.c: Likewise.
8671         * math/w_remainderl.c: Likewise.
8672         * math/w_scalb.c: Likewise.
8673         * math/w_scalbf.c: Likewise.
8674         * math/w_scalbl.c: Likewise.
8675         * math/w_sinh.c: Likewise.
8676         * math/w_sinhf.c: Likewise.
8677         * math/w_sinhl.c: Likewise.
8678         * math/w_sqrt.c: Likewise.
8679         * math/w_sqrtf.c: Likewise.
8680         * math/w_sqrtl.c: Likewise.
8681         * math/w_tgamma.c: Likewise.
8682         * math/w_tgammaf.c: Likewise.
8683         * math/w_tgammal.c: Likewise.
8684
8685         * math/w_acos_compat.c: New file copied from above and
8686         adjusted for new #includes path
8687         * math/w_acosf_compat.c: Likewise.
8688         * math/w_acosh_compat.c: Likewise.
8689         * math/w_acoshf_compat.c: Likewise.
8690         * math/w_acoshl_compat.c: Likewise.
8691         * math/w_acosl_compat.c: Likewise.
8692         * math/w_asin_compat.c: Likewise.
8693         * math/w_asinf_compat.c: Likewise.
8694         * math/w_asinl_compat.c: Likewise.
8695         * math/w_atan2_compat.c: Likewise.
8696         * math/w_atan2f_compat.c: Likewise.
8697         * math/w_atan2l_compat.c: Likewise.
8698         * math/w_atanh_compat.c: Likewise.
8699         * math/w_atanhf_compat.c: Likewise.
8700         * math/w_atanhl_compat.c: Likewise.
8701         * math/w_cosh_compat.c: Likewise.
8702         * math/w_coshf_compat.c: Likewise.
8703         * math/w_coshl_compat.c: Likewise.
8704         * math/w_exp10_compat.c: Likewise.
8705         * math/w_exp10f_compat.c: Likewise.
8706         * math/w_exp10l_compat.c: Likewise.
8707         * math/w_exp2_compat.c: Likewise.
8708         * math/w_exp2f_compat.c: Likewise.
8709         * math/w_exp2l_compat.c: Likewise.
8710         * math/w_fmod_compat.c: Likewise.
8711         * math/w_fmodf_compat.c: Likewise.
8712         * math/w_fmodl_compat.c: Likewise.
8713         * math/w_hypot_compat.c: Likewise.
8714         * math/w_hypotf_compat.c: Likewise.
8715         * math/w_hypotl_compat.c: Likewise.
8716         * math/w_j0_compat.c: Likewise.
8717         * math/w_j0f_compat.c: Likewise.
8718         * math/w_j0l_compat.c: Likewise.
8719         * math/w_j1_compat.c: Likewise.
8720         * math/w_j1f_compat.c: Likewise.
8721         * math/w_j1l_compat.c: Likewise.
8722         * math/w_jn_compat.c: Likewise.
8723         * math/w_jnf_compat.c: Likewise.
8724         * math/w_jnl_compat.c: Likewise.
8725         * math/w_log10_compat.c: Likewise.
8726         * math/w_log10f_compat.c: Likewise.
8727         * math/w_log10l_compat.c: Likewise.
8728         * math/w_log2_compat.c: Likewise.
8729         * math/w_log2f_compat.c: Likewise.
8730         * math/w_log2l_compat.c: Likewise.
8731         * math/w_log_compat.c: Likewise.
8732         * math/w_logf_compat.c: Likewise.
8733         * math/w_logl_compat.c: Likewise.
8734         * math/w_pow_compat.c: Likewise.
8735         * math/w_powf_compat.c: Likewise.
8736         * math/w_powl_compat.c: Likewise.
8737         * math/w_remainder_compat.c: Likewise.
8738         * math/w_remainderf_compat.c: Likewise.
8739         * math/w_remainderl_compat.c: Likewise.
8740         * math/w_scalb_compat.c: Likewise.
8741         * math/w_scalbf_compat.c: Likewise.
8742         * math/w_scalbl_compat.c: Likewise.
8743         * math/w_sinh_compat.c: Likewise.
8744         * math/w_sinhf_compat.c: Likewise.
8745         * math/w_sinhl_compat.c: Likewise.
8746         * math/w_sqrt_compat.c: Likewise.
8747         * math/w_sqrtf_compat.c: Likewise.
8748         * math/w_sqrtl_compat.c: Likewise.
8749         * math/w_tgamma_compat.c: Likewise.
8750         * math/w_tgammaf_compat.c: Likewise.
8751         * math/w_tgammal_compat.c: Likewise.
8752
8753         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
8754         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
8755         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
8756         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
8757         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
8758         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
8759         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
8760         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
8761         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
8762         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
8763         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
8764         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
8765         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
8766         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
8767         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
8768         * sysdeps/ia64/fpu/w_powl.c: Likewise.
8769         * sysdeps/ia64/fpu/w_powf.c: Likewise.
8770         * sysdeps/ia64/fpu/w_pow.c: Likewise.
8771         * sysdeps/ia64/fpu/w_logl.c: Likewise.
8772         * sysdeps/ia64/fpu/w_logf.c: Likewise.
8773         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
8774         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
8775         * sysdeps/ia64/fpu/w_log2.c: Likewise.
8776         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
8777         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
8778         * sysdeps/ia64/fpu/w_log10.c: Likewise.
8779         * sysdeps/ia64/fpu/w_log.c: Likewise.
8780         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
8781         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
8782         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
8783         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
8784         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
8785         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
8786         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
8787         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
8788         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
8789         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
8790         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
8791         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
8792         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
8793         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
8794         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
8795         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
8796         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
8797         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
8798         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
8799         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
8800         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
8801         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
8802         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
8803         * sysdeps/ia64/fpu/w_asin.c: Likewise.
8804         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
8805         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
8806         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
8807         * sysdeps/ia64/fpu/w_acos.c: Likewise.
8808         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
8809         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
8810         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
8811         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
8812         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
8813         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
8814         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
8815         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
8816         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
8817         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
8818         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
8819         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
8820         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
8821         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
8822         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
8823         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
8824         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
8825         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
8826         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
8827         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
8828         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
8829         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
8830         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
8831         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
8832         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
8833         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
8834         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
8835         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
8836         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
8837         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
8838         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
8839         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
8840         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
8841         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
8842         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
8843         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
8844         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
8845         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
8846         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
8847         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
8848         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
8849         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
8850         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
8851         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
8852         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
8853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
8854         Likewise.
8855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
8856         Likewise.
8857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
8858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
8859         Likewise.
8860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
8861         Likewise.
8862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
8863         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8864         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8865         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8866         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8867         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
8868         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
8869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
8870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
8871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
8872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
8873         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
8874         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
8875         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
8876         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
8877
8878         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
8879         and adjusted for new #includes path
8880         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
8881         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
8882         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
8883         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
8884         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
8885         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
8886         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
8887         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
8888         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
8889         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
8890         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
8891         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
8892         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
8893         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
8894         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
8895         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
8896         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
8897         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
8898         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
8899         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
8900         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
8901         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
8902         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
8903         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
8904         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
8905         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
8906         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
8907         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
8908         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
8909         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
8910         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
8911         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
8912         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
8913         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
8914         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
8915         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
8916         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
8917         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
8918         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
8919         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
8920         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
8921         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
8922         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
8923         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
8924         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
8925         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
8926         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
8927         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
8928         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
8929         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
8930         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
8931         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
8932         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
8933         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
8934         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
8935         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
8936         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
8937         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
8938         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
8939         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
8940         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
8941         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
8942         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
8943         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
8944         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
8945         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
8946         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
8947         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
8948         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
8949         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
8950         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
8951         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
8952         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
8953         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
8954         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
8955         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
8956         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
8957         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
8958         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
8959         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
8960         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
8961         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
8962         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
8963         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
8964         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
8965         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
8966         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
8967         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
8968         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
8969         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
8970         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
8971         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
8972         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
8973         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
8974         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
8975         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
8976         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
8977         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
8978         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
8979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8980         Likewise.
8981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8982         Likewise.
8983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8984         Likewise.
8985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8986         Likewise.
8987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8988         Likewise.
8989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8990         Likewise.
8991         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8992         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8993         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8994         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8995         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8996         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8998         Likewise.
8999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
9000         Likewise.
9001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
9002         Likewise.
9003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
9004         Likewise.
9005         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
9006         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
9007         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
9008         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
9009
9010 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
9011
9012         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
9013         __jmp_buf_internal_tag.
9014
9015         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
9016         preserve NaN payload if [__mips_nan2008].
9017         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
9018
9019         [BZ #21022]
9020         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
9021
9022 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
9023
9024         * sysdeps/i386/fpu/libm-test-ulps: Update.
9025
9026 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9027
9028         * sysdeps/ia64/strcat.c: Remove file.
9029         * sysdeps/powerpc/strcat.c: Likewise.
9030         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
9031         C implementation.
9032         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
9033         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
9034
9035 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9036             Steven Munroe  <sjmunroe@us.ibm.com>
9037             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9038
9039         [BZ #20822]
9040         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9041         (__lll_lock_elision): Access adapt_count via C11 atomics.
9042         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9043         (__lll_trylock_elision): Likewise.
9044         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9045         (__lll_unlock_elision):  Update adapt_count variable inside the
9046         critical section using C11 atomics.
9047
9048 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
9049
9050         * math/test-fenvinline.c (do_test): Disable tests of raised
9051         exceptions if !EXCEPTION_TESTS (FLOAT).
9052
9053 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9054
9055         [BZ #19390]
9056         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
9057         maximum string size.
9058         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
9059         in pointer addition.
9060         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
9061         Likewise.
9062
9063 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
9064
9065         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
9066         passed to tst-ldconfig-X.sh.
9067
9068 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
9069
9070         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
9071
9072 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
9073
9074         [BZ #21019]
9075         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
9076         New syscall entry.
9077         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
9078         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
9079         lseek.
9080
9081         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9082         power4 glibc for powerpc-linux-gnu.
9083
9084 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9085
9086         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
9087         semctl.
9088
9089 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
9090
9091         * math/test-nearbyint-except.c: Include <stdbool.h>.
9092         (any_supported): New variable.
9093         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
9094         set any_supported.
9095         (do_test): Return 77 if no floating-point type supported
9096         exceptions.
9097
9098         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
9099         condition on [__mips_hard_float].
9100
9101 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9102
9103         [BZ #21014]
9104         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
9105         in pointer addition.
9106         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
9107
9108 2017-01-02  Torvald Riegel  <triegel@redhat.com>
9109
9110         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
9111         new condvar.
9112
9113 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
9114
9115         * scripts/build-many-glibcs.py (Context.checkout): Default
9116         binutils version to 2.28 branch.
9117
9118 2017-01-01  Florian Weimer  <fweimer@redhat.com>
9119
9120         * support/support_format_netent.c (support_format_netent): Work
9121         around alpha struct netent definition difference.
9122
9123 2017-01-01  Florian Weimer  <fweimer@redhat.com>
9124
9125         * support/xwrite.c (xwrite): Use %td for pointer difference.
9126
9127 2017-01-01  Florian Weimer  <fweimer@redhat.com>
9128
9129         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
9130         have-tunables only.
9131         (tests-static): Add tst-malloc-usable-static-tunables for
9132         have-tunables only.
9133
9134 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
9135
9136         * scripts/config.guess: Update to version 2017-01-01.
9137         * scripts/config.sub: Update to version 2017-01-01.
9138
9139         * NEWS: Update copyright dates.
9140         * catgets/gencat.c (print_version): Likewise.
9141         * csu/version.c (banner): Likewise.
9142         * debug/catchsegv.sh: Likewise.
9143         * debug/pcprofiledump.c (print_version): Likewise.
9144         * debug/xtrace.sh (do_version): Likewise.
9145         * elf/ldconfig.c (print_version): Likewise.
9146         * elf/ldd.bash.in: Likewise.
9147         * elf/pldd.c (print_version): Likewise.
9148         * elf/sotruss.sh: Likewise.
9149         * elf/sprof.c (print_version): Likewise.
9150         * iconv/iconv_prog.c (print_version): Likewise.
9151         * iconv/iconvconfig.c (print_version): Likewise.
9152         * locale/programs/locale.c (print_version): Likewise.
9153         * locale/programs/localedef.c (print_version): Likewise.
9154         * login/programs/pt_chown.c (print_version): Likewise.
9155         * malloc/memusage.sh (do_version): Likewise.
9156         * malloc/memusagestat.c (print_version): Likewise.
9157         * malloc/mtrace.pl: Likewise.
9158         * manual/libc.texinfo: Likewise.
9159         * nptl/version.c (banner): Likewise.
9160         * nscd/nscd.c (print_version): Likewise.
9161         * nss/getent.c (print_version): Likewise.
9162         * nss/makedb.c (print_version): Likewise.
9163         * posix/getconf.c (main): Likewise.
9164         * scripts/test-installation.pl: Likewise.
9165         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
9166
9167         * All files with FSF copyright notices: Update copyright dates
9168         using scripts/update-copyrights.
9169         * intl/plural.c: Regenerated.
9170         * locale/programs/charmap-kw.h: Likewise.
9171         * locale/programs/locfile-kw.h: Likewise.
9172
9173 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9174
9175         [BZ #20593]
9176         Update DNS RR type definitions.
9177         * scripts/gen-rrtypes.py: New file.
9178         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
9179         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
9180         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
9181         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
9182         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
9183         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
9184         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
9185         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
9186         ns_t_ta, ns_t_dlv.
9187         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
9188         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
9189         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
9190         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
9191         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
9192         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
9193         Define.
9194         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
9195         entry for ns_t_zxfr.
9196
9197 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9198
9199         [BZ #18784]
9200         CVE-2015-5180
9201         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
9202         T_UNSPEC.  Adjust value.
9203         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
9204         * resolv/res_query.c (__libc_res_nquery): Likewise.
9205         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
9206         QTYPEs.
9207         * resolv/tst-resolv-qtypes.c: New file.
9208         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
9209         (tst-resolv-qtypes): Link against libresolv and libpthread.
9210
9211 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9212
9213         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
9214
9215 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9216
9217         * manual/tunables.texi: New chapter.
9218         * manual/Makefile (chapters): Add it.
9219         * manual/probes.texi (@node): Point to the Tunables chapter.
9220
9221         * Makeconfig (have-tunables): Check for non-negative instead
9222         of positive.
9223         * configure.ac: Add 'valstring' as a valid value for
9224         --enable-tunables.
9225         * configure: Regenerate.
9226         * elf/Makefile (have-tunables): Check for non-negative instead
9227         of positive.
9228         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
9229         dl-tunables.c.
9230         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
9231         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
9232         (tunables_strdup): Likewise.
9233         (disable_tunables): Likewise.
9234         (parse_tunables): Likewise.
9235         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
9236         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
9237         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
9238         (TUNABLES_FRONTEND_yes): New macro, define as
9239         TUNABLES_FRONTEND_valstring by default.
9240         * manual/install.texi: Document new acceptable values for
9241         --enable-tunables.
9242         * INSTALL: Regenerate.
9243
9244         * config.make.in (have-loop-to-function): Define.
9245         * elf/Makefile (CFLAGS-dl-tunables.c): Add
9246         -fno-tree-loop-distribute-patterns.
9247         * elf/dl-tunables.c: Include libc-internals.h.
9248         (GLIBC_TUNABLES): New macro.
9249         (tunables_strdup): New function.
9250         (parse_tunables): New function.
9251         (min_strlen): New function.
9252         (__tunables_init): Use the new functions and macro.
9253         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
9254         * malloc/tst-malloc-usable-tunables.c: New test case.
9255         * malloc/tst-malloc-usable-static-tunables.c: New test case.
9256         * malloc/Makefile (tests, tests-static): Add tests.
9257
9258         * manual/install.texi: Add --enable-tunables option.
9259         * INSTALL: Regenerate.
9260         * README.tunables: New file.
9261         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
9262         (before-compile): Generate dl-tunable-list.h early.
9263         * config.h.in: Add HAVE_TUNABLES.
9264         * config.make.in: Add have-tunables.
9265         * configure.ac: Add --enable-tunables option.
9266         * configure: Regenerate.
9267         * csu/init-first.c (__libc_init_first): Move
9268         __libc_init_secure earlier...
9269         * csu/init-first.c (LIBC_START_MAIN):... to here.
9270         Include dl-tunables.h, libc-internal.h.
9271         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
9272         binaries.
9273         * elf/Makefile (dl-routines): Add dl-tunables.
9274         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
9275         namespace.
9276         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
9277         only when !HAVE_TUNABLES.
9278         * elf/rtld.c (process_envvars): Likewise.
9279         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
9280         (_dl_sysdep_start): Call __tunables_init.
9281         * elf/dl-tunable-types.h: New file.
9282         * elf/dl-tunables.c: New file.
9283         * elf/dl-tunables.h: New file.
9284         * elf/dl-tunables.list: New file.
9285         * malloc/tst-malloc-usable-static.c: New test case.
9286         * malloc/Makefile (tests-static): Add it.
9287         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
9288         Define TUNABLE_NAMESPACE.
9289         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
9290         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
9291         callback functions.
9292         (ptmalloc_init): Set tunable values.
9293         * scripts/gen-tunables.awk: New file.
9294         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
9295         (_dl_sysdep_start): Call __tunables_init.
9296
9297 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9298
9299         * resolv/resolv.h (RES_BLAST): Deprecate.
9300         * resolv/res_debug.c (p_option): Remove RES_BLAST.
9301         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
9302         to RES_BLAST.
9303
9304 2016-12-27  Florian Weimer  <fweimer@redhat.com>
9305
9306         [BZ #19582]
9307         Deprecate RES_USE_INET6.
9308         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
9309         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
9310         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
9311         RES_USE_INET6.
9312         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
9313         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
9314         (_nss_nisplus_gethostbyaddr_r): Likewise.
9315         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
9316         of res_use_inet6.
9317         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
9318         instead of RES_USE_INET6.
9319         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
9320         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
9321         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
9322         Likewise.
9323         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
9324         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
9325         Likewise.
9326         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
9327         (_nss_dns_gethostbyname_r): Likewise.
9328         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
9329         alternate RES_USE_INET6 handling.
9330         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
9331         instead of RES_USE_INET6.
9332         * resolv/res_init.c (res_setoptions): Likewise.
9333         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
9334         * resolv/resolv-internal.h: New file.
9335         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
9336         make the deprecation warning non-fatal.
9337         * resolv/README (Using the resolver in multi-threaded code): Drop
9338         reference to RES_USE_INET6.
9339         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
9340         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
9341
9342 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9343
9344         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
9345         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
9346         tst-resolv-search.
9347         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
9348         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
9349         with libresolv and libpthread.
9350         * resolv/tst-bug18665.c: New file.
9351         * resolv/tst-bug18665-tcp: Likewise.
9352         * resolv/tst-res_use_inet6: Likewise.
9353         * resolv/tst-resolv-basic: Likewise.
9354         * resolv/tst-resolv-network: Likewise.
9355         * resolv/tst-resolv-search: Likewise.
9356         * support/Makefile (libsupport-routines): Add check_addrinfo,
9357         check_dns_packet, check_hostent, check_netent, resolv_test,
9358         support_format_address_family, support_format_addrinfo,
9359         support_format_dns_packet, support_format_herrno,
9360         support_format_hostent, support_format_netent, support_run_diff,
9361         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
9362         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
9363         xstrdup, xwrite.
9364         * support/check_addrinfo.c: New file.
9365         * support/check_dns_packet.c: Likewise.
9366         * support/check_hostent.c: Likewise.
9367         * support/check_netent.c: Likewise.
9368         * support/check_nss.h: Likewise.
9369         * support/format_nss.h: Likewise.
9370         * support/resolv_test.c: Likewise.
9371         * support/resolv_test.h: Likewise.
9372         * support/run_diff.h: Likewise.
9373         * support/support_format_address_family.c: Likewise.
9374         * support/support_format_addrinfo.c: Likewise.
9375         * support/support_format_dns_packet.c: Likewise.
9376         * support/support_format_herrno.c: Likewise.
9377         * support/support_format_hostent.c: Likewise.
9378         * support/support_format_netent.c: Likewise.
9379         * support/support_run_diff.c: Likewise.
9380         * support/xaccept.c: Likewise.
9381         * support/xbind.c: Likewise.
9382         * support/xconnect.c: Likewise.
9383         * support/xfclose.c: Likewise.
9384         * support/xfopen.c: Likewise.
9385         * support/xgetsockname.c: Likewise.
9386         * support/xlisten.c: Likewise.
9387         * support/xmemstream.c: Likewise.
9388         * support/xmemstream.h: Likewise.
9389         * support/xpoll.c: Likewise.
9390         * support/xpthread_once.c: Likewise.
9391         * support/xrecvfrom.c: Likewise.
9392         * support/xsendto.c: Likewise.
9393         * support/xsetsockopt.c: Likewise.
9394         * support/xstdio.h: Likewise.
9395         * support/xstrdup.c: Likewise.
9396         * support/support.h (xstrdup): Declare.
9397         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
9398         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
9399         * support/xthread.h (xpthread_once): Likwise.
9400         * support/xunistd.h (xwrite): Declare.
9401
9402 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9403
9404         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
9405         (test_verbose): Declare.
9406         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
9407         * support/support_test_main.c (default_options): Likewise.
9408         (usage, support_test_main): Handle 'v'.
9409         (test_verbose): Define.
9410         * support/tst-support_record_failure.c (do_test): Use
9411         test_verbose.
9412         * support/tst-support_record_failure-2.sh (different_status): Add
9413         --verbose test.
9414
9415 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9416
9417         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
9418         test failures are recorded.
9419         * support/check.c (support_print_failure_impl): Call
9420         support_record_failure.
9421         (support_exit_failure_impl): Call support_record_failure if status
9422         indicates failure.
9423         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
9424         * support/xasprintf.c (xasprintf): Likewise.
9425         * support/xfork.c (xfork): Likewise.
9426         * support/xpthread_check_return.c (xpthread_check_return):
9427         Likewise.
9428         * support/xsocket.c (xsocket): Likeweise.
9429         * support/xwaitpid.c (xwaitpid): Likewise.
9430         * support/support_record_failure.c (struct test_failures): Adjust
9431         to coding style.
9432         * support/support_test_verify_impl.c (support_test_verify_impl):
9433         Adjust error messages.
9434         * support/tst-support_record_failure-2.sh (different_status):
9435         Adjust error messages.
9436
9437 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9438
9439         * support/namespace.h: New file.
9440         * support/support_become_root.c: Likewise.
9441         * support/support_enter_network_namespace.c: Likewise.
9442         * support/tst-support-namespace.c: Likewise.
9443         * support/xsocket.c: Likewise.
9444         * support/xsocket.h: Likewise.
9445         * support/Makefile (libsupport-routines): Add support_become_root,
9446         support_enter_network_namespace, xsocket.
9447         (tests): Add tst-support-namespace.
9448
9449 2016-12-31  Florian Weimer  <fweimer@redhat.com>
9450
9451         [BZ #17252]
9452         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
9453         __USE_GNU.
9454
9455 2016-12-31  Torvald Riegel  <triegel@redhat.com>
9456
9457         [BZ #13165]
9458         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
9459         use new algorithm.
9460         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9461         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9462         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9463         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
9464         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
9465         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
9466         __condvar_cleanup_waiting, __condvar_dec_grefs,
9467         __pthread_cond_wait_common): New.
9468         (__condvar_cleanup): Remove.
9469         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
9470         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
9471         Likewise.
9472         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
9473         Likewise.
9474         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
9475         * nptl/tst-cond1.c: Add comment.
9476         * nptl/tst-cond20.c (do_test): Adapt.
9477         * nptl/tst-cond22.c (do_test): Likewise.
9478         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
9479         structure.
9480         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9481         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9482         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9483         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
9484         Likewise.
9485         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9486         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9487         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9488         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9489         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9490         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
9491         Likewise.
9492         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
9493         Likewise.
9494         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
9495         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
9496         (COND_CLOCK_BITS): Adapt.
9497         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
9498         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
9499         __PTHREAD_COND_SHARED_MASK): New.
9500         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
9501         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
9502         * nptl/nptl_lock_constants.pysym: Adapt.
9503         * nptl/test-cond-printers.py: Adapt.
9504         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
9505         cond_compat_check_and_clear): Adapt.
9506         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
9507         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9508         (__pthread_cond_timedwait): ... and move here.
9509         * nptl/DESIGN-condvar.txt: Remove file.
9510         * nptl/lowlevelcond.sym: Likewise.
9511         * nptl/pthread_cond_timedwait.c: Likewise.
9512         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
9513         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
9514         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9515         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9516         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
9517         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
9518         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
9519         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
9520         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
9521         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
9522         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
9523         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
9524         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
9525         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
9526         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9527         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9528
9529 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
9530
9531         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9532         (fromfp): New declaration.
9533         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
9534         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
9535         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
9536         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
9537         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
9538         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
9539         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
9540         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
9541         * math/math.h: Include <bits/types.h>.
9542         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
9543         constant and macro.
9544         (FP_INT_DOWNWARD): Likewise.
9545         (FP_INT_TOWARDZERO): Likewise.
9546         (FP_INT_TONEARESTFROMZERO): Likewise.
9547         (FP_INT_TONEAREST): Likewise.
9548         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
9549         (fromfpf): Likewise.
9550         (fromfpl): Likewise.
9551         (ufromfp): Likewise.
9552         (ufromfpf): Likewise.
9553         (ufromfpl): Likewise.
9554         (fromfpx): Likewise.
9555         (fromfpxf): Likewise.
9556         (fromfpxl): Likewise.
9557         (ufromfpx): Likewise.
9558         (ufromfpxf): Likewise.
9559         (ufromfpxl): Likewise.
9560         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
9561         s_fromfpxF and s_ufromfpxF.
9562         * math/gen-fromfp-tests.py: New file.
9563         * math/gen-fromfp-tests-inputs: Likewise.
9564         * math/libm-test.inc: Include <stdint.h>
9565         (check_intmax_t): New function.
9566         (check_uintmax_t): Likewise.
9567         (struct test_fiu_M_data): New type.
9568         (struct test_fiu_U_data): Likewise.
9569         (RUN_TEST_fiu_M): New macro.
9570         (RUN_TEST_LOOP_fiu_M): Likewise.
9571         (RUN_TEST_fiu_U): Likewise.
9572         (RUN_TEST_LOOP_fiu_U): Likewise.
9573         (fromfp_test_data): New array.
9574         (fromfp_test): New function.
9575         (fromfpx_test_data): New array.
9576         (fromfpx_test): New function.
9577         (ufromfp_test_data): New array.
9578         (ufromfp_test): New function.
9579         (ufromfpx_test_data): New array.
9580         (ufromfpx_test): New function.
9581         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
9582         ufromfpx_test.
9583         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
9584         characters.
9585         * math/test-tgmath-ret.c: Include <stdint.h>.
9586         (rm): New variable.
9587         (width): Likewise.
9588         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
9589         called function.
9590         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
9591         CHECK_RET_CONST_TYPE.
9592         (CHECK_RET_CONST_DOUBLE): Likewise.
9593         (CHECK_RET_CONST_LDOUBLE): Likewise.
9594         (CHECK_RET_CONST): Take extra arguments and pass them to calls
9595         macros.
9596         (fromfp): New CHECK_RET_CONST call.
9597         (ufromfp): Likewise.
9598         (fromfpx): Likewise.
9599         (ufromfpx): Likewise.
9600         (do_test): Call check_return_fromfp, check_return_ufromfp,
9601         check_return_fromfpx and check_return_ufromfpx.
9602         * math/test-tgmath.c: Include <stdint.h>
9603         (NCALLS): Increase to 138.
9604         (F(compile_test)): Initialize i.  Call fromfp functions.
9605         (F(fromfp)): New function.
9606         (F(fromfpx)): Likewise.
9607         (F(ufromfp)): Likewise.
9608         (F(ufromfpx)): Likewise.
9609         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
9610         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
9611         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
9612         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
9613         ufromfpxl.
9614         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
9615         ufromfp and ufromfpx.
9616         * math/fromfp.h: New file.
9617         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
9618         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
9619         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
9620         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
9621         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
9622         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
9623         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
9624         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
9625         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
9626         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
9627         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
9628         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
9629         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
9630         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
9631         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
9632         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
9633         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
9634         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
9635         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
9636         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
9637         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
9638         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
9639         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
9640         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
9641         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
9642         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
9643         ufromfp, fromfpx and ufromfpx.
9644         (CFLAGS-nldbl-fromfp.c): New variable.
9645         (CFLAGS-nldbl-fromfpx.c): Likewise.
9646         (CFLAGS-nldbl-ufromfp.c): Likewise.
9647         (CFLAGS-nldbl-ufromfpx.c): Likewise.
9648         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
9649         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
9650         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
9651         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
9652         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
9653         * sysdeps/nacl/libm.abilist: Update.
9654         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9655         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9656         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9657         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9658         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9659         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9660         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9661         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9662         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9663         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9664         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9665         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9667         Likewise.
9668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9669         Likewise.
9670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9671         Likewise.
9672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9673         Likewise.
9674         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9675         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9676         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9677         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9678         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9679         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9680         Likewise.
9681         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9682         Likewise.
9683         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9684         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9685         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9686
9687 2016-12-30  Florian Weimer  <fweimer@redhat.com>
9688
9689         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
9690         compat-gethnamaddr.
9691         (CPPFLAGS): Remove.
9692         * resolv/gethnamaddr.c: Rename ...
9693         * resolv/compat-gethnamaddr.c: ... to this file.
9694         (_endhtent): Make static.
9695         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
9696         symbol.
9697         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
9698         compat symbol.
9699         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
9700         symbol.
9701         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
9702         Turn into compat symbol.
9703         * include/resolv.h (_endhtent): Remove declaration.
9704
9705 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
9706
9707         * bits/types.h (__intmax_t): New typedef.
9708         (__uintmax_t): Likewise.
9709         * sysdeps/generic/stdint.h: Include <bits/types.h>.
9710         (intmax_t): Define using __intmax_t.
9711         (uintmax_t): Define using __uintmax_t.
9712
9713         * support/Makefile (tests-special): Make definition conditional on
9714         [$(run-built-tests) = yes].
9715         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
9716         on [$(run-built-tests) = yes].
9717
9718 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9719
9720         * Rules (tests): Add tests-printers-programs to tests to be
9721         built.
9722
9723 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9724
9725         * sysvipc/Makefile (tests): Add test-sysvshm.
9726         * sysvipc/test-sysvshm.c: New file.
9727
9728         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
9729         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
9730         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
9731         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
9732         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
9733         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
9734         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
9735         Likewise.
9736         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
9737         Likewise.
9738         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
9739         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
9740         is defined.
9741
9742         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
9743         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
9744         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
9745         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
9746         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
9747         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
9748         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
9749         Likewise.
9750         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
9751         Likewise.
9752         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
9753         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
9754         defined.
9755
9756         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
9757         oldshmctl.
9758         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
9759         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
9760         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
9761         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
9762         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
9763         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
9764         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
9765         Likewise.
9766         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
9767         Likewise.
9768         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
9769         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
9770         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
9771         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
9772         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
9773         implementation.
9774         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
9775         if it is defined.
9776
9777         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
9778         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
9779         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
9780         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
9781         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
9782         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
9783         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
9784         Likewise.
9785         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
9786         Likewise.
9787         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
9788         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
9789         Define to __NR_osf_shmat.
9790         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
9791         defined.
9792
9793         * sysvipc/Makefile (tests): Add test-sysvsem.
9794         * sysvipc/test-sysvsem.c: New file.
9795
9796         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
9797         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
9798         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
9799         Likewise.
9800         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
9801         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
9802         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
9803         Likewise.
9804         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
9805         Likewise.
9806         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
9807         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
9808         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
9809         add a comment about s390 syscall difference from default one.
9810         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
9811         syscall if it is defined.
9812
9813         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
9814         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
9815         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
9816         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
9817         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
9818         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
9819         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
9820         Likewise.
9821         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
9822         Likewise.
9823         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
9824         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
9825         defined.
9826
9827         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
9828         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
9829         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
9830         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
9831         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
9832         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
9833         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
9834         Likewise.
9835         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
9836         Likewise.
9837         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
9838         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
9839         if it is defined.
9840
9841         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
9842         oldsemctl.
9843         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
9844         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
9845         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
9846         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
9847         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
9848         implementation.
9849         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
9850         syscall if it is defined.
9851         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
9852         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
9853         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
9854         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
9855         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
9856         Likewise.
9857         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
9858
9859         * sysvipc/Makefile (tests): Add test-sysvmsg.
9860         * sysvipc/test-sysvmsg.c: New file.
9861         * support/check.h (FAIL_UNSUPPORTED): New define.
9862
9863         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
9864         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
9865         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
9866         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
9867         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
9868         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
9869         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
9870         Likewise.
9871         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
9872         Likewise.
9873         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
9874         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
9875         define.
9876
9877         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
9878         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
9879         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
9880         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
9881         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
9882         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
9883         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
9884         Likewise.
9885         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
9886         Likewise.
9887         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
9888         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
9889         if defined.
9890
9891         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
9892         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
9893         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
9894         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
9895         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
9896         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
9897         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
9898         Likewise.
9899         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
9900         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
9901         Likewise.
9902         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
9903         if defined.
9904         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
9905
9906         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
9907         oldmsgctl.
9908         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
9909         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
9910         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
9911         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
9912         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
9913         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
9914         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
9915         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
9916         Likewise.
9917         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
9918         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
9919         implementation.
9920         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
9921         if defined.
9922
9923         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
9924         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
9925         definition and define its own.
9926         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
9927         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
9928         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
9929         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
9930         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
9931         definitions to common header.
9932         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
9933         operation from ipc_ops.h.
9934
9935         * sysdeps/unix/sysv/linux/kernel-features.h
9936         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
9937         * sysdeps/unix/sysv/linux/i386/kernel-features.h
9938         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
9939         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
9940         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
9941         * sysdeps/unix/sysv/linux/mips/kernel-features.h
9942         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
9943         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9944         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
9945         * sysdeps/unix/sysv/linux/s390/kernel-features.h
9946         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
9947         * sysdeps/unix/sysv/linux/sh/kernel-features.h
9948         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
9949         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9950         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
9951
9952 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9953
9954         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
9955         overflow in pointer addition.
9956
9957 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9958
9959         * sysdeps/powerpc/powerpc64/multiarch/Makefile
9960         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
9961         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9962         (strchr): Add __strchr_power8 to list of strchr functions.
9963         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
9964         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
9965         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
9966         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
9967         (strchr): Add __strchr_power8 to ifunc list.
9968         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
9969         (__strchrnul): Add __strchrnul_power8 to ifunc list.
9970         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
9971         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
9972
9973 2016-12-28  Florian Weimer  <fweimer@redhat.com>
9974
9975         * support/Makefile (libsupport-routines): Add
9976         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
9977         (tests): Add tst-support_record_failure.
9978         (tests-special): tst-support_record_failure-2.
9979         (tst-support_record_failure-2.out): Depend on
9980         tst-support_record_failure-2.sh and tst-support_record_failure.
9981         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
9982         (support_test_verify_impl, support_record_failure)
9983         (support_report_failure, support_report_failure_reset): Declare.
9984         * support/support_test_main.c (adjust_exit_status): New function.
9985         (support_test_main): Call it to incorporate record test failures.
9986         * support/support_test_verify_impl.c: New file.
9987         * support/support_record_failure.c: Likewise.
9988         * support/tst-support_record_failure.c: Likewise.
9989         * support/tst-support_record_failure-2.sh: Likewise.
9990         * support/xunistd.h: Likewise.
9991         * support/xfork.c: Likewise.
9992         * support/xwaitpid.c: Likewise.
9993
9994 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
9995
9996         * scripts/check-c++-types.sh: Add comments.
9997
9998 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
9999
10000         [BZ #19514]
10001         * resolv/res_send.c: Fix typo in comment.
10002         * sysdeps/i386/i386-mcount.S: Likewise.
10003         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
10004         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
10005         * sysdeps/sparc/sparc-mcount.S: Likewise.
10006
10007 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10008
10009         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
10010         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
10011         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
10012         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
10013         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
10014         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
10015         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
10016         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
10017
10018 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10019
10020         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
10021
10022 2016-12-27  Florian Weimer  <fweimer@redhat.com>
10023
10024         [BZ #17252]
10025         * posix/unistd.h (getentropy): Declare.
10026
10027 2016-12-27  Florian Weimer  <fweimer@redhat.com>
10028
10029         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
10030         Remove.
10031         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
10032         (cmd): Remove spoof, nospoof, spoofalert.
10033         (parse_line): Ignore spoof-related lines.
10034         (do_init): Do not process RESOLV_SPOOF_CHECK.
10035
10036 2016-12-27  Florian Weimer  <fweimer@redhat.com>
10037
10038         [BZ #20964]
10039         sunrpc: Always obtain AF_INET addresses from NSS.
10040         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
10041         * sunrpc/rpc_gethostbyname.c: New file.
10042         * sunrpc/Makefile (routines): Add it.
10043         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
10044         * sunrpc/clnt_simp.c (callrpc): Likewise.
10045         * sunrpc/getrpcport.c (getrpcport): Likewise.
10046
10047 2016-12-27  Florian Weimer  <fweimer@redhat.com>
10048
10049         * sunrpc/rpcinfo.c: Remove.
10050         * sunrpc/Makefile: Remove comments referring to rpcinfo.
10051
10052 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10053
10054         [BZ #19387]
10055         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
10056         addition.
10057         * string/test-memchr.c (do_test): Remove alignment limitation.
10058         (test_main): Add test that trigger BZ #19387.
10059
10060 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10061
10062         [BZ #7065]
10063         Enable stack protectore if requested by ./configure.
10064         * Makeconfig (+stack-protector): New variable.
10065         (+cflags): Use it.
10066
10067 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10068
10069         [BZ #7065]
10070         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
10071         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
10072         (__rt_sigreturn_stub): Use inhibit_stack_protector.
10073         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
10074         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
10075
10076 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10077
10078         [BZ #7065]
10079         * login/Makefile (pt_chown-cflags): Remove.
10080         * nscd/Makefile (CFLAGS-nscd): Likewise.
10081         * resolv/Makefile (CFLAGS-libresolv): Likewise.
10082
10083 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10084
10085         [BZ #7065]
10086         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
10087         non-libc-linking testcase.
10088
10089 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10090             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10091             Florian Weimer  <fweimer@redhat.com>
10092
10093         [BZ #7065]
10094         PLT avoidance for __stack_chk_fail*.
10095         * debug/Makefile (CFLAGS-stack_chk_fail.c)
10096         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
10097         * debug/stack_chk_fail.c (__stack_chk_fail): Add
10098         __stack_chk_fail_local alias.
10099         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
10100         (__stack_chk_fail): Turn into hidden reference to
10101         __stack_chk_fail_local.
10102
10103 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10104
10105         [BZ #7065]
10106         * configure.ac: Add check for unsupported stack-protection level.
10107         (libc_cv_predef_stack_protector): Remove.
10108         (no_ssp): New variable.
10109         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
10110         (stack_protector): Set to -fno-stack-protector similarly.
10111         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
10112         (libc_cv_asm_set_directive): Likewise.
10113         (libc_cv_protected_data): Likewise.
10114         (libc_cv_z_combreloc): Likewise.
10115         (libc_cv_hashstyle): Likewise.
10116         (libc_cv_has_glob_dat): Likewise.
10117         (libc_cv_output_format): Likewise.
10118         (libc_cv_output_format): Likewise.
10119         (libc_cv_ehdr_start): Likewise.
10120         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
10121         (LIBC_LINKER_FEATURE): Likewise.
10122         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
10123
10124 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10125
10126         [BZ #7065]
10127         * elf/Makefile (dummy-stack-chk-fail): New.
10128         (librtld.map): Use it.
10129
10130 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10131
10132         [BZ #7065]
10133         Compile the dynamic linker without stack protection.
10134         * elf/Makefile (elide-stack-protector): New.
10135         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
10136         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
10137         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
10138         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
10139
10140 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10141
10142         [BZ #7065]
10143         * config.make.in (have-ssp, no-stack-protector): New.
10144         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
10145         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
10146         (CFLAGS-sbrk.op): Likewise.
10147         (CFLAGS-brk.o): Likewise.
10148         (CFLAGS-brk.op): Likewise.
10149         * string/Makefile (CFLAGS-memcpy.c): Likewise.
10150         (CFLAGS-wordcopy.c): Likewise.
10151
10152 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10153
10154         [BZ #7065]
10155         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
10156         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
10157         * include/libc-symbols.h (inhibit_stack_protector): New macro.
10158         (__ifunc_resolver): Use it.
10159         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
10160         inhibit_stack_protector.
10161         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
10162         * elf/ifuncmain7.c (foo_ifunc): Likewise.
10163         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
10164         (foo_protected_ifunc): Likewise.
10165         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
10166         (foo_protected_ifunc): Likewise.
10167         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
10168         * sysdeps/nacl/nacl_interface_query.c
10169         (nacl_interface_query_ifunc): Likewise.
10170         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
10171         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
10172         Likewise.
10173         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
10174         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
10175         the generated vDSO syscall resolver.
10176
10177 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10178             Florian Weimer  <fweimer@redhat.com>
10179
10180         [BZ #7065]
10181         Initialize the stack guard earlier when linking statically.
10182         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
10183         (__pthread_initialize_minimal): Declare.
10184         * csu/libc-start.c (__pthread_initialize_minimal): Remove
10185         declaration.
10186         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
10187         stack canary and apply_irel initialization up.  Call
10188         __pthread_initialize_minimal only if linked in.
10189         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
10190         constant values.
10191         (__pthread_initialize_minimal): Remove.
10192         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
10193         (__pthread_initialize_minimal_internal): Do not call
10194         __libc_setup_tls.
10195
10196 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
10197
10198         [BZ #7065]
10199         * configure.ac (libc_cv_ssp): Move up.
10200         (libc_cv_ssp_strong): Likewise.
10201         (libc_cv_ssp_all): New.
10202         (stack_protector): Augment, adding -fstack-protector-all.
10203         (no_stack_protector): New.
10204         (STACK_PROTECTOR_LEVEL): New.
10205         (AC_ARG_ENABLE(stack-protector)): New configure flag.
10206         * manual/install.texi (--enable-stack-protector): Document it.
10207         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
10208
10209 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
10210
10211         * README.pretty-printers: Must specify CPPFLAGS-* also.
10212         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
10213         (CPPFLAGS-test-mutex-printers.c): Define.
10214         (CPPFLAGS-test-condattr-printers.c): Define.
10215         (CPPFLAGS-test-cond-printers.c): Define.
10216         (CPPFLAGS-test-rwlockattr-printers.c): Define.
10217         (CPPFLAGS-test-rwlock-printers.c): Define.
10218
10219         * nss/Makefile [ifeq (yes,$(have-thread-library))]
10220         (tests): Add tst-cancel-getpwuid_r.
10221         * nss/tst-cancel-getpwuid_r.c: New file.
10222
10223         [BZ #11941]
10224         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
10225         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
10226         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
10227         tst-nodelete-dlclose.
10228         (modules-names): Add tst-nodelete-dlclose-dso and
10229         tst-nodelete-dlclose-plugin.
10230         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
10231         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
10232         ($(objpfx)tst-nodelete-dlclose): Define.
10233         ($(objpfx)tst-nodelete-dlclose.out): Define.
10234
10235 2016-12-23  Florian Weimer  <fweimer@redhat.com>
10236
10237         * scripts/test_printers_common.py: Log GDB output in case of
10238         Python detection failure.
10239
10240 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10241
10242         * configure.ac: Check for python3 or python.
10243         * configure: Regenerated.
10244         * config.make.in (PYTHON): New variable.
10245         * benchtests/Makefile: Don't define PYTHON.
10246         (bench): Define target only if PYTHON was defined.
10247         * Rules: Don't define PYTHON.
10248         Define pretty printer targets only if PYTHON was defined.
10249         (tests-printers): Add to tests-unsupported if PYTHON is not
10250         found.
10251         (python-flags, python-invoke): Remove.
10252         (tests-printers-out): Use PYTHON instead of python-invoke.
10253
10254 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
10255
10256         [BZ #20978]
10257         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
10258         Compare name == NULL, not name != NULL.
10259
10260         * manual/texinfo.tex: Update to version 2016-09-18.18 with
10261         trailing whitespace removed.
10262         * scripts/config.guess: Update to version 2016-10-02.
10263         * scripts/config.sub: Update to version 2016-11-19.
10264         * scripts/install-sh: Update to version 2016-01-11.22.
10265         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
10266         * scripts/move-if-change: Update to version 2016-01-11 22:04.
10267
10268 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
10269
10270         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
10271         (do_one_test) Restore original string so iteration works.
10272         * string/string-inlines.c (do_test): Create better input strings.
10273         (test_main) Reduce number of testruns.
10274         * string/string-inlines.c (__old_strsep_1c): New function.
10275         (__old_strsep_2c): Likewise.
10276         (__old_strsep_3c): Likewise.
10277         * string/strsep.c (__strsep): Remove case of small delim string.
10278         Call strcspn directly rather than strpbrk.
10279         * string/bits/string2.h (__strsep): Remove define.
10280         (__strsep_1c): Remove.
10281         (__strsep_2c): Remove.
10282         (__strsep_3c): Remove.
10283         (strsep): Remove.
10284         * sysdeps/unix/sysv/linux/internal_statvfs.c
10285         (__statvfs_getflags): Rename to __strsep.
10286
10287 2016-12-21  Florian Weimer  <fweimer@redhat.com>
10288
10289         * csu/libc-tls.c (_dl_tls_setup): Remove.
10290         * elf/dl-tls.c (_dl_tls_setup): Likewise.
10291         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
10292         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
10293
10294 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
10295
10296         [BZ #7065]
10297         * sysdeps/x86_64/Makefile [$(subdir) = elf]
10298         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
10299
10300 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
10301             Florian Weimer  <fweimer@redhat.com>
10302
10303         [BZ #7065]
10304         * csu/Makefile (tests): Empty assignment and document it.
10305         (tests-static): Remove.
10306         * csu/tst-empty.c: Move to...
10307         * misc/tst-empty.c: ... here.  Switch to new test driver.
10308         * csu/tst-atomic.c: Move to...
10309         * misc/tst-atomic.c: ... here.  Switch to new test driver.
10310         * csu/tst-atomic-long.c: Move to...
10311         * misc/tst-atomic-long.c: ... here.
10312         * misc/Makefile (tests): Add tst-empty, tst-atomic,
10313         tst-atomic-long.
10314         (tests-static): Add tst-empty.
10315
10316 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
10317
10318         * manual/nss.texi: Change incorrect @vtable to @table.
10319         * manual/arith.texi: Convert @tables of variables to @vtables
10320         and remove unnecessary indexing.
10321         * manual/filesys.texi: Likewise.
10322         * manual/llio.texi: Likewise.
10323         * manual/memory.texi: Likewise.
10324         * manual/process.texi: Likewise.
10325         * manual/resource.texi: Likewise.
10326         * manual/search.texi: Likewise.
10327         * manual/signal.texi: Likewise.
10328         * manual/socket.texi: Likewise.
10329         * manual/stdio.texi: Likewise.
10330         * manual/sysinfo.texi: Likewise.
10331         * manual/syslog.texi: Likewise.
10332         * manual/terminal.texi: Likewise.
10333         * manual/time.texi: Likewise.
10334         * manual/users.texi: Likewise.
10335
10336 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
10337
10338         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10339         (roundeven): New declaration.
10340         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
10341         macro.
10342         * math/Versions (roundeven): New libm symbol at version
10343         GLIBC_2.25.
10344         (roundevenf): Likewise.
10345         (roundevenl): Likewise.
10346         * math/Makefile (libm-calls): Add s_roundevenF.
10347         * math/libm-test.inc (roundeven_test_data): New array.
10348         (roundeven_test): New function.
10349         (main): Call roundeven_test.
10350         * math/test-tgmath.c (NCALLS): Increase to 134.
10351         (F(compile_test)): Call roundeven.
10352         (F(roundeven)): New function.
10353         * manual/arith.texi (Rounding Functions): Document roundeven,
10354         roundevenf and roundevenl.
10355         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
10356         * include/math.h (roundeven): Use libm_hidden_proto.
10357         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
10358         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
10359         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
10360         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
10361         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
10362         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
10364         roundeven.
10365         (CFLAGS-nldbl-roundeven.c): New variable.
10366         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
10367         * sysdeps/nacl/libm.abilist: Update.
10368         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10369         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10370         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10371         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10372         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10373         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10374         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10375         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10376         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10377         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10378         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10379         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10381         Likewise.
10382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10383         Likewise.
10384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10385         Likewise.
10386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10387         Likewise.
10388         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10389         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10390         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10391         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10392         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10393         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10394         Likewise.
10395         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10396         Likewise.
10397         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10398         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10399         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10400
10401 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
10402
10403         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
10404         preprocessor indentation inside #if.
10405
10406 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10407
10408         * math/libm-test.inc (fmt_ftostr): New function.
10409         (print_float, check_float_internal): Replace some uses of
10410         FTOSTR with uses of fmt_ftostr.
10411         (print_max_error, print_complex_max_error, print_function_ulps)
10412         (print_complex_function_ulps): Remove uses of the macros
10413         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
10414         * math/test-double.h (FTOSTR): Define to strfromd.
10415         (PRINTF_EXPR): Delete.
10416         (PRINTF_XEXPR): Likewise.
10417         (PRINTF_NEXPR): Likewise.
10418         * math/test-float.h (FTOSTR): Define to strfromf.
10419         (PRINTF_EXPR): Delete.
10420         (PRINTF_XEXPR): Likewise.
10421         (PRINTF_NEXPR): Likewise.
10422         * math/test-ldouble.h (FTOSTR): Define to strfroml.
10423         (PRINTF_EXPR): Delete.
10424         (PRINTF_XEXPR): Likewise.
10425         (PRINTF_NEXPR): Likewise.
10426
10427 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
10428
10429         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10430         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
10431         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
10432         (__lll_lock_elision): Decrement adapt_count while unlocking
10433         instead of before locking.
10434         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
10435         (__lll_trylock_elision): Likewise.
10436         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
10437         (__lll_unlock_elision): Likewise.
10438
10439 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
10440
10441         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
10442         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
10443         Use __libc_tbegin_retry macro.
10444
10445 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
10446
10447         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
10448         Add -msoft-float.
10449         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
10450         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
10451         Use __libc_t* transaction macros instead of __builtin_t*.
10452         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
10453         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
10454
10455 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
10456
10457         * sysdeps/unix/sysv/linux/s390/elision-lock.c
10458         (__lll_lock_elision): Use atomics to load / store adapt_count.
10459         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
10460         (__lll_trylock_elision): Likewise.
10461
10462 2016-12-20  Florian Weimer  <fweimer@redhat.com>
10463
10464         Do not require memset elimination in explicit_bzero test.
10465         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
10466         (enum test_expectation): Add NO_EXPECTATIONS.
10467         (subtests): NO_EXPECTATIONS for ordinary clear.
10468         (check_test_buffer): Handle NO_EXPECTATIONS.
10469         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
10470
10471 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
10472
10473         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10474         (fmaxmag): New declaration.
10475         (fminmag): Likewise.
10476         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
10477         macro.
10478         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
10479         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
10480         (fmaxmagf): Likewise.
10481         (fmaxmagl): Likewise.
10482         (fminmag): Likewise.
10483         (fminmagf): Likewise.
10484         (fminmagl): Likewise.
10485         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
10486         * math/s_fmaxmag_template.c: New file.
10487         * math/s_fminmag_template.c: Likewise.
10488         * math/libm-test.inc (fmaxmag_test_data): New array.
10489         (fmaxmag_test): New function.
10490         (fminmag_test_data): New array.
10491         (fminmag_test): New function.
10492         (main): Call fmaxmag_test and fminmag_test.
10493         * math/test-tgmath.c (NCALLS): Increase to 132.
10494         (F(compile_test)): Call fmaxmag and fminmag.
10495         (F(fminmag)): New function.
10496         (F(fmaxmag)): Likewise.
10497         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
10498         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
10499         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
10500         fminmag.
10501         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
10502         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
10503         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
10504         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
10505         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
10506         and fminmag.
10507         (CFLAGS-nldbl-fmaxmag.c): New variable.
10508         (CFLAGS-nldbl-fminmag.c): Likewise.
10509         * sysdeps/nacl/libm.abilist: Update.
10510         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10511         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10512         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10513         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10514         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10515         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10516         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10517         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10518         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10519         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10520         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10521         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10523         Likewise.
10524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10525         Likewise.
10526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10527         Likewise.
10528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10529         Likewise.
10530         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10531         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10532         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10533         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10534         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10535         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10536         Likewise.
10537         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10538         Likewise.
10539         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10540         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10541         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10542
10543 2016-12-19  Torvald Riegel  <triegel@redhat.com>
10544
10545         [BZ #20973]
10546         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
10547         wake-up in robust mutexes.
10548         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
10549
10550 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10551
10552         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
10553         (CFLAGS-bench-fmaxf.c): New rule.
10554         (CFLAGS-bench-fminf.c): Likewise.
10555         * benchtests/fmaxf-inputs: New file.
10556         * benchtests/fminf-inputs: Likewise.
10557
10558         * benchtests/Makefile (bench-math): Add fmin and fmax.
10559         (CFLAGS-bench-fmax.c): New rule.
10560         (CFLAGS-bench-fmin.c): Likewise.
10561         * benchtests/fmax-inputs: New file.
10562         * benchtests/fmin-inputs: Likewise.
10563
10564         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
10565         parenthesis.
10566         (CMDLINE_PROCESS): Define using function instead of macro.
10567         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
10568         of test-skeleton.
10569         * benchtests/bench-memchr.c: Likewise.
10570         * benchtests/bench-memcmp.c: Likewise.
10571         * benchtests/bench-memcpy-large.c: Likewise.
10572         * benchtests/bench-memcpy.c: Likewise.
10573         * benchtests/bench-memmem.c: Likewise.
10574         * benchtests/bench-memmove-large.c: Likewise.
10575         * benchtests/bench-memmove.c: Likewise.
10576         * benchtests/bench-memset-large.c: Likewise.
10577         * benchtests/bench-memset.c: Likewise.
10578         * benchtests/bench-rawmemchr.c: Likewise.
10579         * benchtests/bench-strcasecmp.c: Likewise.
10580         * benchtests/bench-strcasestr.c: Likewise.
10581         * benchtests/bench-strcat.c: Likewise.
10582         * benchtests/bench-strchr.c: Likewise.
10583         * benchtests/bench-strcmp.c: Likewise.
10584         * benchtests/bench-strcpy.c: Likewise.
10585         * benchtests/bench-strcpy_chk.c: Likewise.
10586         * benchtests/bench-strlen.c: Likewise.
10587         * benchtests/bench-strncasecmp.c: Likewise.
10588         * benchtests/bench-strncmp.c: Likewise.
10589         * benchtests/bench-strncpy.c: Likewise.
10590         * benchtests/bench-strnlen.c: Likewise.
10591         * benchtests/bench-strpbrk.c: Likewise.
10592         * benchtests/bench-strrchr.c: Likewise.
10593         * benchtests/bench-strsep.c: Likewise.
10594         * benchtests/bench-strspn.c: Likewise.
10595         * benchtests/bench-strstr.c: Likewise.
10596         * benchtests/bench-strtok.c: Likewise.
10597
10598 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
10599
10600         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
10601         stepping identification.
10602         (init_cpu_features): Add handle of Haswell.
10603
10604 2016-11-25  Jim Meyering  <meyering@fb.com>
10605
10606         [BZ #20386]
10607         Let gcc detect assert(a = 1) errors.
10608         * assert/assert.h (assert): Rewrite, retaining the old definintion
10609         when required, but otherwise putting the expression as-is in an "if"
10610         expression (hence, with no added parentheses) within a statement
10611         expression.
10612
10613 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10614
10615         * benchtests/Makefile (binaries-benchset): Depend on libsupport
10616         DSO.
10617
10618 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
10619
10620         * Rules (python-flags, python-invoke): New.
10621         ($(test-printers-out)): Use $(python-flags).
10622
10623 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
10624
10625         * manual/arith.texi (Math Error Reporting): Document that sNaN
10626         arguments are not considered domain errors.
10627
10628 2016-12-16  Zack Weinberg <zackw@panix.com>
10629             Florian Weimer <fweimer@redhat.com>
10630             Nick Mathewson <nickm@torproject.org>
10631
10632         * string/explicit_bzero.c: New routine.
10633         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
10634         * string/Makefile (routines, strop-tests, tests): Add them.
10635         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
10636         * string/string.h [__USE_MISC]: Declare explicit_bzero.
10637
10638         * debug/explicit_bzero_chk.c: New routine.
10639         * debug/Makefile (routines): Add it.
10640         * debug/tst-chk1.c: Test fortification of explicit_bzero.
10641         * string/bits/string3.h: Fortify explicit_bzero.
10642
10643         * manual/string.texi: Document explicit_bzero.
10644         * NEWS: Mention addition of explicit_bzero.
10645
10646         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
10647         data before returning, using explicit_bzero.
10648         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
10649         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10650         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10651
10652         * include/string.h: Redirect internal uses of explicit_bzero
10653         to __explicit_bzero_chk[_internal].
10654         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
10655         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
10656         * sysdeps/arm/nacl/libc.abilist
10657         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
10658         * sysdeps/unix/sysv/linux/alpha/libc.abilist
10659         * sysdeps/unix/sysv/linux/arm/libc.abilist
10660         * sysdeps/unix/sysv/linux/hppa/libc.abilist
10661         * sysdeps/unix/sysv/linux/i386/libc.abilist
10662         * sysdeps/unix/sysv/linux/ia64/libc.abilist
10663         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
10664         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
10665         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
10666         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10667         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10668         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10669         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10670         * sysdeps/unix/sysv/linux/nios2/libc.abilist
10671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10675         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
10676         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10677         * sysdeps/unix/sysv/linux/sh/libc.abilist
10678         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
10679         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
10680         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
10681         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
10682         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
10683         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
10684         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
10685         Add entries for explicit_bzero and __explicit_bzero_chk.
10686
10687 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
10688
10689         * math/fenv.h
10690         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
10691         (FE_SNANS_ALWAYS_SIGNAL): New macro.
10692         * math/test-fe-snans-always-signal.c: New file.
10693         * math/Makefile (tests): Add test-fe-snans-always-signal.
10694         (CFLAGS-test-fe-snans-always-signal.c): New variable.
10695         * manual/arith.texi (Infinity and NaN): Document
10696         FE_SNANS_ALWAYS_SIGNAL.
10697
10698 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10699
10700         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
10701         bracket.
10702
10703 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
10704
10705         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
10706         before calling execv.
10707
10708 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10709
10710         [BZ #20971]
10711         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
10712         overflow in pointer addition.
10713         * string/test-memchr.c (do_test): Add an argument to pass as
10714         the size on memchr.
10715         (test_main): Add check for SIZE_MAX.
10716
10717 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10718
10719         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
10720         (libm-calls): Add w_scalblnF.
10721         * math/w_scalbln.c: Remove.
10722         * math/w_scalblnf.c: Likewise.
10723         * math/w_scalblnl.c: Likewise.
10724         * math/w_scalbln_template.c: New file with type-generic
10725         implementation based on math/w_scalbln.c.
10726         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
10727         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
10728
10729 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
10730
10731         [BZ #20947]
10732         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
10733         either is a signaling NaN.
10734         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
10735         follow fmaxl more closely.
10736         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
10737         when either is a signaling NaN.
10738         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
10739         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
10740         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
10741         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
10742         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
10743         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
10744         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
10745         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
10746         (fmin_test_data): Likewise.
10747
10748 2016-12-15  Andreas Schwab  <schwab@suse.de>
10749
10750         * support/support_test_main.c (support_test_main): Don't shadow
10751         file-local variable test_pid.
10752
10753 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
10754
10755         [BZ #20947]
10756         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
10757         either is a signaling NaN.
10758         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
10759
10760 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
10761
10762         [BZ #20947]
10763         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
10764         when either is a signaling NaN.
10765         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
10766
10767         * bits/long-double.h: New file.
10768         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
10769         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
10770         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
10771         * sysdeps/mips/bits/long-double.h: Likewise.
10772         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
10773         * math/Makefile (headers): Add bits/long-double.h.
10774         * misc/sys/cdefs.h: Include <bits/long-double.h>.
10775         * stdlib/strtold.c: Include <bits/long-double.h> instead of
10776         <bits/wordsize.h>.
10777         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
10778         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
10779         * math/math.h: Do not include <bits/mathdef.h>.
10780         * sysdeps/aarch64/bits/mathdef.h: Remove file.
10781         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
10782         inclusion.
10783         * sysdeps/ia64/bits/mathdef.h: Remove file.
10784         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
10785         * sysdeps/mips/bits/mathdef.h: Likewise.
10786         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10787         * sysdeps/s390/bits/mathdef.h: Likewise.
10788         * sysdeps/sparc/bits/mathdef.h: Likewise.
10789         * sysdeps/x86/bits/mathdef.h: Likewise.
10790         * sysdeps/s390/s390-32/bits/wordsize.h
10791         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
10792         conditional code.
10793         * sysdeps/s390/s390-64/bits/wordsize.h
10794         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
10795         Likewise.
10796         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
10797         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
10798         Likewise.
10799         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
10800         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
10801         Likewise.
10802         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
10803         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
10804         Likewise.
10805
10806         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
10807         <linux/falloc.h>.
10808         (FALLOC_FL_KEEP_SIZE): Remove.
10809         (FALLOC_FL_PUNCH_HOLE): Likewise.
10810         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
10811         (FALLOC_FL_ZERO_RANGE): Likewise.
10812
10813 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10814
10815         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
10816
10817 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10818
10819         * sysdeps/unix/sysv/linux/renameat.c: New file.
10820         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
10821
10822         * sysdeps/unix/sysv/linux/rename.c: New file.
10823         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
10824
10825 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
10826
10827         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
10828         * string/strtok.c (strtok): Change to tailcall __strtok_r.
10829         * string/strtok_r.c (__strtok_r): Optimize for performance.
10830         * string/string-inlines.c (__old_strtok_r_1c): New function.
10831         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
10832
10833 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10834
10835         * math/Makefile (gen-libm-calls): Add w_log1pF.
10836         (libm-calls): Remove w_log1pF.
10837         * math/w_log1p.c: Remove.
10838         * math/w_log1pf.c: Likewise.
10839         * math/w_log1pl.c: Likewise.
10840         * math/w_log1p_template.c: New file with type-generic
10841         implementation based on math/w_log1p.c.
10842         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
10843         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
10844
10845 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
10846
10847         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
10848
10849 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
10850
10851         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10852         kernel version to 4.9.
10853
10854 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
10855
10856         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
10857         ($(inst_libdir)/libm.a): Fix rule to create the target only.
10858
10859 2016-12-13  Andreas Schwab  <schwab@suse.de>
10860
10861         * sysdeps/powerpc/dl-procinfo.c: Don't define
10862         _dl_powerpc_platforms.
10863         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
10864         constants instead of referencing _dl_powerpc_platforms.
10865         (_dl_platform_string): Remove.
10866
10867 2016-12-13  Florian Weimer  <fweimer@redhat.com>
10868
10869         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
10870
10871 2016-12-13  Florian Weimer  <fweimer@redhat.com>
10872
10873         * Rules (binaries-shared-tests, binaries-pie-tests)
10874         (binaries-static-tests): Link with $(link-extra-libs-tests).
10875         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
10876         Remove $(link-extra-libs-tests).
10877
10878 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10879
10880         * sysdeps/powerpc/powerpc64/multiarch/Makefile
10881         (sysdep_routines): Add strncmp_power9.
10882         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10883         (strncmp): Add __strncmp_power9 to list of strncmp functions.
10884         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
10885         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10886         (strncmp): Add __strncmp_power9 to ifunc list.
10887         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
10888
10889 2016-12-12  Florian Weimer  <fweimer@redhat.com>
10890
10891         [BZ #17252]
10892         Add getentropy, getrandom.
10893         * stdlib/sys/random.h: New file.
10894         (headers): Add it.
10895         * stdlib/Makefile (routines): Add getentropy, getrandom.
10896         (tests): Add tst-getrandom.
10897         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
10898         * stdlib/getentropy.c: New file.
10899         * stdlib/getrandom.c: Likewise.
10900         * stdlib/tst-getrandom.c: Likewise.
10901         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
10902         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
10903         * manual/crypt.texi (Unpredictable Bytes): New section.
10904         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
10905         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
10906         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
10907         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10908         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10909         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10910         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10911         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10912         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10913         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10914         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10915         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10916         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10917         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10918         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10919         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10921         Likewise.
10922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10923         Likewise.
10924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10926         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10927         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10928         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10929         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10930         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10931         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
10932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
10933         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10934         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10935         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10936
10937 2016-12-10  Florian Weimer  <fweimer@redhat.com>
10938
10939         [BZ #20956]
10940         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
10941         as additional compiler barriers.
10942         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
10943         (fn2, do_test): Declare with external linkage.
10944         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
10945         (do_test): Declare with external linkage.
10946         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
10947         (do_test): Declare with external linkage.
10948         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
10949         (do_test): Declare with external linkage.
10950
10951 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
10952
10953         * support/support_test_main.c (support_test_main): Use correct
10954         timeout.
10955
10956 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
10957             Florian Weimer  <fweimer@redhat.com>
10958
10959         [BZ #16421]
10960         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
10961         and __u6_addr32 members.
10962         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
10963         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
10964         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
10965         Use __u6_addr32.
10966         * inet/tst-checks.c: Use <support/test-driver.c>
10967         * inet/tst-checks-posix.c: New file.
10968         * inet/Makefile (tests): Add it.
10969         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
10970
10971 2016-12-09  Florian Weimer  <fweimer@redhat.com>
10972
10973         New subdirectory support for build and test infrastructure.
10974         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
10975         setting install-lib.
10976         * Makeconfig (link-extra-libs-tests): Define.
10977         (+link-pie-tests, +link-static-tests, +link-tests): Use
10978         link-extra-libs-tests.
10979         (rpath-dirs, all-subdirs): Add support.
10980         (built-modules): Add libsupport.
10981         (libsupport): Define.
10982         * support: New directory.
10983         * support/Makefile: New file.
10984         * support/check.c: Likewise.
10985         * support/check.h: Likewise.
10986         * support/delayed_exit.c: Likewise.
10987         * support/ignore_stderr.c: Likewise.
10988         * support/oom_error.c: Likewise.
10989         * support/set_fortify_handler.c: Likewise.
10990         * support/support.h: Likewise.
10991         * support/temp_file-internal.h: Likewise.
10992         * support/temp_file.c: Likewise.
10993         * support/test-driver.c: Likewise.
10994         * support/test-driver.h: Likewise.
10995         * support/test_main.c: Likewise.
10996         * support/write_message.c: Likewise.
10997         * support/xasprintf.c: Likewise.
10998         * support/xcalloc.c: Likewise.
10999         * support/xmalloc.c: Likewise.
11000         * support/xpthread_barrier_destroy.c: Likewise.
11001         * support/xpthread_barrier_init.c: Likewise.
11002         * support/xpthread_barrier_wait.c: Likewise.
11003         * support/xpthread_cancel.c: Likewise.
11004         * support/xpthread_check_return.c: Likewise.
11005         * support/xpthread_cond_wait.c: Likewise.
11006         * support/xpthread_create.c: Likewise.
11007         * support/xpthread_detach.c: Likewise.
11008         * support/xpthread_join.c: Likewise.
11009         * support/xpthread_mutex_lock.c: Likewise.
11010         * support/xpthread_mutex_unlock.c: Likewise.
11011         * support/xpthread_sigmask.c: Likewise.
11012         * support/xpthread_spin_lock.c: Likewise.
11013         * support/xpthread_spin_unlock.c: Likewise.
11014         * support/xrealloc.c: Likewise.
11015         * support/xsignal.h: Likewise.
11016         * support/xthread.h: Likewise.
11017         * support_tempfile.h: Likewise.
11018         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
11019         (TEST_DATA_LIMIT): Remove unused macro.
11020         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
11021         <support/check.h>.
11022         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
11023         (ignore_stderr, set_fortify_handler): Remove.  Now in
11024         <support/support.h>.
11025         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
11026         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
11027         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
11028         (xpthread_join): Remove.  Now in <support/xthread.h>.
11029         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
11030         Introduce legacy wrappers.
11031         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
11032         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
11033         (write_message): Remove.
11034         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
11035         test-skeleton.c.
11036         * io/test-open-tmpfile: Likewise.
11037         * io/tst-posix_fallocate-common.c: Likewise.
11038         * libio/tst-fseek.c: Likewise.
11039         * malloc/tst-malloc-backtrace.c: Likewise.
11040         * malloc/tst-malloc-fork-deadlock.c: Likewise.
11041         * malloc/tst-malloc-thread-exit.c: Likewise.
11042         * nptl/tst-cancel7.c: Likewise.
11043         * nptl/tst-cleanup0.c: Likewise.
11044         * posix/tst-posix_fadvise-common.c: Likewise.
11045         * rt/tst-shm.c: Likewise.
11046         * time/bug-getdate1.c: Likewise.
11047         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
11048         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
11049         * elf/Makefile (tst-piemod1.so): Link against libsupport.
11050
11051 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
11052
11053         * Rules [$(run-built-tests) != no] (tests-expected): Add
11054         $(tests-printers).
11055         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
11056
11057 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
11058
11059         [BZ #20539]
11060         * math/Makefile (install-lib-ldscripts): Add libm.a.
11061         (install_subdir): Remove.
11062         (install-others): Add.
11063         ($(inst_libdir)/libm.a): Add rule for installation as
11064         linker script.
11065         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
11066
11067 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
11068
11069         * INSTALL: Regenerated.
11070         * Makeconfig: Add comments and whitespace to make the control flow
11071         clearer.
11072         (+link-printers-tests, +link-pie-printers-tests,
11073         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
11074         built-rtld-LDFLAGS, link-libc-rpath,
11075         link-libc-tests-after-rpath-link,
11076         link-libc-printers-tests): New.
11077         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
11078         link-libc-tests): Use the new variables as required.
11079         * Makerules ($(py-const)): New rule.
11080         generated: Add $(py-const).
11081         * README.pretty-printers: New file.
11082         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
11083         (others): Depend on $(py-const).
11084         (tests): Depend on $(tests-printers-programs) or
11085         $(tests-printers-out),
11086         as required.  Pass $(tests-printers) to merge-test-results.sh.
11087         * manual/install.texi: Add requirements for testing the pretty
11088         printers.
11089         * nptl/Makefile (gen-py-const-headers, pretty-printers,
11090         tests-printers, CFLAGS-test-mutexattr-printers.c
11091         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
11092         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
11093         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
11094         * nptl/nptl-printers.py: New file.
11095         * nptl/nptl_lock_constants.pysym: Likewise.
11096         * nptl/test-cond-printers.c: Likewise.
11097         * nptl/test-cond-printers.py: Likewise.
11098         * nptl/test-condattr-printers.c: Likewise.
11099         * nptl/test-condattr-printers.py: Likewise.
11100         * nptl/test-mutex-printers.c: Likewise.
11101         * nptl/test-mutex-printers.py: Likewise.
11102         * nptl/test-mutexattr-printers.c: Likewise.
11103         * nptl/test-mutexattr-printers.py: Likewise.
11104         * nptl/test-rwlock-printers.c: Likewise.
11105         * nptl/test-rwlock-printers.py: Likewise.
11106         * nptl/test-rwlockattr-printers.c: Likewise.
11107         * nptl/test-rwlockattr-printers.py: Likewise.
11108         * scripts/gen-py-const.awk: Likewise.
11109         * scripts/test_printers_common.py: Likewise.
11110         * scripts/test_printers_exceptions.py: Likewise.
11111
11112 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
11113
11114         * scripts/build-many-glibcs.py (Context.__init__): Take strip
11115         argument.
11116         (Glibc.build_glibc): Strip installed shared libraries if
11117         requested.
11118         (get_parser): Add --strip option.
11119         (main): Update Context call.
11120
11121 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11122             Dominik Vogt  <vogt@linux.vnet.ibm.com>
11123
11124         [BZ #20847]
11125         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
11126         array bounds for else branch.
11127         (__execvpe): Style fixes.
11128         * posix/tst-vfork3.c (run_script): New function.
11129         (create_script): Likewise.
11130         (do_test): Use run_script internal function.
11131         (do_prepare): Use create_script internal function.
11132
11133 2016-12-07  Andreas Schwab  <schwab@suse.de>
11134
11135         * sysdeps/unix/sysv/linux/x86/elision-conf.h
11136         (__elision_available): Don't declare.
11137         * sysdeps/unix/sysv/linux/x86/elision-conf.c
11138         (__elision_available): Don't define.
11139         (elision_init): Don't set __elision_available.
11140
11141 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
11142
11143         [BZ #20940]
11144         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
11145         return Inf for arguments Inf and sNaN.
11146         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
11147         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11148         Likewise.
11149         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11150         Likewise.
11151         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11152         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
11153         for arguments Inf and sNaN.  When returning a NaN, compute it by
11154         arithmetic on the arguments.
11155         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
11156         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
11157         arguments.
11158
11159 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
11160
11161         [BZ #20916]
11162         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
11163         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
11164         to compute result.
11165         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11166         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
11167
11168 2016-12-05  Torvald Riegel  <triegel@redhat.com>
11169
11170         * include/atomic.h (__atomic_check_size_ls): New.
11171         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
11172         atomic_store_release): Use it.
11173         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
11174         (elision_adapt, ELIDE_LOCK): Use atomics.
11175         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
11176         atomics and improve code comments.
11177         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
11178         (__lll_trylock_elision): Likewise.
11179
11180 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11181
11182         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
11183         programs.
11184
11185 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
11186
11187         [BZ #20916]
11188         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
11189         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
11190         arguments to compute result.
11191         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
11192         1 for arguments (sNaN, 0) or (1, sNaN).
11193         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11194         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11195
11196         [BZ #20919]
11197         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
11198         NaN first argument when raised to power 0.
11199         * math/w_pow.c (__pow): Do not check for NaN or zero results from
11200         raising to power zero.
11201         * math/w_powf.c (__powf): Likewise.
11202         * math/w_powl.c (__powl): Likewise.
11203         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
11204         pow (0, 0) or pow (NaN, 0).
11205
11206 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
11207
11208         [BZ #20918]
11209         * configure.ac: Test for static NSS cryptographic libraries and set
11210         libc_cv_static_nss_crypt.
11211         * configure: Regenerate.
11212         * config.make.in (static-nss-crypt): Define.
11213         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
11214         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
11215         (CFLAGS-tst-linkall-static.c): Define.
11216         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
11217         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
11218         ($(objpfx)tst-linkall-static): Define.
11219         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
11220         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
11221
11222 2016-12-02  Florian Weimer  <fweimer@redhat.com>
11223
11224         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
11225         (one-hundred, tst-tls-many-dynamic-modules): Define.
11226         (modules-names): Add $(tst-tls-many-dynamic-modules).
11227         (tst-tls-manydynamic%mod.os): Build with special preprocessor
11228         macros.
11229         (tst-tls-manydynamic): Link against libdl, libpthread.
11230         (tst-tls-manydynamic.out): The test needs the test modules at run
11231         time.
11232         * elf/tst-tls-manydynamic.c: New file.
11233         * elf/tst-tls-manydynamic.h: Likewise.
11234         * elf/tst-tls-manydynamicmod.c: Likewise.
11235
11236 2016-12-02  Florian Weimer  <fweimer@redhat.com>
11237
11238         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
11239         (TLS_DTV_UNALLOCATED): Add.
11240         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
11241         offsets.
11242
11243 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
11244
11245         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11246
11247 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
11248
11249         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
11250         Add -fno-optimize-sibling-calls.
11251
11252 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
11253
11254         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
11255         New declaration.
11256         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
11257         macro.
11258         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
11259         New macro.
11260         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
11261         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
11262         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
11263         (llogbf): Likewise.
11264         (llogbl): Likewise.
11265         * math/Makefile (gen-libm-calls): Add w_llogbF.
11266         (tests): Add test-fp-llogb-constants.
11267         * math/w_llogb_template.c: New file.  Based on
11268         math/w_ilogb_template.c.
11269         * math/libm-test.inc (llogb_test_data): New array.
11270         (llogb_test): New function.
11271         (main): Call llogb_test.
11272         * math/test-fp-llogb-constants.c: New file.  Based on
11273         math/test-fp-ilogb-constants.c.
11274         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
11275         (do_test): Call check_return_llogb.
11276         * math/test-tgmath.c (NCALLS): Increase to 126.
11277         (F(compile_test)): Call llogb.
11278         (F(llogb)): New function.
11279         * manual/math.texi (Exponents and Logarithms): Document llogb,
11280         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
11281         * manual/libm-err-tab.pl (@all_functions): Add llogb.
11282         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
11283         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
11284         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
11285         (CFLAGS-nldbl-llogb.c): New variable.
11286         * sysdeps/nacl/libm.abilist: Update.
11287         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11288         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11289         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11290         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11291         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11292         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11293         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11294         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11295         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11296         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11297         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11298         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11300         Likewise.
11301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11302         Likewise.
11303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11304         Likewise.
11305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11306         Likewise.
11307         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11308         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11309         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11310         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11311         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11312         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11313         Likewise.
11314         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11315         Likewise.
11316         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11317         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11318         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11319
11320 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
11321
11322         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
11323         _Float128 instead of long double.
11324         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
11325
11326         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
11327         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
11328         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
11329         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
11330         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
11331         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
11332         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
11333         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
11334         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
11335         Likewise.
11336
11337 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11338
11339         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
11340         Remove redirection to __strrchr_ppc.
11341
11342 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11343
11344         * sysdeps/powerpc/powerpc64/multiarch/Makefile
11345         (sysdep_routines): Add strcmp_power9.
11346         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11347         (strcmp): Add __strcmp_power9 to list of strcmp functions.
11348         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
11349         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
11350         (strcmp): Add __strcmp_power9 to ifunc list.
11351         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
11352
11353 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
11354
11355         * bits/fp-logb.h: New file.
11356         * sysdeps/ia64/bits/fp-logb.h: Likewise.
11357         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
11358         * sysdeps/x86/bits/fp-logb.h: Likewise.
11359         * math/Makefile (headers): Add bits/fp-logb.h.
11360         * math/math.h: Include <bits/fp-logb.h>.
11361         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
11362         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
11363         * bits/mathdef.h (FP_ILOGB0): Remove.
11364         (FP_ILOGBNAN): Likewise.
11365         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
11366         (FP_ILOGBNAN): Likewise.
11367         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
11368         (FP_ILOGBNAN): Likewise.
11369         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
11370         (FP_ILOGBNAN): Likewise.
11371         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
11372         (FP_ILOGBNAN): Likewise.
11373         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
11374         (FP_ILOGBNAN): Likewise.
11375         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
11376         (FP_ILOGBNAN): Likewise.
11377         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
11378         (FP_ILOGBNAN): Likewise.
11379         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
11380         (FP_ILOGBNAN): Likewise.
11381         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
11382         (FP_ILOGBNAN): Likewise.
11383
11384         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
11385         time module.
11386         (Context.__init__): Initialize self.logsdir_old.
11387         (Context.run_builds): Handle bot action.
11388         (Context.bot_cycle): Copy logs directory before running builds.
11389         (Context.bot_run_self): Take argument for whether to check
11390         subprocess result.  Flush stdout before running subprocess.
11391         (Context.bot): New function.
11392         (get_parser): Allow bot action.
11393
11394 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
11395
11396         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
11397         Import email.mime.text, email.utils and smtplib modules.
11398         (Context.__init__): Initialize self.bot_config_json.
11399         (Context.run_builds): Handle bot-cycle action.
11400         (Context.load_bot_config_json): New function.
11401         (Context.part_build_old): Likewise.
11402         (Context.bot_cycle): Likewise.
11403         (Context.bot_build_mail): Likewise.
11404         (Context.bot_run_self): Likewise.
11405         (get_parser): Allow bot-cycle action.
11406
11407 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11408
11409         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
11410         Remove redirection to __stpcpy_ppc.
11411
11412 2016-11-30  Florian Weimer  <fweimer@redhat.com>
11413
11414         Remove __libc_memalign from ld.so because it is unused.
11415         * elf/dl-minimal.c: Update comment on the malloc implementation.
11416         (malloc): Renamed from __libc_memalign, replacing the original
11417         malloc implementation.  Replace the align parameter with
11418         MALLOC_ALIGNMENT.
11419         * elf/Versions (ld): Update comment and remove __libc_memalign.
11420         * sysdeps/nacl/ld.abilist: Likewise.
11421         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11422         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11423         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11424         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11425         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11426         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11427         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11428         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11429         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11430         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11431         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11432         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11433         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11437         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11438         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11439         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11440         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11441         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11442         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
11443         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
11444         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
11445         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11446         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11447         * sysdeps/generic/localplt.data (ld.so): Likewise.
11448         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
11449         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
11450         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
11451         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
11452         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
11453         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
11454         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
11455         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
11456         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
11457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
11458         (ld.so): Likewise.
11459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11460         (ld.so): Likewise.
11461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
11462         Likewise.
11463         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
11464         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
11465         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
11466         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
11467         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
11468
11469 2016-11-30  Florian Weimer  <fweimer@redhat.com>
11470
11471         [BZ #16628]
11472         Implement _dl_catch_error, _dl_signal_error in libc.so.
11473         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
11474         (catch_hook): Define as thread-local or regular variable,
11475         depending on DL_ERROR_BOOTSTRAP.
11476         (CATCH_HOOK): Remove.
11477         (dl_signal_error, _dl_catch_error): Use
11478         catch_hook.  Add hidden definition for libc.
11479         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
11480         for DL_ERROR_BOOTSTRAP only.
11481         * elf/dl-error.c: New file.
11482         * elf/dl-error-minimal.c: Likewise.
11483         * elf/tst-latepthread.c: Likewise.
11484         * elf/tst-latepthreadmod.c: Likewise.
11485         * elf/Makefile (routines): Add dl-error.
11486         (dl-routines): Remove dl-error.
11487         (rtld-routines): Add dl-error-minimal.
11488         [build-shared] (tests): Add tst-latepthread.
11489         (module-names): Add tst-latepthreadmod.
11490         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
11491         symbol.
11492         (tst-latepthreadmod.so): Link against libpthread.
11493         (tst-latepthread): Link against libdbl.
11494         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
11495         _dl_catch_error.
11496         [ld] (GLIBC_PRIVATE): Likewise.
11497         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
11498         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
11499         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
11500         directly.
11501         * elf/dl-tsd.c: Remove file.
11502         * elf/rtld.c (_rtld_global_ro): Remove initializers for
11503         _dl_catch_error, _dl_signal_error.
11504         (_dl_initial_error_catch_tsd): Remove definition.
11505         (do_preload): Remove initialization of dl_error_catch_tsd.
11506         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
11507         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
11508         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
11509         * dlfcn/dlopen.c (dlopen_doit): Likewise.
11510         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
11511         set dl_error_catch_tsd.
11512         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
11513         _dl_error_catch_tsd member.
11514         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
11515         members.
11516         (_dl_initial_error_catch_tsd): Remove declaration.
11517         (_dl_dprintf): Provide definition for use outside of ld.so.
11518         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
11519         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
11520         prototype for libc.
11521         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
11522         _dl_catch_error.
11523         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
11524         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
11525         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
11526         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
11527         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
11528         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
11529         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
11530         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
11531         Likewise.
11532         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
11533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
11534         (ld.so): Likewise.
11535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11536         (ld.so): Likewise.
11537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
11538         Likewise.
11539         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
11540         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
11541         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
11542         Likewise.
11543         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
11544         Likewise.
11545         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
11546
11547 2016-11-30  Florian Weimer  <fweimer@redhat.com>
11548
11549         [BZ #4099]
11550         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
11551         _IO_BUFSIZ (8192).
11552
11553 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
11554
11555         * PROJECTS: Remove file.
11556
11557 2016-11-29  Florian Weimer  <fweimer@redhat.com>
11558
11559         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
11560
11561 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
11562             Steve Ellcey  <sellcey@caviumnetworks.com>
11563
11564         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
11565         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
11566         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
11567         fxstatat.
11568         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
11569         lxstat.
11570         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
11571         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
11572         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
11573         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
11574         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
11575         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
11576         __xstat.
11577
11578 2016-11-29  Florian Weimer  <fweimer@redhat.com>
11579
11580         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
11581         Define.
11582         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
11583         definition.
11584
11585 2016-11-29  Florian Weimer  <fweimer@redhat.com>
11586
11587         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
11588         version and turn into strong alias.  Remove compat symbol.
11589
11590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11591         (__longjmp): Remove.
11592
11593 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
11594
11595         * bits/fp-fast.h: New file.
11596         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
11597         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
11598         * math/Makefile (headers): Add bits/fp-fast.h.
11599         * math/math.h: Include <bits/fp-fast.h>.
11600         * bits/mathdef.h (FP_FAST_FMA): Remove.
11601         (FP_FAST_FMAF): Likewise.
11602         (FP_FAST_FMAL): Likewise.
11603         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
11604         (FP_FAST_FMAF): Likewise.
11605         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
11606         (FP_FAST_FMAF): Likewise.
11607         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
11608         (FP_FAST_FMAF): Likewise.
11609         (FP_FAST_FMAL): Likewise.
11610         * sysdeps/arm/bits/mathdef.h: Remove file.
11611         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
11612         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11613         * sysdeps/tile/bits/mathdef.h: Likewise.
11614
11615 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
11616
11617         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
11618         * math/w_ilogb.c: Remove.
11619         * math/w_ilogbf.c: Likewise.
11620         * math/w_ilogbl.c: Likewise.
11621         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
11622         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
11623         * math/Makefile (gen-libm-calls): Add w_ilogbF.
11624         (libm-calls): Remove w_ilogbF.
11625         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
11626         (LDOUBLE_ilogbl_libm_version): New macro.
11627
11628         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
11629
11630         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
11631         [!__STRICT_ANSI__ && !__cplusplus].
11632
11633 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
11634
11635         [BZ #20750]
11636         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
11637         of PIC.
11638
11639 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
11640             Yury Norov  <ynorov@caviumnetworks.com>
11641             Steve Ellcey  <sellcey@caviumnetworks.com>
11642
11643         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
11644         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
11645         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
11646         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
11647         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
11648         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
11649         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
11650         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
11651         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
11652         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
11653         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
11654         to get correct reg name for ILP32.
11655         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
11656         (RELA_SIZE): New Macro.
11657         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
11658         to support ILP32.
11659         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
11660         cast for ILP32 mode.
11661         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
11662         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
11663         * sysdeps/aarch64/memset.S (__memset): Ditto.
11664         * sysdeps/aarch64/strchr.S (strchr): Ditto.
11665         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
11666         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
11667         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
11668         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
11669         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
11670         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
11671         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
11672         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
11673         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
11674         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
11675         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
11676         change PTR_MANGLE call to use register numbers instead of names.
11677         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
11678         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
11679         ILP32 mode, change PTR_MANGLE calls to use register numbers.
11680         * sysdeps/aarch64/start.S (_start): Ditto.
11681         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
11682         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
11683         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
11684         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
11685         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
11686         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
11687         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
11688         Make defined values dependent on __ILP32__.
11689         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
11690         (sem_t): Change __align type.
11691         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
11692         PTR_SIZE): New Macros.
11693         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
11694         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
11695         Set when in ILP32 mode.
11696         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
11697         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
11698         Set elf flags for ILP32.
11699         (add_system_dir): Set ILP32 library directories.
11700         * sysdeps/unix/sysv/linux/aarch64/init-first.c
11701         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
11702         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
11703         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
11704         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
11705         New Macros.
11706         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
11707
11708 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
11709
11710         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
11711         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
11712         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
11713
11714 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
11715
11716         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
11717         <asm/cachectl.h>.
11718
11719 2016-11-27  Zack Weinberg  <zackw@panix.com>
11720
11721         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
11722         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
11723
11724 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11725
11726         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
11727         error_t to fix usage in C++ programs.
11728
11729 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
11730
11731         * scripts/build-many-glibcs.py: Import datetime module.
11732         (Context.__init__): Load JSON build state.  Initialize list of
11733         status logs.
11734         (Context.run_builds): Update saved build state.
11735         (Context.add_makefile_cmdlist): Update list of status logs.
11736         (Context.load_build_state_json): New function.
11737         (Context.store_build_state_json): Likewise.
11738         (Context.clear_last_build_state): Likewise.
11739         (Context.update_build_state): Likewise.
11740         (CommandList.status_logs): Likewise.
11741
11742 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
11743
11744         * scripts/build-many-glibcs.py (Context.__init__): Save text of
11745         script being executed.
11746         (Context.get_script_text): New function.
11747         (Context.exec_self): Likewise.
11748         (Context.checkout): Re-exec script if changed by checkout process.
11749
11750 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
11751
11752         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11753         (setpayloadsig): New declaration.
11754         * math/Versions (setpayloadsig): New libm symbol at version
11755         GLIBC_2.25.
11756         (setpayloadsigf): Likewise.
11757         (setpayloadsigl): Likewise.
11758         * math/Makefile (libm-calls): Add s_setpayloadsigF.
11759         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
11760         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
11761         (setpayloadsig_test_data): New array.
11762         (setpayloadsig_test): New function.
11763         (main): Call setpayloadsig_test.
11764         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
11765         setpayloadsigf and setpayloadsigl.
11766         * manual/libm-err-tab.pl: Update comment on interfaces without
11767         ulps tabulated.
11768         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
11769         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
11770         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
11771         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
11772         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
11773         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
11774         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
11775         setpayloadsig.
11776         (CFLAGS-nldbl-setpayloadsig.c): New variable.
11777         * sysdeps/nacl/libm.abilist: Update.
11778         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11779         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11780         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11781         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11782         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11783         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11784         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11785         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11786         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11787         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11788         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11789         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11791         Likewise.
11792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11793         Likewise.
11794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11795         Likewise.
11796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11797         Likewise.
11798         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11799         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11800         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11801         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11802         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11803         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11804         Likewise.
11805         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11806         Likewise.
11807         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11808         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11809         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11810
11811         * scripts/build-many-glibcs.py: Import json module.
11812         (Context.__init__): Take replace_sources argument.  Load
11813         versions.json.
11814         (Context.load_versions_json): New function.
11815         (Context.store_json): Likewise.
11816         (Context.store_versions_json): Likewise.
11817         (Context.set_component_version): Likewise.
11818         (Context.checkout): Update versions.json.  Check for and handle
11819         changes of version.  Prefer previously explicitly specified
11820         version to default version.
11821         (Context.checkout_vcs): Return a revision identifier.
11822         (Context.git_checkout): Likewise.
11823         (Context.gcc_checkout): Likewise.
11824         (get_parser): Add --replace-sources option.
11825         (main): Pass replace_sources argument to Context call.
11826
11827 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11828
11829         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
11830         * nptl/allocatestack.c (allocate_stack): Likewise.
11831         (__reclaim_stacks): Likewise.
11832         (setxid_signal_thread): Obtain pid through syscall.
11833         * nptl/nptl-init.c (sigcancel_handler): Likewise.
11834         (sighandle_setxid): Likewise.
11835         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
11836         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
11837         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
11838         Likewise.
11839         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
11840         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
11841         comment.
11842         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
11843         * nptl/descr.h (struct pthread): Change comment about pid value.
11844         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
11845         pid assert.
11846         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
11847         Do not set pid value.
11848         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
11849         pid cache check.
11850         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
11851         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
11852         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
11853         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
11854         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
11855         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
11856         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
11857         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
11858         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
11859         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
11860         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
11861         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
11862         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
11863         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
11864         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
11865         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
11866         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
11867         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
11868         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
11869         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
11870         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
11871         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11872         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
11873         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
11874         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
11875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
11876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
11877         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
11878         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
11879         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
11880         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
11881         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
11882         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
11883         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11884         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
11885         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
11886         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
11887         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11888         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
11889         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
11890         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
11891         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
11892         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
11893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
11894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
11895         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
11896         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
11897         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
11898         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
11899         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
11900         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
11901         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11902         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
11903         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
11904         struct access.
11905         (clone_test): Remove function.
11906         (do_test): Rewrite to take in consideration pid is not cached anymore.
11907
11908 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
11909
11910         * bits/flt-eval-method.h: New file.
11911         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
11912         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
11913         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
11914         * math/Makefile (headers): Add bits/flt-eval-method.h.
11915         * math/math.h: Include <bits/flt-eval-method.h>.
11916         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
11917         [__USE_ISOC99] (double_t): Likewise.
11918         * bits/mathdef.h (float_t): Remove.
11919         (double_t): Likewise.
11920         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
11921         (double_t): Likewise.
11922         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
11923         (double_t): Likewise.
11924         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
11925         (double_t): Likewise.
11926         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
11927         (double_t): Likewise.
11928         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
11929         (double_t): Likewise.
11930         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
11931         (double_t): Likewise.
11932         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
11933         (double_t): Likewise.
11934         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
11935         (double_t): Likewise.
11936         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
11937         (double_t): Likewise.
11938         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
11939         (double_t): Likewise.
11940         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
11941         (double_t): Likewise.
11942         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
11943         (double_t): Likewise.
11944         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
11945         (double_t): Likewise.
11946
11947 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
11948
11949         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
11950         instead of PIC.
11951
11952 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
11953
11954         [BZ #20859]
11955         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
11956         (-0x7fffffff) instead of 0x80000001.
11957         * math/test-fp-ilogb-constants.c: New file.
11958         * math/Makefile (tests): Add test-fp-ilogb-constants.
11959
11960 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
11961
11962         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
11963         (_init): Use it in place of hardcoded R_MIPS_JALR.
11964         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
11965         (_init): Use it in place of hardcoded R_MIPS_JALR.
11966         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
11967         (_init): Use it in place of hardcoded R_MIPS_JALR.
11968
11969 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
11970
11971         [BZ #20787]
11972         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
11973         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
11974         (double_t): Do not define to double if [__x86_64__] when
11975         __FLT_EVAL_METHOD__ is nonzero.
11976         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
11977         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
11978         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
11979         test-flt-eval-method-387 and test-flt-eval-method-sse.
11980         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
11981         variable.
11982         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
11983
11984 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
11985
11986         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
11987         use of -fno-isolate-erroneous-paths options for tilepro.
11988
11989 2016-11-23  Florian Weimer  <fweimer@redhat.com>
11990
11991         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
11992         structure initialization is no longer needed.
11993
11994 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
11995
11996         [BZ #20855]
11997         * bits/mathdef.h (float_t): Define to float.
11998         * math/test-flt-eval-method.c: New file.
11999         * math/Makefile (tests): Add test-flt-eval-method.
12000         (CFLAGS-test-flt-eval-method.c): New variable.
12001
12002 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
12003
12004         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
12005         and __fstatfs.  Make them aliases of __fstatfs64 if
12006         STATFS_IS_STATFS64 is set to non-zero.
12007         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
12008         and __statfs64.
12009         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
12010         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
12011         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
12012         for __statfs and statfs.
12013         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
12014         to 0.
12015         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
12016         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
12017         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
12018         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
12019         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
12020         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
12021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
12022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
12023         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
12024         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
12025         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
12026         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
12027
12028 2016-11-22  Andreas Schwab  <schwab@suse.de>
12029
12030         * misc/mkstemp.c: Include <fcntl.h>.
12031         * misc/mkstemps.c: Likewise.
12032         * misc/mkostemp.c: Likewise.
12033         * misc/mkostemps.c: Likewise.
12034
12035 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
12036
12037         [BZ #20847]
12038         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
12039         array bounds.
12040         (__execvpe): Likewise.
12041
12042 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
12043
12044         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
12045         -fno-isolate-erroneous-paths options for tilepro.
12046
12047 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
12048
12049         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
12050         to 0 when in 32 bit mode.
12051         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
12052         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
12053         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
12054         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
12055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
12056         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
12057         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
12058         XSTAT_IS_XSTAT64 test.
12059         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
12060         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
12061         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
12062         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
12063         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
12064         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
12065         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
12066         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
12067         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
12068         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
12069         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
12070
12071 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
12072
12073         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12074         (setpayload): New declaration.
12075         * math/Versions (setpayload): New libm symbol at version
12076         GLIBC_2.25.
12077         (setpayloadf): Likewise.
12078         (setpayloadl): Likewise.
12079         * math/Makefile (libm-calls): Add s_setpayloadF.
12080         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
12081         test_Ff_b1_data.
12082         (RUN_TEST_Ff_b1): New macro.
12083         (RUN_TEST_LOOP_Ff_b1): Likewise.
12084         (canonicalize_test_data): Update type.
12085         (setpayload_test_data): New array.
12086         (setpayload_test): New function.
12087         (main): Call setpayload_test.
12088         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
12089         setpayloadf and setpayloadl.
12090         * manual/libm-err-tab.pl: Update comment on interfaces without
12091         ulps tabulated.
12092         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
12093         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
12094         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
12095         Likewise.
12096         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
12097         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
12098         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
12099         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
12100         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
12101         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
12102         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
12103         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
12104         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
12105         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
12106         setpayload.
12107         (CFLAGS-nldbl-setpayload.c): New variable.
12108         * sysdeps/nacl/libm.abilist: Update.
12109         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12110         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12111         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12112         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12113         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12114         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12115         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12116         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12117         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12118         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12119         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12120         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12122         Likewise.
12123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12124         Likewise.
12125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12126         Likewise.
12127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12128         Likewise.
12129         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12130         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12131         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12132         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12133         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12134         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12135         Likewise.
12136         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12137         Likewise.
12138         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12139         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12140         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12141
12142 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12143
12144         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
12145         * include/unistd.h: Extend comment about __access_noerrno return
12146         semantics.
12147         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
12148         (access_common): Correct typo for EACCES.
12149
12150 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
12151
12152         * sysdeps/tile/math-tests.h: New file.
12153
12154         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
12155         (__old_set_dataplane): Rename from set_dataplane and make a
12156         compatibility symbol.
12157         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
12158         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
12159         sys/dataplane.h.
12160
12161 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
12162
12163         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
12164         script quote words in command output to log suitably for input to
12165         the shell.
12166
12167 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
12168             Maciej W. Rozycki  <macro@imgtec.com>
12169
12170         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
12171         `.Lno_weak_fn' label.
12172         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
12173         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
12174
12175 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12176             Yury Norov  <ynorov@caviumnetworks.com>
12177
12178         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
12179         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
12180         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
12181         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
12182         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
12183         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
12184         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
12185         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12186         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
12187         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
12188         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
12189         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
12190         (sysdep_routines): Remove oldgetrlimit64.
12191         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
12192         (sysdep_routines): Likewise.
12193         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
12194         (sysdep_routines): Likewise.
12195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12196         [$(subdir) = resource] (sysdep_routines): Likewise.
12197         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
12198         [$(subdir) = resource] (sysdep_routines): Likewise.
12199         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
12200         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
12201         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
12202         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
12203         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
12204         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
12205         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
12206         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
12207         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
12208         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
12209         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
12210         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
12211         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
12212         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
12213         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
12214         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
12215         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
12216         setrlimit and getrlimit.
12217         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
12218         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
12219         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
12220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
12222         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12223         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
12224         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
12225         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12226         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
12227         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
12228         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
12229         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
12230         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
12231         (__old_getrlimit64): Add compatibility symbol.
12232         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
12233
12234 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
12235
12236         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
12237         newly built gmp, mpfr and mpc.
12238
12239         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
12240
12241 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
12242
12243         * conform/Makefile (linknamespace-libs): Rename to
12244         linknamespace-libs-thr.
12245         (linknamespace-libs-posix): New variable.
12246         (linknamespace-libs-xsi): Likewise.
12247         (linknamespace-libs-XPG3): Include libcrypt.a.
12248         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
12249         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
12250         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
12251         (linknamespace-libs-XOPEN2K): Likewise.
12252         (linknamespace-libs-XOPEN2K8): Likewise.
12253         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
12254
12255         [BZ #20829]
12256         * stdio-common/Versions (__snprintf): Add to version
12257         GLIBC_PRIVATE.
12258         * include/stdio.h (__snprintf): Use libc_hidden_proto.
12259         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
12260         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
12261         of snprintf.
12262         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
12263
12264 2016-11-16  Zack Weinberg  <zackw@panix.com>
12265
12266         * string/string.h: Remove obsolete comment stating that
12267         strcoll_l and strxfrm_l have not yet been standardized.
12268
12269 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12270
12271         * hurd/hurd.h (__hurd_fail_noerrno): New function.
12272         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
12273         __access_noerrno.
12274         * io/access.c (__access_noerrno): New function.
12275         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
12276         (hurd_fail_seterrno): Likewise.
12277         (access_common): Likewise.
12278         (__access_noerrno): Likewise.
12279         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
12280         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
12281         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
12282         macro.
12283
12284 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
12285
12286         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
12287         Only declare fpregs if [__SH_FPU_ANY__].
12288
12289 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
12290
12291         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
12292         Make code unconditional.
12293         [!(__SH4__ || __SH4A__)]: Remove conditional code.
12294
12295 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
12296
12297         * manual/sysinfo.texi (S_APPEND): Delete.
12298         (S_IMMUTABLE): Likewise.
12299
12300 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
12301             Magnus Granberg  <zorry@gentoo.org>
12302             Mike Frysinger  <vapier@gentoo.org>
12303
12304         [BZ #20662]
12305         * configure.ac (libc_cv_predef_stack_protector): Also check for
12306         __stack_chk_fail_local symbols.
12307         * configure: Regenerated.
12308
12309 2016-11-15  Florian Weimer  <fweimer@redhat.com>
12310
12311         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
12312         (libc_hidden_def): Remove redefinition.
12313         (__sigsetjmp): Add hidden definition.
12314         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
12315         (libc_hidden_def): Remove redefinition.
12316         (__sigsetjmp): Add hidden definition.
12317
12318 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
12319
12320         * scripts/build-many-glibcs.py (os.path): Do not import.
12321         (Context): Inherit explicitly from object.  Remove blank line
12322         between class and docstring.
12323         (Config): Likewise.
12324         (Glibc): Likewise.
12325         (Command): Likewise.
12326         (CommandList): Likewise.
12327         (Context.write_files): Store chmod mode in a variable.
12328
12329         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
12330         LIBC_SLIBDIR_RTLDDIR for tilegx32.
12331         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
12332
12333 2016-11-14  Zack Weinberg  <zackw@panix.com>
12334
12335         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
12336         creating or re-creating it.
12337
12338         * string/bits/string2.h: Fix typo in comment.
12339
12340 2016-11-14  Zack Weinberg  <zackw@panix.com>
12341
12342         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
12343         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
12344         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
12345         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
12346         of redirected function names.
12347
12348         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
12349         as well.  Document that MESSAGE must be a single string literal.
12350
12351 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
12352
12353         * scripts/build-many-glibcs.py: New file.
12354
12355         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
12356         (do_test): Disable -Wmaybe-uninitialized around uses of
12357         except_mask.
12358
12359         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
12360
12361 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
12362
12363         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
12364         (atomic_store_release): Provide tilepro-specific implementations.
12365
12366 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
12367
12368         * math/math.h (__MATH_TG): New macro.
12369         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
12370         [__USE_ISOC99] (signbit): Likewise.
12371         [__USE_ISOC99] (isfinite): Likewise.
12372         [__USE_ISOC99] (isnan): Likewise.
12373         [__USE_ISOC99] (isinf): Likewise.
12374         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
12375         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
12376         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
12377         __MATH_TG and __MATH_EVAL_FMT2.
12378         * sysdeps/generic/math_private.h (fabs_tg): Define using
12379         __MATH_TG.
12380         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
12381         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
12382         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
12383         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
12384         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
12385         macro.
12386         (__iscanonical): Likewise.
12387         (iscanonical): Define using __MATH_TG.
12388
12389 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12390
12391         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
12392         guards.
12393
12394         * sysdeps/unix/sysv/linux/access.c: New file.
12395         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
12396
12397 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
12398
12399         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
12400         and __WORDSIZE32_PTRDIFF_LONG.
12401
12402 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12403
12404         * sysdeps/aarch64/libm-test-ulps: Regenerated.
12405
12406 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12407
12408         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
12409         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
12410         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
12411         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
12412         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
12413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
12414         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
12415         * sysdeps/unix/sysv/linux/truncate.c: New file.
12416         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
12417         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
12418         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
12419         Remove.
12420         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
12421         Likewise.
12422
12423         * posix/tst-truncate-common.c: New file.
12424         * posix/tst-truncate.c: Use tst-truncate-common.c.
12425         * posix/tst-truncate64.c: Likewise and add LFS tests.
12426         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
12427         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
12428         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
12429         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
12430         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
12431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
12432         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
12433         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
12434         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
12435         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
12436         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
12437         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
12438         Remove.
12439         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
12440         Likewise.
12441
12442 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
12443
12444         [BZ #20790]
12445         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
12446         to MAXLINESIZE.
12447         * sunrpc/bug20790.x: New file.
12448         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
12449         variable.
12450         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
12451         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
12452
12453         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
12454
12455         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
12456
12457         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
12458         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
12459         calloc, realloc, free, memalign and __libc_memalign rather than
12460         making them optional.
12461
12462         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
12463         for libc.so.
12464
12465 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12466
12467         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
12468         ptw-lseek64.
12469         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
12470         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
12471         Likewise.
12472         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
12473         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
12474         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
12475         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
12476         * sysdeps/unix/sysv/linux/lseek.c: New file.
12477         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
12478         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
12479         __libc_lseek64 from auto-generation.
12480         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12481         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
12482
12483 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12484
12485         * nptl/tst-basic1.c (tf, do_test): Use write_message.
12486         * nptl/tst-cleanup1.c (do_test): Likewise.
12487         * nptl/tst-cleanup3.c (do_test): Likewise.
12488         * nptl/tst-key1.c (do_test): Likewise.
12489         * nptl/tst-key2.c (tf, do_test): Likewise.
12490         * nptl/tst-key3.c (tf, do_test): Likewise.
12491         * nptl/tst-stdio1.c (do_test): Likewise.
12492         * nptl/tst-stdio2.c (do_test): Likewise.
12493
12494         * nptl/tst-kill3.c (handler): Use write_message in place of write.
12495         * nptl/tst-kill6.c (handler): Likewise.
12496         * nptl/tst-tls2.c (CB): Likewise.
12497         * nptl/tst-tls3.c (CB): Likewise.
12498
12499 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
12500
12501         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
12502
12503 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
12504             Steve Ellcey  <sellcey@caviumnetworks.com>
12505
12506         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
12507           __ASSUME_ST_INO_64_BIT as 0
12508         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
12509         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
12510           over the code where __ASSUME_ST_INO_64_BIT is used.
12511         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
12512         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
12513         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
12514
12515 2016-11-07  Florian Weimer  <fweimer@redhat.com>
12516
12517         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12518         Document ABI exposure of the __kind offset.
12519         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12520         Mention reason for the __kind offset exposure in the ABI.
12521         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12522         Likewise.
12523         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12524         Likewise.
12525         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12526         Likewise.
12527         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
12528         (struct __pthread_mutex_s): Likewise.
12529         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12530         Likewise.
12531         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12532         Likewise.
12533         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12534         Likewise.
12535         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12536         Likewise.
12537         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12538         Likewise.
12539         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
12540         Likewise.
12541         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
12542         (struct __pthread_mutex_s): Likewise.
12543         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
12544         (struct __pthread_mutex_s): Likewise.
12545         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
12546         Likewise.
12547
12548 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
12549
12550         * test-skeleton.c: Document do_test usage.
12551
12552 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
12553
12554         * iconv/gconv.h (__gconv_info): Define __data element using a
12555         zero-length array.
12556
12557 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
12558
12559         * math/test-tgmath2.c: Split up test function.
12560
12561 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
12562
12563         * Rules (tests-expected): New variable, depending on
12564         $(run-built-tests).
12565         (tests): Pass $(tests-expected) to merge-test-results.sh, not
12566         $(tests).
12567
12568         * Rules [$(run-built-tests) = no] (tests): Do not depend on
12569         $(tests-unsupported).
12570
12571 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12572
12573         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
12574         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
12575
12576 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
12577
12578         [BZ #20768]
12579         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
12580         __fegetenv instead of fegetenv.
12581
12582         [BZ #14139]
12583         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
12584         (find_files): Obtain platform name from libm-test-ulps-name and
12585         store in %pplatforms.
12586         (canonicalize_platform): Remove.
12587         (print_platforms): Use $pplatforms directly.
12588         (by_platforms): Do not allow for platforms missing from
12589         %pplatforms.
12590         * sysdeps/aarch64/libm-test-ulps-name: New file.
12591         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
12592         * sysdeps/arm/libm-test-ulps-name: Likewise.
12593         * sysdeps/generic/libm-test-ulps-name: Likewise.
12594         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
12595         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
12596         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
12597         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
12598         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
12599         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
12600         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
12601         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
12602         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
12603         * sysdeps/nios2/libm-test-ulps-name: Likewise.
12604         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
12605         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
12606         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
12607         * sysdeps/sh/libm-test-ulps-name: Likewise.
12608         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
12609         * sysdeps/tile/libm-test-ulps-name: Likewise.
12610         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
12611
12612         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
12613
12614         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
12615         (test-xfail-check-execstack): New variable.
12616
12617         * sysdeps/mips/localplt.data: New file.
12618
12619 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
12620             Steve Ellcey  <sellcey@caviumnetworks.com>
12621
12622         * bits/wordsize.h: Add documentation.
12623         * sysdeps/aarch64/bits/wordsize.h : New file
12624         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
12625         definitions.
12626         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
12627         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
12628         with #if instead of #ifdef.
12629         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
12630         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
12631         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
12632         Add or change defines.
12633         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
12634         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
12635         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
12636         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
12637         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
12638         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
12639         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
12640         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
12641         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
12642         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
12643         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
12644         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
12645         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
12646         * sysdeps/x86/bits/wordsize.h: Likewise.
12647
12648 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
12649             Kevin Petit  <kevin.petit@arm.com>
12650
12651         * sysdeps/aarch64/memchr.S (__memchr): New file.
12652
12653 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
12654
12655         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
12656
12657 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
12658
12659         [BZ #19398]
12660         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
12661         $(linknamespace-symlists-tests).
12662
12663 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
12664
12665         * time/tst-strptime2.c: Ignore -Wformat-length warning.
12666
12667 2016-11-02  Florian Weimer  <fweimer@redhat.com>
12668             Carlos O'Donell  <carlos@redhat.com>
12669
12670         [Bug #20729]
12671         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
12672         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
12673         for -Os related change.
12674
12675 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
12676
12677         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
12678
12679 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
12680
12681         [BZ #19673]
12682         * manual/math.texi (Exponents and Logarithms): Correct description
12683         of clog10.
12684
12685 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
12686
12687         [Bz #20729]
12688         * locale/weight.h: Include libc-internal.h.
12689         * locale/weightwc.h: Likewise.
12690         * nptl/nptl_dbP.h: Likewise.
12691
12692 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
12693
12694         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
12695         when it is MACH_PORT_NULL.
12696
12697 2016-10-31  Andreas Schwab  <schwab@suse.de>
12698
12699         [BZ #20707]
12700         * posix/glob.c (glob): Initialize pglob before checking for
12701         GLOB_BRACE.  Don't call glob recursively if pattern contains no
12702         valid brace expression despite GLOB_BRACE.
12703         * posix/globtest.sh: Test it.
12704
12705 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
12706
12707         [BZ #20729]
12708         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
12709         Define.
12710         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
12711         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
12712         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
12713         for seq2.back_us and seq1.back_us only for -Os compiles.
12714         * locale/weightwc.h (findix): Likewise.
12715         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
12716         DB_GET_FIELD_ADDRESS only for -Os compiles.
12717         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
12718         for slen only for -Os compiles.
12719         * string/strcoll_l.c (get_next_seq): Ignore
12720         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
12721         for -Os compiles.
12722
12723         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
12724         * include/crypt.h: New file.
12725
12726 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12727
12728         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
12729         from test-skeleton.c.
12730         (statclass): Replace calls to write with calls to write_message.
12731
12732 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
12733
12734         * math/math.h
12735         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
12736         New macro.
12737         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
12738         Likewise.
12739         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
12740         Likewise.
12741         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
12742         SNANL.
12743         * math/test-double.h (snan_value_MACRO): New macro.
12744         * math/test-float.h (snan_value_MACRO): Likewise.
12745         * math/test-ldouble.h (snan_value_MACRO): Likewise.
12746         * math/libm-test.inc (issignaling_test_data): Add tests of
12747         snan_value_MACRO.
12748
12749 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12750
12751         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
12752         behavior when eliding a lock not held by the current thread.
12753         * sysdeps/powerpc/nptl/elide.h: Likewise.
12754
12755 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12756
12757         [BZ #20728]
12758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
12759         branch to _exit() by a function call.
12760
12761 2016-10-28  Florian Weimer  <fweimer@redhat.com>
12762
12763         * malloc/malloc.c: Update chunk layout comments.
12764         (chunk_main_arena): Update comment.
12765
12766 2016-10-28  Florian Weimer  <fweimer@redhat.com>
12767
12768         * crypt/sha256.c, crypt/sha256-block.c,
12769         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
12770         sha256_process_block to __sha256_process_block.
12771         * crypt/sha512.c, crypt/sha512-block.c,
12772         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
12773         sha512_process_block to __sha512_process_block.
12774
12775 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
12776
12777         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
12778
12779         * math/test-nan-overflow.c: Include stdlib.h for malloc.
12780
12781 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
12782
12783         [BZ #20019]
12784         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
12785         definition in unrelocated shared library.
12786         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12787
12788 2016-10-28  Florian Weimer  <fweimer@redhat.com>
12789
12790         [BZ #20729]
12791         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
12792         * sysdeps/unix/sysv/linux/i386/Makefile
12793         (uses-6-syscall-arguments): Define.
12794         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
12795         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
12796         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
12797         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
12798         Likewise.
12799         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
12800         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
12801         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
12802         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
12803         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
12804         (CFLAGS-fallocate64.os): Likewise.
12805         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
12806         (CFLAGS-pthread_rwlock_timedrdlock.os)
12807         (CFLAGS-pthread_rwlock_timedwrlock.o)
12808         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
12809         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
12810         (CFLAGS-sem_timedwait.os): Likewise.
12811
12812 2016-10-28  Florian Weimer  <fweimer@redhat.com>
12813
12814         * elf/tst-linkall-static.c: New file.
12815         * elf/Makefile (tests-static): Add tst-linkall-static.
12816         (tst-linkall-static): Link against static libraries.
12817
12818 2016-10-27  Florian Weimer  <fweimer@redhat.com>
12819
12820         * malloc/malloc.c (sysmalloc): Initialize previous size field of
12821         mmaped chunks.
12822
12823 2016-10-28  Florian Weimer  <fweimer@redhat.com>
12824
12825         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
12826         members to mchunk_prev_size, mchunk_size.
12827         (chunk_main_arena): Reverse sense and rename from
12828         chunk_non_main_arena.
12829         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
12830         mchunk_size instead of size.
12831         (set_non_main_arena): Define.
12832         (chunksize): Use chunksize_nomask instead of direct member access.
12833         (chunksize_nomask): Define.
12834         (next_chunk): Use chunksize instead of direct member access.
12835         (prev_size, set_prev_size): Define.
12836         (prev_chunk): Use prev_size instead of direct member access.
12837         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
12838         (inuse_bit_at_offset, set_inuse_bit_at_offset)
12839         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
12840         (mchunk_prev_size, mchunk_size): Poison tokens.
12841         (unlink): Use chunksize_nomask, prev_size accessors.
12842         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
12843         (do_check_free_chunk): Use prev_size accessor.
12844         (sysmalloc): Use set_prev_size, set_head accessors.
12845         (munmap_chunk, mremap_chunk): Use prev_size accessor.
12846         (__libc_free): Use chunksize_nomask accessor.
12847         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
12848         chunk_main_arena accessors.
12849         (_int_free): Use chunksize_nomask, prev_size accessors.
12850         (malloc_consolidate): Use chunksize, prev_size accessors.
12851         (_int_realloc): Use chunksize_nomask accessor.
12852         (_int_memalign): Use set_prev_size accessor.
12853         (__malloc_info): Use chunksize_nomask accessor.
12854         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
12855         accessors.
12856         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
12857         (heap_trim): Use chunksize_nomask, prev_size accessors.
12858
12859 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
12860
12861         [BZ #19380]
12862         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
12863         for inexact results.
12864         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
12865         of inexact result where mpfr_subnormalize is the only inexact
12866         step.
12867         * stdlib/tst-strtod-round-data.h: Regenerated.
12868         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
12869         Define to 0.
12870         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
12871
12872 2016-10-27  David S. Miller  <davem@davemloft.net>
12873
12874         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
12875
12876 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12877
12878         * malloc/malloc.c (do_set_mallopt_check): New function.
12879         (do_set_mmap_threshold): Likewise.
12880         (do_set_mmaps_max): Likewise.
12881         (do_set_top_pad): Likewise.
12882         (do_set_perturb_byte): Likewise.
12883         (do_set_trim_threshold): Likewise.
12884         (do_set_arena_max): Likewise.
12885         (do_set_arena_test): Likewise.
12886         (__libc_mallopt): Use them.
12887
12888 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
12889
12890         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12891         (canonicalize): New declaration.
12892         * math/Versions (canonicalize): New libm symbol at version
12893         GLIBC_2.25.
12894         (canonicalizef): Likewise.
12895         (canonicalizel): Likewise.
12896         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
12897         * math/s_canonicalize_template.c: New file.
12898         * math/libm-test.inc: Update comment on functions tested and
12899         testing of NaN payloads.
12900         (TEST_NAN_PAYLOAD): New macro.
12901         (NO_TEST_INLINE): Update value.
12902         (XFAIL_TEST): Likewise.
12903         (ERRNO_UNCHANGED): Likewise.
12904         (ERRNO_EDOM): Likewise.
12905         (ERRNO_ERANGE): Likewise.
12906         (IGNORE_RESULT): Likewise.
12907         (NON_FINITE): Likewise.
12908         (TEST_SNAN): Likewise.
12909         (NO_TEST_MATHVEC): Likewise.
12910         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
12911         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
12912         (struct test_Ffp_b1_data): New type.
12913         (RUN_TEST_Ffp_b1): New macro.
12914         (RUN_TEST_LOOP_Ffp_b1): Likewise.
12915         (canonicalize_test_data): New array.
12916         (canonicalize_test): New function.
12917         (main): Call canonicalize_test.
12918         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
12919         canonicalizef and canonicalizel.
12920         * manual/libm-err-tab.pl: Update comment on interfaces without
12921         ulps tabulated.
12922         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
12923         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
12924         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
12925         canonicalize.
12926         (CFLAGS-nldbl-canonicalize.c): New variable.
12927         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
12928         to ...
12929         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
12930         ... here.
12931         (do_test): Also test canonicalizel.
12932         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
12933         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
12934         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
12935         file.
12936         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
12937         Use libm_hidden_def.
12938         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
12939         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
12940         (do_test): Also test canonicalizel.
12941         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
12942         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
12943         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
12944         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
12945         libm_hidden_def.
12946         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
12947         macro.
12948         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
12949         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
12950         * sysdeps/nacl/libm.abilist: Update.
12951         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12952         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12953         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12954         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12955         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12956         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12957         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12958         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12959         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12960         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12961         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12962         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12964         Likewise.
12965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12966         Likewise.
12967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12968         Likewise.
12969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12970         Likewise.
12971         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12972         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12973         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12974         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12975         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12976         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12977         Likewise.
12978         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12979         Likewise.
12980         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12981         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12982         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12983
12984         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
12985         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
12986         getpayload.
12987         (CFLAGS-nldbl-getpayload.c): New variable.
12988
12989 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12990
12991         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
12992         integer from the format string.
12993
12994 2016-10-26  Florian Weimer  <fweimer@redhat.com>
12995
12996         [BZ #19473]
12997         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
12998         declarations.
12999         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
13000         weak aliases.
13001         * malloc/hooks.c (__malloc_get_state): Remove definition.
13002         (malloc_get_state): New stub implementation as
13003         compatibility symbol.
13004         (malloc_set_state): Rename from __malloc_set_state.  Turn into
13005         compat symbol.
13006         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
13007         malloc_set_state.
13008         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
13009
13010 2016-10-26  Florian Weimer  <fweimer@redhat.com>
13011
13012         * iconvdata/iso646.c (enum variant): Drop illegal_var.
13013         (names): Turn into concatenation of strings.
13014         (gconv_init): Adapt iteration over names.
13015
13016 2016-10-26  Florian Weimer  <fweimer@redhat.com>
13017
13018         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
13019         make const.
13020         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
13021         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
13022         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
13023         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
13024         character in sbconv.
13025         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
13026         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
13027         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
13028
13029 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13030
13031         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
13032
13033         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
13034         (M_TRIM_THRESHOLD): Likewise.
13035
13036         * manual/memory.texi (M_ARENA_TEST): Add documentation.
13037         (M_ARENA_MAX): Likewise.
13038         * malloc/malloc.c: Remove obsolete comment.
13039
13040         * manual/memory.texi: Add environment variable alternatives to
13041         setting mallopt parameters.
13042
13043 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
13044
13045         * include/atomic.h
13046         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
13047         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
13048
13049 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13050
13051         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
13052         * stdlib/tst-strfrom.h: New file.
13053         * stdlib/tst-strfrom.c: New file.
13054         * stdlib/tst-strfrom-locale.c: New file.
13055
13056         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
13057         * stdlib/bug-strtod2.c: Likewise.
13058         * stdlib/tst-strtod-round-skeleton.c: Likewise.
13059         * stdlib/tst-strtod6.c: Likewise.
13060         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
13061
13062 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13063
13064         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
13065         * manual/arith.texi: Document strfromd, strfromf, strfroml.
13066         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
13067         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
13068         * stdlib/stdlib.h (strfromd): New declaration.
13069         (strfromf): Likewise.
13070         (strfroml): Likewise.
13071         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
13072         strfrom.
13073         * stdlib/strfromd.c: New file.
13074         * stdlib/strfromf.c: Likewise.
13075         * stdlib/strfroml.c: Likewise.
13076         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
13077         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
13078         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
13079         * sysdeps/arm/nacl/libc.abilist: Update.
13080         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
13081         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13082         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13083         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13084         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13085         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13086         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13087         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13088         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13089         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13090         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13091         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13092         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13093         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
13095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
13096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13098         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13099         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13100         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13101         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13102         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13104         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13105         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13106         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13107         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13108
13109 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
13110
13111         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
13112         instead of cmpli.
13113         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
13114         instead of cmpli.
13115
13116 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
13117
13118         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
13119         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
13120         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
13121         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
13122         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
13123         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
13124
13125 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13126
13127         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
13128         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
13129         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
13130         SYSCALL_LL64_PRW.
13131         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
13132         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
13133         __ASSUME_PRW_DUMMY_ARG.
13134         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
13135         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
13136         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
13137         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
13138         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
13139         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
13140
13141 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
13142
13143         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
13144
13145 2016-10-22  Florian Weimer  <fweimer@redhat.com>
13146
13147         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
13148         "C++", to override a potential extern "C" directive around the
13149         header file inclusion.
13150
13151 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
13152
13153         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
13154
13155 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13156
13157         * sysdeps/powerpc/fpu/fenv_private.h:
13158         (_FPU_MASK_ALL): Rename to...
13159         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
13160         XE FPSCR bits.
13161
13162         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
13163
13164         (_FPU_MASK_ROUNDING): Rename to...
13165         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
13166         NI bits.
13167
13168         (_FPU_MASK_EXCEPT_ROUND): Rename to...
13169         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
13170         bits and rounding bits.
13171
13172         (__libc_feholdbits_ppc): New inline function to mask, set,
13173         and pontentially clear FSPCR bits, and change MSR[FE] bits.
13174         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
13175         (libc_feholdexcept_setround_ppc): Likewise.
13176
13177         (__libc_femergeenv_ppc): New function to dynamically mask both
13178         old and new FP environments and merge.
13179         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
13180         (libc_feresetround_ppc): Likewise.
13181         (libc_feupdateenv_test_ppc): Likewise.
13182         (libc_feupdateenv_ppc): Likewise.
13183
13184         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
13185         of ISA RN bits, and update macro names.
13186         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
13187         effectively the same as the previously mentioned function.
13188
13189         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
13190         usage with fe_resetround_ppc.
13191
13192         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
13193         to be used.
13194         (libc_feholdexcept_setround_ctxf): Likewise.
13195         (libc_feholdexcept_setround_ctxl): Likewise.
13196
13197 2016-10-21  Florian Weimer  <fweimer@redhat.com>
13198
13199         [BZ #20715]
13200         * math/math.h [__cplusplus] (iszero): Define as function template.
13201         * math/Makefile [CXX] (tests): Add test-math-iszero.
13202         (CFLAGS-test-math-iszero.cc): Set.
13203         * math/test-math-iszero.cc: New file.
13204
13205 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
13206
13207         [BZ #20660]
13208         * sysdeps/arm/e_sqrt.c: New file.
13209         * sysdeps/arm/e_sqrtf.c: Likewise.
13210
13211 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
13212
13213         [BZ #20718]
13214         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
13215         not use floating-point comparisons to test sign.
13216         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
13217         Likewise.
13218
13219         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
13220         (getpayload): New declaration.
13221         * math/Versions (getpayload): New libm symbol at version
13222         GLIBC_2.25.
13223         (getpayloadf): Likewise.
13224         (getpayloadl): Likewise.
13225         * math/Makefile (libm-calls): Add s_getpayloadF.
13226         * math/libm-test.inc: Include <nan-high-order-bit.h>.
13227         (struct test_f_f_data): Add comment.
13228         (RUN_TEST_fp_f): New macro.
13229         (RUN_TEST_LOOP_fp_f): Likewise.
13230         (getpayload_test_data): New array.
13231         (getpayload_test): New function.
13232         (main): Call getpayload_test.
13233         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
13234         descriptor.
13235         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
13236         getpayloadf and getpayloadl.
13237         * manual/libm-err-tab.pl: Update comment on interfaces without
13238         ulps tabulated.
13239         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
13240         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
13241         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
13242         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
13243         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
13244         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
13245         * sysdeps/nacl/libm.abilist: Update.
13246         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13247         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13248         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13249         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13250         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13251         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13252         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13253         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13254         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13255         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13256         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13257         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13259         Likewise.
13260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13261         Likewise.
13262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13263         Likewise.
13264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13265         Likewise.
13266         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13267         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13268         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13269         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13270         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13272         Likewise.
13273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13274         Likewise.
13275         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13276         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13277         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13278
13279 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13280
13281         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
13282         tst-fallocate{64}.
13283         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
13284         on syscall return.
13285
13286 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
13287
13288         [BZ #20689]
13289         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
13290         usable.
13291
13292 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
13293
13294         * sysdeps/generic/nan-high-order-bit.h: New file.
13295         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
13296         * sysdeps/mips/nan-high-order-bit.h: Likewise.
13297         * sysdeps/hppa/math_private.h: Remove file.
13298         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
13299         not define here.
13300         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
13301         <nan-high-order-bit.h>.
13302         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13303         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
13304         <nan-high-order-bit.h>.
13305         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13306         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
13307         <nan-high-order-bit.h>.
13308         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13309         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
13310         <nan-high-order-bit.h>.
13311         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13312         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
13313         <nan-high-order-bit.h>.
13314         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13315         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
13316         <nan-high-order-bit.h>.
13317         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13318         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
13319         <nan-high-order-bit.h>.
13320         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13321         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
13322         <nan-high-order-bit.h>.
13323         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13324         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
13325         <nan-high-order-bit.h>.
13326         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13327         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
13328         <nan-high-order-bit.h>.
13329         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13330         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
13331         <nan-high-order-bit.h>.
13332         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13333         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
13334         <nan-high-order-bit.h>.
13335         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13336         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
13337         <nan-high-order-bit.h>.
13338         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13339         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
13340         <nan-high-order-bit.h>.
13341         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13342         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
13343         <nan-high-order-bit.h>.
13344         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13345         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
13346         <nan-high-order-bit.h>.
13347         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13348         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
13349         <nan-high-order-bit.h>.
13350         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13351         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
13352         <nan-high-order-bit.h>.
13353         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
13354
13355 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
13356
13357         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
13358
13359 2016-09-22  John David Anglin  <dave.anglin@bell.net>
13360
13361         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
13362         abort-instr.h.
13363         (EFAULT): Remove conditional define.
13364         (ENOSYS): Likewise.
13365         (atomic_compare_and_exchange_val_acq): Use instruction nullification
13366         instead of conditional branch instructions.
13367
13368 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
13369
13370         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
13371         (totalordermag): New declaration.
13372         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
13373         New macro.
13374         * math/Versions (totalordermag): New libm symbol at version
13375         GLIBC_2.25.
13376         (totalordermagf): Likewise.
13377         (totalordermagl): Likewise.
13378         * math/Makefile (libm-calls): Add s_totalordermagF.
13379         * math/libm-test.inc (totalordermag_test_data): New array.
13380         (totalordermag_test): New function.
13381         (main): Call totalordermag_test.
13382         * math/test-tgmath.c (NCALLS): Increase to 125.
13383         (F(compile_test)): Call totalordermag.
13384         (F(totalordermag)): New function.
13385         * manual/arith.texi (FP Comparison Functions): Document
13386         totalordermag, totalordermagf and totalordermagl.
13387         * manual/libm-err-tab.pl: Update comment on interfaces without
13388         ulps tabulated.
13389         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
13390         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
13391         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
13392         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
13393         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
13394         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
13395         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
13396         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
13397         totalordermag.
13398         (CFLAGS-nldbl-totalordermag.c): New variable.
13399         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
13400         (do_test): Also test totalordermagl.
13401         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
13402         Likewise.
13403         * sysdeps/nacl/libm.abilist: Update.
13404         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13405         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13406         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13407         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13408         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13409         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13410         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13411         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13412         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13413         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13414         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13415         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13417         Likewise.
13418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13419         Likewise.
13420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13421         Likewise.
13422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13423         Likewise.
13424         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13425         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13426         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13427         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13428         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13429         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13430         Likewise.
13431         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13432         Likewise.
13433         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13434         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13435         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13436
13437 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
13438
13439         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
13440         boolean.
13441
13442 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
13443
13444         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
13445         raising FE_INVALID with feraisexcept in case where part of
13446         argument is infinite, subtract that part of argument from itself.
13447         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
13448         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
13449         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
13450
13451 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
13452
13453         * math/libm-test.inc (totalorder_test_data): Add more tests.
13454
13455 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
13456
13457         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
13458         Undefine weak_alias and add a comment why mips64 require
13459         versioning.
13460
13461 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
13462
13463         [BZ #20647]
13464         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
13465         maximum CPUID level is less than 2.
13466
13467 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
13468
13469         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
13470         (totalorder): New declaration.
13471         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
13472         New macro.
13473         * math/Versions (totalorder): New libm symbol at version
13474         GLIBC_2.25.
13475         (totalorderf): Likewise.
13476         (totalorderl): Likewise.
13477         * math/Makefile (libm-calls): Add s_totalorderF.
13478         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
13479         string.
13480         * math/libm-test.inc (PAYLOAD_DIG): New macro.
13481         (qnan_value_pl): Likewise.
13482         (snan_value_pl): Likewise.
13483         (qnan_value): Define using qnan_value_pl.
13484         (snan_value): Define using snan_value_pl.
13485         (struct test_ff_i_data): Add comment about which tests use this
13486         structure.
13487         (RUN_TEST_ff_b): New macro.
13488         (RUN_TEST_LOOP_ff_b): Likewise.
13489         (totalorder_test_data): New array.
13490         (totalorder_test): New function.
13491         (main): Call totalorder_test.
13492         * math/test-tgmath.c (NCALLS): Increase to 122.
13493         (F(compile_test)): Call totalorder.
13494         (F(totalorder)): New function.
13495         * manual/arith.texi (FP Comparison Functions): Document
13496         totalorder, totalorderf and totalorderl.
13497         * manual/libm-err-tab.pl: Update comment on interfaces without
13498         ulps tabulated.
13499         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
13500         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
13501         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
13502         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
13503         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
13504         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
13505         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
13506         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
13507         totalorder.
13508         (CFLAGS-nldbl-totalorder.c): New variable.
13509         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
13510         file.
13511         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
13512         Add test-totalorderl-ldbl-128ibm.
13513         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
13514         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
13515         test-totalorderl-ldbl-96.
13516         * sysdeps/nacl/libm.abilist: Update.
13517         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13518         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13519         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13520         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13521         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13522         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13523         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13524         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13525         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13526         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13527         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13528         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13530         Likewise.
13531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13532         Likewise.
13533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13534         Likewise.
13535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13536         Likewise.
13537         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13538         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13539         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13540         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13541         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13542         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13543         Likewise.
13544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13545         Likewise.
13546         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13547         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13548         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13549
13550 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13551
13552         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
13553         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
13554         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
13555         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
13556         remove ENOSYS implementation.
13557         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
13558         Consolidate all Linux implementations.
13559
13560 2016-10-11  Florian Weimer  <fweimer@redhat.com>
13561
13562         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
13563         * resolv/herror.c (herror): Cast away const-ness.
13564         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
13565         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
13566
13567 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
13568
13569         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
13570         instead of M_NAN + M_NAN.
13571         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
13572
13573 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13574
13575         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
13576         unused variable 'p'.
13577
13578 2016-10-09  Alan Modra  <amodra@gmail.com>
13579             Andreas Schwab  <schwab@linux-m68k.org>
13580
13581         [BZ #20554]
13582         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
13583         [PIC && !SHARED]: Set up PIC register for PLT call.
13584
13585 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
13586
13587         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
13588         conditional on value of [__FLT_EVAL_METHOD__].
13589         * math/test-iseqsig-excess-precision.c: New file.
13590         * math/Makefile (tests): Add test-iseqsig-excess-precision.
13591
13592 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13593
13594         * math/s_iseqsig_template.c: Include math-private.h.
13595
13596         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
13597         * posix/tst-posix_fadvise.c: New file.
13598         * posix/tst-posix_fadvise64.c: Likewise.
13599         * posix/tst-posix_fadvise-common.c: Likewise.
13600         * sysdeps/unix/sysv/linux/arm/kernel-features.h
13601         (__ASSUME_FADVISE64_64_6ARG): Define.
13602         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13603         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
13604         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13605         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
13606         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
13607         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
13608         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
13609         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
13610         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
13611         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
13612         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
13613         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
13614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
13615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
13616         Likewise.
13617         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
13618         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
13619         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
13620         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
13621         Alias to __posix_fadvise64_l32.
13622         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
13623         Add compat definition to posix_fadvise64.
13624         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
13625         Add versioned definition to posix_fadvise64.
13626         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
13627         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
13628         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
13629         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
13630         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
13631
13632         * io/Makefile (tests): Add tst-posix_fallocate and
13633         tst-posix_fallocate64.
13634         * io/tst-posix_fallocate-common.c: New file.
13635         * io/tst-posix_fallocate.c: Likewise.
13636         * io/tst-posix_fallocate64.c: Likewise.
13637         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
13638         file.
13639         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
13640         Likewise.
13641         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
13642         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
13643         Likewise.
13644         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
13645         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
13646         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
13647         SYSCALL_LL to pass both offset and len arguments.
13648         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
13649         Likewise.
13650         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
13651         __libc_pwrite64 alias used by posix_fallocate64.
13652
13653         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
13654         tst-fallocate64.
13655         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
13656         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
13657         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
13658         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
13659         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
13660         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
13661         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
13662         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13663         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
13664         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
13665         macro on offset argument.
13666         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
13667         SYSCALL_LL64 on offset argument.
13668
13669         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
13670         tst-fallocate64.
13671         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
13672         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
13673         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
13674         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
13675         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
13676         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
13677         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
13678         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13679         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
13680         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
13681         macro on offset argument.
13682         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
13683         SYSCALL_LL64 on offset argument.
13684         * test-skeleton.c (FAIL_RET): Add macro.
13685         (FAIL_EXIT): Likewise.
13686         (FAIL_EXIT1): Likewise.
13687         (_FAIL): Likewise.
13688
13689 2016-10-07  Florian Weimer  <fweimer@redhat.com>
13690
13691         [BZ #20629]
13692         resolv: Remove RES_USEBSTRING and its implementation.
13693         * resolv/resolv.h (RES_USEBSTRING): Remove.
13694         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
13695         (digitvalue, encode_bitstring, decode_bitstring): Remove.
13696         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
13697         (labellen): Remove extended label types support.
13698         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
13699         * resolv/res_init.c (res_setoptions): Likewise.
13700         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
13701
13702 2016-10-07  Florian Weimer  <fweimer@redhat.com>
13703
13704         resolv: Remove RES_NOIP6DOTINT and its implementation.
13705         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
13706         (RES_NOIP6DOTINT): Remove.
13707         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
13708         handling.
13709         * resolv/res_debug.c (p_option): Likewise.
13710         * resolv/res_init.c (res_setoptions): Likewise.
13711         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
13712
13713 2016-10-07  Florian Weimer  <fweimer@redhat.com>
13714
13715         resolv: Deprecate unimplemented flags.
13716         * misc/sys/cdefs.h (__glibc_macro_warning1)
13717         (__glibc_macro_warning): Define.
13718         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
13719         (RES_KEEPTSIG): Mark as deprecated.
13720         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
13721         RES_NOCHECKNAME, RES_KEEPTSIG.
13722         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
13723
13724 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13725
13726         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
13727         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
13728         Use strong_alias to create symbols for glibc verison 2.19.
13729
13730 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13731
13732         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
13733
13734 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13735
13736         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
13737
13738 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13739
13740         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
13741
13742 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13743
13744         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
13745         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
13746         in header for using it as type for ifunc function because __GI_* symbols
13747         for ppc32 do not target the ifunc symbols.
13748         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
13749
13750 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13751
13752         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
13753         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
13754         libc_ifunc_hidden_def.
13755         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
13756         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
13757         Redirect ifunced function in header for using it as type of ifunc'ed
13758         function. Redefine libc_hidden_def to use fallback non ifunc'ed
13759         function for __GI_* symbol.
13760         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
13761         * include/libc-symbols.h
13762         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
13763
13764 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13765
13766         [BZ #20478]
13767         * sysdeps/s390/multiarch/ifunc-resolve.h
13768         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
13769         to create ifunc symbols.
13770         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
13771         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
13772         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
13773         for using it as type for ifunc function.
13774         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
13775         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13776         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13777         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13778         * sysdeps/s390/multiarch/strcat.c: Likewise.
13779         * sysdeps/s390/multiarch/strchr.c: Likewise.
13780         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13781         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13782         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13783         * sysdeps/s390/multiarch/strlen.c: Likewise.
13784         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13785         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13786         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13787         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13788         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13789         * sysdeps/s390/multiarch/strspn.c: Likewise.
13790         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13791         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13792         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13793         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13794         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13795         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13796         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
13797         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
13798         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
13799         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
13800         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
13801         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
13802
13803 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13804
13805         * include/libc-symbols.h (__ifunc_resolver):
13806         New macro is used by __ifunc* macros.
13807         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
13808         depending on HAVE_GCC_IFUNC.
13809         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
13810         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
13811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
13812         Redirect ifunced function in header for using as type for ifunc function.
13813         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
13814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
13815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
13816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
13817         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
13818         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
13819         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
13820         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
13821         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
13822         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
13823         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
13824         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
13825         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
13826         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
13827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
13828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
13829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
13830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
13831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
13832         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
13833         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
13834         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
13835         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
13836         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
13837         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
13838         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
13839         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
13840         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
13841         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
13842         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
13843         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
13844         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
13845         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
13846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
13847         Add libc_hidden_def() and use libc_ifunc_hidden() macro
13848         instead of libc_ifunc() macro.
13849         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
13850         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
13851
13852 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
13853
13854         * config.h.in (HAVE_GCC_IFUNC): New undef.
13855         * configure.ac: Add check if gcc supports attribute ifunc feature.
13856         * configure: Regenerated.
13857         * manual/install.texi: Add recommendation for gcc with
13858         indirect-function support.
13859         * INSTALL: Regenerated.
13860
13861 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
13862
13863         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
13864         macro.
13865         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
13866         (__iseqsig): New declaration.
13867         * math/s_iseqsig_template.c: New file.
13868         * math/Versions (__iseqsigf): New libm symbol at version
13869         GLIBC_2.25.
13870         (__iseqsig): Likewise.
13871         (__iseqsigl): Likewise.
13872         * math/libm-test.inc (iseqsig_test_data): New array.
13873         (iseqsig_test): New function.
13874         (main): Call iseqsig_test.
13875         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
13876         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
13877         * manual/libm-err-tab.pl: Update comment on interfaces without
13878         ulps tabulated.
13879         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
13880         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
13881         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
13882         * sysdeps/nacl/libm.abilist: Update.
13883         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13884         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13885         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13886         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13887         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13888         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13889         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13890         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13891         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13892         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13893         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13894         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13896         Likewise.
13897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13898         Likewise.
13899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13900         Likewise.
13901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13902         Likewise.
13903         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13904         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13905         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13906         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13907         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13908         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13909         Likewise.
13910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13911         Likewise.
13912         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13913         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13914         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13915
13916 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13917
13918         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
13919         do_sincos_2, sloww, sloww1): Update comments.
13920
13921         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
13922         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
13923
13924         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
13925         K boolean and rename it.
13926         (__sin): Adjust.
13927         (__cos): Adjust.
13928
13929 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
13930             Siddhesh Poyarekar  <siddhesh@sourceware.org>
13931
13932         * manual/nss.texi: Fix typos in the manual.
13933
13934 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
13935
13936         * manual/contrib.texi: Fix typos in the manual.
13937
13938         * manual/maint.texi: Fix typos in the manual.
13939
13940         * manual/install.texi: Fix typos in the manual.
13941         * INSTALL: Regenerated.
13942
13943         * manual/lang.texi: Fix typos in the manual.
13944
13945         * manual/probes.texi: Fix typos in the manual.
13946
13947         * manual/threads.texi: Fix typos in the manual.
13948
13949         * manual/debug.texi: Fix typos in the manual.
13950
13951         * manual/crypt.texi: Fix typos in the manual.
13952
13953         * manual/conf.texi: Fix typos in the manual.
13954
13955         * manual/sysinfo.texi: Fix typos in the manual.
13956
13957         * manual/users.texi: Fix typos in the manual.
13958
13959         * manual/job.texi: Fix typos in the manual.
13960
13961         * manual/process.texi: Fix typos in the manual.
13962
13963         * manual/argp.texi: Fix typos in the manual.
13964         * manual/getopt.texi: Likewise.
13965         * manual/startup.texi: Likewise.
13966
13967         * manual/signal.texi: Fix typos in the manual.
13968
13969         * manual/setjmp.texi: Fix typos in the manual.
13970
13971         * manual/resource.texi: Fix typos in the manual.
13972
13973         * manual/time.texi: Fix typos in the manual.
13974
13975         * manual/arith.texi: Fix typos in the manual.
13976
13977         * manual/math.texi: Fix typos in the manual.
13978
13979         * manual/syslog.texi: Fix typos in the manual.
13980
13981         * manual/terminal.texi: Fix typos in the manual.
13982
13983         * manual/socket.texi: Fix typos in the manual.
13984
13985         * manual/filesys.texi: Fix typos in the manual.
13986
13987         * manual/llio.texi: Fix typos in the manual.
13988
13989         * manual/stdio.text: Fix typos in the manual.
13990
13991 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13992
13993         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
13994         instead of K1.
13995
13996         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
13997         SHIFT_QUADRANT and make it bool.
13998         (do_sincos_2): Likewise.
13999         (sloww): Likewise.
14000         (sloww1): Likewise.
14001         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
14002         (__cos): Likewise.
14003
14004 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14005
14006         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
14007
14008 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
14009
14010         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
14011         Define to __WORDSIZE, not conditional on [LONG_MAX ==
14012         0x7fffffffL].
14013         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
14014
14015 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14016
14017         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
14018         inline by __inline__.
14019         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
14020         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
14021         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
14022         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
14023         sigset_t from signal.h.
14024         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
14025         which is already required.
14026
14027 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
14028
14029         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14030
14031 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
14032
14033         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
14034         (struct tcp_repair_window): New type.
14035
14036 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14037
14038         * libio/tst-memstream3.c: Include string.h.
14039
14040 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14041
14042         [BZ #18241]
14043         [BZ #20181]
14044         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
14045         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
14046         write position is at the end the buffer.
14047         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
14048         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
14049         (_IO_str_seekoff): Set correct offset from negative displacement and
14050         set EINVAL for invalid ones.
14051         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
14052         buffer length.
14053         (_IO_wstr_switch_to_get_mode): New function.
14054         (_IO_wstr_seekoff): Set correct offset from negative displacement and
14055         set EINVAL for invalid ones.
14056         * libio/tst-memstream3.c: New file.
14057         * libio/tst-wmemstream3.c: Likewise.
14058         * manual/examples/memstrm.c: Remove warning when priting size_t.
14059
14060 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
14061
14062         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
14063         macro to use __builtin_fma.
14064         * sysdeps/x86_64/fpu/dla.h: Remove file.
14065
14066         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
14067         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
14068         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
14069
14070 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
14071
14072         [BZ #20292]
14073         * elf/Makefile (routines): Add dl-addr-obj.
14074         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
14075         tst-_dl_addr_inside_object.
14076         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
14077         [ifeq (yesyes,$(have-fpie)$(build-shared))]
14078         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
14079         [ifeq (yesyes,$(have-fpie)$(build-shared))]
14080         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
14081         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
14082         * elf/dl-open.c: Likewise.
14083         * elf/dl-addr-obj.c: New file.
14084         * elf/tst-_dl_addr_inside_object.c: New file.
14085
14086 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
14087
14088         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
14089         <bits/iscanonical.h>.
14090         * bits/iscanonical.h: New file.
14091         * math/s_iscanonicall.c: Likewise.
14092         * math/Versions (__iscanonicall): New libm symbol at version
14093         GLIBC_2.25.
14094         * math/libm-test.inc (iscanonical_test_data): New array.
14095         (iscanonical_test): New function.
14096         (main): Call iscanonical_test.
14097         * math/Makefile (headers): Add bits/iscanonical.h.
14098         (type-ldouble-routines): Add s_iscanonicall.
14099         * manual/arith.texi (Floating Point Classes): Document
14100         iscanonical.
14101         * manual/libm-err-tab.pl: Update comment on interfaces without
14102         ulps tabulated.
14103         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
14104         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
14105         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
14106         Likewise.
14107         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
14108         test-iscanonical-ldbl-128ibm.
14109         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
14110         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
14111         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
14112         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
14113         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
14114         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14115         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
14117         Likewise.
14118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14119         Likewise.
14120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14121         Likewise.
14122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
14123         Likewise.
14124         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14125         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14126
14127 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14128
14129         * string/bits/string3.h: Remove C++ style comments.
14130
14131 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14132
14133         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
14134         instead of ternary condition.
14135         (do_sincos_2): Likewise.
14136         (__sin): Likewise.
14137         (__cos): Likewise.
14138         (slow): Likewise.
14139         (sloww): Likewise.
14140         (sloww1): Likewise.
14141         (bsloww): Likewise.
14142         (bsloww1): Likewise.
14143
14144         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
14145         instead of ternary condition.
14146         (do_sin_slow): Likewise.
14147         (do_sincos_1): Likewise.
14148         (do_sincos_2): Likewise.
14149         (__cos): Likewise.
14150         (sloww): Likewise.
14151         (sloww1): Likewise.
14152         (sloww2): Likewise.
14153         (bsloww): Likewise.
14154         (bsloww1): Likewise.
14155         (bsloww2): Likewise.
14156
14157         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
14158         check from here...
14159         (slow2): ... and here...
14160         (__sin): ... to here.
14161
14162 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
14163
14164         * math/math.h
14165         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
14166         Cast argument to its own type.
14167         * math/test-iszero-excess-precision.c: New file.
14168         * math/Makefile (tests): Add test-iszero-excess-precision.
14169         (CFLAGS-test-iszero-excess-precision.c): New variable.
14170
14171 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
14172
14173         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
14174         field, add err field.
14175         (__spawni_child): Report error through err member instead of pipe.
14176         (__spawnix): Likewise.
14177
14178 2016-09-28  Zack Weinberg  <zackw@panix.com>
14179
14180         * scripts/check-installed-headers.sh: Generalize treatment of
14181         sys/elf.h to all target architectures.
14182
14183         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
14184         deleted typedef ucontext_t.
14185
14186 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14187
14188         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
14189         (__INTERNAL_SYSCALL1): Likewise.
14190         (__INTERNAL_SYSCALL2): Likewise.
14191         (__INTERNAL_SYSCALL3): Likewise.
14192         (__INTERNAL_SYSCALL4): Likewise.
14193         (__INTERNAL_SYSCALL5): Likewise.
14194         (__INTERNAL_SYSCALL6): Likewise.
14195         (__INTERNAL_SYSCALL7): Likewise.
14196         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
14197         (__INTERNAL_SYSCALL_NARGS): Likewise.
14198         (__INTERNAL_SYSCALL_DISP): Likewise.
14199         (INTERNAL_SYSCALL_CALL): Likewise.
14200         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
14201         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
14202         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
14203         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
14204         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
14205         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
14206         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
14207         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
14208         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
14209         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
14210         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
14211         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
14212         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
14213
14214 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
14215
14216         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
14217         macro.
14218         * math/libm-test.inc (iszero_test_data): New array.
14219         (iszero_test): New function.
14220         (main): Call iszero_test.
14221         * manual/arith.texi (Floating Point Classes): Document iszero.
14222         * manual/libm-err-tab.pl: Update comment on interfaces without
14223         ulps tabulated.
14224
14225 2016-09-23  Zack Weinberg  <zackw@panix.com>
14226
14227         * scripts/check-installed-headers.sh: New script.
14228         * Rules: In each directory that defines header files to be installed,
14229         run check-installed-headers.sh on them as a special test.
14230         * Makefile: Likewise for the headers installed at top level.
14231
14232         * include/aliases.h, include/alloca.h, include/argz.h
14233         * include/arpa/nameser.h, include/arpa/nameser_compat.h
14234         * include/elf.h, include/envz.h, include/err.h
14235         * include/execinfo.h, include/fpu_control.h, include/getopt.h
14236         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
14237         * include/link.h, include/malloc.h, include/mcheck.h
14238         * include/mntent.h, include/netinet/ether.h
14239         * include/nss.h, include/obstack.h, include/printf.h
14240         * include/pty.h, include/resolv.h, include/rpc/auth.h
14241         * include/rpc/auth_des.h, include/rpc/auth_unix.h
14242         * include/rpc/clnt.h, include/rpc/des_crypt.h
14243         * include/rpc/key_prot.h, include/rpc/netdb.h
14244         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
14245         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
14246         * include/rpc/rpc_msg.h, include/rpc/svc.h
14247         * include/rpc/svc_auth.h, include/rpc/xdr.h
14248         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
14249         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
14250         * include/rpcsvc/ypupd.h, include/shadow.h
14251         * include/stdio_ext.h, include/sys/epoll.h
14252         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
14253         * include/sys/prctl.h, include/sys/profil.h
14254         * include/sys/statfs.h, include/sys/sysctl.h
14255         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
14256         * sysdeps/arm/nacl/include/bits/setjmp.h
14257         * sysdeps/mips/include/sys/asm.h
14258         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
14259         * sysdeps/unix/sysv/linux/include/sys/timex.h
14260         * sysdeps/x86/fpu/include/bits/fenv.h:
14261         Add #ifndef _ISOMAC guard around internal declarations.
14262         Add multiple-inclusion guard if not already present.
14263
14264 2016-09-23  Zack Weinberg  <zackw@panix.com>
14265
14266         * sysdeps/generic/sys/ucontext.h
14267         * sysdeps/arm/sys/ucontext.h
14268         * sysdeps/i386/sys/ucontext.h
14269         * sysdeps/m68k/sys/ucontext.h
14270         * sysdeps/mips/sys/ucontext.h
14271         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
14272         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
14273         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
14274         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
14275         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
14276         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
14277         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
14278         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
14279         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
14280         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
14281         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
14282         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
14283         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
14284         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
14285         Include both bits/sigcontext.h and bits/sigstack.h.
14286         Fix grammar error in comment, if present.
14287
14288         * bits/sigstack.h
14289         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
14290         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
14291         * sysdeps/unix/sysv/linux/bits/sigstack.h
14292         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
14293         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
14294         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
14295         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
14296         * bits/sigcontext.h
14297         * sysdeps/mach/hurd/i386/bits/sigcontext.h
14298         * sysdeps/unix/sysv/linux/bits/sigcontext.h
14299         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
14300         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
14301         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
14302         as well as signal.h, if this was not already allowed.  Request
14303         definition of size_t if necessary.  Minimize semantically-null
14304         differences across files.
14305
14306 2016-09-23  Zack Weinberg  <zackw@panix.com>
14307
14308         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
14309         Remove all logic conditional on __need macros.  Move all the
14310         conditionally defined types to their own headers...
14311         * time/bits/types/clock_t.h: Define clock_t here.
14312         * time/bits/types/clockid_t.h: Define clockid_t here.
14313         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
14314         * time/bits/types/struct_timespec.h: Define struct timespec here.
14315         * time/bits/types/struct_timeval.h: Define struct timeval here.
14316         * time/bits/types/struct_tm.h: Define struct tm here.
14317         * time/bits/types/time_t.h: Define time_t here.
14318         * time/bits/types/timer_t.h: Define timer_t here.
14319         * time/Makefile: Install the new headers.
14320
14321         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
14322         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
14323         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
14324         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
14325         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
14326         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
14327         * sysdeps/unix/sysv/linux/bits/resource.h
14328         * sysdeps/unix/sysv/linux/bits/timex.h
14329         * sysdeps/unix/sysv/linux/mips/bits/resource.h
14330         * sysdeps/unix/sysv/linux/net/ppp_defs.h
14331         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
14332         * sysdeps/unix/sysv/linux/sys/acct.h
14333         * sysdeps/unix/sysv/linux/sys/timerfd.h
14334         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
14335         * time/sys/time.h, time/sys/timeb.h
14336         Use the new bits/types headers.
14337
14338         * include/time.h: Remove __need logic.
14339         * include/bits/time.h
14340         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
14341         * include/bits/types/time_t.h, include/bits/types/timer_t.h
14342         * include/bits/types/struct_itimerspec.h
14343         * include/bits/types/struct_timespec.h
14344         * include/bits/types/struct_timeval.h
14345         * include/bits/types/struct_tm.h:
14346         New wrapper headers.
14347
14348 2016-09-23  Zack Weinberg  <zackw@panix.com>
14349
14350         * sysdeps/mach/hurd/net/if_ppp.h
14351         * sysdeps/unix/sysv/linux/net/if_ppp.h:
14352         Only define struct ifpppstatsreq and struct ifpppcstatsreq
14353         if __USE_MISC is defined, to ensure struct ifreq is declared.
14354
14355         * inet/netinet/ether.h: Condition all function prototypes
14356         on __USE_MISC, to ensure struct ether_addr is declared.
14357
14358         * socket/bits/types/struct_osockaddr.h: New header.
14359         * include/bits/types/struct_osockaddr.h: New wrapper.
14360         * socket/Makefile: Install the new header.
14361         * socket/sys/socket.h, inet/protocols/talkd.h:
14362         Refer to bits/types/struct_osockaddr.h for the definition of
14363         struct osockaddr.
14364
14365 2016-09-23  Zack Weinberg  <zackw@panix.com>
14366
14367         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
14368         * inet/protocols/routed.h, inet/protocols/talkd.h
14369         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
14370         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
14371         * sysdeps/generic/netinet/if_ether.h
14372         * sysdeps/generic/netinet/in_systm.h
14373         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
14374         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
14375         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
14376         * sysdeps/mach/hurd/net/if_arp.h
14377         * sysdeps/mach/hurd/net/if_ppp.h
14378         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
14379         * sysdeps/unix/sysv/linux/bits/in.h
14380         * sysdeps/unix/sysv/linux/net/ethernet.h
14381         * sysdeps/unix/sysv/linux/net/if_arp.h
14382         * sysdeps/unix/sysv/linux/net/if_ppp.h
14383         * sysdeps/unix/sysv/linux/net/if_shaper.h
14384         * sysdeps/unix/sysv/linux/net/route.h
14385         * sysdeps/unix/sysv/linux/netinet/if_ether.h
14386         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
14387         * sysdeps/unix/sysv/linux/netinet/if_tr.h
14388         * sysdeps/unix/sysv/linux/netipx/ipx.h
14389         * sysdeps/unix/sysv/linux/sys/acct.h
14390         * include/arpa/nameser.h, include/resolv.h:
14391         Change all uses of u_char to unsigned char,
14392         u_short and ushort to unsigned short, u_int and uint to unsigned int,
14393         u_long and ulong to unsigned long, u_int8_t to uint8_t,
14394         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
14395         and u_int64_t and u_quad_t to uint64_t.
14396
14397         * mach/sys/reboot.h: Remove two casts of integer literals
14398         to the types they already have.
14399
14400         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
14401         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
14402         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
14403         from referring to 'unsigned char' to 'uint8_t' for consistency with
14404         the macro definition below.
14405
14406         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
14407         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
14408         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
14409         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
14410         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
14411         * sysdeps/unix/sysv/linux/sys/acct.h
14412         * include/arpa/nameser.h, include/resolv.h:
14413         Fix indentation disrupted by mechanical edits.
14414
14415         * inet/protocols/talkd.h, resolv/arpa/nameser.h
14416         * sysdeps/generic/netinet/in_systm.h
14417         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
14418         * sysdeps/gnu/netinet/udp.h
14419         * sysdeps/unix/sysv/linux/net/ethernet.h
14420         * sysdeps/unix/sysv/linux/net/if_arp.h
14421         * sysdeps/unix/sysv/linux/net/if_ppp.h
14422         * sysdeps/unix/sysv/linux/net/if_shaper.h
14423         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
14424         * sysdeps/unix/sysv/linux/netinet/if_tr.h
14425         * sysdeps/unix/sysv/linux/netipx/ipx.h
14426         * sysdeps/unix/sysv/linux/sys/acct.h
14427         Include stdint.h for uintNN_t definitions.
14428         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
14429
14430 2016-09-23  Zack Weinberg  <zackw@panix.com>
14431
14432         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
14433         * sysdeps/unix/sysv/linux/netrose/rose.h:
14434         Include sys/socket.h and netax25/ax25.h.
14435
14436         * inet/netinet/icmp6.h, inet/netinet/ip6.h
14437         * resolv/arpa/nameser_compat.h:
14438         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
14439
14440         * sysdeps/unix/sysv/linux/sys/quota.h:
14441         Use __caddr_t instead of caddr_t.
14442         * sysdeps/unix/sysv/linux/sys/timerfd.h:
14443         Use __clockid_t instead of clockid_t.
14444
14445         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
14446
14447         * argp/argp.h: Check whether _LIBC is defined before expanding it.
14448         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
14449         expanding it.
14450
14451         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
14452         Define __glibc_c99_flexarr_available to 1 when the compiler
14453         supports C99-compatible flexible array members, 0 otherwise.
14454         * sysdeps/unix/sysv/linux/bits/socket.h
14455         * sysdeps/mach/hurd/bits/socket.h
14456         * bits/socket.h: Use __glibc_c99_flexarr_available in
14457         definitions of struct cmsghdr and CMSG_DATA.
14458
14459 2016-09-23  Florian Weimer  <fweimer@redhat.com>
14460
14461         * manual/nss.texi (NSS Modules Interface): Adjust function return
14462         type to enum nss_status.  Document errnop argument.  Clarify
14463         h_errnop semantics.  Fix cross-reference formatting.
14464         (NSS Module Function Internals): Mention that *errnop needs to be
14465         set on failure, but not to zero.
14466
14467 2016-09-23  Florian Weimer  <fweimer@redhat.com>
14468
14469         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
14470         (get_random_name): New functions.
14471         (check_wrapper_flags_mode): Use linkat to give the new file a name
14472         determined by get_random_name.
14473         (do_test): Add calls to test open64 and openat64.
14474
14475 2016-09-23  Florian Weimer  <fweimer@redhat.com>
14476
14477         * test-skeleton.c: Remove #include <stdarg.h>.
14478
14479 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
14480
14481         [BZ #19826]
14482         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
14483         initialization of static TLS entries.
14484         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
14485         * nptl/allocatestack.c (init_one_static_tls): Likewise.
14486
14487 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14488
14489         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
14490         _hurd_malloc_fork_prepare.
14491         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
14492         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
14493         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
14494         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
14495         (_hurd_fork_child_hook): Drop malloc_fork_child.
14496         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
14497         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
14498         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
14499         after locking locks (notably hurd_dtable_lock). Call
14500         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
14501         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
14502         __malloc_fork_unlock_child.
14503         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
14504
14505 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
14506
14507         * soft-fp/extendhftf2.c: New.
14508         * soft-fp/fixhfti.c: Likewise.
14509         * soft-fp/fixunshfti.c: Likewise.
14510         * soft-fp/floattihf.c: Likewise.
14511         * soft-fp/floatuntihf.c: Likewise.
14512         * soft-fp/half.h: Likewise.
14513         * soft-fp/trunctfhf2.c: Likewise.
14514
14515 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
14516
14517         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
14518         macro.
14519         * math/libm-test.inc (issubnormal_test_data): New array.
14520         (issubnormal_test): New function.
14521         * manual/arith.texi (Floating Point Classes): Document
14522         issubnormal.
14523         * manual/libm-err-tab.pl: Update comment on interfaces without
14524         ulps tabulated.
14525
14526         * sysdeps/generic/stdint.h: Define
14527         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
14528         <bits/libc-header-start.h> instead of including <features.h>.
14529         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
14530         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
14531         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
14532         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
14533         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
14534         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
14535         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
14536         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
14537         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
14538         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
14539         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
14540         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
14541         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
14542         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
14543         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
14544         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
14545         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
14546         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
14547         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
14548         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
14549         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
14550         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
14551         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
14552         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
14553         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
14554         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
14555         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
14556         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
14557         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
14558         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
14559         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
14560         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
14561         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
14562         * manual/arith.texi (Integers): Document these macros for types
14563         specified by width properties.
14564         * manual/lang.texi (Width of Type): Document these macros for
14565         other standard typedefs.
14566         * stdlib/tst-width-stdint.c: New file.
14567         * stdlib/Makefile (tests): Add tst-width-stdint.
14568
14569 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14570
14571         [BZ #20016]
14572         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
14573         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
14574         Move ...
14575         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
14576         ... here, as compatibility symbols in a new file.
14577         * resolv/Makefile (libresolv-routines): Add compat-hooks.
14578         * resolv/res_init.c (__res_vinit): Adjust member names.
14579         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
14580         * resolv/resolv.h (res_sendhookact, res_send_qhook)
14581         (res_send_rhook): Remove.
14582         (struct __res_state): Rename qhook, rhook members.
14583
14584 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14585
14586         malloc: Use __libc_lock wrappers.
14587         * malloc/arena.c (list_lock, free_list_lock): Define using
14588         __libc_lock_define_initialized.
14589         (arena_lock): Adjust formatting.
14590         * malloc/malloc.c (struct malloc_state): Define mutex using
14591         __libc_lock_define.
14592         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
14593         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
14594         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
14595         (mutex_unlock, mutex_trylock): Remove.
14596         (__pthread_initialize): Remove unused macro.
14597         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
14598         (mutex_unlock, mutex_trylock): Remove.
14599
14600 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14601
14602         [BZ #20592]
14603         Remove RR type classification macros.
14604         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
14605         (ns_t_udp_p, ns_t_xfr_p): Remove.
14606
14607 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14608
14609         Remove misleading version information.
14610         * resolv/arpa/nameser.h (__NAMESER): Remove.
14611         * resolv/arpa/nameser_compat.h (__BIND): Remove.
14612
14613 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14614
14615         Remove the always-defined BIND_4_COMPAT macro.
14616         * resolv/arpa/nameser.h: Unconditionally include
14617         <arpa/nameser_compat.h>.
14618         (BIND_4_COMPAT): Remove.
14619         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
14620
14621 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14622
14623         [BZ #20591]
14624         Remove obsolete DNSSEC support.
14625         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
14626         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
14627         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
14628         (ns_verify_tcp, ns_verify_tcp_init): Remove.
14629         (ns_cert_types): Add comment.
14630         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
14631         separately.
14632         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
14633         (dst_s_dns_key_id): Remove.
14634         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
14635         variables.
14636
14637 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14638
14639         [BZ #20524]
14640         * manual/string.texi (String/Array Comparison): Clarify the
14641         strverscmp behavior.
14642
14643 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14644
14645         * test-skeleton.c (xasprintf): Add function.
14646         * io/tst-open-tmpfile.c: New test.
14647         * io/Makefile (tests): Add it.
14648
14649 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14650
14651         Avoid running $(CXX) during build to obtain header file paths.
14652         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
14653         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
14654         * Makerules (cstdlib, cmath): Remove variables.  Use
14655         $(c++-cstdlib-header), $(c++-cmath-header) instead.
14656         * configure: Regenerate.
14657
14658 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14659
14660         * Makeconfig (all-object-suffixes): Include .op only if
14661         $(build-profile).
14662
14663 2016-09-21  Florian Weimer  <fweimer@redhat.com>
14664
14665         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
14666         conditionals.  Do not define PATH_MAX.
14667
14668 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14669
14670         * posix/Makefile (tests): Add tst-spawn3.
14671         * posix/tst-spawn3.c: New file.
14672         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
14673         if it is already opened for open action.
14674
14675         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
14676         all signals when executing the clone vfork child.
14677         (SIGALL_SET): Remove macro.
14678
14679         * nptl/Makefile (tests): Add tst-exec5.
14680         * nptl/tst-exec5.c: New file.
14681         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
14682         asynchronous cancellation.
14683
14684 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14685
14686         * hurd/exc2signal.c: #include <hurd/signal.h>
14687         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
14688         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
14689         accordingly.
14690         * mach/mach_error.c (mach_error): Fix old-style function definition.
14691         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
14692
14693 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14694
14695         * math/Makefile (libm-calls): Remove s_nanF.
14696         (gen-libm-calls): Add s_nanF.
14697
14698         * math/s_nan.c: Refactor into ...
14699         * math/s_nan_template.c: New file.
14700
14701         * math/s_nanf.c: Removed.
14702         * math/s_nanl.c: Removed.
14703         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
14704         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
14705
14706         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
14707         (LDOUBLE_nanl_libm_version): New macro.
14708
14709         * sysdeps/generic/math-type-macros-double.h:
14710         (M_STRTO_NAN): New macro.
14711         * sysdeps/generic/math-type-macros-float.h: Likewise.
14712         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
14713
14714         * sysdeps/generic/math-type-macros.h: Document
14715         M_STRTO_NAN.
14716
14717 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14718
14719         * math/s_nanf.c: Remove __nanf undef.
14720         * math/s_nan.c: Remove __nan undef.
14721         * math/s_nanl.c: Remove __nanl undef.
14722
14723         * sysdeps/generic/math_private.h (__nan): Remove macro
14724         override.
14725         (__nanf): Likewise.
14726         (__nanl): Likewise.
14727
14728 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14729
14730         * math/Makefile (gen-all-calls): New variable.
14731         (generated): Replace gen-libm-calls with gen-all-calls.
14732         (gen-libm-templates.stmp): Likewise.  Also, ensure
14733         the output directory exists or is created and add
14734         dependency on the Makefile.
14735         (calls): Move s_ldexpF into gen-calls.
14736         (gen-calls): New variable.
14737
14738         * math/s_ldexpf.c: Removed.
14739         * math/s_ldexpl.c: Removed.
14740         * math/s_ldexp.c: Refactored into ...
14741         * math/s_ldexp_template.c: New file.
14742
14743         * sysdeps/generic/math-type-macros-double.h: Remove
14744         redundant fall-through definition of declare_mgen_alias.
14745         (declare_mgen_alias_2): New macro.
14746
14747         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
14748         New macro for function aliased to two exported symbols.
14749
14750         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
14751         new template file.
14752         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
14753
14754 2016-09-20  Florian Weimer  <fweimer@redhat.com>
14755
14756         * Makeconfig (all-object-suffixes): Remove .og.
14757         * Makerules (elide-routines.og): Remove.
14758         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
14759         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
14760         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
14761
14762 2016-09-20  Florian Weimer  <fweimer@redhat.com>
14763
14764         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
14765         .os objects.
14766
14767 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14768
14769         [BZ #20615]
14770         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
14771         fpu directory by non-fpu.
14772         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
14773         on non-fpu directory from a fpu directory.
14774
14775 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
14776
14777         * include/limits.h: Define
14778         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
14779         <bits/libc-header-start.h> instead of including <features.h>.
14780         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
14781         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
14782         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
14783         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
14784         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
14785         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
14786         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
14787         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
14788         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
14789         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
14790         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
14791         * manual/lang.texi (Width of Type): Document these macros.
14792         * stdlib/tst-width.c: New file.
14793         * stdlib/Makefile (tests): Add tst-width.
14794
14795 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14796
14797         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
14798         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
14799
14800 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14801
14802         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
14803         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
14804         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
14805
14806 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14807
14808         [BZ #18243]
14809         * rt/Makefile (test): Add tst-shm-cancel.
14810         * rt/tst-shm-cancel.c: New file.
14811         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
14812
14813         [BZ #18243]
14814         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
14815         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
14816         definition.
14817         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
14818         uncontended case.
14819         * nptl/sem_wait.c (__new_sem_wait): Likewise.
14820         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
14821         (tf): Fix check for uncontended case.
14822         (do_test): Likewise.
14823         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
14824         (tf): Fix check for uncontended case.
14825         (do_test): Likewise.
14826         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
14827         (tf): Fix check for uncontended case.
14828         (do_test): Likewise.
14829         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
14830         (tf): Fix check for uncontended case.
14831         (do_test): Likewise.
14832
14833         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
14834         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
14835
14836         [BZ #15765]
14837         * nptl/Makefile (tests): Add tst-sem16.
14838         * nptl/tst-sem16.c: New file.
14839         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
14840
14841         * nptl/sem_open.c (sem_open): Init pad value to 0.
14842         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
14843         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
14844
14845 2016-09-15  Florian Weimer  <fweimer@redhat.com>
14846
14847         [BZ #20611]
14848         * inet/Makefile (routines): Add inet6_scopeid_pton.
14849         (tests): Add tst-inet6_scopeid_pton.
14850         * inet/inet6_scopeid_pton.c: New file.
14851         * inet/net-internal.h: Likewise.
14852         * inet/tst-inet6_scopeid_pton.c: New test.
14853         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
14854         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
14855         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14856
14857 2016-09-14  Florian Weimer  <fweimer@redhat.com>
14858
14859         Remove support for compiling wrappers with PTW.
14860         * sysdeps/nptl/Makeconfig: Drop ptw- support.
14861         * nptl/Makefile (pthread-compat-wrappers): Define.
14862         (libpthread-routines): Use pthread-compat-wrappers.
14863         * sysdeps/unix/sysv/linux/alpha/Makefile
14864         (libpthread-routines, libpthread-shared-only-routines): Remove
14865         ptw- prefix.
14866         * sysdeps/s390/nptl/Makefile
14867         (libpthread-routines, libpthread-shared-only-routines): Likewise.
14868         * sysdeps/ia64/nptl/Makefile
14869         (libpthread-routines, libpthread-shared-only-routines): Likewise.
14870         * sysdeps/nacl/Makefile (libpthread-routines): Use
14871         pthread-compat-wrappers to filter the routines list instead of the
14872         ptw- prefix.
14873
14874 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14875
14876         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
14877         with L() and remove explicit suffix, convert real literals
14878         which can be equivalentally substituted with integers, and
14879         transform -L(x) to L(-x).
14880
14881         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14882         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14883         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14884         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14885         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14886         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
14887         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14888         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14889         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14890         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14891         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14892         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14893         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14894         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14895         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14896         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14897         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14898         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
14899         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14900         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14901         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
14902         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14903         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14904         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14905         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
14906         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14907         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14908         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
14909         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14910         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14911         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14912         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14913         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14914         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
14915         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
14916         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14917         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
14918         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
14919         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14920         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14921         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
14922         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14923         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14924         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
14925         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14926         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14927         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14928         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
14929         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
14930         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
14931
14932 2016-09-13  Florian Weimer  <fweimer@redhat.com>
14933
14934         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
14935
14936 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14937
14938         * malloc/Makefile (tests): Remove individual static test names
14939         and just add all of tests-static.
14940
14941         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
14942
14943 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
14944
14945         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
14946         file.
14947
14948         * sysdeps/sparc/fpu/fegetmode.c: New file.
14949         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
14950
14951         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
14952         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
14953
14954         * sysdeps/s390/fpu/fegetmode.c: New file.
14955         * sysdeps/s390/fpu/fesetmode.c: Likewise.
14956
14957         * sysdeps/powerpc/fpu/fegetmode.c: New file.
14958         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
14959         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
14960         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
14961         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
14962         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
14963
14964         * sysdeps/mips/fpu/fegetmode.c: New file.
14965         * sysdeps/mips/fpu/fesetmode.c: Likewise.
14966
14967         * sysdeps/m68k/fpu/fegetmode.c: New file.
14968         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
14969
14970         * sysdeps/ia64/fpu/fegetmode.c: New file.
14971         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
14972
14973         * sysdeps/hppa/fpu/fegetmode.c: New file.
14974         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
14975
14976         * sysdeps/arm/fegetmode.c: New file.
14977         * sysdeps/arm/fesetmode.c: Likewise.
14978
14979         * sysdeps/alpha/fpu/fegetmode.c: New file.
14980         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
14981
14982         * sysdeps/aarch64/fpu/fegetmode.c: New file.
14983         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
14984
14985         * math/fegetmode.c: New file.
14986         * math/fesetmode.c: Likewise.
14987         * sysdeps/i386/fpu/fegetmode.c: Likewise.
14988         * sysdeps/i386/fpu/fesetmode.c: Likewise.
14989         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
14990         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
14991         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
14992         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
14993         declaration.
14994         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
14995         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
14996         typedef.
14997         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
14998         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
14999         (femode_t): New typedef.
15000         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15001         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15002         (femode_t): New typedef.
15003         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15004         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15005         (femode_t): New typedef.
15006         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15007         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15008         (femode_t): New typedef.
15009         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15010         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15011         (femode_t): New typedef.
15012         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15013         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15014         (femode_t): New typedef.
15015         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15016         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15017         (femode_t): New typedef.
15018         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15019         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15020         (femode_t): New typedef.
15021         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15022         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15023         (femode_t): New typedef.
15024         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15025         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15026         (femode_t): New typedef.
15027         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
15028         declaration.
15029         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15030         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15031         (femode_t): New typedef.
15032         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15033         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15034         (femode_t): New typedef.
15035         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15036         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15037         (femode_t): New typedef.
15038         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15039         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15040         (femode_t): New typedef.
15041         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15042         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15043         (femode_t): New typedef.
15044         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
15045         * manual/arith.texi (FE_DFL_MODE): Document macro.
15046         (fegetmode): Document function.
15047         (fesetmode): Likewise.
15048         * math/Versions (fegetmode): New libm symbol at version
15049         GLIBC_2.25.
15050         (fesetmode): Likewise.
15051         * math/Makefile (libm-support): Add fegetmode and fesetmode.
15052         (tests): Add test-femode and test-femode-traps.
15053         * math/test-femode-traps.c: New file.
15054         * math/test-femode.c: Likewise.
15055         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
15056         alias for __fe_dfl_env.
15057         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
15058         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
15059         (__fe_dfl_mode): Likewise.
15060         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
15061         version GLIBC_2.25.
15062         * sysdeps/nacl/libm.abilist: Update.
15063         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15064         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15065         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15066         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15067         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15068         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15069         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15070         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15071         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15072         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15073         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15074         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15076         Likewise.
15077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15078         Likewise.
15079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15080         Likewise.
15081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15082         Likewise.
15083         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15084         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15085         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15086         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15087         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15088         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15089         Likewise.
15090         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15091         Likewise.
15092         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15093         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15094         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15095
15096 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15097
15098         [BZ #20495]
15099         [BZ #20508]
15100         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
15101         processors, set Use_dl_runtime_resolve_slow and set
15102         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
15103         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
15104         New.
15105         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
15106         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
15107         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
15108         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
15109         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
15110         if Use_dl_runtime_resolve_opt is set.  Use
15111         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
15112         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
15113         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
15114         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
15115         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
15116         New.
15117         (_dl_runtime_resolve_opt): Likewise.
15118         (_dl_runtime_profile): Define only if _dl_runtime_profile is
15119         defined.
15120
15121 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
15122
15123         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
15124         __libc_memalign with "+ RELA R_390_GLOB_DAT".
15125
15126 2016-09-06  Florian Weimer  <fweimer@redhat.com>
15127
15128         Convert malloc to __libc_lock.  Automated part, using this Perl
15129         s/// command:
15130           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
15131             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
15132         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
15133         conversion.
15134
15135 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
15136
15137         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
15138         (linknamespace-symlists-tests): Likewise.
15139         (linknamespace-header-tests): Likewise.
15140
15141 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
15142
15143         [BZ #19810]
15144         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
15145         * elf/tst-noload.c: New test case.
15146         * elf/Makefile (tests): Add tst-noload.
15147
15148 2016-09-02  Roland McGrath  <roland@hack.frob.com>
15149
15150         * sysdeps/nacl/dup.c: Add libc_hidden_def.
15151
15152         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
15153         not any more.
15154
15155         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
15156
15157 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15158
15159         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
15160         (do_cos_slow): Likewise.
15161         (do_sin): Likewise.
15162         (do_sin_slow): Likewise.
15163         (slow): Likewise.
15164         (slow1): Likewise.
15165         (slow2): Likewise.
15166         (sloww): Likewise.
15167         (sloww1): Likewise.
15168         (sloww2): Likewise.
15169         (bsloww): Likewise.
15170         (bsloww1): Likewise.
15171         (bsloww2): Likewise.
15172         (cslow2): Likewise.
15173
15174         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
15175
15176         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
15177         arguments.  Consolidate input partitioning from callers here.
15178         (do_cos_slow): Likewise.
15179         (do_sin): Likewise.
15180         (do_sin_slow): Likewise.
15181         (do_sincos_1): Remove the no longer necessary input partitioning.
15182         (do_sincos_2): Likewise.
15183         (__sin): Likewise.
15184         (__cos): Likewise.
15185         (slow1): Likewise.
15186         (slow2): Likewise.
15187         (sloww1): Likewise.
15188         (sloww2): Likewise.
15189         (bsloww1): Likewise.
15190         (bsloww2): Likewise.
15191         (cslow2): Likewise.
15192
15193 2016-09-02  Florian Weimer  <fweimer@redhat.com>
15194
15195         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
15196         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
15197         outside of allocated array.
15198
15199 2016-09-02  Florian Weimer  <fweimer@redhat.com>
15200
15201         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
15202         instead of MB_CUR_MAX to avoid variable-length array.
15203
15204 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15205
15206         * math/Makefile (libm-calls): Remove k_rem_pio2F.
15207         (type-double-routines): Add k_rem_pio2.
15208         (type-float-routines): Add k_rem_pio2f.
15209
15210         * sysdeps/generic/math_private.h:
15211         (__kernel_rem_pio2l): Removed.
15212
15213         * math/k_rem_pio2l.c: Removed.
15214         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
15215         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
15216         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
15217         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
15218
15219 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15220
15221         * math/Makefile (gen-libm-calls): Add s_fmin
15222         (libm-calls): Remove above.
15223
15224         * math/s_fmin.c: Refactor into ...
15225         * math/s_fmin_template.c: New file.
15226
15227         * math/s_fminf.c: Removed.
15228         * math/s_fminl.c: Removed.
15229         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
15230         (LDOUBLE_fmin_libm_version): New macro.
15231
15232         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
15233         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
15234
15235 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15236
15237         * math/Makefile: (gen-libm-calls): Add s_fmax.
15238         (libm-calls): Remove above.
15239
15240         * math/s_fmax.c: Refactor into ...
15241         * math/s_fmax_template.c: New file.
15242         * math/s_fmaxf.c: Removed.
15243         * math/s_fmaxl.c: Removed.
15244
15245         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
15246         (LDOUBLE_fmaxl_libm_version): New macro.
15247
15248         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
15249         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
15250
15251         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
15252         s_fmin.c to pick the aarch64 version of the file.
15253         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
15254         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
15255
15256 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15257
15258         * math/Makefile: (gen-libm-calls): Add s_nextdown.
15259         (libm-calls): Remove above.
15260
15261         * math/s_nextdown.c: Refactor into ...
15262         * math/s_nextdown_template.c: New file.
15263         * math/s_nextdownf.c: Removed.
15264         * math/s_nextdownl.c: Removed.
15265
15266         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
15267
15268 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15269
15270         * math/Makefile (gen-libm-calls): Add s_fdim.
15271         (libm-calls): Move to above.
15272
15273         * math/s_fdim.c: Renamed and refactored into to ...
15274         * math/s_fdim_template.c: New file.
15275         * math/s_fdiml.c: Removed.
15276         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
15277         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
15278
15279         * sysdeps/generic/math-type-macros-double.h:
15280         (declare_mgen_alias): Don't declare if already declared.
15281         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
15282         Likewise.
15283
15284         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
15285         (declare_mgen_alias): Don't declare if already declared.
15286         (M_LIBM_NEED_COMPAT): Likewise.
15287         (declare_mgen_libm_compat): Likewise.
15288         (LDOUBLE_fdiml_libm_version): New macro.
15289
15290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
15291         Include math/s_fdim.c now that ldbl-opt version is not needed.
15292         (declare_mgen_alias): New macro to disable aliasing.
15293
15294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
15295         (declare_mgen_alias): Likewise.
15296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
15297         (declare_mgen_alias): Likewise.
15298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
15299         (declare_mgen_alias): Likewise.
15300         (M_LIBM_NEED_COMPAT): Likewise.
15301
15302 2016-09-01  Florian Weimer  <fweimer@redhat.com>
15303
15304         [BZ #20525]
15305         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
15306         Include <linux/quota.h>.
15307         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
15308         and btodb.
15309         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
15310         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
15311         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
15312         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
15313         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
15314         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
15315         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
15316         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
15317         types.
15318         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
15319         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
15320
15321 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15322
15323         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
15324         (gammal_positive): Fix spacing.
15325         (__ieee754_gammal_r): Likewise.
15326
15327 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15328
15329         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
15330         (_Float128): Define as long double, always.
15331         (L): Apply long double type suffix, always.
15332
15333         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
15334         _Float128, excepting comments.
15335
15336         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15337         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15338         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15339         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15340         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15341         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15342         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15343         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15344         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15345         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
15346         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15347         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15348         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15349         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15350         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15351         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15352         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15353         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15354         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
15355         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15356         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15357         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
15358         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
15359         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
15360         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
15361         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15362         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
15363         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
15364         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15365         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15366         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
15367         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15368         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15369         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15370         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15371         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15372         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15373         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15374         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15375         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
15376         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
15377         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15378         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
15379         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15380         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
15381         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
15382         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
15383         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15384         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15385         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
15386         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
15387         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15388         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15389         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15390         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
15391         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
15392         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15393         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
15394         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15395         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15396         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
15397         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15398         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15399         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15400         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
15401         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
15402         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
15403         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15404
15405         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
15406         _Float128, and include math_private.h.
15407         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
15408
15409         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
15410         long double semantics.
15411         (_Float128): Likewise.
15412         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
15413         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
15414         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
15415         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
15416
15417 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
15418
15419         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
15420         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
15421         * sysdeps/s390/configure: Regenerated.
15422         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
15423         instruction for raising over-/underflow if z196 zarch is supported
15424         by default.
15425         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
15426
15427 2016-08-30  Svante Signell  <svante.signell@gmail.com>
15428
15429         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
15430         it point to a dumb buffer for RPC to fill it.
15431
15432 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15433
15434         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
15435         instead of if/else.
15436         (do_sin_slow): Likewise.
15437         (do_sincos_1): Use fabs instead of if/else.
15438         (do_sincos_2): Likewise.
15439         (__sin): Likewise.
15440         (__cos): Likewise.
15441         (slow2): Likewise.
15442         (sloww): Likewise.
15443         (sloww1): Likewise.  Drop argument M.
15444         (sloww2): Use fabs instead of if/else.
15445         (bsloww): Likewise.
15446         (bsloww1): Likewise.
15447         (bsloww2): Likewise.
15448
15449         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
15450         fall through comment.
15451         (do_sincos_1): Likewise.
15452
15453         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
15454         Consolidate switch cases 0 and 2.
15455
15456 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15457
15458         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
15459         (libm-calls): Remove the above.
15460
15461         * math/s_cexp_template.c: Update using type-generic macros.
15462         * math/s_clog10_template.c: Likewise.
15463         * math/s_cpow_template.c: Likewise.
15464         * math/s_clog_template.c: Likewise.
15465         * math/s_cproj_template.c: Likewise.
15466         * math/s_csqrt_template.c: Likewise.
15467
15468         * math/s_cexp.c: Removed.
15469         * math/s_cexpf.c: Removed.
15470         * math/s_cexpl.c: Removed.
15471         * math/s_clog10.c: Removed.
15472         * math/s_clog10f.c: Removed.
15473         * math/s_clog10l.c: Removed.
15474         * math/s_cpow.c: Removed.
15475         * math/s_cpowf.c: Removed.
15476         * math/s_cpowl.c: Removed.
15477         * math/s_clog.c: Removed.
15478         * math/s_clogf.c: Removed.
15479         * math/s_clogl.c: Removed.
15480         * math/s_cproj.c: Removed.
15481         * math/s_cprojf.c: Removed.
15482         * math/s_cprojl.c: Removed.
15483         * math/s_csqrt.c: Removed.
15484         * math/s_csqrtf.c: Removed.
15485         * math/s_csqrtl.c: Removed.
15486
15487         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
15488         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
15489         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
15490         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
15491         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
15492         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
15493
15494         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
15495         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
15496         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
15497         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
15498         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
15499         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
15500         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
15501         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
15502         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
15503         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
15504         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
15505
15506         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
15507         version.
15508
15509         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
15510         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
15511         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
15512         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
15513
15514 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15515
15516         * s_cexp_template.c: Copy of s_cexp.c.
15517         * s_clog_template.c: Copy of s_clog.c.
15518         * s_clog10_template.c: Copy of s_clog10.c.
15519         * s_cpow_template.c: Copy of s_cpow.c.
15520         * s_cproj_template.c: Copy of s_cproj.c.
15521         * s_csqrt_template.c: Copy of s_csqrt.c.
15522
15523 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15524
15525         [BZ #20517]
15526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
15527         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
15528         exported.
15529
15530 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
15531
15532         * math/fetestexceptflag.c: New file.
15533         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
15534         Stefan Liebler.
15535         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
15536         (fetestexceptflag): New function declaration.
15537         * manual/arith.texi (fetestexceptflag): Document function.
15538         * math/Versions (fetestexceptflag): New libm symbol at version
15539         GLIBC_2.25.
15540         * math/Makefile (libm-support): Add fetestexceptflag.
15541         (tests): Add test-fetestexceptflag.
15542         * math/test-fetestexceptflag.c: New file.
15543         * sysdeps/nacl/libm.abilist: Update.
15544         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15545         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15546         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15547         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15548         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15549         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15550         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15551         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15552         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15553         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15554         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15555         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15557         Likewise.
15558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15559         Likewise.
15560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15561         Likewise.
15562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15563         Likewise.
15564         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15565         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15566         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15567         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15568         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15570         Likewise.
15571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15572         Likewise.
15573         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15574         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15575         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15576
15577 2016-08-26  Florian Weimer  <fweimer@redhat.com>
15578
15579         [BZ #20432]
15580         Avoid strong references to malloc-internal symbols when linking
15581         statically, to support statically interposed mallocs.
15582         * include/libc-symbols.h (call_function_static_weak): New macro.
15583         * malloc/Makefile (tests): Add tst-interpose-nothread,
15584         tst-interpose-thread, tst-interpose-static-nothread,
15585         tst-interpose-static-thread.
15586         (tests-static): Add tst-interpose-static-nothread,
15587         tst-interpose-static-thread.
15588         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
15589         tst-interpose-aux-thread.o.
15590         (test-extras): Add tst-interpose-aux-nothread,
15591         tst-interpose-aux-thread.
15592         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
15593         tst-interpose-aux-nothread.o.
15594         (tst-interpose-thread, tst-interpose-static-thread): Link with
15595         tst-interpose-aux-thread.o and libthread.
15596         * malloc/tst-interpose-aux-nothread.c: New file.
15597         * malloc/tst-interpose-aux-thread.c: Likewise.
15598         * malloc/tst-interpose-aux.c: Likewise.
15599         * malloc/tst-interpose-aux.h: Likewise.
15600         * malloc/tst-interpose-nothread.c: Likewise.
15601         * malloc/tst-interpose-skeleton.c: Likewise.
15602         * malloc/tst-interpose-static-nothread.c: Likewise.
15603         * malloc/tst-interpose-static-thread.c: Likewise.
15604         * malloc/tst-interpose-thread.c: Likewise.
15605         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
15606         * sysdeps/mach/hurd/fork.c (__fork): Only call
15607         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
15608         __malloc_fork_unlock_child if defined.
15609         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15610
15611 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15612
15613         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
15614         timespec C99 designated initialization.
15615
15616 2016-08-26  Florian Weimer  <fweimer@redhat.com>
15617
15618         [BZ #19946]
15619         Avoid expected SIGALRM signals.
15620         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
15621         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
15622         (xpthread_create, xpthread_detach, xpthread_join)
15623         (delayed_exit_thread, delayed_exit): New functions.
15624         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
15625         (tf): Use xpthread_cond_wait.
15626         (do_test): Likewise.  Replace alarm with delayed_exit.
15627         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
15628         (do_test): Call delayed_exit.  Report failure.
15629         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
15630         (do_test): Call delayed_exit.
15631         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
15632         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
15633         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
15634         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
15635         error.
15636         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
15637         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
15638         error.
15639         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
15640         (do_test): Call delayed_exit.
15641         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
15642         (do_test): Call delayed_exit.
15643         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
15644         (do_test): Call delayed_exit instead of alarm.  Use
15645         xpthread_mutex_lock.
15646         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
15647         (do_test): Call delayed_exit instead of alarm.  Use
15648         xpthread_mutex_lock.
15649         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
15650         (do_test): Call delayed_exit instead of alarm.
15651         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
15652         (do_test): Call delayed_exit instead of alarm.  Use
15653         xpthread_spin_lock.
15654         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
15655         (do_test): Call delayed_exit instead of alarm.  Use
15656         xpthread_join.
15657
15658 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
15659
15660         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
15661         adjust CFA when allocating register save area on re-aligned
15662         stack.
15663
15664 2016-08-26  Florian Weimer  <fweimer@redhat.com>
15665
15666         * string/tst-cmp.c: New test.
15667         * string/Makefile (tests): Add it.
15668
15669 2016-08-25  Mark Wielaard  <mark@klomp.org>
15670
15671         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
15672         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
15673         (check_tree_recurse): Use newly defined accessors.
15674         (check_tree): Likewise.
15675         (maybe_split_for_insert): Likewise.
15676         (__tfind): Likewise.
15677         (__tdelete): Likewise.
15678         (trecurse): Likewise.
15679         (tdestroy_recurse): Likewise.
15680         (__tsearch): Likewise. And add asserts for malloc alignment.
15681         (__twalk): Cast root to node in case CHECK_TREE is defined.
15682
15683 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15684
15685         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
15686
15687 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15688
15689         * math/Makefile (libm-gen-calls): Add
15690         catan, catanh, ctan, ctanh.
15691         (libm-calls): Remove the above.
15692
15693         * math/s_catan_template.c: Update using type-generic macros.
15694         * math/s_catanh_template.c: Likewise.
15695         * math/s_ctan_template.c: Likewise.
15696         * math/s_ctanh_template.c: Likewise.
15697
15698         * math/s_catanf.c: Removed.
15699         * math/s_catan.c: Removed.
15700         * math/s_catanl.c: Removed.
15701         * math/s_catanhf.c: Removed.
15702         * math/s_catanh.c: Removed.
15703         * math/s_catanhl.c: Removed.
15704         * math/s_ctanf.c: Removed.
15705         * math/s_ctan.c: Removed.
15706         * math/s_ctanl.c: Removed.
15707         * math/s_ctanhf.c: Removed.
15708         * math/s_ctanh.c: Removed.
15709         * math/s_ctanhl.c: Removed.
15710
15711         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
15712         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
15713         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
15714         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
15715         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
15716         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
15717
15718         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
15719         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
15720         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
15721         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
15722
15723 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15724
15725         * s_catan_template.c: Copy of s_catan.c.
15726         * s_catanh_template.c: Copy of s_catanh.c.
15727         * s_ctan_template.c: Copy of s_ctan.c.
15728         * s_ctanh_template.c: Copy of s_ctanh.c.
15729
15730 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15731
15732         * math/Makefile (gen-libm-calls): Move
15733         casin, casinh, csin, csinh here.
15734         (libm-calls): Remove the above.
15735
15736         * math/s_casin_template.c: Update using type-generic macros.
15737         * math/s_casinh_template.c: Likewise.
15738         * math/s_csin_template.c: Likewise.
15739         * math/s_csinh_template.c: Likewise.
15740         * math/k_casinh_template.c: Likewise.
15741
15742         * math/s_casinf.c: Removed.
15743         * math/s_casin.c: Removed.
15744         * math/s_casinl.c: Removed.
15745         * math/s_casinh.c: Removed.
15746         * math/s_casinhf.c: Removed.
15747         * math/s_casinhl.c: Removed.
15748         * math/s_csin.c: Removed.
15749         * math/s_csinf.c: Removed.
15750         * math/s_csinl.c: Removed.
15751         * math/s_csinh.c: Removed.
15752         * math/s_csinhf.c: Removed.
15753         * math/s_csinhl.c: Removed.
15754         * math/k_casinh.c: Removed.
15755         * math/k_casinhf.c: Removed.
15756         * math/k_casinhl.c: Removed.
15757
15758         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
15759         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
15760         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
15761         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
15762
15763         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
15764         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
15765         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
15766         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
15767         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
15768         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
15769         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
15770         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
15771
15772         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
15773         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
15774         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
15775         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
15776
15777         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
15778         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
15779         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
15780         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
15781
15782 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15783
15784         * s_casin_template.c: Copy of s_casin.c.
15785         * s_casinh_template.c: Copy of s_casinh.c.
15786         * s_csin_template.c: Copy of s_csin.c.
15787         * s_csinh_template.c: Copy of s_csinh.c.
15788         * k_casinh_template.c: Copy of k_casinh.c.
15789
15790 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15791
15792         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
15793
15794 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15795
15796         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
15797         (mul_split) Remove, rename as mul_splitl, remove
15798         redundant float.h include, and include via mul_splitl.h
15799
15800         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
15801         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
15802         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
15803         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
15804         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
15805
15806         * math/mul_splitl.h: New file.
15807
15808         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
15809         Move into mul_split.h, and remove redundant float.h include.
15810
15811         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
15812         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
15813         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
15814         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
15815
15816         * math/mul_split.h: New file.
15817
15818 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15819
15820         * math/Makefile (libm-gen-calls): Move
15821         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
15822         (libm-calls): Remove above.
15823
15824         * math/s_cacos_template.c: Update using type-generic macros.
15825         * math/s_cacosh_template.c: Likewise.
15826         * math/s_ccos_template.c: Likewise.
15827         * math/s_ccosh_template.c: Likewise.
15828
15829         * math/s_cacosf.c: Removed.
15830         * math/s_cacos.c: Removed.
15831         * math/s_cacosl.c: Removed.
15832         * math/s_cacoshf.c: Removed.
15833         * math/s_cacosh.c: Removed.
15834         * math/s_cacoshl.c: Removed.
15835         * math/s_ccosf.c: Removed.
15836         * math/s_ccos.c: Removed.
15837         * math/s_ccosl.c: Removed.
15838         * math/s_ccoshf.c: Removed.
15839         * math/s_ccosh.c: Removed.
15840         * math/s_ccoshl.c: Removed.
15841
15842         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
15843         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
15844         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
15845         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
15846         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
15847         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
15848
15849         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
15850         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
15851         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
15852         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
15853
15854         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
15855         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
15856         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
15857         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
15858
15859 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15860
15861         * s_cacos_template.c: Copy of s_cacos.c.
15862         * s_cacosh_template.c: Copy of s_cacosh.c.
15863         * s_ccos_template.c: Copy of s_ccos.c.
15864         * s_ccosh_template.c: Copy of s_ccosh.c.
15865
15866 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15867
15868         * stdlib/tst-strtod-round-skeleton.c:
15869         Refactored from tst-strtod-round.c.
15870
15871         (L_): New macro to apply literal modifier.
15872         (FNPFX): New macro to select str or wcs prefix.
15873         (CHAR): New macro to choose wchar_t or char.
15874         (STRM): New macro to choose printf for tested character type.
15875
15876         (STRTO): New macro to choose appropriate string -> real function.
15877         (FNPFXS): Stringitized version of FNPFX.
15878         (STR): Support for above macro.
15879         (STRX): Likewise.
15880
15881         (TEST): Update with above macros.
15882         (test): Likewise.
15883         (GEN_ONE_TEST): Likewise.
15884         (test_in_one_mode): Likewise.
15885
15886         * stdlib/tst-strtod-round.c: New file.
15887         * wcsmbs/tst-wcstod-round.c: New file.
15888
15889         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
15890         (tst-wcstod-round): Add libm depencency for fesetround.
15891
15892 2016-08-19  Zack Weinberg  <zackw@panix.com>
15893
15894         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
15895
15896 2016-08-18  Torvald Riegel  <triegel@redhat.com>
15897
15898         [BZ #20477]
15899         * resolv/res_hconf.c (do_init): Use atomic access.
15900         * resolv/res_hconf.h: Add comments.
15901         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
15902         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
15903         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
15904
15905 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
15906
15907         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
15908         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
15909         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
15910         Likewise.
15911
15912 2016-08-18  Florian Weimer  <fweimer@redhat.com>
15913
15914         [BZ #16907]
15915         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
15916         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
15917         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
15918         (__attribute__): Remove definition.
15919
15920 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15921
15922         * sysdeps/ieee754/ldbl-128/e_asinl.c:
15923         Remove unused sqrtl declaration.
15924
15925 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15926
15927         * math/Makefile: (gen-libm-templates.stmp): New rule.
15928         (libm-calls): Move carg conj cimag and cabs into ...
15929         (gen-libm-calls): New variable.
15930         (generated): Inform Make objects from gen-libm-calls
15931         may be generated.
15932
15933         * sysdeps/generic/math-type-macros.h: New file.
15934         * sysdeps/generic/math-type-macros-float.h: Likewise.
15935         * sysdeps/generic/math-type-macros-double.h: Likewise.
15936         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
15937         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
15938         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
15939
15940         * math/cabs.c: Refactor into
15941         * math/cabs_template.c: new file.
15942         * math/cabsf.c: Removed.
15943         * math/cabsl.c: Removed.
15944         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
15945         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
15946
15947         * math/carg.c: Refactor into
15948         * math/carg_template.c: new file.
15949         * math/cargf.c: Removed.
15950         * math/cargl.c: Removed.
15951         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
15952         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
15953
15954         * math/conj.c: Refactor into
15955         * math/conj_template.c: new file.
15956         * math/conjf.c: Removed.
15957         * math/conjl.c: Removed.
15958         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
15959         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
15960
15961         * math/cimag.c: Refactor into
15962         * math/cimag_template.c: new file.
15963         * math/cimagf.c: Removed.
15964         * math/cimagl.c: Removed.
15965         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
15966         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
15967
15968         * math/cimag.c: Refactor into
15969         * math/cimag_template.c: new file.
15970         * math/cimagf.c: Removed.
15971         * math/cimagl.c: Removed.
15972         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
15973         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
15974
15975 2016-08-17  Florian Weimer  <fweimer@redhat.com>
15976
15977         Reduce time to expected nptl/tst-once5 failure.
15978         * nptl/tst-once5.cc (TIMEOUT): Define.
15979
15980 2016-08-17  Florian Weimer  <fweimer@redhat.com>
15981
15982         [BZ #20452]
15983         Avoid additional copies of objects in libc.a in static libraries.
15984         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
15985         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
15986         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
15987         rt-sysdep.
15988         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
15989         Add nptl-sysdep.
15990         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
15991         Add ptw-sysdep.
15992         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
15993         rt-sysdep.
15994         * sysdeps/unix/sysv/linux/alpha/Makefile
15995         (libpthread-shared-only-routines): Add ptw-sysdep,
15996         ptw-sigprocmask, ptw-rt_sigaction.
15997         * sysdeps/unix/sysv/linux/ia64/Makefile
15998         (librt-shared-only-routines): Add rt-sysdep.
15999         * sysdeps/unix/sysv/linux/i386/Makefile
16000         (libpthread-shared-only-routines): Add libc-do-syscall.
16001         * sysdeps/unix/sysv/linux/microblaze/Makefile
16002         (libpthread-shared-only-routines): Add sysdep.
16003         * sysdeps/unix/sysv/linux/powerpc/Makefile
16004         (librt-shared-only-routines): Add rt-sysdep.
16005         (libpthread-shared-only-routines): Add sysdep.
16006         * sysdeps/unix/sysv/linux/s390/Makefile
16007         (librt-shared-only-routines): Add rt-sysdep.
16008         * sysdeps/unix/sysv/linux/sparc/Makefile
16009         (librt-shared-only-routines): Add rt-sysdep.
16010         (libpthread-shared-only-routines): Add sysdep.
16011         * sysdeps/unix/sysv/linux/tile/Makefile
16012         (libpthread-shared-only-routines): Likewise.
16013
16014 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
16015
16016         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
16017         Mask implicit bit out of unpacked value.
16018         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
16019         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
16020         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
16021
16022         * sysdeps/sparc/fpu/fesetexcept.c: New file.
16023
16024         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
16025
16026         * sysdeps/s390/fpu/fesetexcept.c: New file.
16027
16028         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
16029         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
16030         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
16031
16032         * sysdeps/mips/fpu/fesetexcept.c: New file.
16033
16034         * sysdeps/m68k/fpu/fesetexcept.c: New file.
16035
16036         * sysdeps/ia64/fpu/fesetexcept.c: New file.
16037
16038         * sysdeps/hppa/fpu/fesetexcept.c: New file.
16039
16040         * sysdeps/arm/fesetexcept.c: New file.
16041
16042         * sysdeps/alpha/fpu/fesetexcept.c: New file.
16043
16044         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
16045
16046         * math/fesetexcept.c: New file.
16047         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
16048         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
16049         * math/fenv.h: Define
16050         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
16051         <bits/libc-header-start.h> instead of including <features.h>.
16052         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
16053         declaration.
16054         * manual/arith.texi (fesetexcept): Document function.
16055         * math/Versions (fesetexcept): New libm symbol at version
16056         GLIBC_2.25.
16057         * math/Makefile (libm-support): Add fesetexcept.
16058         (tests): Add test-fesetexcept and test-fesetexcept-traps.
16059         * math/test-fesetexcept.c: New file.
16060         * math/test-fesetexcept-traps.c: Likewise.
16061         * sysdeps/nacl/libm.abilist: Update.
16062         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16063         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16064         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16065         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16066         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16067         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16068         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16069         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16070         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16071         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16072         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16073         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
16075         Likewise.
16076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
16077         Likewise.
16078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
16079         Likewise.
16080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
16081         Likewise.
16082         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16083         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16084         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16085         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16086         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16087         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
16088         Likewise.
16089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
16090         Likewise.
16091         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
16092         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16093         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16094
16095 2016-08-16  Florian Weimer  <fweimer@redhat.com>
16096
16097         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
16098         New.
16099         (do_test): Apply default_stack_size_in_mb if not set.
16100         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
16101
16102 2016-08-15  Andreas Schwab  <schwab@suse.de>
16103
16104         [BZ #20435]
16105         CVE-2016-6323
16106         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
16107         as .cantunwind.
16108
16109 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
16110
16111         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
16112         comment from fraiseexcpt.c.
16113
16114         * math/test-fexcept.c (feraiseexcept_exact): New function.
16115         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
16116         (test_except): Likewise.
16117
16118 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
16119
16120         [BZ #20455]
16121         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
16122         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
16123         to be restored.
16124
16125         * math/test-fexcept-traps.c: New file.
16126         * math/test-fexcept.c: Likewise.
16127         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
16128         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
16129         macro.
16130         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
16131         (EXCEPTION_SET_FORCES_TRAP): Likewise.
16132
16133 2016-08-09  Torvald Riegel  <triegel@redhat.com>
16134
16135         * include/atomic.h (atomic_fetch_and_relaxed,
16136         atomic_fetch_and_release, atomic_fetch_or_release,
16137         atomic_fetch_xor_release): New.
16138
16139 2016-08-06  Christian Seiler  <christian@iwakd.de>
16140
16141         [BZ #20444]
16142         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
16143         MACH_PORT_NULL.
16144
16145 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
16146
16147         * math/s_fdim.c: Avoid alias renamed.
16148         * math/s_fdimf.c: Likewise.
16149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16150         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
16151         Add s_fdimf-vis3, s_fdim-vis3.
16152         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
16153         (CFLAGS-s_fdim-vis3.c): Likewise.
16154         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
16155         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
16156
16157 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
16158
16159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16160         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
16161         Remove s_fdimf-vis3, s_fdim-vis3.
16162         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
16163         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
16164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
16165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
16166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
16167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
16168         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
16169         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
16170         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
16171         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
16172
16173 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
16174
16175         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
16176         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
16177         -Wa,-Av9a -mvis.
16178
16179 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16180
16181         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
16182         LIT() to individual constants in simple expressions
16183         after splitting on spaces.
16184         (_apply_lit): Rename replaced version, and use it to
16185         apply to what appears to be a token.
16186
16187         * math/libm-test.inc: Fix many, many issues with
16188         spacing.
16189
16190 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
16191
16192         * math/math.h: Move comment about <bits/mathdef.h> definitions
16193         above inclusion of <bits/mathdef.h>.  Do not mention
16194         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
16195
16196 2016-08-05  Torvald Riegel  <triegel@redhat.com>
16197
16198         * include/atomic.h (atomic_exchange_relaxed): New.
16199
16200 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
16201
16202         * math/e_scalb.c: Do not include <fenv.h>.
16203         (invalid_fn): Do calculation resulting in NaN instead of raising
16204         FE_INVALID and returning a NaN explicitly.
16205         * math/e_scalbf.c: Do not include <fenv.h>.
16206         (invalid_fn): Do calculation resulting in NaN instead of raising
16207         FE_INVALID and returning a NaN explicitly.
16208         * math/e_scalbl.c: Do not include <fenv.h>.
16209         (invalid_fn): Do calculation resulting in NaN instead of raising
16210         FE_INVALID and returning a NaN explicitly.
16211
16212 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
16213
16214         * po/de.po: Updated from Translation Project.
16215         * po/fi.po: Likewise.
16216         * po/sv.po: Likewise.
16217
16218 2016-08-04  Florian Weimer  <fweimer@redhat.com>
16219
16220         [BZ #20452]
16221         Use sysdep.o from libc.a in static libraries.
16222         * sysdeps/unix/sysv/linux/i386/Makefile
16223         (libpthread-shared-only-routines): Add sysdep.
16224         (librt-shared-only-routines): Likewise.
16225
16226 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
16227
16228         * math/tgmath.h (nextdown): Define if
16229         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
16230         (nextup): Likewise.
16231
16232         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
16233         macro.
16234         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
16235         Document.
16236         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
16237         Document macro.
16238         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
16239         (exp10f): Likewise.
16240         (exp10l): Likewise.
16241         * math/bits/mathcalls.h (exp10): Declare if
16242         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
16243
16244         * manual/arith.texi (nextup): Fix typo in last change.
16245
16246 2016-08-03  Zack Weinberg  <zackw@panix.com>
16247
16248         [BZ #19239]
16249         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
16250         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
16251         define major, minor, and makedev to issue deprecation warnings on use.
16252         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
16253         previously-activated deprecation warnings for these macros and prevent
16254         subsequent inclusions of this header from having any effect.
16255         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
16256         including <sys/sysmacros.h>, and undefine it again afterward.
16257
16258 2016-08-03  Zack Weinberg  <zackw@panix.com>
16259
16260         * sysdeps/generic/sys/sysmacros.h: Delete file.
16261         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
16262         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
16263         * bits/sysmacros.h: ... here; this encoding is now the generic
16264         encoding.  Now defines only the following macros:
16265         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
16266         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
16267         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
16268
16269         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
16270         bits/sysmacros.h and the above new macros to generate the
16271         public implementations of major, minor, and makedev.
16272         * misc/tst-makedev.c: New test.
16273         * include/sys/sysmacros.h: New wrapper.
16274
16275         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
16276         (routines): Add makedev.
16277         (tests): Add tst-makedev.
16278         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
16279         gnu_dev_makedev.
16280         * posix/Makefile (headers): Remove sys/sysmacros.h.
16281         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
16282
16283         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
16284         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
16285         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
16286         * sysdeps/unix/sysv/linux/alpha/libc.abilist
16287         * sysdeps/unix/sysv/linux/arm/libc.abilist
16288         * sysdeps/unix/sysv/linux/hppa/libc.abilist
16289         * sysdeps/unix/sysv/linux/i386/libc.abilist
16290         * sysdeps/unix/sysv/linux/ia64/libc.abilist
16291         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
16292         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
16293         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
16294         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
16295         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
16296         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
16297         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
16298         * sysdeps/unix/sysv/linux/nios2/libc.abilist
16299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
16300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
16301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
16302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
16303         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
16304         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
16305         * sysdeps/unix/sysv/linux/sh/libc.abilist
16306         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
16307         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
16308         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
16309         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
16310         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
16311         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
16312         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
16313         Add GLIBC_2.25.
16314
16315         * include/features.h (__glibc_clang_prereq): New macro.
16316         * misc/sys/cdefs.h (__glibc_clang_has_extension)
16317         (__attribute_deprecated_msg__): New macros.
16318
16319 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
16320
16321         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
16322         macro.
16323         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
16324         * manual/arith.texi (issignaling): Document as ISO from TS
16325         18661-1:2014.
16326         (nextup): Likewise.
16327         (nextupf): Likewise.
16328         (nextupl): Likewise.
16329         (nextdown): Likewise.
16330         (nextdownf): Likewise.
16331         (nextdownl): Likewise.
16332         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
16333         macro.
16334         * math/math.h: Define
16335         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
16336         <bits/libc-header-start.h> instead of including <features.h>.
16337         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
16338         [__USE_GNU].
16339         * math/bits/mathcalls.h (nextdown): Declare if
16340         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
16341         (nextup): Likewise.
16342         (__issignaling): Likewise.
16343
16344 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16345
16346         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
16347         check, and remove __glibc_likely hint
16348         from FP_INFINITE check.
16349         * s_csinhf.c (__csinhf): Likewise.
16350
16351         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
16352         hint from FP_INFINITE check.
16353         * s_csinhl.c (__csinhl): Likewise.
16354
16355 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16356
16357         * math/Makefile (libm-calls): Insert F placeholder into
16358         object names.  Move w_lgamma_compat* routines into
16359         (libm-compat-calls): New variable.
16360         (libm-compat-calls-ldouble-yes): New variable.
16361         (calls): Insert F placeholder.
16362         (generated): Redefine using new type-foreach macro call.
16363         (routines): Likewise.
16364
16365         (types): New variable to hold a list of symbolic names
16366         for each type supported by the target machine.
16367         (libm-routines): Redefine using new types variable.
16368         (type-foreach): macro to replace fooF with the
16369         appropriately suffixed foo for each types.
16370
16371         (type-ldouble-suffix): New variable.
16372         (type-ldouble-routines): Likewise.
16373         (type-ldouble-yes): Likewise.
16374         (type-double-suffix): Likewise.
16375         (type-double-routines): Likewise.
16376         (type-float-suffix): Likewise.
16377         (type-float-routines): Likewise.
16378
16379         (dbl-only-routines): Remove.
16380         (long-c-yes): Likewise.
16381         (long-m-routines): Likewise.
16382         (long-m-support): Likewise.
16383         (long-m-yes): Likewise.
16384         (test-longdouble-yes): Likewise.
16385
16386         (test-float.o): Simplify by increasing the scope of the
16387         recipe which adds libm-test.stmp to the vector types.
16388         (test-ifloat.o): Likewise.
16389         (test-float-finite.o): Likewise.
16390         (test-double.o): Likewise
16391         (test-idouble.o): Likewise.
16392         (test-double-finite.o): Likewise.
16393         (test-ldouble.o): Likewise
16394         (test-ildoubl.o): Likewise.
16395         (test-ldouble-finite.o): Likewise.
16396
16397         (libm-tests): Redefine type tests using foreach and the
16398         list of types in types.
16399
16400         (CPPFLAGS-test-ildoubl.c): Rename to
16401         (CPPFLAGS-test-ildouble.c): New variable
16402
16403         * math/test-ildoubl.c: Rename to
16404         * math/test-ildouble.c: New file.
16405
16406 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16407
16408         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
16409         Use fabsl instead of fabs.
16410         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
16411         Likewise.
16412         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
16413         Add long double suffix to constant to ensure proper
16414         promotion to long double.
16415
16416 2016-08-03  Tom Tromey  <tom@tromey.com>
16417
16418         [BZ #20311]
16419         * nptl_db/Makefile (headers): Add proc_service.h.
16420         * nptl_db/proc_service.h: Add include guard.  Use
16421         __BEGIN/__END_DECLS.
16422         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
16423         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
16424         arguments.
16425
16426
16427 2016-08-03  Florian Weimer  <fweimer@redhat.com>
16428
16429         [BZ #17730]
16430         Avoid using memalign for TCB allocations.
16431         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
16432         (_dl_allocate_tls_storage): Use malloc and manual alignment.
16433         Avoid alignment gap in the TLS_DTV_AT_TP case.
16434         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
16435         determine the pointer to free.
16436         * nptl/tst-tls3-malloc.c: New test.
16437         * nptl/Makefile (tests): Add it.
16438         (tst-tls3-malloc): Link with libdl, libpthread.
16439         (LDFLAGS-tst-tls3-malloc): Set.
16440         (tst-tls3-malloc.out): Depend on DSO used in test.
16441
16442 2016-08-03  Florian Weimer  <fweimer@redhat.com>
16443
16444         [BZ #17730]
16445         Avoid using memalign for TLS allocations.
16446         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
16447         is_static member with to_free member.
16448         (union dtv): Use struct dtv_pointer.
16449         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
16450         dtv_pointer instead of is_static.
16451         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
16452         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
16453         instead of val.
16454         (allocate_dtv_entry): New function.
16455         (allocate_and_init): Return struct dtv_pointer.  Call
16456         allocate_dtv_entry instead of __libc_memalign.
16457         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
16458         instead of val.
16459         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
16460         instead of is_static.  Adjust call to allocate_and_init.
16461         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
16462         struct dtv_pointer instead of val.
16463
16464 2016-08-03  Florian Weimer  <fweimer@redhat.com>
16465
16466         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
16467         (MALLOC_ALIGN_MASK): Move ...
16468         * malloc/malloc-internal.h: ... to here.
16469         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
16470
16471 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
16472
16473         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
16474         (UDP_ENCAP_GTP1U): Likewise.
16475
16476         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
16477         (PF_MAX): Update value.
16478         (AF_QIPCRTR): New macro.
16479
16480 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
16481
16482         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
16483         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
16484         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
16485         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
16486         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
16487         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
16488         s_truncf-vis3, s_trunc-vis3.
16489         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
16490         (CFLAGS-s_ceil-vis3.c): Likewise.
16491         (CFLAGS-s_floorf-vis3.c): Likewise.
16492         (CFLAGS-s_floor-vis3.c): Likewise.
16493         (CFLAGS-s_truncf-vis3.c): Likewise.
16494         (CFLAGS-s_trunc-vis3.c): Likewise.
16495         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
16496         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
16497         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
16498         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
16499         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
16500         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
16501         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
16502         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
16503         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
16504         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
16505         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
16506         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
16507
16508 2016-08-02  David S. Miller  <davem@davemloft.net>
16509
16510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
16511         (__nearbyint_vis3): Don't check for sNaN before float register is
16512         loaded with the incoming argument.
16513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
16514         (__nearbyintf_vis3): Likewise.
16515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
16516         Likewise.
16517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
16518         Likewise.
16519
16520         * string/test-strncmp.c (do_test_limit): Make sure the test data
16521         stream is aligned as required for the type "CHAR".
16522         (do_test): Likewise.
16523
16524 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
16525
16526         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
16527         by beq instructions jumping to the end of the function.
16528         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
16529         clobber list. Use "i" constraint instead of "X".
16530         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
16531         of "X".
16532
16533 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
16534
16535         * bits/libc-header-start.h: New file.
16536         * Makefile (headers): Add bits/libc-header-start.h.
16537         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
16538         (__GLIBC_USE): New macro.
16539         * libio/stdio.h: Define
16540         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
16541         <bits/libc-header-start.h> instead of including <features.h>.
16542         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
16543         (open_memstream): Likewise.
16544         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
16545         (__asprintf): Likewise.
16546         (asprintf): Likewise.
16547         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
16548         (getdelim): Likewise.
16549         (getline): Likewise.
16550         * string/string.h: Define
16551         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
16552         <bits/libc-header-start.h> instead of including <features.h>.
16553         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
16554         (strndup): Likewise.
16555         * wcsmbs/wchar.h: Define
16556         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
16557         <bits/libc-header-start.h> instead of including <features.h>.
16558         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
16559         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
16560
16561 2016-08-02  Florian Weimer  <fweimer@redhat.com>
16562
16563         Support linking against compatibility symbols, for use in tests.
16564         * include/libc-symbols.h (symbol_version_reference): New macro.
16565         (symbol_version): Use it.
16566         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
16567         (compat_symbol): Use compat_symbol_reference.
16568         (compat_symbol_1, compat_symbol_2): Remove.
16569         (compat_symbol_reference, compat_symbol_reference_1)
16570         (compat_symbol_reference_2): New macro.  Use
16571         symbol_version_reference.
16572
16573 2016-08-02  Florian Weimer  <fweimer@redhat.com>
16574
16575         [BZ #19469]
16576         * malloc/Makefile (CPPFLAGS): Compile tests with
16577         -DTEST_NO_MALLOPT.
16578         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
16579
16580 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
16581
16582         [BZ #20033]
16583         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
16584         finite version.
16585         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
16586         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
16587         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
16588         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
16589         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
16590         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
16591         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
16592         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
16593         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
16594         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
16595         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
16596         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
16597         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
16598         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
16599         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
16600         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
16601         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
16602         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
16603         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
16604         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
16605         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
16606         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
16607         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
16608         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
16609         in zero power.
16610
16611 2016-08-02  Florian Weimer  <fweimer@redhat.com>
16612
16613         [BZ #20370]
16614         * malloc/arena.c (get_free_list): Update comment.  Assert that
16615         arenas on the free list have no attached threads.
16616         (remove_from_free_list): New function.
16617         (reused_arena): Call it.
16618
16619 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
16620
16621         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
16622         when it is a NaN.
16623         [_IEEE_FP_INEXACT] Remove.
16624         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
16625         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
16626         when it is a NaN.
16627         [_IEEE_FP_INEXACT] Remove.
16628         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
16629         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
16630         when it is a NaN.
16631         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
16632         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
16633         when its absolute value is greater than 0x1.0p52.
16634         [_IEEE_FP_INEXACT] Remove.
16635         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
16636         when its absolute value is greater than 0x1.0p23.
16637         [_IEEE_FP_INEXACT] Remove.
16638
16639 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
16640
16641         * version.h (RELEASE): Set to "development"
16642         (VERSION): Set to 2.24.90.
16643         * NEWS: Add 2.25 section.
16644
16645         * version.h (RELEASE): Set to "stable"
16646         (VERSION): Set to 2.24.
16647         * include/features.h (__GLIBC_MINOR__): Set to 24.
16648
16649         * NEWS: Add 2.24 fixed bugs.
16650         * po/libc.pot: Regenerate.
16651
16652 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
16653
16654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16655         [$(subdir) = math] (libm-sysdep_routines): Remove.
16656         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
16657         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
16658         s_truncf-vis3, s_trunc-vis3.
16659         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
16660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
16661         file.
16662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
16663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
16664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
16665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
16666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
16667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
16668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
16669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
16671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
16672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
16673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
16674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
16675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
16676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
16677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
16678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
16679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
16680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
16681         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
16682         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
16683         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
16684         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
16685         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
16686         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
16687         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
16688         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
16689         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
16690         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
16691         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
16692         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
16693         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
16694         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
16695         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
16696         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
16697         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
16698         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
16699         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
16700         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
16701         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
16702         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
16703         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
16704         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
16705
16706 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
16707
16708         [BZ #20384]
16709         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
16710         test-double-libmvec-sincos-avx-main.o,
16711         test-double-libmvec-sincos-avx2-main.o,
16712         test-double-libmvec-sincos-main.o,
16713         test-float-libmvec-sincosf-avx-main.o,
16714         test-float-libmvec-sincosf-avx2-main.o and
16715         test-float-libmvec-sincosf-main.o.
16716         test-float-libmvec-sincosf-avx512-main.o.
16717         ($(objpfx)test-double-libmvec-sincos): Also link with
16718         $(objpfx)test-double-libmvec-sincos-main.o.
16719         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
16720         $(objpfx)test-double-libmvec-sincos-avx-main.o.
16721         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
16722         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
16723         ($(objpfx)test-float-libmvec-sincosf): Also link with
16724         $(objpfx)test-float-libmvec-sincosf-main.o.
16725         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
16726         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
16727         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
16728         test-double-libmvec-sincos-avx512-main.o and
16729         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
16730         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
16731         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
16732         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
16733         (CFLAGS-test-double-libmvec-sincos.c): Removed.
16734         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
16735         (CFLAGS-test-double-libmvec-sincos-main.c): New.
16736         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
16737         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
16738         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
16739         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
16740         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
16741         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
16742         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
16743         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
16744         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
16745         -DREQUIRE_AVX2.
16746         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
16747         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
16748         -DREQUIRE_AVX512F.
16749         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
16750         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
16751         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
16752         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
16753         file.
16754         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
16755         Likewise.
16756         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
16757         Likewise.
16758         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
16759         Likewise.
16760         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
16761         Likewise.
16762         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
16763         Likewise.
16764         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
16765         Likewise.
16766         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
16767         Likewise.
16768
16769 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
16770
16771         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
16772
16773 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
16774
16775         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
16776         and typo in a comment about AT_HWCAP entry.
16777
16778 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16779
16780         * sysdeps/aarch64/libm-test-ulps: Updated.
16781
16782 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
16783
16784         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
16785         of r13 as it is not restored in mvcle case.
16786
16787 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
16788
16789         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
16790         Rename "ret" to "__ret".
16791         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
16792         inline_syscall5, inline_syscall6): Likewise.
16793
16794 2016-07-19   Will Newton  <will.newton@gmail.com>
16795
16796         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
16797         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
16798         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
16799         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
16800         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
16801
16802 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
16803
16804         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
16805         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
16806         -mfpmath=387 with $(rtld-CFLAGS).
16807         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
16808         $(rtld-CFLAGS).
16809
16810 2016-07-18   Ross Burton  <ross.burton@intel.com>
16811              Khem Raj  <raj.khem@gmail.com>
16812
16813         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
16814         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
16815         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
16816         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
16817         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
16818         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
16819         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
16820         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
16821         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
16822         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
16823         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
16824         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
16825         R_METAG_TLS_DTPOFF): New.
16826
16827 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16828             Matt Clay  <mclay@lycos.com>
16829
16830         [BZ #20357]
16831         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
16832         to call __mpsin/__mpcos and to negate values.
16833         * math/auto-libm-test-in: Add test.
16834         * math/auto-libm-test-out: Regenerate.
16835
16836 2016-07-18  Zack Weinberg  <zackw@panix.com>
16837
16838         * grp/Makefile: Don't install the internal header grp-merge.h.
16839
16840 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16841
16842         * sysdeps/aarch64/libm-test-ulps: Regenerated.
16843
16844 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16845
16846         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
16847
16848 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16849
16850         [BZ #15368]
16851         * sysdeps/unix/sysv/linux/nptl-signals.h
16852         (__nptl_clear_internal_signals): New function.
16853         (__libc_signal_block_all): Likewise.
16854         (__libc_signal_block_app): Likewise.
16855         (__libc_signal_restore_set): Likewise.
16856         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
16857         implementation.
16858         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
16859         the cached pid/tid value in pthread structure.
16860
16861 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
16862
16863         [BZ #20347]
16864         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
16865
16866 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
16867
16868         [BZ #20348]
16869         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
16870         preadv64, pwrite64 and pwritev64.
16871
16872 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
16873
16874         [BZ #20350]
16875         * posix/tst-preadwrite.c: Renamed to ...
16876         * posix/tst-preadwrite-common.c: This.
16877         (PREAD): Removed.
16878         (PWRITE): Likewise.
16879         (STRINGIFY): Likewise.
16880         (STRINGIFY2): Likewise.
16881         (do_prepare): Make it static and remove function arguments.
16882         (do_test): Likewise.
16883         (PREPARE): Updated.
16884         (TEST_FUNCTION): New.
16885         (name): Make it static.
16886         (fd): Likewise.
16887         (do_prepare): Use create_temp_file.
16888         (do_test): Renamed to ...
16889         (do_test_with_offset): This.  Make it static and accept offset.
16890         Properly check return value of PWRITE and PREAD.  Return bytes
16891         read.  Don't close fd nor unlink name.
16892         * posix/tst-preadwrite.c: Rewrite.
16893         * posix/tst-preadwrite64.c: Likewise.
16894
16895 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
16896
16897         [BZ #20309]
16898         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
16899         -mtls-dialect=gnu2 works.
16900         * configure: Regenerated.
16901         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
16902         (tests): Add tst-gnu2-tls1.
16903         (modules-names): Add tst-gnu2-tls1mod.
16904         ($(objpfx)tst-gnu2-tls1): New.
16905         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
16906         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
16907         * elf/tst-gnu2-tls1.c: New file.
16908         * elf/tst-gnu2-tls1mod.c: Likewise.
16909         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
16910         bytes for push in the PLT entry to align the stack.
16911
16912 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
16913
16914         [BZ #20349]
16915         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
16916
16917 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16918
16919         [BZ #18707]
16920         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
16921         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
16922
16923 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16924
16925         * sysdeps/unix/sysv/linux/sysdep.h
16926         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
16927         guards.
16928         * misc/tst-preadvwritev-common.c: New file.
16929         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
16930         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
16931         a check for files larger than 2GB.
16932
16933         * sysdeps/unix/sysv/linux/mips/kernel-features.h
16934         (__ASSUME_OFF_DIFF_OFF64): Remove define.
16935         * sysdeps/unix/sysv/linux/pread.c
16936         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
16937         __OFF_T_MATCHES_OFF64_T.
16938         * sysdeps/unix/sysv/linux/pread64.c
16939         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
16940         * sysdeps/unix/sysv/linux/preadv.c
16941         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
16942         * sysdeps/unix/sysv/linux/preadv64.c
16943         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
16944         * sysdeps/unix/sysv/linux/pwrite.c
16945         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
16946         * sysdeps/unix/sysv/linux/pwrite64.c
16947         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
16948         * sysdeps/unix/sysv/linux/pwritev.c
16949         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
16950         * sysdeps/unix/sysv/linux/pwritev64.c
16951         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
16952
16953 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
16954
16955         * sysdeps/unix/sysv/linux/tile/kernel-features.h
16956         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
16957
16958 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
16959
16960         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
16961
16962 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
16963
16964         [BZ #20240]
16965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
16966         (CFLAGS-s_modf-ppc32.c): New variable.
16967         (CFLAGS-s_modff-ppc32.c): Likewise.
16968         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
16969         (CFLAGS-s_modf-ppc64.c): Likewise.
16970         (CFLAGS-s_modff-ppc64.c): Likewise.
16971
16972 2016-07-07  Andreas Schwab  <schwab@suse.de>
16973
16974         [BZ #20263]
16975         * nptl/tst-robust10.c: New test.
16976         * nptl/Makefile (tests): Add tst-robust10.
16977
16978 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
16979
16980         [BZ #20263]
16981         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
16982
16983 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
16984
16985         * sysdeps/s390/linkmap.h (struct link_map_machine):
16986         Remove member gotplt and add member jmprel.
16987         * sysdeps/s390/s390-32/dl-machine.h
16988         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
16989         instead of gotplt with &got[3].
16990         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
16991         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16992
16993 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
16994
16995         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
16996
16997 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16998
16999         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
17000         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
17001         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
17002         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
17003         * libio/vtables.c (_IO_vtable_check)
17004         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
17005         * libio/libioP.h (IO_set_accept_foreign_vtables)
17006         [!PTR_MANGLE]: Do not call PTR_MANGLE.
17007
17008 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17009
17010         [BZ #20314]
17011         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
17012         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
17013         $(common-objpfx)cmath.
17014         ($(common-objpfx)cstdlib): New target.
17015         ($(common-objpfx)cmath): Likewise.
17016
17017 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
17018
17019         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
17020
17021 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17022
17023         [BZ #20327]
17024         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
17025         are not part of the string.
17026
17027 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17028
17029         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
17030         * nptl/tst-cancel4-common.h (fifoname): New variable.
17031         (fifofd): Likewise.
17032         (cl_fifo): New function.
17033         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
17034         SIGINT.
17035         (tf_open): Add early cancel test.
17036
17037 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
17038
17039         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
17040
17041 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
17042
17043         * sysdeps/generic/ldsodefs.h
17044         (dl_symbol_visibility_binds_local_p): New inline function.
17045         * elf/dl-addr.c (determine_info): Treat hidden and internal
17046         symbols as local.
17047         * elf/dl-lookup.c (do_lookup_x): Likewise.
17048         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
17049
17050 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
17051
17052         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
17053         invalid exception for a sNaN input.
17054         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
17055         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
17056         (__nearbyint_vis3): Likewise
17057         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
17058         (__nearbyintf_vis3): Likewise
17059         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
17060         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
17061         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
17062         Likewise.
17063         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
17064         Likewise.
17065
17066 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
17067
17068         [BZ #20139]
17069         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
17070         (HAVE_AVX512DQ_ASM_SUPPORT): This.
17071         * sysdeps/x86_64/configure.ac: Require assembler from binutils
17072         2.24 or above.
17073         (HAVE_AVX512_ASM_SUPPORT): Removed.
17074         (HAVE_AVX512DQ_ASM_SUPPORT): New.
17075         * sysdeps/x86_64/configure: Regenerated.
17076         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
17077         check unconditional.
17078         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
17079         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
17080         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
17081         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
17082         Likewise.
17083         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17084         Likewise.
17085         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
17086         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
17087         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
17088         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
17089         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
17090         Likewise.
17091         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17092         Likewise.
17093         * sysdeps/x86_64/multiarch/memset.S: Likewise.
17094         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
17095         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
17096         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
17097         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
17098         Likewise.
17099         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
17100         Likewise.
17101         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
17102         Likewise.
17103         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
17104         Likewise.
17105         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
17106         Likewise.
17107         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
17108         Likewise.
17109         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
17110         Likewise.
17111         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
17112         Likewise.
17113         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
17114         Likewise.
17115         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
17116         Likewise.
17117         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
17118         Likewise.
17119
17120 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
17121
17122         [BZ #20024]
17123         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
17124         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
17125         of this implementation of vector function.
17126         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
17127         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
17128         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
17129         Likewise.
17130         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
17131         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
17132         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
17133         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
17134         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
17135         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
17136         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
17137         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
17138         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
17139         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
17140         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
17141         for testing vector sincos with fixed ABI.
17142         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17143         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17144         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17145         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
17146         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
17147         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
17148         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
17149         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
17150         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
17151         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
17152         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
17153         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
17154         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
17155         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
17156         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
17157         * sysdeps/x86_64/fpu/Makefile: Added new tests.
17158
17159 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17160
17161         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
17162
17163 2016-06-30  Anton Blanchard  <anton@samba.org>
17164
17165         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
17166         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
17167         s_sinf-ppc64.
17168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
17169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
17170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
17171         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
17172
17173 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17174
17175         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17176         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
17177         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
17178         e_expf-ppc64.
17179         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
17180         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
17181         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
17182         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
17183
17184 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
17185
17186         [BZ #20277]
17187         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
17188         when SHARED is defined.
17189
17190 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
17191
17192         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
17193         (index_arch_Prefer_ERMS): Likewise.
17194         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
17195         __memcpy_erms for Prefer_ERMS.
17196         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17197         (__memmove_erms): Enabled for libc.a.
17198         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
17199         __memmove_erms or Prefer_ERMS.
17200         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
17201         __mempcpy_erms for Prefer_ERMS.
17202         * sysdeps/x86_64/multiarch/memset.S (memset): Return
17203         __memset_erms for Prefer_ERMS.
17204
17205 2016-06-30  Andreas Schwab  <schwab@suse.de>
17206
17207         [BZ #20262]
17208         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
17209         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
17210         of memory.
17211
17212 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
17213
17214         [BZ #18645]
17215         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
17216         (test-extras): Add tst-cleanupx4aux.
17217         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
17218         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
17219         tst-cleanupx4aux.o.
17220         * nptl/tst-cleanupx4aux.c: New file.
17221
17222 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17223
17224         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
17225
17226 2016-06-29  Andreas Schwab  <schwab@suse.de>
17227
17228         [BZ #20260]
17229         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
17230         address before the beginning of the string as an integer to avoid
17231         array-bounds warning.
17232
17233 2016-06-28  Richard Henderson  <rth@redhat.com>
17234
17235         * elf/elf.h (EM_BPF): New.
17236         (EM_NUM): Update.
17237         (R_BPF_NONE, R_BPF_MAP_FD): New.
17238
17239         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
17240         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
17241         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
17242         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
17243         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
17244         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
17245         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
17246         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
17247         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
17248         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
17249         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
17250         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
17251         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
17252         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
17253         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
17254         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
17255         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
17256         (EM_NUM): Update.
17257
17258 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
17259
17260         [BZ #18960]
17261         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
17262         Set _nl_current_LC_CATEGORY_used to two instead of one.
17263
17264 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
17265
17266         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
17267         (do_test): ... this.
17268         (TEST_FUNCTION): New macro.
17269          Include test-skeleton.c.
17270         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
17271         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
17272
17273 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
17274
17275         [BZ #15479]
17276         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
17277         floating-point environment rather than just control word.
17278         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
17279         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
17280         floating-point environment, with "invalid" exceptions merged in,
17281         rather than just control word.
17282         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
17283         * math/libm-test.inc (trunc_test_data): Do not allow spurious
17284         "inexact" exceptions.
17285
17286         [BZ #15479]
17287         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
17288         floating-point environment rather than just control word.
17289         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
17290         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
17291         floating-point environment, with "invalid" exceptions merged in,
17292         rather than just control word.
17293         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
17294         * math/libm-test.inc (floor_test_data): Do not allow spurious
17295         "inexact" exceptions.
17296
17297         [BZ #15479]
17298         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
17299         floating-point environment rather than just control word.
17300         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
17301         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
17302         floating-point environment, with "invalid" exceptions merged in,
17303         rather than just control word.
17304         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
17305         * math/libm-test.inc (ceil_test_data): Do not allow spurious
17306         "inexact" exceptions.
17307
17308 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
17309
17310         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
17311         __libc_vfork.
17312         (__vfork) [IS_IN (libc)]: Remove alias.
17313         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
17314         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
17315         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
17316
17317 2016-06-24  Torvald Riegel  <triegel@redhat.com>
17318
17319         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
17320         of atomic_compare_and_exchange_bool_rel.
17321         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
17322         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
17323         catomic_compare_and_exchange_bool_rel): Remove.
17324         * sysdeps/aarch64/atomic-machine.h
17325         (atomic_compare_and_exchange_bool_rel): Likewise.
17326         * sysdeps/alpha/atomic-machine.h
17327         (atomic_compare_and_exchange_bool_rel): Likewise.
17328         * sysdeps/arm/atomic-machine.h
17329         (atomic_compare_and_exchange_bool_rel): Likewise.
17330         * sysdeps/mips/atomic-machine.h
17331         (atomic_compare_and_exchange_bool_rel): Likewise.
17332         * sysdeps/microblaze/atomic-machine.h
17333         ( __arch_compare_and_exchange_bool_8_rel,
17334         __arch_compare_and_exchange_bool_16_rel): Likewise.
17335         * sysdeps/powerpc/atomic-machine.h
17336         ( __arch_compare_and_exchange_bool_8_rel,
17337         __arch_compare_and_exchange_bool_16_rel): Likewise.
17338         * sysdeps/powerpc/powerpc32/atomic-machine.h
17339         ( __arch_compare_and_exchange_bool_32_rel,
17340         __arch_compare_and_exchange_bool_64_rel): Likewise.
17341         * sysdeps/powerpc/powerpc64/atomic-machine.h
17342         ( __arch_compare_and_exchange_bool_32_rel,
17343         __arch_compare_and_exchange_bool_64_rel): Likewise.
17344         * sysdeps/tile/atomic-machine.h
17345         (atomic_compare_and_exchange_bool_rel): Likewise.
17346
17347 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
17348
17349         [BZ #20296]
17350         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
17351         when either argument is a NaN.
17352         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
17353         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
17354
17355         * math/libm-test.inc (snan_value_ld): New macro.
17356         (isgreater_test_data): Add sNaN tests.
17357         (isgreaterequal_test_data): Likewise.
17358         (isless_test_data): Likewise.
17359         (islessequal_test_data): Likewise.
17360         (islessgreater_test_data): Likewise.
17361         (isunordered_test_data): Likewise.
17362         (nextafter_test_data): Likewise.
17363         (nexttoward_test_data): Likewise.
17364         (remainder_test_data): Likewise.
17365         (remquo_test_data): Likewise.
17366         (significand_test_data): Likewise.
17367         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
17368
17369 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17370
17371         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
17372         environment macros are defined.
17373         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
17374
17375 2016-06-23  Florian Weimer  <fweimer@redhat.com>
17376
17377         [BZ #20191]
17378         Implement vtable verification in libio.
17379         * Makerules (shlib.lds): Place __libc_IO_vtables section.
17380         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
17381         * debug/vdprintf_chk.c (__vdprintf_chk): Call
17382         _IO_new_file_init_internal instead of _IO_file_init.
17383         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
17384         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
17385         * libio/Makefile (routines): Add vtables.
17386         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
17387         (_IO_init): Remove, not for internal use.
17388         (_IO_init_internal): Declare, internal replacement for _IO_init.
17389         (_IO_file_init): Remove, not for internal use.
17390         (_IO_new_file_init): Remove, not for internal use.
17391         (_IO_new_file_init_internal): Declare, internal replacement for
17392         _IO_new_file_init.
17393         (_IO_old_file_init): Remove, not for internal use.
17394         (_IO_old_file_init_internal): Declare, internal replacement for
17395         _IO_old_file_init.
17396         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
17397         internal use.
17398         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
17399         Declare.
17400         (libio_vtable): New macro.
17401         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
17402         functions.
17403         * libio/fileops.c (_IO_new_file_init_internal): Rename from
17404         _IO_new_file_init.
17405         (_IO_new_file_init): New externally visible wrapper which disables
17406         vtable verification.
17407         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
17408         Define as vtables.
17409         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
17410         (_IO_init): New externally visible wrapper which disables
17411         vtable verification.
17412         * libio/iofdopen.c (_IO_new_fdopen): Call
17413         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
17414         comment.
17415         * libio/iofopen.c (__fopen_internal): Call
17416         _IO_new_file_init_internal instead of _IO_file_init.
17417         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
17418         Define as vtables.
17419         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
17420         _IO_new_file_init_internal instead of _IO_file_init.
17421         * libio/iopopen.c (_IO_new_popen): Likewise.
17422         (_IO_proc_jumps): Define as vtable.
17423         * libio/iovdprintf.c (_IO_vdprintf): Call
17424         _IO_new_file_init_internal instead of _IO_file_init.
17425         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
17426         (__open_memstream): Call _IO_init_internal instead of _IO_init.
17427         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
17428         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
17429         _IO_old_file_init.
17430         (_IO_old_file_init): New externally visible wrapper which disables
17431         vtable verification.
17432         (_IO_old_file_jumps): Define as vtable.
17433         * libio/oldiofdopen.c (_IO_old_fdopen): Call
17434         _IO_old_file_init_internal instead of _IO_old_file_init.
17435         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17436         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17437         (_IO_old_proc_jumps): Define as vtable.
17438         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
17439         Define as vtables.
17440         * libio/vtables.c: New file.
17441         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
17442         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
17443         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
17444         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
17445         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
17446         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
17447         instead of _IO_init.
17448
17449 2016-06-23  Florian Weimer  <fweimer@redhat.com>
17450
17451         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
17452
17453 2016-06-23  Florian Weimer  <fweimer@redhat.com>
17454
17455         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
17456         potentially unused.
17457
17458 2016-06-22  Florian Weimer  <fweimer@redhat.com>
17459
17460         * test-skeleton.c (write_message): New function.
17461         * malloc/tst-mallocfork2.c (write_message): Remove.
17462         * debug/tst-longjmp_chk2.c (write_indented): New function.
17463         (write_message): Remove.
17464         (stackoverflow_handler): Call write_indented.
17465
17466 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
17467
17468         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
17469         "inexact" exceptions after fnstenv.
17470         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
17471         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
17472         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
17473
17474 2015-06-22  Zack Weinberg  <zackw@panix.com>
17475
17476         * sysdeps/generic/bits/hwcap.h: Moved to ...
17477         * bits/hwcap.h: Here.
17478
17479 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
17480
17481         * sysdeps/aarch64/memcpy.S (memcpy):
17482         Further tuning for performance.
17483
17484 2016-06-21  Florian Weimer  <fweimer@redhat.com>
17485
17486         [BZ #20284]
17487         * malloc/arena.c (reused_arena): Do not return NULL if we start
17488         out with a non-corrupted arena.
17489
17490 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17491
17492         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
17493         * misc/tst-preadvwritev.c: New file.
17494         * misc/tst-preadvwritev64.c: Likewise.
17495         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
17496         usage.
17497         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
17498         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
17499         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
17500         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
17501
17502 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
17503
17504         [BZ #19654]
17505         * sysdeps/x86_64/fpu/Makefile: Added new tests.
17506         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
17507         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
17508         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
17509         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
17510         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
17511         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
17512         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
17513         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
17514         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
17515         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
17516         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
17517         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
17518         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
17519         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
17520         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
17521         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
17522         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
17523         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
17524         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
17525         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
17526         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
17527         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
17528         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
17529         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
17530         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
17531
17532 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
17533
17534         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
17535         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
17536
17537 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
17538
17539         * sysdeps/aarch64/memcpy.S (memcpy):
17540         Rewrite of optimized memcpy and memmove.
17541         * sysdeps/aarch64/memmove.S (memmove): Remove
17542         memmove code (merged into memcpy.S).
17543
17544 2016-06-20  Florian Weimer  <fweimer@redhat.com>
17545
17546         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
17547         * sysdeps/generic/dl-dtv.h: New file.
17548         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17549         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
17550         (dtv_t): Remove.
17551         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17552         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
17553         (dtv_t): Remove.
17554         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17555         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
17556         (dtv_t): Remove.
17557         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17558         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
17559         (dtv_t): Remove.
17560         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17561         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
17562         (dtv_t): Remove.
17563         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17564         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
17565         (dtv_t): Remove.
17566         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17567         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
17568         (dtv_t): Remove.
17569         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
17570         (dtv_t): Remove.
17571         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17572         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
17573         (dtv_t): Remove.
17574         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17575         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
17576         (dtv_t): Remove.
17577         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17578         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
17579         (dtv_t): Remove.
17580         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17581         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
17582         (dtv_t): Remove.
17583         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17584         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
17585         (dtv_t): Remove.
17586         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17587         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
17588         (dtv_t): Remove.
17589         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17590         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
17591         (dtv_t): Remove.
17592         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
17593         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
17594         (dtv_t): Remove.
17595
17596 2016-06-20  Florian Weimer  <fweimer@redhat.com>
17597
17598         Revert symbol poisoning of  __malloc_initialize_hook.
17599         * include/stdc-predef.h (__malloc_initialize_hook): Remove
17600         poisoning.
17601         * malloc/Makefile: Remove un-poisoning.
17602         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
17603         instead of old__malloc_initialize_hook.
17604         * malloc/malloc-hooks.h: Likewise.
17605         * malloc/malloc.c: Likewise.
17606         * malloc/mcheck-init.c: Likewise.
17607
17608 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
17609
17610         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
17611
17612 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
17613
17614         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
17615         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
17616         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
17617         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
17618
17619 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17620
17621         * NEWS: Mention addition of nextup and nextdown.
17622         * manual/arith.texi: Document nextup and nextdown.
17623         * manual/libm-err-tab.pl: Add nextup and nextdown.
17624         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
17625         * math/Versions (libm): Add GLIBC_2.24.
17626         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
17627         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
17628         Add new test.
17629         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
17630         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
17631         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
17632         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
17633         (nextup_test_data): Likewise.
17634         (nextdown_test_data): Likewise.
17635         * math/s_nextdown.c: New file.
17636         * math/s_nextdownf.c: Likewise.
17637         * math/s_nextdownl.c: Likewise.
17638         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
17639         F(nextup): New function.
17640         F(nextdown): Likewise.
17641         * math/tgmath.h: Add nextup and nextdown.
17642         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
17643         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
17644         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17645         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17646         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17647         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
17648         Add nextup and nextdown.
17649         (CFLAGS-nldbl-nextup.c): New variable.
17650         (CFLAGS-nldbl-nextdown.c): Likewise.
17651         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
17652         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
17653         * sysdeps/nacl/libm.abilist: Update.
17654         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17655         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17656         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17657         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17658         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17659         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17660         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17661         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17662         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17663         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17664         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17665         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17668         Likewise.
17669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17671         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17672         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17673         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17674         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17675         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
17677         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
17678         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17679         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17680         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
17681         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17682
17683 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17684
17685         * manual/pattern.texi: Fix typos & grammar errors.
17686
17687 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17688
17689         * manual/search.texi: Fix typos & grammar errors.
17690
17691 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17692
17693         * manual/message.texi: Fix typos & grammar errors.
17694
17695 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
17696
17697         * manual/contrib.texi: Fix spelling typos.
17698         * manual/crypt.texi: Likewise.
17699         * manual/filesys.texi: Likewise.
17700         * manual/locale.texi: Likewise.
17701         * manual/message.texi: Likewise.
17702         * manual/nss.texi: Likewise.
17703         * manual/string.texi: Likewise.
17704
17705 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17706
17707         * manual/locale.texi: Fix typos & grammar errors.
17708
17709 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17710
17711         * manual/charset.texi: Fix typos & grammar errors.
17712
17713 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17714
17715         * manual/string.texi: Fix typos.
17716
17717 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17718
17719         * manual/ctype.texi: Fix typos.
17720
17721 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
17722
17723         * manual/memory.texi: Fix various typos & grammar errors.
17724
17725 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
17726
17727         [BZ #20255]
17728         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
17729         * math/libm-test.inc (fdim_test_data): Add another test.
17730
17731         [BZ #6796]
17732         [BZ #20255]
17733         [BZ #20256]
17734         * math/s_fdim.c: Include <math_private.h>.
17735         (__fdim): Use math_narrow_eval on result.
17736         * math/s_fdimf.c: Include <math_private.h>.
17737         (__fdimf): Use math_narrow_eval on result.
17738         * sysdeps/i386/fpu/s_fdim.S: Remove file.
17739         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
17740         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
17741         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
17742         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
17743         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
17744         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
17745         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
17746         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
17747         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
17748         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
17749         * math/libm-test.inc (fdim_test_data): Expect errno setting on
17750         overflow.  Add sNaN tests.
17751
17752         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
17753         fpclassify.
17754         * math/s_fdimf.c (__fdimf): Likewise.
17755         * math/s_fdiml.c (__fdiml): Likewise.
17756
17757 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17758
17759         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17760         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
17761         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17762         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
17763         ifunc'ed strcasecmp/strncasecmp.
17764         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
17765         [EALIGN]: Removed.
17766         [END]: Likewise.
17767         [__strcasecmp]: Define instead of the above to control symbol name.
17768         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
17769         for __strcasecmp_power8.
17770         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
17771         for __strncasecmp_power8.
17772         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
17773         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
17774         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
17775         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
17776         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
17777         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
17778
17779 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
17780
17781         [BZ #20252]
17782         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
17783         arguments when second argument is a NaN.
17784         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
17785         qNaN tests.
17786
17787         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
17788         (conj_test_data): Likewise.
17789         (copysign_test_data): Likewise.
17790         (creal_test_data): Likewise.
17791         (fma_test_data): Likewise.
17792         (fmod_test_data): Likewise.
17793
17794         [BZ #20250]
17795         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
17796         itself.
17797         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
17798         zero input to itself.
17799         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
17800         Likewise.
17801         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
17802         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
17803         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
17804         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
17805         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
17806
17807 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17808
17809         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
17810         * nptl/tst-cancel4-common.c: New file.
17811         * nptl/tst-cancel4-common.h: Likewise.
17812         * nptl/tst-cancel4.c: Move common definitions to
17813         tst-cancel4-common.{c,h} file.
17814         * nptl/tst-cancel4_1.c: New test.
17815         * nptl/tst-cancel4_2.c: New test.
17816
17817 2016-06-13  Florian Weimer  <fweimer@redhat.com>
17818
17819         [BZ #20248]
17820         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
17821         (write_message): New function.
17822         (stackoverflow_handler): Call it instead of printf, to avoid
17823         excessive stack usage by printf.
17824         (do_test): Restore SIGSEGV, SIGBUS default handlers.
17825
17826 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17827
17828         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
17829         (prio_inherit_missing): Remove define.
17830         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17831         (__ASSUME_FUTEX_LOCK_PI): Likewise.
17832         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
17833         Likewise.
17834         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
17835         (__ASSUME_FUTEX_LOCK_PI): Likewise.
17836         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17837         (__ASSUME_FUTEX_LOCK_PI): Likewise.
17838         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
17839         (__ASSUME_FUTEX_LOCK_PI): Likewise.
17840
17841 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
17842
17843         [BZ #19670]
17844         [BZ #19672]
17845
17846         * io/test-lfs.c (do_prepare): Use xmalloc.
17847         * io/tst-fcntl.c (do_prepare): Likewise.
17848         * libio/tst-fopenloc.c (do_bz17916): Likewise.
17849         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
17850         * login/tst-utmp.c (do_prepare): Likewise.
17851         * posix/tst-exec.c (do_prepare): Likewise.
17852         * posix/tst-pathconf.c (prepare): Likewise.
17853         * posix/tst-spawn.c (do_prepare): Likewise.
17854         * posix/tst-truncate.c (do_prepare): Likewise.
17855         * rt/tst-aio.c (do_prepare): Likewise.
17856         * rt/tst-aio64.c (do_prepare): Likewise.
17857
17858 2016-06-11  Florian Weimer  <fweimer@redhat.com>
17859
17860         [BZ #20237]
17861         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
17862         (get*ent): Set entidx to NULL during initialization.  If entidx is
17863         NULL, start iteration from the beginning.
17864
17865 2016-06-11  Florian Weimer  <fweimer@redhat.com>
17866
17867         * malloc/malloc.c (musable): Return correct size for dumped fake
17868         mmapped chunk.
17869
17870 2016-06-11  Florian Weimer  <fweimer@redhat.com>
17871
17872         [BZ #20222]
17873         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
17874         (_IO_cookie_write): Likewise.
17875         (_IO_cookie_seek): Likewise.
17876         (_IO_cookie_close): Likewise.
17877         (_IO_old_cookie_seek): Likewise.
17878         (set_callbacks): New function.
17879         (_IO_cookie_init): Call set_callbacks to copy callbacks.
17880
17881 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
17882
17883         * locale/programs/localedef.c (oldstyle_tables): Remove.
17884         * locale/programs/localedef.h (oldstyle_tables): Likewise.
17885
17886 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
17887
17888         [BZ #20240]
17889         * math/Makefile (CFLAGS-s_modf.c): New variable.
17890         (CFLAGS-s_modff.c): Likewise.
17891         (CFLAGS-s_modfl.c): Likewise.
17892         * math/libm-test.inc (modf_test_data): Add sNaN tests.
17893
17894 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
17895
17896         [BZ #20215]
17897         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
17898         [!__GNUC_PREREQ (3,2)]: Likewise.
17899
17900 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
17901
17902         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
17903         (msghdr.msg_controllen): Likewise.
17904         (cmsghdr.cmsg_len): Likewise.
17905         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
17906         ptw-oldsendmsg.
17907         (CFLAGS-oldrecvmsg.c): Remove rule.
17908         (CFLAGS-oldsendmsg.c): Likewise.
17909         (CFLAGS-recvmsg.c): Add rule.
17910         (CFLAGS-sendmsg.c): Likewise.
17911         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
17912         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
17913         (CFLAGS-recvmsg.c): Remove rule.
17914         (CFLAGS-sendmsg.c): Likewise.
17915         (CFLAGS-oldrecvmsg.c): Likewise.
17916         (CFLAGS-oldsendmsg.c): Likewise.
17917         (CFLAGS-recvmmsg.c): Likewise.
17918         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
17919         to kernel defined interfaces.
17920         (msghdr.msg_controllen): Likewise.
17921         (cmsghdr.cmsg_len): Likewise.
17922         (msghdr.__glibc_reserved1): Remove member.
17923         (msghdr.__glibc_reserved2): Likewise.
17924         (cmsghdr.__glibc_reserved1): Likewise.
17925         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
17926         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
17927         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
17928         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
17929         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
17930         version.
17931         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17932         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
17933         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17934         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
17935         Remove recvmsg and sendmsg.
17936         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
17937         Likewise.
17938         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
17939         Likewise.
17940         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
17941         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
17942         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
17943         Likewise.
17944         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
17945         Likewise.
17946         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
17947         [libc] (GLIBC_2.24): Likewise.
17948         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
17949         Likewise.
17950         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
17951         Likewise.
17952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
17953         [libc] (GLIBC_2.24): Likewise.
17954         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
17955         Likewise.
17956         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
17957         Likewise.
17958         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
17959         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
17960         Likewise.
17961         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
17962         Likewise.
17963         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
17964         Likewise.
17965         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
17966         Likewise.
17967         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
17968         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
17969         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
17970         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
17971         version for {recv,send,recm,sendm}msg.
17972         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17973         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17974         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17975         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17976         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17977         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17978         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17979         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17980         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17981         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17982         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17983         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
17985         Likewise.
17986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17987         Likewise.
17988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17990         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17991         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17992         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17993         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17994         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17995         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17996         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
17997         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
17998         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17999         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18000         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18001
18002 2016-06-10  Florian Weimer  <fweimer@redhat.com>
18003
18004         [BZ #19564]
18005         Remove __malloc_initialize_hook from the API.
18006         * malloc/malloc.h (__malloc_initialize_hook): Remove.
18007         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
18008         #pragma GCC poison.
18009         * malloc/malloc-hooks.h: New file.
18010         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
18011         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
18012         (old__malloc_initialize_hook): Rename from
18013         __malloc_initialize_hook to evade poisoning.  Turn into compat
18014         symbol.
18015         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
18016         __malloc_initialize_hook.
18017         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
18018         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
18019         * manual/memory.texi (Hooks for Malloc): Remove
18020         __malloc_initialize_hook.  Adjust hook example.
18021
18022 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
18023
18024         [BZ #20235]
18025         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
18026         itself.
18027         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
18028         * math/libm-test.inc (log2_test_data): Add sNaN tests.
18029
18030         [BZ #20234]
18031         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
18032         infinity or NaN input to itself.
18033
18034         [BZ #20233]
18035         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
18036         to itself.
18037
18038         [BZ #20232]
18039         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
18040         itself.
18041
18042 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
18043
18044         * sysdeps/x86_64/start.S (_start): Always indirect branch to
18045         __libc_start_main via GOT.
18046
18047 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
18048
18049         * sysdeps/x86_64/memcopy.h: New file.
18050         * sysdeps/x86_64/wordcopy.c: Likewise.
18051
18052 2016-06-09  Florian Weimer  <fweimer@redhat.com>
18053
18054         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
18055         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
18056         <cstdlib>.
18057         (optimization_barrier): New.
18058         (do_test): Use it.  Call quick_exit in the global namespace.
18059         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
18060         instead of <cstdlib>, <thread>.
18061         (optimization_barrier): New.
18062         (non_main_thread): Adjust declaration.  Call optimization_barrier.
18063         Call quick_exit in the global namespace.
18064         (do_test): Call optimization_barrier.  Use pthread_create,
18065         pthread_join instead of std::thread.
18066
18067 2016-06-09  Andreas Schwab  <schwab@suse.de>
18068
18069         [BZ #19755]
18070         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
18071         new entries in auto-propagate mode.
18072         * nscd/grpcache.c (cache_addgr): Likewise.
18073
18074 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
18075
18076         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
18077         New functions.
18078         (add_temp_file): Use them.
18079
18080 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
18081
18082         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
18083
18084 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
18085
18086         [BZ #20229]
18087         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
18088         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
18089         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
18090
18091         [BZ #20228]
18092         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
18093         itself.
18094         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
18095         * math/libm-test.inc (log10_test_data): Add sNaN tests.
18096
18097         [BZ #20227]
18098         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
18099         itself.
18100         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
18101         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
18102         * math/libm-test.inc (log_test_data): Add sNaN tests.
18103
18104         [BZ #20226]
18105         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
18106         itself.
18107         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
18108         * math/libm-test.inc (exp_test_data): Add sNaN tests.
18109         (exp10_test_data): Likewise.
18110         (expm1_test_data): Likewise.
18111
18112         [BZ #20225]
18113         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
18114         itself.
18115         * math/s_ldexpf.c (__ldexpf): Likewise.
18116         * math/s_ldexpl.c (__ldexpl): Likewise.
18117         * math/w_scalbln.c (__w_scalbln): Likewise.
18118         * math/w_scalblnf.c (__w_scalblnf): Likewise.
18119         * math/w_scalblnl.c (__w_scalblnl): Likewise.
18120         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
18121         (scalbln_test_data): Likewise.
18122
18123         [BZ #20224]
18124         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
18125         argument to itself.
18126         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
18127
18128 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
18129
18130         [BZ #19776]
18131         * sysdeps/x86_64/memcpy.S: Make it dummy.
18132         * sysdeps/x86_64/mempcpy.S: Likewise.
18133         * sysdeps/x86_64/memmove.S: New file.
18134         * sysdeps/x86_64/memmove_chk.S: Likewise.
18135         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
18136         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
18137         * sysdeps/x86_64/memmove.c: Removed.
18138         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
18139         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
18140         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
18141         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
18142         Likewise.
18143         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18144         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18145         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
18146         memcpy-sse2-unaligned, memmove-avx-unaligned,
18147         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
18148         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
18149         (__libc_ifunc_impl_list): Replace
18150         __memmove_chk_avx512_unaligned_2 with
18151         __memmove_chk_avx512_unaligned.  Remove
18152         __memmove_chk_avx_unaligned_2.  Replace
18153         __memmove_chk_sse2_unaligned_2 with
18154         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
18155         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
18156         with __memmove_avx512_unaligned.  Replace
18157         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
18158         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
18159         with __memcpy_chk_avx512_unaligned.  Remove
18160         __memcpy_chk_avx_unaligned_2.  Replace
18161         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
18162         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
18163         Replace __memcpy_avx512_unaligned_2 with
18164         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
18165         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
18166         with __mempcpy_chk_avx512_unaligned.  Remove
18167         __mempcpy_chk_avx_unaligned_2.  Replace
18168         __mempcpy_chk_sse2_unaligned_2 with
18169         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
18170         Replace __mempcpy_avx512_unaligned_2 with
18171         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
18172         Replace __mempcpy_sse2_unaligned_2 with
18173         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
18174         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
18175         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
18176         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
18177         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
18178         (ENTRY): Removed.
18179         (END): Likewise.
18180         (ENTRY_CHK): Likewise.
18181         (libc_hidden_builtin_def): Likewise.
18182         Don't include ../memcpy.S.
18183         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
18184         __memcpy_chk_avx512_unaligned_erms and
18185         __memcpy_chk_avx512_unaligned.  Use
18186         __memcpy_chk_avx_unaligned_erms and
18187         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
18188         Default to __memcpy_chk_sse2_unaligned.
18189         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
18190         Change function suffix from unaligned_2 to unaligned.
18191         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
18192         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
18193         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
18194         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
18195         (ENTRY): Removed.
18196         (END): Likewise.
18197         (ENTRY_CHK): Likewise.
18198         (libc_hidden_builtin_def): Likewise.
18199         Don't include ../mempcpy.S.
18200         (mempcpy): New.  Add a weak alias.
18201         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
18202         __mempcpy_chk_avx512_unaligned_erms and
18203         __mempcpy_chk_avx512_unaligned.  Use
18204         __mempcpy_chk_avx_unaligned_erms and
18205         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
18206         Default to __mempcpy_chk_sse2_unaligned.
18207
18208 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
18209
18210         [BZ #19881]
18211         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
18212         into ...
18213         * sysdeps/x86_64/memset.S: This.
18214         (__bzero): Removed.
18215         (__memset_tail): Likewise.
18216         (__memset_chk): Likewise.
18217         (memset): Likewise.
18218         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
18219         defined.
18220         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
18221         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
18222         (__memset_zero_constant_len_parameter): Check SHARED instead of
18223         PIC.
18224         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
18225         memset-avx2 and memset-sse2-unaligned-erms.
18226         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
18227         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
18228         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
18229         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
18230         (__bzero): Enabled.
18231         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
18232         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
18233         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
18234         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
18235         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
18236         (memset): Removed.
18237         (__memset_chk): Likewise.
18238         (MEMSET_SYMBOL): New.
18239         (libc_hidden_builtin_def): Replace __memset_sse2 with
18240         __memset_sse2_unaligned.
18241         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
18242         __memset_chk_sse2 and __memset_chk_avx2 with
18243         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
18244         Use __memset_chk_sse2_unaligned_erms or
18245         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
18246         __memset_chk_avx512_unaligned_erms and
18247         __memset_chk_avx512_unaligned.
18248
18249 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18250
18251         * math/gen-auto-libm-test.c (fp_format_desc): remove
18252         suffix member.
18253         (output_generic_value): Remove usage of suffix member,
18254         and the resulting unuse of the fp_format argument.
18255         (output_for_one_input_case): Remove unused fp_format
18256         parameter.
18257
18258         * math/auto-libm-test-out: Regenerate.
18259
18260         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
18261         usage with TEST_COND_ibm128.
18262         (TEST_COND_flt_32): Remove.
18263         (TEST_COND_dbl_64): Remove.
18264         (TEST_COND_ldbl_96_intel): Remove.
18265         (TEST_COND_ldbl_96_m68k): Remove.
18266         (TEST_COND_ldbl_128): Remove.
18267
18268 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18269
18270         * auto-libm-test-in:
18271         Replace flt-32 usage with binary32.
18272         Replace dbl-64 usage with binary64.
18273         Replace ldbl-intel-96 usage with intel96.
18274         Replace ldbl-m68k-96 usage with m68k96.
18275         Replace ldbl-128ibm usage with ibm128.
18276         Replace ldbl-128 usage with binary128.
18277
18278         * auto-libm-test-out: Regenerate.
18279
18280 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18281
18282         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
18283         (parse_ulps): Dynamically generate type name matching
18284         string from all_floats.
18285         (get_ulps): Generate the ulps as an array instead.
18286         (output_ulps): Dynamically compose the type based
18287         on the number of supported formats, and print
18288         the indices as type specific helper macros.
18289
18290         * math/libm-test.inc: Remove comment about CHOOSE.
18291         (ulp_data): Generate the type in libm-test-ulps.h.
18292         (ULP_IDX): New macro.
18293         (find_ulps): Update usage of max_ulp.
18294
18295         * math/test-double-vlen2.h (CHOOSE): Remove.
18296         * math/test-double-vlen4.h (CHOOSE): Likewise.
18297         * math/test-double-vlen8.h (CHOOSE): Likewise.
18298         * math/test-float.c (CHOOSE): Likewise.
18299         * math/test-float-finite.c (CHOOSE): Likewise.
18300         * math/test-double.c (CHOOSE): Likewise.
18301         * math/test-double-finite.c (CHOOSE): Likewise.
18302         * math/test-idouble.c (CHOOSE): Likewise.
18303         * math/test-ifloat.c (CHOOSE): Likewise.
18304         * math/test-ildoubl.c (CHOOSE): Likewise.
18305         * math/test-ldouble-finite.c (CHOOSE): Likewise.
18306         * math/test-ldouble.c (CHOOSE): Likewise.
18307
18308         * math/test-float.h (TEST_FLOAT): Remove.
18309         * math/test-double.h (TEST_DOUBLE): Likewise.
18310         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
18311
18312 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18313
18314         * math/gen-libm-test.pl: (apply_lit): New subroutine.
18315         (parse_args): Strip C suffix from floating point literals
18316         typed with 'f' and wrap them with LIT().
18317
18318         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
18319         (test_ff_f_data_nexttoward): Rename to
18320         (test_fj_f_data): New struct.
18321         (nexttoward_test_data): Relabel tests as
18322         TEST_fj_f instead of TEST_ff_f.
18323
18324 2016-06-08  Florian Weimer  <fweimer@redhat.com>
18325
18326         Emacs bug 23726.
18327         * malloc/malloc.c (dumped_main_arena_start): Update comment.
18328         (__libc_realloc): Correct size computation for dumped fake mmapped
18329         chunks.
18330
18331 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
18332
18333         [BZ #20219]
18334         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
18335         to itself.
18336         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
18337
18338         [BZ #20218]
18339         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
18340         to itself.
18341         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
18342
18343 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
18344
18345         [BZ #20195]
18346         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
18347         check to ...
18348         (init_cpu_features): Here.
18349
18350 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
18351
18352         [BZ #20214]
18353         * sysdeps/unix/sysv/linux/bits/in.h
18354         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
18355          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
18356         Define to 1.
18357         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
18358          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
18359         Define to 0.
18360         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
18361         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
18362
18363 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
18364
18365         [BZ #20198]
18366         * stdlib/Makefile (tests): Add tst-quick_exit, and
18367         tst-thread-quick_exit.
18368         [ifeq ($(have-cxx-thread_local),yes)]
18369         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
18370         (CFLAGS-tst-thread-quick_exit.o): Likewise.
18371         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
18372         (LDLIBS-tst-thread-quick_exit): Likewise.
18373         [ifneq ($(have-cxx-thread_local),yes)]
18374         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
18375         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
18376         If run_dtors is true call __call_tls_dtors.
18377         (exit): Call __run_exit_handlers with run_dtors set to true.
18378         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
18379         definition.
18380         * stdlib/quick_exit.c (quick_exit): Remove function.
18381         (__new_quick_exit): New function.
18382         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
18383         function.
18384         * stdlib/tst-quick_exit.cc: New file.
18385         * stdlib/tst-thread-quick_exit.cc: New file.
18386         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
18387         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
18388         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
18389         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
18390         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
18391         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
18392         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
18393         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
18394         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
18395         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
18396         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
18397         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
18398         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
18399         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
18400         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
18401         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
18402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
18403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
18404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
18405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
18406         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
18407         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
18408         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
18409         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
18410         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
18411         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
18412         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
18413         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
18414         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
18415         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
18416
18417 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
18418
18419         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
18420         a typo in comments.
18421
18422 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
18423
18424         [BZ #20213]
18425         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
18426         argument to itself.
18427         * math/libm-test.inc (asin_test_data): Add sNaN tests.
18428
18429 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18430
18431         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
18432         required flags.
18433         (CFLAGS-pwritev64.c): Likewise.
18434         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
18435         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
18436         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
18437         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
18438         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
18439         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
18440         syscall from auto-generation.
18441         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
18442         [WORDSIZE == 64] (pwritev64): Remove macro.
18443         [!PWRITEV] (PWRITEV): Likewise.
18444         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
18445         [!PWRITEV] (PWRITE): Likewise.
18446         [!PWRITEV] (OFF_T): Likewise.
18447         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
18448         (LO_HI_LONG): Remove macro.
18449         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
18450         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
18451         (PWRITEV): Remove macro.
18452         (PWRITEV_REPLACEMENTE): Likewise.
18453         (PWRITE): Likewise.
18454         (OFF_T): Likewise.
18455         (pwritev64): New function.
18456         * nptl/tst-cancel4.c (tf_writev): Add test.
18457
18458         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
18459         required flags.
18460         (CFLAGS-preadv64.c): Likewise.
18461         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
18462         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
18463         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
18464         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
18465         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
18466         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
18467         syscall from auto-generation.
18468         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
18469         [WORDSIZE == 64] (preadv64): Remove macro.
18470         [!PREADV] (PREADV): Likewise.
18471         [!PREADV] (PREADV_REPLACEMENT): Likewise.
18472         [!PREADV] (PREAD): Likewise.
18473         [!PREADV] (OFF_T): Likewise.
18474         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
18475         (LO_HI_LONG): Remove macro.
18476         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
18477         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
18478         (PREADV): Remove macro.
18479         (PREADV_REPLACEMENTE): Likewise.
18480         (PREAD): Likewise.
18481         (OFF_T): Likewise.
18482         (preadv64): New function.
18483         * nptl/tst-cancel4.c (tf_preadv): Add test.
18484
18485 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
18486
18487         [BZ #20212]
18488         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
18489         argument to itself.
18490         * math/libm-test.inc (acos_test_data): Add sNaN tests.
18491
18492 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18493
18494         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
18495         New symbol defined as libc_hidden_def.
18496         (strcasestr): Became a weak alias to __strcasestr.
18497         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
18498         according to multi-arch support.  Move __stpncpy hidden
18499         definition from here to...
18500         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
18501         symbol stpncpy.
18502         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
18503         libc_hidden_builtin_def.
18504         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
18505         memset symbol to use when multi-arch support is available.
18506
18507 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
18508
18509         * dlfcn/tst-rec-dlopen.c: Include string.h.
18510
18511 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18512
18513         * manual/install.texi: Remove mention of --without-tls
18514         * INSTALL: Regenerate.
18515
18516 2016-06-05  Florian Weimer  <fweimer@redhat.com>
18517
18518         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
18519         Remove.
18520         (call_function, interposed_malloc_called): New variables.
18521         (malloc): New function.
18522         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
18523         and clear call_function as needed.
18524
18525 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
18526
18527         * include/wchar.h (__wmemset): Use __typeof.
18528
18529 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
18530
18531         * include/wchar.h (__wmemset): Declare function without typeof.
18532
18533 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
18534
18535         [BZ #20205]
18536         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
18537         exponent when incrementing negative subnormal with low mantissa
18538         word zero.
18539         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
18540         Add another test.
18541
18542 2016-06-03  Florian Weimer  <fweimer@redhat.com>
18543
18544         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
18545         __wmemset instead of wmemset.
18546
18547 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
18548
18549         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
18550         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
18551         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
18552         __USE_KERNEL_IPV6_DEFS to 0.
18553         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
18554         Update comment.
18555
18556 2016-06-01  Florian Weimer  <fweimer@redhat.com>
18557
18558         [BZ #19861]
18559         Do not use IFUNC resolver with potentially unrelocated symbol.
18560         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
18561         (DEFINE_FORK): Remove macro and inline definition.
18562         (fork_alias): Renamed from fork_ifunc.
18563         (__fork_alias): Renamed from __fork_ifunc.
18564
18565 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
18566
18567         [BZ 19653]
18568         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
18569         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
18570
18571 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18572
18573         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
18574         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
18575         i386-linux-gnu).
18576         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
18577         Set to no.
18578         * sysdeps/mach/hurd/configure: Refresh.
18579
18580 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18581
18582         [BZ #20178]
18583         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
18584         on failure instead of exit.
18585
18586 2016-05-30  Roland McGrath  <roland@hack.frob.com>
18587
18588         [BZ #3629]
18589         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
18590         of POSIX.1-2008.
18591
18592 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18593
18594         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
18595           Use PLT entry for calling _hurd_self_sigstate.
18596
18597 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
18598
18599         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
18600         available logical processors with SMT level type sharing L2
18601         cache for Intel processors.
18602
18603 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
18604
18605         [BZ #20160]
18606         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
18607         argument to itself before returning the result.
18608         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
18609         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
18610         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
18611         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
18612         Likewise.
18613         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
18614         Likewise.
18615         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
18616         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
18617         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
18618         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
18619         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
18620         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
18621
18622         [BZ #20160]
18623         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
18624         argument to itself before returning the result.
18625         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
18626         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
18627         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
18628         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
18629         Likewise.
18630         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
18631         Likewise.
18632         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
18633         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
18634         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
18635         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
18636         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
18637         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
18638
18639 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18640
18641         * libm-test.inc: Replace usage of M_El with
18642         (lit_e): New macro.
18643
18644 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18645
18646         * libm-test.inc: Replace usage of M_PI_4l with
18647         (lit_pi_4_d): New macro.
18648
18649 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18650
18651         * libm-test.inc: Replace usage of M_PIl with
18652         (lit_pi): New macro.
18653
18654 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18655
18656         * libm-test.inc: Replace usage of M_PI2l with
18657         (lit_pi_2_d): New macro.
18658
18659         * math/test-double.h (LITM): New macro.
18660         * math/test-float.h (LITM): Likewise.
18661         * math/test-ldouble.h (LITM): Likewise.
18662
18663 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18664
18665         * libm-test.inc (M_PI_34l): Rename to
18666         (lit_pi_3_m_4_d): New Macro.
18667         (M_PI_34_LOG10El): Rename to
18668         (lit_pi_3_m_4_ln10_m_d): New Macro.
18669         (M_PI2_LOG10El): Rename to
18670         (lit_pi_2_ln10_m_d):  New Macro.
18671         (M_PI4_LOG10El): Rename to
18672         (lit_pi_4_ln10_m_d):  New Macro.
18673         (M_PI_LOG10El): Rename to
18674         (lit_pi_ln10_d):  New Macro.
18675
18676 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
18677
18678         [BZ #20157]
18679         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
18680         determine whether to negate low half if [_ARCH_PPCGR], and integer
18681         comparison otherwise.
18682         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
18683         determine whether to negate low half.
18684
18685         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
18686         (NO_TEST_INLINE_DOUBLE): Likewise.
18687         (TEST_COND_x86_64): Likewise.
18688         (TEST_COND_x86): Likewise.
18689         (M_PI_6l): Likewise.
18690
18691 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18692
18693         * math/libm-test.inc:
18694         (TEST_FLOAT): Change usage to TEST_COND_binary32.
18695         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
18696         (TEST_LDOUBLE): Update usage to evaluate as true if
18697         the guarded tests match the property being tested.
18698         (LDBL_MAX_EXP): Change to MAX_EXP.
18699         (LDBL_MIN_EXP): Change to MIN_EXP.
18700         (LDBL_MANT_DIG): Change to MANT_DIG, except for
18701         nexttoward tests.
18702
18703 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18704
18705         * math/libm-test.inc:
18706         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
18707         (TYPE_MIN): Likewise.
18708         (TYPE_TRUE_MIN): Likewise.
18709         (TYPE_MAX): Likewise.
18710         (MIN_EXP): Likewise.
18711         (MAX_EXP): Likewise.
18712         (MANT_DIG): Likewise.
18713
18714         (FSTR_MAX): New macro.
18715         (__CONCATX): Likewise.
18716         (QTYPE_STR): Likewise.
18717         (TEST_COND_binary32): Likewise.
18718         (TEST_COND_binary64): Likewise.
18719         (TEST_COND_binary128): Likewise.
18720         (TEST_COND_ibm128): Likewise.
18721         (TEST_COND_intel96): Likewise.
18722         (TEST_COND_m68k96): Likewise.
18723
18724         (TEST_COND_flt_32): Redefine as equivalent format test macro.
18725         (TEST_COND_dbl_64): Likewise.
18726         (TEST_COND_ldbl_96_intel): Likewise.
18727         (TEST_COND_ldbl_96_m68k): Likewise.
18728         (TEST_COND_ldbl_128): Likewise.
18729         (TEST_COND_ldbl_128ibm): Likewise.
18730
18731         (plus_zero): Redefine using LIT macro.
18732         (minus_zero): Likewise.
18733         (plus_infty): Redefine as (INF).
18734         (minux_infty): Redefine as (-INF).
18735         (max_value): Redefine as TYPE_MAX.
18736         (min_value): Redefine as TYPE_MIN.
18737         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
18738
18739         (print_float): Refactor to use snprintf to convert FLOAT values
18740         to string. This brings it closer to dropin replacement of strtof
18741         for the TS 18661 defined types.
18742         (update_stats): Likewise.
18743         (print_complex_function_ulps): Likewise.
18744         (print_max_error): Likewise.
18745         (print_complex_max_error): Likewise.
18746         (check_float_internal): Likewise.
18747
18748         * math/test-float.h (PREFIX): New macro.
18749         (LIT): Likewise.
18750         (TYPE_STR): Likewise.
18751         (FTOSTR): Likewise.
18752
18753         * math/test-double.h (PREFIX): New macro.
18754         (LIT): Likewise.
18755         (TYPE_STR): Likewise.
18756         (FTOSTR): Likewise.
18757
18758         * math/test-ldouble.h (PREFIX): New macro.
18759         (LIT): Likewise.
18760         (TYPE_STR): Likewise.
18761         (FTOSTR): Likewise.
18762
18763 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
18764
18765         [BZ #20156]
18766         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
18767         to itself when zero or not finite.
18768         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
18769         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
18770         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
18771         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
18772
18773 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
18774
18775         [BZ #20153]
18776         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
18777         x * x + x for infinities and NaNs.
18778
18779         [BZ #20151]
18780         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
18781         argument to itself before returning result.
18782         (__ieee754_y0l): Likewise.
18783         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
18784         (__ieee754_y1l).
18785
18786         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
18787         (atan_test_data): Likewise.
18788         (ceil_test_data): Likewise.
18789         (cos_test_data): Likewise.
18790         (cosh_test_data): Likewise.
18791         (erf_test_data): Likewise.
18792         (exp2_test_data): Likewise.
18793         (fabs_test_data): Likewise.
18794         (floor_test_data): Likewise.
18795         (ilogb_test_data): Likewise.
18796         (j0_test_data): Likewise.
18797         (j1_test_data): Likewise.
18798         (jn_test_data): Likewise.
18799         (lgamma_test_data): Likewise.
18800         (lrint_test_data): Likewise.
18801         (llrint_test_data): Likewise.
18802         (logb_test_data): Likewise.
18803         (lround_test_data): Likewise.
18804         (llround_test_data): Likewise.
18805         (nearbyint_test_data): Likewise.
18806         (rint_test_data): Likewise.
18807         (round_test_data): Likewise.
18808         (sin_test_data): Likewise.
18809         (sincos_test_data): Likewise.
18810         (sinh_test_data): Likewise.
18811         (sqrt_test_data): Likewise.
18812         (tan_test_data): Likewise.
18813         (tanh_test_data): Likewise.
18814         (tgamma_test_data): Likewise.
18815         (trunc_test_data): Likewise.
18816         (y0_test_data): Likewise.
18817         (y1_test_data): Likewise.
18818         (yn_test_data): Likewise.
18819
18820         * math/libm-test.inc: Update comment about NaN testing.
18821         (TEST_SNAN): New macro.
18822         (snan_value): Likewise.
18823         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
18824         (fpclassify_test_data): Add sNaN tests.
18825         (isfinite_test_data): Likewise.
18826         (isinf_test_data): Likewise.
18827         (isnan_test_data): Likewise.
18828         (isnormal_test_data): Likewise.
18829         (issignaling_test_data): Likewise.
18830         (signbit_test_data): Likewise.
18831         * math/gen-libm-test.pl (%beautify): Add snan_value.
18832         (show_exceptions): Add argument $test_snan.
18833         (parse_args): Handle snan_value as non-finite.  Update call to
18834         show_exceptions.
18835         * math/Makefile (libm-test-no-inline-cflags): Add
18836         -fsignaling-nans.
18837
18838 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18839
18840         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
18841         (CFLAGS-oldsendmsg.c): Add rule.
18842         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
18843         Correct recvmsg symbol name.
18844         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
18845         Likewise.
18846
18847 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18848
18849         * sysdeps/unix/sysv/linux/Makefile
18850         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
18851         oldsendmmsg.
18852         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
18853         sendmmsg.
18854         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18855         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18856         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18857         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18859         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18860         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18862         Likewise.
18863         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18864         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
18865         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
18866         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
18867         iovlen and controllen fields to adjust to POSIX specification.
18868         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
18869
18870         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
18871         and change to correct expected type.
18872         (msghdr.msg_controllen): Likewise.
18873         (cmsghdr.cmsg_len): Likewise.
18874         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
18875         expected POSIX assumption about the size.
18876         (msghdr.msg_controllen): Likewise.
18877         (msghdr.__glibc_reserved1): Likewise.
18878         (msghdr.__glibc_reserved2): Likewise.
18879         (cmsghdr.cmsg_len): Likewise.
18880         (cmsghdr.__glibc_reserved1): Likewise.
18881         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
18882         Add ptw-oldrecvmsg and ptw-oldsendmsg.
18883         (CFLAGS-sendmsg.c): Remove rule.
18884         (CFLAGS-recvmsg.c): Likewise.
18885         (CFLAGS-oldsendmsg.c): Add rule.
18886         (CFLAGS-oldrecvmsg.c): Likewise.
18887         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
18888         recvmsg and sendmsg.
18889         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
18890         Likewise.
18891         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
18892         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
18893         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
18894         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
18895         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
18896         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
18897         Likewise.
18898         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
18899         Likewise.
18900         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
18901         Likewise.
18902         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
18903         Likewise.
18904         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
18905         Likewise.
18906         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
18907         Likewise.
18908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
18909         (GLIBC_2.24): Likewise.
18910         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
18911         Likewise.
18912         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
18913         Likewise.
18914         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
18915         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
18916         Likewise.
18917         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
18918         Likewise.
18919         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
18920         Likewise.
18921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
18922         (GLIBC_2.24): Likewise.
18923         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
18924         Likewise.
18925         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
18926         Likewise.
18927         * sysdeps/unix/sysv/linux/Makefile
18928         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
18929         (CFLAGS-sendmsg.c): Add rule.
18930         (CFLAGS-recvmsg.c): Likewise.
18931         (CFLAGS-oldsendmsg.c): Likewise.
18932         (CFLAGS-oldrecvmsg.c): Likewise.
18933         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
18934         initialization.
18935         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
18936         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
18937         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
18938         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
18939         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
18940         iovlen and controllen fields to adjust to POSIX specification.
18941         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
18942         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
18943         added recvmsg and sendmsg.
18944         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18945         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18946         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18947         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18948         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18949         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18950         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18951         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18952         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
18953         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18954         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18955         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
18956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18957         Likewise.
18958         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
18959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18960         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18961         Likewise.
18962         Likewise.
18963         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18964         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18965         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18966         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18967         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18968         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
18970         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18971         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
18972         Likewise.
18973         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18974         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18975
18976         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
18977         from auto-generation.
18978         (sendmsg): Likewise.
18979         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
18980         (sendmsg): Likewise.
18981         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
18982         (sendmsg): Likewise.
18983         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
18984         (sendmsg): Likewise.
18985         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
18986         (sendmsg): Likewise.
18987         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
18988         (sendmsg): Likewise.
18989         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
18990         Likewise.
18991         (sendmsg): Likewise.
18992         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
18993         (sendmsg): Likewise.
18994         * sysdeps/unix/sysv/linux/i386/kernel-features.h
18995         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
18996         Remove.
18997         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
18998         Likewise.
18999         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19000         Undefine.
19001         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19002         Likewise.
19003         * sysdeps/unix/sysv/linux/kernel-features.h
19004         (__ASSUME_SENDMSG_SYSCALL): Define.
19005         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19006         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
19007         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19008         Remove.
19009         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19010         Likewise.
19011         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19012         Undefine.
19013         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19014         Likewise.
19015         * sysdeps/unix/sysv/linux/s390/kernel-features.h
19016         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19017         Remove.
19018         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19019         Likewise.
19020         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19021         Undefine.
19022         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19023         Likewise.
19024         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19025         (__ASSUME_SENDMSG_SYSCALL): Undefine.
19026         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19027         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19028         (__ASSUME_SENDMSG_SYSCALL): Likewise.
19029         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19030         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19031         (__ASSUME_SENDMSG_SYSCALL): Likewise.
19032         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19033
19034 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19035
19036         * stdlib/gen-tst-strtod-round.c: Add backslash to
19037         compile command in comment.
19038         (printfp): Remove the literal suffix, and define an infinite
19039         value as INF to avoid expansion clash with INFINITY.
19040         (round_str): Remove the literal suffix.
19041         (round_for_all): Likewise, remove the now duplicate ldbl-64
19042         entry, and remove some magic constants.
19043
19044         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
19045         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
19046         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
19047         (_CONCAT): New macro.
19048         (CONCAT): Likewise.
19049         (CHOOSE_ld): Likewise.
19050         (CHOOSE_f): Likewise.
19051         (CHOOSE_d): Likewise.
19052         (FTYPE_MEMBER): Likewise.
19053         (BOOL_MEMBER): Likewise.
19054         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
19055         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
19056         (_XNTRY): Likewise.
19057         (XNTRY): Likewise.
19058         (_ENTRY): Likewise.
19059         (ENTRY): Likewise.
19060         (test_exactness): Generate members via macro.
19061         (test_results): Likewise.
19062         (test): Update members.
19063         (TEST): Redefine using new macros.
19064         (INF): New macro.
19065         (fetestmodes): New structure.
19066         (do_test): Refactor to be type generic.
19067         (test_in_one_mode): Refactor duplicate code into
19068         (GEN_ONE_TEST): New macro.
19069
19070         * stdlib/tst-strtod-round-data.h: Regenerate.
19071
19072         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
19073         Extend to pass additional arbitrary parameters to
19074         generators.
19075
19076 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
19077
19078         [BZ #15479]
19079         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
19080         floating-point state after first floating-point operation on
19081         input.  Restore full floating-point state instead of just rounding
19082         mode.
19083         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
19084         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
19085         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
19086         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
19087         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
19088
19089         [BZ #15479]
19090         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
19091         floating-point state after first floating-point operation on
19092         input.  Restore full floating-point state instead of just rounding
19093         mode.
19094         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
19095         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
19096         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
19097         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
19098         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
19099
19100 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19101
19102         [BZ #19727]
19103         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
19104         valid high surrogate.
19105         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
19106         of an utf16 surrogate.
19107         * iconv/gconv_simple.c (BODY): Likewise.
19108         * iconvdata/bug-iconv12.c: New file.
19109         * iconvdata/Makefile (tests): Add bug-iconv12.
19110
19111 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19112
19113         [BZ #19726]
19114         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
19115         outptrp in case of an illegal input.
19116         * iconv/tst-iconv6.c: New file.
19117         * iconv/Makefile (tests): Add tst-iconv6.
19118
19119 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19120
19121         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
19122         an error in case of a value in range of an utf16 low surrogate.
19123
19124 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19125
19126         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
19127         an error in case of a value in range of an utf16 low surrogate.
19128
19129 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19130
19131         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
19132         Move to ...
19133         * sysdeps/s390/Makefile: ... here.
19134         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
19135         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
19136         (BRANCH_ON_COUNT): New define.
19137         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
19138         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
19139         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
19140         run on s390-32, too.
19141         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
19142         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
19143         run on s390-32, too.
19144         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
19145         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
19146         run on s390-32, too.
19147
19148 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19149
19150         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
19151         etf3eh or new vector loop-variant.
19152
19153 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19154
19155         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
19156         etf3eh or new vector loop-variant.
19157
19158 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19159
19160         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
19161         or new vector loop-variant.
19162
19163 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19164
19165         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
19166         Rename to TR_LOOP and usage of tr instead of troo instruction.
19167
19168 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19169
19170         * sysdeps/s390/multiarch/gconv_simple.c: New File.
19171         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
19172
19173 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19174
19175         * sysdeps/s390/multiarch/8bit-generic.c: New File.
19176         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
19177         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
19178         New override define.
19179         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
19180
19181 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19182
19183         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
19184         * sysdeps/s390/configure.ac: Add test for S390 vector register
19185         support in gcc.
19186         * sysdeps/s390/configure: Regenerated.
19187
19188 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
19189
19190         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
19191         Install file from $(objpfx)gconv-modules.
19192         ($(objpfx)gconv-modules): Concatenate architecture specific file
19193         in variable sysdeps-gconv-modules and gconv-modules in src dir.
19194         * sysdeps/s390/gconv-modules: New file.
19195         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
19196         Deleted.
19197         ($(objpfx)gconv-modules-s390): Deleted.
19198         (sysdeps-gconv-modules): New variable.
19199
19200 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
19201
19202         [BZ #15479]
19203         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
19204         of immediate operand to rounding instruction.
19205         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
19206         Likewise.
19207         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
19208         Likewise.
19209         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
19210         Likewise.
19211
19212 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19213
19214         * math/libm-test.inc (MIN_EXP): Directly define as
19215         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
19216
19217 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19218
19219         * math/libm-test.inc (MANT_DIG): Directly define as
19220         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
19221
19222 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19223
19224         * stdlib/gen-tst-strtod-round.c (main):
19225           Change usage to more closely match the generated
19226           output.  Add usage and compilation instructions.
19227           (string_to_fp): Add and use FILE* parameter as
19228           output target.
19229           (print_fp): Likewise.
19230           (round_str): Likewise.
19231           (round_for_all): Likewise.
19232         * stdlib/tst-strtod-round.c (tests): Move into
19233         * stdlib/tst-strtod-round-data.h: New file.
19234
19235 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
19236
19237         [BZ #15479]
19238         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
19239         (__round): Do not force "inexact" exception.
19240         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
19241         variable.
19242         (__round): Do not force "inexact" exception.
19243         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
19244         (__roundf): Do not force "inexact" exception.
19245         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
19246         (__roundl): Do not force "inexact" exception.
19247         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
19248         (__roundl): Do not force "inexact" exception.
19249         * math/libm-test.inc (round_test_data): Do not allow spurious
19250         "inexact" exceptions.
19251
19252         [BZ #15479]
19253         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
19254         exception in comment.
19255         (huge): Remove variable.
19256         (__floor): Do not force "inexact" exception.
19257         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
19258         "inexact" exception in comment.
19259         (huge): Remove variable.
19260         (__floor): Do not force "inexact" exception.
19261         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
19262         exception in comment.
19263         (huge): Remove variable.
19264         (__floorf): Do not force "inexact" exception.
19265         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
19266         exception in comment.
19267         (huge): Remove variable.
19268         (__floorl): Do not force "inexact" exception.
19269
19270         [BZ #15479]
19271         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
19272         exception in comment.
19273         (huge): Remove variable.
19274         (__ceil): Do not force "inexact" exception.
19275         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
19276         "inexact" exception in comment.
19277         (huge): Remove variable.
19278         (__ceil): Do not force "inexact" exception.
19279         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
19280         (__ceilf): Do not force "inexact" exception.
19281         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
19282         exception in comment.
19283         (huge): Remove variable.
19284         (__ceill): Do not force "inexact" exception.
19285
19286 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19287
19288         * config.h.in (BIND_NOW): New.
19289         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
19290         * configure: Regenerated.
19291         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
19292         indirect branch via the GOT slot.
19293
19294 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19295
19296         [BZ #19765]
19297         * sysdeps/s390/mempcpy.S: New File.
19298         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
19299         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
19300         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19301         Add mempcpy variants.
19302         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
19303         (memcpy): Adjust to be usable from mempcpy entry point.
19304         (__memcpy_mvcle): Likewise.
19305         * sysdeps/s390/s390-64/memcpy.S: Likewise.
19306         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
19307         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
19308         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
19309         (__memcpy_z10): Likewise.
19310         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
19311
19312 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19313
19314         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
19315         Remove __GI_ symbol.
19316         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
19317         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
19318         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
19319         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
19320         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
19321         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
19322
19323 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19324
19325         * sysdeps/s390/s390-64/memcpy.S (memcpy):
19326         Use cghi instead of chi to compare 64bit value.
19327
19328 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19329
19330         * sysdeps/s390/s390-32/memcpy.S (memcpy):
19331         Jump to 1MB check before executing mvc-loop.
19332
19333 2016-05-24  Florian Weimer  <fweimer@redhat.com>
19334
19335         [BZ #6527]
19336         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
19337         unconditionally.
19338         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
19339
19340 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19341
19342         * stdlib/tst-strtod6.c (do_test): Use new type generic
19343         invocation of the test function.
19344         (test): Refactor into ...
19345         (TEST_STRTOD): New macro base function.
19346
19347 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19348
19349         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
19350         (TEST_STRTOD): New macro.
19351         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
19352
19353 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19354
19355         * stdlib/tst-strtod6.c (do_test): Use new type generic
19356         invocation of the test function.
19357         (test): Refactor into ...
19358         (TEST_STRTOD): New macro base function.
19359
19360 2016-05-23  Florian Weimer  <fweimer@redhat.com>
19361
19362         CVE-2016-4429
19363         [BZ #20112]
19364         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
19365         payload.
19366
19367 2016-05-23  Florian Weimer  <fweimer@redhat.com>
19368
19369         [BZ #20111]
19370         * bits/sockaddr.h (_SS_SIZE): Define.
19371         * bits/socket.h (_SS_SIZE): Remove.
19372         (_SS_PADSIZE): Adjust to account for all padding.
19373         (struct sockaddr_storage): Update comment.  Avoid implicit
19374         padding.
19375         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
19376         (_SS_PADSIZE): Adjust to account for all padding.
19377         (struct sockaddr_storage): Update comment.  Avoid implicit
19378         padding.
19379         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
19380         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
19381         (_SS_PADSIZE): Adjust to account for all padding.
19382         (struct sockaddr_storage): Update comment.  Avoid implicit
19383         padding.
19384         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
19385         __SS_SIZE is 126 in this version.
19386         * inet/tst-sockaddr.c: New file.
19387         * inet/Makefile (tests): Add tst-sockaddr.c
19388         (tst-sockaddr.c): Compile with non-strict aliasing.
19389
19390 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
19391
19392         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
19393         [XPG3 || XPG4].
19394         (NL_ARGMAX): Also expect for [XPG3].
19395         (NL_LANGMAX): Likewise.
19396         (NL_MSGMAX): Likewise.
19397         (NL_NMAX): Likewise.
19398         (NL_SETMAX): Likewise.
19399         (NL_TEXTMAX): Likewise.
19400         (NZERO): Likewise.
19401         (TMP_MAX): Likewise.
19402         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
19403         variable.
19404
19405         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
19406         (PF_MAX): Update value.
19407         (AF_KCM): New macro.
19408         (SOL_NETBEUI): Likewise.
19409         (SOL_LLC): Likewise.
19410         (SOL_DCCP): Likewise.
19411         (SOL_NETLINK): Likewise.
19412         (SOL_TIPC): Likewise.
19413         (SOL_RXRPC): Likewise.
19414         (SOL_PPPOL2TP): Likewise.
19415         (SOL_BLUETOOTH): Likewise.
19416         (SOL_PNPIPE): Likewise.
19417         (SOL_RDS): Likewise.
19418         (SOL_IUCV): Likewise.
19419         (SOL_CAIF): Likewise.
19420         (SOL_ALG): Likewise.
19421         (SOL_NFC): Likewise.
19422         (SOL_KCM): Likewise.
19423         (MSG_BATCH): New enum value and macro.
19424
19425 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
19426
19427         [BZ #18185]
19428         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
19429         sharing L2 cache to 2 for Knights Landing.
19430
19431 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
19432
19433         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
19434         (FTW_DP): Do not expect for [XPG3 || XPG4].
19435         (FTW_SL): Do not expect for [XPG3].
19436         (FTW_SLN): Likewise.
19437         (FTW_PHYS): Likewise.
19438         (FTW_MOUNT): Likewise.
19439         (FTW_DEPTH): Likewise.
19440         (FTW_CHDIR): Likewise.
19441         (nftw): Likewise.
19442         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
19443         variable.
19444
19445 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
19446
19447         * manual/errno.texi: Fix various typos & grammar errors.
19448
19449 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
19450
19451         * manual/intro.texi: Fix duplicated typo.
19452
19453 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
19454
19455         [BZ #13304]
19456         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
19457         <float.h>, <math_private.h> and <stdlib.h>.
19458         (add_split): New function.
19459         (mul_split): Likewise.
19460         (ext_val): New typedef.
19461         (store_ext_val): New function.
19462         (mul_ext_val): New function.
19463         (compare): New function.
19464         (add_split_ext): New function.
19465         (__fmal): After checking for Inf, NaN and zero, compute result as
19466         an exact sum of scaled double values in round-to-nearest before
19467         adding those up and adjusting for other rounding modes.
19468         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
19469         tests of fma.
19470         * math/auto-libm-test-out: Regenerated.
19471
19472 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19473
19474         [BZ #20119]
19475         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
19476         processor level type mask for CPUID with EAX == 11.
19477
19478 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19479
19480         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
19481         logical threads if the HTT bit is 0.
19482         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
19483         (index_cpu_HTT): Likewise.
19484         (reg_HTT): Likewise.
19485
19486 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19487
19488         [BZ #20115]
19489         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
19490         Remove alignments on jump targets.
19491
19492 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
19493
19494         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
19495         (getpwent): Likewise.
19496         (setpwent): Likewise.
19497         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
19498         variable.
19499
19500         * conform/data/search.h-data (insque): Do not expect for [XPG3].
19501         (remque): Likewise.
19502         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
19503         variable.
19504
19505 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
19506
19507         * math/libm-test.inc: Update comment not to refer to signs of NaNs
19508         not being tested.
19509
19510 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19511
19512         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
19513         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
19514         call.
19515         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
19516         (__condvar_cleanup1): Likewise.
19517
19518 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19519
19520         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
19521         New
19522         (__pthread_unwind): Renamed to ...
19523         (PTHREAD_UNWIND): This.
19524         (__pthread_enable_asynccancel): Replace
19525         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
19526
19527 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
19528
19529         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
19530         (CLONE_NEWCGROUP): New macro.
19531
19532         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
19533         (Q_GETNEXTQUOTA): New macro.
19534
19535 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19536
19537         [BZ #19907]
19538         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
19539         buffer updated by the previous run.
19540         * string/test-memcpy.c (do_one_test): Likewise.
19541         * benchtests/bench-memmove.c (do_one_test): Add a comment.
19542         * string/test-memmove.c (do_one_test): Likewise.
19543
19544 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
19545
19546         [BZ #20094]
19547         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
19548         not [__USE_XOPEN].
19549         (unlockpt): Likewise.
19550         (ptsname): Likewise.
19551         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
19552         variable.
19553
19554         [BZ #20076]
19555         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
19556         instead of [__USE_UNIX98].
19557         (S_ISSOCK): Likewise.
19558         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
19559         variable.
19560
19561         [BZ #20074]
19562         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
19563         [__USE_POSIX].
19564         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
19565         variable.
19566
19567         [BZ #20051]
19568         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
19569         (ttyslot): Do not declare.
19570         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
19571         (ttyslot): New prototype.
19572         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
19573         variable.
19574         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
19575
19576 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
19577
19578         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
19579
19580 2016-05-13  Florian Weimer  <fweimer@redhat.com>
19581
19582         Fix race condition in tst-mallocfork2, use fewer resources.
19583         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
19584         to current process group.
19585         (signal_sender): Yield in the non-sleeping case.
19586
19587 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
19588
19589         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
19590         (ecvt): Likewise.
19591         (fcvt): Likewise.
19592         (gcvt): Likewise.
19593         (getsubopt): Likewise.
19594         (grantpt): Likewise.
19595         (initstate): Likewise.
19596         (l64a): Likewise.
19597         (mktemp): Likewise.
19598         (mkstemp): Likewise.
19599         (ptsname): Likewise.
19600         (random): Likewise.
19601         (realpath): Likewise.
19602         (setstate): Likewise.
19603         (srandom): Likewise.
19604         (ttyslot): Likewise.
19605         (unlockpt): Likewise.
19606         (valloc): Likewise.
19607
19608         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
19609         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
19610         variable.
19611
19612 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
19613
19614         [BZ #20072]
19615         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
19616         init_cpu_features only if SHARED is defined.
19617         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
19618
19619 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
19620
19621         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
19622         non-inclusive caches on Intel processors.
19623
19624 2016-05-13  Florian Weimer  <fweimer@redhat.com>
19625
19626         * malloc/malloc.c (dumped_main_arena_start)
19627         (dumped_main_arena_end): New variables.
19628         (DUMPED_MAIN_ARENA_CHUNK): New macro.
19629         (do_check_chunk): Skip dumped fake mmapped chunks.
19630         (munmap_chunk): Likewise.
19631         (__libc_free): Do not adjust statistics for fake mmapped chunks.
19632         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
19633         mmapped chunks.
19634         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
19635         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
19636         and dumped_main_arena_end to cover the dumped heap.
19637
19638 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
19639
19640         * conform/data/time.h-data (getdate_err): Do not expect for
19641         [XPG3].
19642         (getdate): Likewise.
19643         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
19644         variable.
19645
19646         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
19647         (F_ULOCK): Likewise.
19648         (F_TEST): Likewise.
19649         (F_TLOCK): Likewise.
19650         (useconds_t): Likewise.
19651         (intptr_t): Do not expect for [XPG3] or [XPG4].
19652         (brk): Do not expect for [XPG3]
19653         (fchown): Likewise.
19654         (fchdir): Likewise.
19655         (ftruncate): Likewise.
19656         (getdtablesize): Likewise.
19657         (gethostid): Likewise.
19658         (getpagesize): Likewise.
19659         (getpgid): Likewise.
19660         (getsid): Likewise.
19661         (getwd): Likewise.
19662         (lchown): Likewise.
19663         (lockf): Likewise.
19664         (readlink): Likewise.
19665         (sbrk): Likewise.
19666         (setpgrp): Likewise.
19667         (setregid): Likewise.
19668         (setreuid): Likewise.
19669         (symlink): Likewise.
19670         (sync): Likewise.
19671         (truncate): Likewise.
19672         (ualarm): Likewise.
19673         (usleep): Likewise.
19674         (vfork): Likewise.
19675         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
19676         variable.
19677
19678         [BZ #20054]
19679         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
19680         not [__USE_UNIX98].
19681         * conform/data/unistd.h-data (gethostname): Do not expect for
19682         [XPG3].
19683
19684         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
19685         [!POSIX] (S_IFBLK): Likewise.
19686         [!POSIX] (S_IFCHR): Likewise.
19687         [!POSIX] (S_IFIFO): Likewise.
19688         [!POSIX] (S_IFREG): Likewise.
19689         [!POSIX] (S_IFDIR): Likewise.
19690         [!POSIX] (S_IFLNK): Likewise.
19691         [!POSIX] (S_IFSOCK): Likewise.
19692         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
19693         variable.
19694         (test-xfail-XPG4/fcntl.h/conform): Likewise.
19695
19696 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
19697
19698         * sysdeps/aarch64/memset.S (__memset):
19699         Rewrite of optimized memset.
19700
19701 2016-05-12  Florian Weimer  <fweimer@redhat.com>
19702
19703         [BZ #19703]
19704         Partially async-signal-safe fork for single-threaded processes.
19705         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
19706         variable.  Do not acquire and reset/release malloc and libio locks
19707         in single-threaded processes.
19708         * malloc/tst-mallocfork2.c: New file.
19709         * malloc/Makefile (tests): Add it.
19710
19711 2016-05-12  Florian Weimer  <fweimer@redhat.com>
19712
19713         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
19714         argument.  Use scratch buffer instead of extend_alloca.
19715         (gethosts): Use scratch buffer instead of extend_alloca.
19716         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
19717         extend_alloca.
19718         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
19719
19720 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
19721
19722         [BZ #20055]
19723         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
19724         instead of [__USE_UNIX98].
19725         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
19726         [__USE_UNIX98].
19727         * conform/data/termios.h-data (tcgetsid): Do not expect for
19728         [XPG3].
19729         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
19730         variable.
19731         (test-xfail-XPG4/termios.h/conform): Likewise.
19732
19733 2016-05-11  Florian Weimer  <fweimer@redhat.com>
19734
19735         Do not use mcheck in localedef.
19736         * locale/programs/localedef.c (turn_on_mcheck)
19737         (__malloc_initialize_hook): Remove.
19738
19739 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
19740
19741         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
19742         * sysdeps/s390/s390-64/Makefile: Likewise.
19743
19744 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19745
19746         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
19747         Remove ifunc-defines.sym.
19748         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
19749         Likewise.
19750         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
19751         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
19752         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
19753         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
19754         rtld-global-offsets.sym.
19755         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
19756         * sysdeps/x86/cpu-features-offsets.sym: This.
19757         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
19758         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
19759
19760 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
19761
19762         [BZ #20073]
19763         * io/sys/stat.h (fchmod): Declare for
19764         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
19765         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
19766         variable.
19767
19768         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
19769         [XPG3] (S_IFSOCK): Likewise.
19770         [XPG3] (S_ISVTX): Likewise.
19771         [XPG3] (S_ISLNK): Likewise.
19772         [XPG3] (S_ISSOCK): Likewise.
19773         [XPG3] (fchmod): Likewise.
19774         [XPG3] (lstat): Likewise.
19775         [XPG3] (mknod): Likewise.
19776
19777         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
19778         [XPG3].  Expect type long and XFAIL for [XPG4].
19779         (st_blocks): Likewise.
19780
19781         [BZ #20044]
19782         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
19783         (pthread_atfork): New prototype.
19784         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
19785         variable.
19786
19787         [BZ #20043]
19788         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
19789         prototype.
19790
19791 2016-05-10  Florian Weimer  <fweimer@redhat.com>
19792
19793         [BZ #20017]
19794         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
19795         gmtime.
19796
19797 2016-05-10  Florian Weimer  <fweimer@redhat.com>
19798
19799         [BZ #19994]
19800         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
19801         flag in _res.options.
19802
19803 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
19804
19805         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
19806         [XPG3 || XPG4].
19807         (blksize_t): Likewise.
19808         (clockid_t): Likewise.
19809         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
19810         variable.
19811         (test-xfail-XPG4/sys/types.h/conform): Likewise.
19812
19813 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
19814
19815         * sysdeps/unix/sysv/linux/s390/init-first.c:
19816         Add VDSO_SYMBOL(getcpu).
19817         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
19818         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
19819         Add VDSO_SYMBOL(getcpu).
19820         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
19821         New define HAVE_GETCPU_VSYSCALL.
19822         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
19823
19824 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
19825
19826         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
19827         instead of <sysdeps/x86_64/cacheinfo.c>.
19828         * sysdeps/x86_64/cacheinfo.c: Moved to ...
19829         * sysdeps/x86/cacheinfo.c: Here.
19830
19831 2016-05-04  Florian Weimer  <fweimer@redhat.com>
19832
19833         * malloc/malloc-internal.h: Adjust header file guard.
19834
19835 2016-05-04  Florian Weimer  <fweimer@redhat.com>
19836
19837         [BZ #19787]
19838         * inet/getnameinfo.c (check_sprintf_result): New function.
19839         (CHECKED_SNPRINTF): New macro.
19840         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
19841         to the host buffer.
19842         (gni_host_local): Use checked_copy to copy the host name.
19843         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
19844         (gni_serv_local): Use checked_copy to copy the service name.
19845         (getnameinfo): Remove unnecessary truncation of result buffers.
19846
19847 2016-05-04  Florian Weimer  <fweimer@redhat.com>
19848
19849         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
19850         in case of inet_ntop failure.
19851
19852 2016-05-04  Florian Weimer  <fweimer@redhat.com>
19853
19854         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
19855         avoid long lines.
19856         (gni_host_inet_numeric): Likewise.  Reduce scope of local
19857         variables.
19858         (gni_host_inet, gni_host_local): Add comment.
19859         (gni_host): Add comment.  Use temporary to avoid long lines.
19860
19861 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19862
19863         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
19864         registers specifiers where general purpose registers specifiers should
19865         have been used.
19866
19867 2016-05-04  Florian Weimer  <fweimer@redhat.com>
19868
19869         [BZ #19779]
19870         CVE-2016-1234
19871         Avoid copying names of directory entries.
19872         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
19873         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
19874         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
19875         (struct readdir_result): New type.
19876         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
19877         (GL_READDIR): New macros.
19878         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
19879         (convert_dirent, convert_dirent64): New functions.
19880         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
19881         convert_dirent64.  Adjust references to the readdir result.
19882         * sysdeps/unix/sysv/linux/i386/glob64.c:
19883         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
19884         * posix/bug-glob2.c (LONG_NAME): Define.
19885         (filesystem): Add LONG_NAME.
19886         (my_DIR): Increase the size of room_for_dirent.
19887
19888 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
19889
19890         [BZ #20041]
19891         * misc/sys/select.h (__need_timespec): Only define if
19892         [__USE_XOPEN2K].
19893         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
19894         variable.
19895         (test-xfail-XPG4/utmpx.h/conform): Likewise.
19896         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
19897         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
19898
19899 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19900             Segher Boessenkool  <segher@gcc.gnu.org>
19901
19902         [BZ #20004]
19903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
19904         (__novec_swapcontext): Add missing load.
19905
19906 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
19907
19908         [BZ #20023]
19909         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
19910         <time.h>.
19911         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
19912         variable.
19913         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
19914
19915 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19916
19917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
19918         flags CLONE_VM compare.
19919
19920 2016-05-02  Florian Weimer  <fweimer@redhat.com>
19921
19922         [BZ #20031]
19923         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
19924         completely empty.
19925
19926 2016-05-02  Florian Weimer  <fweimer@redhat.com>
19927
19928         [BZ #19573]
19929         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
19930         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
19931         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
19932         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
19933         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
19934         (hesiod_free_list): Mark as hidden.
19935         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
19936         res_set, res_get.
19937         * hesiod/hesiod.c: Remove unnecessary forward declarations.
19938         (init, __hesiod_res_get, __hesiod_res_set): Remove.
19939         (hesiod_init): Remove obsolete res_ninit call.
19940         (hesiod_end): Do not free resolver state.  Do not invoke callback.
19941         (hesiod_bind): Do not call init.
19942         (get_txt_records): Use res_mkquery, res_send instead of
19943         res_nmkquery, res_nsend.
19944         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
19945         instead of _nss_hesiod_init.
19946         (_nss_hesiod_initgroups_dyn): Likewise.
19947         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
19948         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
19949         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
19950
19951 2016-05-02  Florian Weimer  <fweimer@redhat.com>
19952
19953         * hesiod/hesiod_p.h (DEF_RHS): Remove.
19954         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
19955
19956 2016-05-02  Florian Weimer  <fweimer@redhat.com>
19957
19958         * hesiod/hesiod.h: Remove RCS keyword.
19959         * hesiod/hesiod_p.h: Likewise.
19960
19961         * hesiod/hesiod.c: Likewise.
19962
19963 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
19964
19965         [BZ #12450]
19966         * locale/iso-639.def: Add Samogitian/sgs.
19967
19968 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
19969
19970         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
19971
19972         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
19973
19974 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
19975             Carlos O'Donell  <carlos@redhat.com>
19976
19977         [BZ #19072]
19978         * grp/Makefile (headers): Add grp-merge.h
19979         (routines): Add grp-merge.
19980         * grp/getgrgid_r.c: Include grp-merge.h.
19981         (DEEPCOPY_FN): Define.
19982         (MERGE_FN): Define.
19983         * grp/getgrname_r.c: Include grp-merge.h.
19984         (DEEPCOPY_FN): Define.
19985         (MERGE_FN): Define.
19986         * grp/grp-merge.c: New file.
19987         * grp/grp-merge.h: New file.
19988         * include/grp-merge.h: New file.
19989         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
19990         __copy_grp@GLIBC_PRIVATE.
19991         * manual/nss.texi (Actions in the NSS configuration): Describe
19992         return, continue, and merge.
19993         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
19994         (DEEPCOPY_FN): Define.
19995         (MERGE_FN): Define.
19996         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
19997         (DEEPCOPY_FN): Define.
19998         (MERGE_FN): Define.
19999         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
20000         [!MERGE_FN]: Define __merge_einval.
20001         (CHECK_MERGE): Define.
20002         (REENTRANT_NAME): Process merge if do_merge is true.
20003         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
20004         (__nss_getent_r): Likewise.
20005         * nss/nsswitch.c (nss_parse_service_list): Likewise.
20006         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
20007
20008 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20009
20010         [BZ #20012]
20011         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
20012         length to calculate the buffer to read.
20013         (fmemopen_write): Set the buffer position based on bytes written.
20014         (fmemopen_seek): Return EINVAL for invalid whence modes.
20015
20016         [BZ #19957]
20017         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
20018         tst-getpid2.
20019         (test): Add tst-clone2.
20020         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
20021         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
20022         pid/tid fields for CLONE_VM.
20023         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
20024         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
20025         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
20026         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
20027         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
20028         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
20029         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
20030         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
20031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
20032         Likewise.
20033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20034         Likewise.
20035         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
20036         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
20037         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
20038         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
20039         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
20040         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
20041         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
20042         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
20043
20044 2016-04-29  Florian Weimer  <fweimer@redhat.com>
20045
20046         [BZ #19642]
20047         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
20048         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
20049         (gni_serv_local, gni_serv): New functions extracted from
20050         getnameinfo.
20051         (getnameinfo): Call gni_host and gni_serv to perform the
20052         processing.  Always free scratch buffer.
20053
20054 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
20055
20056         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
20057         remaining bytes in the dest string, with zeros.
20058
20059 2016-04-29  Florian Weimer  <fweimer@redhat.com>
20060
20061         [BZ #20010]
20062         CVE-2016-3706
20063         * sysdeps/posix/getaddrinfo.c
20064         (convert_hostent_to_gaih_addrtuple): New function.
20065         (gethosts): Call convert_hostent_to_gaih_addrtuple.
20066         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
20067         AF_INET data.
20068
20069 2016-04-29  Florian Weimer  <fweimer@redhat.com>
20070
20071         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
20072         callback function gl_readdir.
20073         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
20074         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
20075         (glob_in_dir): Remove len.  Use strdup instead of malloc and
20076         memcpy to copy the name.
20077         * manual/pattern.texi (Calling Glob): Document requirements for
20078         implementations of the gl_readdir callback function.
20079         * manual/examples/mkdirent.c: New example.
20080         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
20081         per the manual guidance.
20082         * posix/tst-gnuglob.c (my_readdir): Likewise.
20083
20084 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
20085
20086         [BZ #20014]
20087         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
20088         not [__USE_POSIX].
20089         (getchar_unlocked): Likewise.
20090         (putc_unlocked): Likewise.
20091         (putchar_unlocked): Likewise.
20092         (flockfile): Likewise.
20093         (ftrylockfile): Likewise.
20094         (funlockfile): Likewise.
20095         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
20096         variable.
20097         (test-xfail-XPG4/stdio.h/conform): Likewise.
20098
20099         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
20100         Expect constant.
20101         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
20102         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
20103         variable.
20104         (test-xfail-XPG4/langinfo.h/conform): Likewise.
20105         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
20106
20107         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
20108         [__USE_LARGEFILE64] (off64_t): Likewise.
20109         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
20110         variable.
20111
20112 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20113
20114         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
20115
20116 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20117
20118         * resolv/inet_addr.c: Reindent preprocessor conditionals.
20119         * resolv/res_init.c: Likewise.
20120         * resolv/res_mkquery.c: Likewise.
20121
20122 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20123
20124         * resolv/res_init.c (isascii): Do not define.  Use definition in
20125         <ctype.h>.
20126         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
20127         (LOG_AUTH): Remove.
20128         (SPRINTF): Remove, adjust caller.
20129         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
20130
20131 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20132
20133         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
20134         SUNSECURITY conditional.
20135         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
20136
20137 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20138
20139         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
20140         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
20141         Remove BSD-related preprocessor conditionals.
20142         * conf/portability.h: Remove.
20143
20144 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20145
20146         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
20147         * resolv/res_data.c: Likewise.
20148
20149 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20150
20151         * resolv/res_comp.c: Remove code conditional on __ultrix__.
20152         * resolv/res_data.c: Remove code conditional on ultrix.
20153
20154 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20155
20156         * resolv/res_init.c (RFC1535): Do not define.  Remove
20157         RFC1535 preprocessor conditionals.
20158         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
20159         because there configuration options which make the resolver
20160         behavior different.
20161
20162 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20163
20164         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
20165         RESOLVSORT preprocessor conditionals.
20166         * resolv/nss_dns/dns-host.c: Likewise.
20167         * resolv/res_init.c: Likewise.
20168
20169 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20170
20171         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
20172         is never defined.
20173
20174 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20175
20176         * inet/inet_lnaof.c: Remove SCSS keyword.
20177         * inet/inet_mkadr.c: Likewise.
20178         * inet/inet_net.c: Likewise.
20179         * inet/inet_netof.c: Likewise.
20180         * inet/rcmd.c: Likewise.
20181         * inet/rexec.c: Likewise.
20182         * inet/ruserpass.c: Likewise.
20183
20184 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20185
20186         * resolv/inet_addr.c: Remove _LIBC conditionals.
20187         * resolv/res_data.c: Likewise.
20188         * resolv/res_init.c: Likewise.
20189         * resolv/res_mkquery.c: Likewise.
20190         * resolv/res_libc.c: Update comment.
20191         * resolv/README: Update.
20192
20193 2016-04-28  Florian Weimer  <fweimer@redhat.com>
20194
20195         * resolv/gethnamaddr.c: Remove SCSS keyword.
20196         * resolv/herror.c: Likewise.
20197         * resolv/inet_addr.c: Likewise.
20198         * resolv/inet_net_ntop.c: Likewise.
20199         * resolv/inet_net_pton.c: Likewise.
20200         * resolv/inet_neta.c: Likewise.
20201         * resolv/inet_ntop.c: Likewise.
20202         * resolv/inet_pton.c: Likewise.
20203         * resolv/ns_date.c: Remove RCS keyword.
20204         * resolv/ns_name.c: Likewise.
20205         * resolv/ns_netint.c: Likewise.
20206         * resolv/ns_parse.c: Likewise.
20207         * resolv/ns_print.c: Likewise.
20208         * resolv/ns_samedomain.c: Likewise.
20209         * resolv/ns_ttl.c: Likewise.
20210         * resolv/nsap_addr.c: Likewise.
20211         * resolv/res_comp.c: Remove SCSS and RCS keyword.
20212         * resolv/res_data.c: Remove RCS keyword.
20213         * resolv/res_debug.c: Remove SCSS and RCS keyword.
20214         * resolv/res_init.c: Likewise.
20215         * resolv/res_mkquery.c: Likewise.
20216         * resolv/res_query.c: Likewise.
20217         * resolv/res_send.c: Likewise.
20218
20219 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
20220
20221         * conform/data/stdio.h-data (fdopen): Expect also for
20222         [XPG3 || XPG4].
20223
20224         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
20225         (fseeko): Likewise.
20226         (ftello): Likewise.
20227         (ftrylockfile): Likewise.
20228         (funlockfile): Likewise.
20229         (getc_unlocked): Likewise.
20230         (getchar_unlocked): Likewise.
20231         (putc_unlocked): Likewise.
20232         (putchar_unlocked): Likewise.
20233
20234 2016-04-27  Florian Weimer  <fweimer@redhat.com>
20235
20236         [BZ #19868]
20237         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
20238         DNS packet syntax checks (which were not needed before).  Skip
20239         over non-PTR records.
20240
20241 2016-04-27  Florian Weimer  <fweimer@redhat.com>
20242
20243         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
20244         definition.  Include <stddef.h> instead.
20245
20246 2016-04-27  Florian Weimer  <fweimer@redhat.com>
20247
20248         [BZ #19831]
20249         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
20250         function.
20251         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
20252         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
20253
20254 2016-04-27  Florian Weimer  <fweimer@redhat.com>
20255
20256         [BZ #19862]
20257         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
20258         (getanswer_r): Do not call syslog.
20259         (gaih_getanswer_slice): Likewise.
20260         * resolv/gethnamaddr.c (AskedForGot): Remove.
20261         (getanswer): Do not call syslog.
20262         (gethostbyaddr): Likewise.
20263
20264 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
20265
20266         * conform/data/signal.h-data (union sigval): Expect also if
20267         [XOPEN2K].
20268         (struct sigevent): Likewise.
20269         (SIGEV_NONE): Likewise.
20270         (SIGEV_SIGNAL): Likewise.
20271         (SIGEV_THREAD): Likewise.
20272         (SIGRTMIN): Likewise.
20273         (SIGRTMAX): Likewise.
20274         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
20275         variable.
20276         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
20277
20278 2016-04-27  Florian Weimer  <fweimer@redhat.com>
20279
20280         [BZ #19830]
20281         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
20282         (gaih_getanswer_slice): Likewise.
20283         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
20284         Also check for availability of RR metadata.
20285
20286 2016-04-27  Florian Weimer  <fweimer@redhat.com>
20287
20288         [BZ #19825]
20289         * resolv/res_send.c (send_vc): Remove early *resplen2
20290         initialization.  Set *resplen2 on socket error.  Call
20291         close_and_return_error for other errors.
20292
20293 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
20294
20295         * sysdeps/unix/sysv/linux/netiucv/iucv.h
20296         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
20297         (SCM_IUCV_TRGCLS): New define.
20298
20299 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20300
20301         [BZ #20005]
20302         * libio/fmemopen.c (fmemopen_write): Update internal position after
20303         write.
20304         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
20305         * stdio-common/tst-fmemopen4.c: New file..
20306
20307 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
20308
20309         [BZ #19996]
20310         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
20311         not [__USE_XOPEN2K].
20312         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
20313         variable.
20314
20315         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
20316         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
20317         variable.
20318
20319         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
20320         [__USE_XOPEN2K8].
20321         [__USE_LARGEFILE64] (off64_t): Likewise.
20322         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
20323         variable.
20324
20325 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
20326
20327         [BZ #19989]
20328         * libio/stdio.h (cuserid): Do not declare if
20329         [__USE_XOPEN2K && !__USE_GNU].
20330         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
20331         variable.
20332
20333 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20334
20335         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
20336         (sysdep_routines): Add P8 and PPC64 strcspn targets.
20337         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
20338         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
20339         ifunc'ed strcspn.
20340         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
20341         [EALIGN]: Removed.
20342         [END]: Likewise
20343         [STRSPN]: Define instead of the above to control symbol name.
20344         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
20345         New file.
20346         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
20347         Likewise.
20348         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
20349         Likewise.
20350         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
20351         Likewise.
20352         * sysdeps/powerpc/powerpc64/power8/strspn.S:
20353         [INITIAL_MASK]: New macro.
20354         [STRCSPN]: Likewise.
20355         [UPDATE_MASK]: Likewise.
20356         [USE_AS_STRCSPN]: Likewise.
20357
20358 2016-04-25  Florian Weimer  <fweimer@redhat.com>
20359
20360         [BZ #19931]
20361         * stdio-common/tst-vfprintf-width-prec.c: New file.
20362         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
20363         (tests-special): Add tst-vfprintf-width-prec-mem.out.
20364         (generated): Add mtrace-related files.
20365         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
20366         (tst-%-mem.out): New pattern rule, replaces
20367         tst-printf-bz18872-mem.out.
20368         * stdio-common/vfprintf.c (vfprintf): When handling a precision
20369         specifier, deallocate any previously allocated work buffer.
20370
20371 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
20372
20373         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
20374         Add nop before __startcontext, add explaining comments.
20375
20376 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
20377
20378         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
20379         any more. Notably since IPV6_PKTINFO has been reintroduced with a
20380         completely different API.
20381
20382         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
20383         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
20384         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
20385         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
20386         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
20387         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
20388         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
20389         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
20390         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
20391         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
20392
20393 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
20394
20395         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
20396
20397 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
20398
20399         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
20400         when it is the default of 0.
20401
20402 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20403
20404         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
20405         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
20406         (sysdep_routines): Add new strcasestr targets.
20407         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
20408         (__libc_ifunc_impl_list): Likewise.
20409         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
20410         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
20411         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
20412         * sysdeps/powerpc/powerpc64/power8/Makefile:
20413         New file to add strcasestr-ppc64 to sysdep_routines.
20414         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
20415         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
20416
20417 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
20418
20419         * benchtests/Makefile (wcsmbs-benchset): Include only for
20420         native builds and runs.
20421         (LOCALES): Likewise.
20422         (bench-build): Build timing-type here instead of the bench
20423         target.  Generate locale only for native builds.
20424         * benchtests/README: Add note for cross-building.
20425
20426         * benchtests/Makefile (bench-clean): Clean up extra-objs.
20427
20428         * benchtests/README: Update README to include instructions on
20429         using bench-build.
20430
20431         * Makefile.in (bench-build): New target.
20432         * Rules (PHONY): Add bench-build target.
20433         * benchtests/Makefile (bench): Depend on bench-build.
20434         (bench-build): New target.
20435
20436 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20437
20438         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
20439         profil_reply_port.
20440         (profile_waiter): Do not initialize profil_reply_port.
20441         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
20442         frequency instead of tick length in us.
20443
20444 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
20445
20446         [BZ #18712]
20447         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
20448         (__old_mempcpy_small): Likewise.
20449         (__old_strcpy_small): Likewise.
20450         (__old_stpcpy_small): Likewise.
20451         (__old_strpbrk_c2): Fix compat symbol name.
20452         (__old_strpbrk_c3): Likewise.
20453         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
20454         (__mempcpy_small): Remove.
20455         (__strcpy_small): Remove.
20456         (__stpcpy_small): Remove.
20457
20458 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
20459
20460         [BZ #19400]
20461         * locale/iso-639.def: Add the Talossan/tzl language.
20462
20463 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
20464
20465         [BZ #16983]
20466         * locale/programs/ld-address.c (address_finish): Update postal_fmt
20467         comment.  Add "ln" to strchr check on postal_fmt.
20468
20469 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
20470
20471         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
20472         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
20473         tel_dom_fmt.
20474
20475 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20476
20477         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
20478         (sysdep_routines): Added __strlen_power8.
20479         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
20480         __strlen_power8 entry.
20481         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
20482         Implementation for POWER8.
20483         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
20484         for __strlen_power8.
20485         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
20486         Implementation for POWER8.
20487
20488 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
20489
20490         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
20491
20492 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
20493
20494         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
20495         Goldmont and Airmont processors.
20496
20497 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
20498
20499         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
20500         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
20501         (__STRING2_SMALL_GET32): Remove.
20502         (memset): Remove.
20503         (__memset_1): Remove.
20504         (__memset_gc): Remove.
20505         (__mempcpy): Remove.
20506         (mempcpy): Remove.
20507         (__mempcpy_args): Remove.
20508         (strchr): Remove.
20509         (strcpy): Remove.
20510         (strcpy_args): Remove.
20511         (__stpcpy_args): Remove.
20512         (__strcmp_cc): Remove.
20513         (__strcmp_gc): Remove.
20514         (strstr): Remove.
20515
20516 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
20517
20518         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
20519         * nis/nis_call.c (nis_server_cache_add): Likewise.
20520
20521 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20522
20523         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
20524
20525 2016-04-14  Florian Weimer  <fweimer@redhat.com>
20526
20527         * malloc/arena.c (__malloc_fork_lock_parent)
20528         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
20529         internal_function attribute.
20530
20531 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
20532
20533         * stdio-common/printf_fp.c (__printf_fp_l):
20534         Rename ___printf_fp_l to __printf_fp_l and
20535         remove strong alias. Use libc_hidden_def instead
20536         of ldbl_hidden_def macro.
20537
20538 2016-04-14  Florian Weimer  <fweimer@redhat.com>
20539
20540         Remove malloc hooks from fork handler.  They are no longer needed
20541         because malloc runs right before fork, and no malloc calls from
20542         other fork handlers are not possible anymore.
20543         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
20544         declarations.
20545         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
20546         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
20547         (atfork_recursive_cntr): Remove.
20548         (__malloc_fork_lock_parent): Do not override malloc hooks and
20549         thread_arena.
20550         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
20551         thread_arena.
20552         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
20553         thread_arena instead of save_arena.
20554
20555 2016-04-14  Florian Weimer  <fweimer@redhat.com>
20556
20557         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
20558         (thread_atfork, thread_atfork_static): Remove.
20559         * sysdeps/mach/hurd/malloc-machine.h:
20560         (thread_atfork, thread_atfork_static): Remove.
20561
20562 2016-04-14  Florian Weimer  <fweimer@redhat.com>
20563
20564         [BZ #19431]
20565         Run the malloc fork handler as late as possible to avoid deadlocks.
20566         * malloc/malloc-internal.h: New file.
20567         * malloc/malloc.c: Include it.
20568         * malloc/arena.c (ATFORK_MEM): Remove.
20569         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
20570         Update comment.
20571         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
20572         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
20573         Remove outdated comment.
20574         (ptmalloc_init): Do not call thread_atfork.  Remove
20575         thread_atfork_static.
20576         * malloc/tst-malloc-fork-deadlock.c: New file.
20577         * Makefile (tests): Add tst-malloc-fork-deadlock.
20578         (tst-malloc-fork-deadlock): Link against libpthread.
20579         * manual/memory.texi (Aligned Memory Blocks): Update safety
20580         annotation comments.
20581         * sysdeps/nptl/fork.c (__libc_fork): Call
20582         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
20583         __malloc_fork_unlock_child.
20584         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
20585
20586 2016-04-14  Florian Weimer  <fweimer@redhat.com>
20587
20588         [BZ #19613]
20589         Remove union wait.
20590         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
20591         (w_stopsig, w_stopval): Remove.
20592         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
20593         stat_loc argument.
20594         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
20595         (__WAIT_STATUS_DEFN): Remove.
20596         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
20597         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
20598         (wait, wait3, wait4): Use int * for the stat_loc argument.
20599         * posix/wait.c (__wait): Likewise.
20600         * posix/wait3.c (__wait3): Likewise.
20601         * posix/wait4.c (__wait4): Likewise.
20602         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
20603         (__WAIT_STATUS_DEFN): Remove.
20604         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
20605         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
20606         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
20607         argument.
20608         * sysdeps/posix/wait.c (__libc_wait): Likewise.
20609         * sysdeps/posix/wait3.c (__wait3): Likewise.
20610         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
20611         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
20612         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
20613         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
20614         stat_loc argument.
20615         * manual/process.texi (BSD Wait Functions): Remove union wait.
20616
20617 2016-04-13  Andreas Schwab  <schwab@suse.de>
20618
20619         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
20620         (test-extras): Add tst-tlsalign-vars.
20621         * math/Makefile: Wrap long lines.
20622         (libm-vec-test-wrappers): Define.
20623         (test-extras): Add $(libm-vec-test-wrappers).
20624         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
20625         * nss/Makefile (extra-test-objs): Add nss_test1.os.
20626         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
20627         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
20628         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
20629         (extra-test-objs): Add corresponding objects.
20630
20631 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
20632
20633         [BZ #19928]
20634         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
20635         New.
20636         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
20637         times of shared cache size.
20638         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
20639         (VMOVNT): New.
20640         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
20641         (VMOVNT): Likewise.
20642         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
20643         (VMOVNT): Likewise.
20644         (VMOVU): Changed to movups for smaller code sizes.
20645         (VMOVA): Changed to movaps for smaller code sizes.
20646         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
20647         comments.
20648         (PREFETCH): New.
20649         (PREFETCH_SIZE): Likewise.
20650         (PREFETCHED_LOAD_SIZE): Likewise.
20651         (PREFETCH_ONE_SET): Likewise.
20652         Rewrite to use forward and backward loops, which move 4 vector
20653         registers at a time, to support overlapping addresses and use
20654         non temporal store if size is above the threshold and there is
20655         no overlap between destination and source.
20656
20657 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
20658
20659         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
20660         Include dl-vdso.
20661         * sysdeps/unix/sysv/linux/mips/Versions: Add
20662         __vdso_clock_gettime.
20663         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
20664         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
20665         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
20666         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
20667         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
20668         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
20669         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
20670         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
20671         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
20672
20673 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20674
20675         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
20676         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
20677         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
20678         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
20679         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
20680         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
20681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
20682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
20683         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
20684         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
20685         syscalls generation.
20686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20687         [__NR_pwrite64] (__NR_write): Remove define.
20688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
20689         [__NR_pwrite64] (__NR_write): Remove define.
20690         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
20691         Remove define.
20692         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
20693         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
20694         Remove define.
20695         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
20696         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
20697         Linux implementation as base.
20698         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
20699
20700         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
20701         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
20702         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
20703         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
20704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
20705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
20706         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
20707         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
20708         syscall generation.
20709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20710         [__NR_pread64] (__NR_pread): Remove define.
20711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20712         [__NR_pread64] (__NR_pread): Likewise.
20713         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
20714         define.
20715         (__libc_pread): Use SYSCALL_LL macro on offset argument.
20716         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
20717         Remove define.
20718         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
20719         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
20720         Linux implementation as base.
20721         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
20722         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
20723         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
20724
20725         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
20726         definition.
20727         (__ALIGNMENT_COUNT): Likewise.
20728         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
20729         (__ALIGNMENT_COUNT): Likewise.
20730         (SYSCALL_LL): New define.
20731         (SYSCALL_LL64): Likewise.
20732         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
20733         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
20734         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
20735         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
20736
20737         * sysdeps/unix/sysv/linux/arm/kernel-features.h
20738         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
20739         * sysdeps/unix/sysv/linux/mips/kernel-features.h
20740         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
20741         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20742         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
20743
20744 2016-04-11  Florian Weimer  <fweimer@redhat.com>
20745
20746         [BZ #19865]
20747         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
20748         original buffer before retry.
20749
20750 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20751
20752         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
20753         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
20754         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
20755         GLRO(dl_auxv) list.
20756         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
20757         including <ldsodefs.h>.
20758         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
20759
20760 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
20761
20762         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
20763         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
20764         $(CPPFLAGS).
20765
20766 2016-04-09  Khem Raj  <raj.khem@gmail.com>
20767
20768         [BZ #17950]
20769         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
20770         Add -mfpmath=387.
20771
20772 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
20773
20774         * sysdeps/i386/configure.ac: Change == to = when calling test.
20775         * sysdeps/x86_64/configure.ac: Likewise.
20776         * sysdeps/i386/configure: Regenerated.
20777         * sysdeps/x86_64/configure: Likewise.
20778
20779 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
20780
20781         [BZ #16137]
20782         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
20783         * benchtests/bench-strcoll.c (input_files): Likewise.
20784         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
20785         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
20786         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
20787
20788 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
20789
20790         [BZ #19929]
20791         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
20792         [__USE_XOPEN2K8 && !__USE_GNU].
20793         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
20794         variable.
20795
20796         [BZ #19925]
20797         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
20798         define if [!__USE_MISC && __USE_XOPEN2K].
20799         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
20800         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
20801         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
20802         Likewise.
20803         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
20804         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
20805         variable.
20806         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
20807
20808 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20809
20810         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
20811         (sysdep_routines): Add new strspn targets.
20812         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
20813         (__libc_ifunc_impl_list): Add strspn.
20814         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
20815         New file.
20816         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
20817         Likewise.
20818         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
20819         Likewise.
20820         * sysdeps/powerpc/powerpc64/power8/strspn.S:
20821         Likewise.
20822
20823 2016-04-07  Florian Weimer  <fweimer@redhat.com>
20824
20825         * misc/hsearch_r.c: Include <limits.h>.
20826
20827 2016-04-07  Florian Weimer  <fweimer@redhat.com>
20828
20829         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
20830
20831 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
20832
20833         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
20834         (MEMCPY_SYMBOL): New.
20835         (MEMPCPY_SYMBOL): Likewise.
20836         (MEMMOVE_CHK_SYMBOL): Likewise.
20837         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
20838         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
20839         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
20840         Provide alias for memcpy in libc.a and ld.so.
20841
20842 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
20843
20844         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
20845         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
20846         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
20847         Disabled fro now.
20848         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
20849         symbols.  Properly check USE_MULTIARCH on __memset symbols.
20850
20851 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
20852
20853         * benchtests/Makefile (string-benchset): Add memcpy-large,
20854         memmove-large and memset-large.
20855         * benchtests/bench-memcpy-large.c: New file.
20856         * benchtests/bench-memmove-large.c: Likewise.
20857         * benchtests/bench-memmove-large.c: Likewise.
20858         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
20859
20860 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
20861
20862         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
20863         32-bit displacement to avoid long nop between instructions.
20864
20865 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
20866
20867         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
20868         a comment on VMOVU and VMOVA.
20869
20870 2016-04-04  Florian Weimer  <fweimer@redhat.com>
20871
20872         [BZ #19633]
20873         Use specified locale for number formatting in strfmon_l.
20874         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
20875         (__nl_lookup_word): New inline functions.
20876         * include/printf.h (__print_fp_l): Declare.
20877         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
20878         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
20879         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
20880         (___printf_fp): New function.
20881         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
20882         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
20883         * stdlib/tst-strfmon_l.c (do_test): New test.
20884         * stdlib/Makefile (tests): Add kt.
20885         (LOCALES): Build additional locales.
20886         (tst-strfmon_l.out): Require locales.
20887
20888 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
20889
20890         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
20891         if not in libc.
20892         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
20893         Likewise.
20894         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
20895         Likewise.
20896         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
20897         Likewise.
20898
20899 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
20900
20901         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
20902         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
20903         with unaligned_erms.
20904         (__memmove_erms): Skip if source == destination.
20905         (__memmove_unaligned_erms): Don't check source == destination
20906         first.
20907
20908 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
20909
20910         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
20911         bit_arch_Fast_Copy_Backward for Intel Core proessors.
20912
20913 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20914
20915         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
20916         * string/strspn.c (strspn): Likewise.
20917
20918 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
20919
20920         * benchtests/bench-memset.c (do_test): Support 64-byte
20921         alignment.
20922         (test_main): Test 64-byte alignment.
20923
20924 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
20925
20926         * benchtests/bench-memmove.c (test_main): Test 64-byte
20927         alignment.
20928
20929 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
20930
20931         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
20932
20933 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20934
20935         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
20936         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
20937         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
20938
20939         * string/strpbrk.c (strpbrk): Rewrite function.
20940         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
20941         (__strpbrk_c2): Likewise.
20942         (__strpbrk_c3): Likewise.
20943         * string/string-inlines.c
20944         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
20945         Likewise.
20946         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
20947         Likewise.
20948
20949         * string/strspn.c (strcspn): Rewrite function.
20950         * string/bits/string2.h (strspn): Use __builtin_strcspn.
20951         (__strspn_c1): Remove inline function.
20952         (__strspn_c2): Likewise.
20953         (__strspn_c3): Likewise.
20954         * string/string-inlines.c
20955         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
20956         compatibility symbol.
20957         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
20958         Likewise.
20959         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
20960         Likewise.
20961         * string/string-inlines.c: Include generic version.
20962
20963 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
20964             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20965
20966         * string/Version (libc): Add GLIBC_2.24.
20967         * string/strcspn.c (strcspn): Rewrite function.
20968         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
20969         (__strcspn_c1): Remove inline function.
20970         (__strcspn_c2): Likewise.
20971         (__strcspn_c3): Likewise.
20972         * string/string-inline.c
20973         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
20974         compatibility symbol.
20975         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
20976         Likewise.
20977         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
20978         Likewise.
20979         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
20980
20981 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
20982
20983         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
20984         Use ahi instead of aghi to adjust stack pointer.
20985
20986 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20987
20988         [BZ #19853]
20989         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
20990         TEST to take significant digits as second parameter.
20991         [TEST]: Redefine in terms of TEST_N taking 30
20992         significant digits.
20993         (do_test): Add test case to demonstrate precision
20994         failure in the ldbl-128ibm printf.
20995         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
20996         (__mpn_extract_long_double): Carry 7 extra intermediate
20997         bits of precision to aide computing difference when
20998         signs differ.
20999
21000 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
21001
21002         [BZ #19881]
21003         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21004         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
21005         memset-avx512-unaligned-erms.
21006         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21007         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
21008         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
21009         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
21010         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
21011         __memset_sse2_unaligned_erms, __memset_erms,
21012         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
21013         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
21014         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
21015         file.
21016         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
21017         Likewise.
21018         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
21019         Likewise.
21020         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
21021         Likewise.
21022
21023 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
21024
21025         [BZ #19776]
21026         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21027         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
21028         memmove-avx512-unaligned-erms.
21029         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21030         (__libc_ifunc_impl_list): Test
21031         __memmove_chk_avx512_unaligned_2,
21032         __memmove_chk_avx512_unaligned_erms,
21033         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
21034         __memmove_chk_sse2_unaligned_2,
21035         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
21036         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
21037         __memmove_avx512_unaligned_erms, __memmove_erms,
21038         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
21039         __memcpy_chk_avx512_unaligned_2,
21040         __memcpy_chk_avx512_unaligned_erms,
21041         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
21042         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
21043         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
21044         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
21045         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
21046         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
21047         __mempcpy_chk_avx512_unaligned_erms,
21048         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
21049         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
21050         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
21051         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
21052         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
21053         __mempcpy_erms.
21054         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
21055         file.
21056         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
21057         Likewise.
21058         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
21059         Likewise.
21060         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
21061         Likewise.
21062
21063 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
21064
21065         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
21066         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
21067         (La_s390_64_regs): Likewise.
21068         (La_s390_32_retval): Append vector register lrv_v24.
21069         (La_s390_64_retval): Likeweise.
21070         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
21071         Handle extended structs La_s390_32_regs and La_s390_32_retval.
21072         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
21073         Handle extended structs La_s390_64_regs and La_s390_64_retval.
21074
21075 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
21076
21077         [BZ #19916]
21078         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
21079         to create a non-vector/vector version for _dl_runtime_resolve and
21080         _dl_runtime_profile. Move implementation to ...
21081         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
21082         (_dl_runtime_resolve) Save and restore fpr/vrs.
21083         (_dl_runtime_profile) Save and restore vrs and fix some issues
21084         if _dl_call_pltexit is called.
21085         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
21086         Choose the correct resolver function if running on a machine with vx.
21087         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
21088         to create a non-vector/vector version for _dl_runtime_resolve and
21089         _dl_runtime_profile. Move implementation to ...
21090         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
21091         (_dl_runtime_resolve) Save and restore fpr/vrs.
21092         (_dl_runtime_profile) Save and restore vrs and fix some issues
21093         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
21094         Choose the correct resolver function if running on a machine with vx.
21095
21096 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21097
21098         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
21099
21100 2016-03-31  Florian Weimer  <fweimer@redhat.com>
21101
21102         [BZ #19509]
21103         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
21104         skip_map != NULL.
21105         * elf/tst-dlsym-error.c: New file.
21106         * elf/Makefile (tests): Add tst-dlsym-error.
21107         (tst-dlsym-error): Link against libdl.
21108
21109 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
21110
21111         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
21112         (__ASSUME_FUTIMESAT): Remove macro.
21113         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
21114
21115 2016-03-29  Florian Weimer  <fweimer@redhat.com>
21116
21117         [BZ #19879]
21118         CVE-2016-3075
21119         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
21120         copy name.
21121
21122 2016-03-29  Florian Weimer  <fweimer@redhat.com>
21123
21124         [BZ #19837]
21125         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
21126         error if parse_line fails.
21127
21128 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
21129
21130         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
21131         (index_cpu_ERMS): Likewise.
21132         (reg_ERMS): Likewise.
21133
21134 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
21135
21136         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
21137         PER_LINUX_FDPIC): Add.
21138
21139 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
21140
21141         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
21142         memcpy-avx512-no-vzeroupper.
21143         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
21144         to ...
21145         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
21146         (MEMCPY): Don't define.
21147         (MEMCPY_CHK): Likewise.
21148         (MEMPCPY): Likewise.
21149         (MEMPCPY_CHK): Likewise.
21150         (MEMPCPY_CHK): Renamed to ...
21151         (__mempcpy_chk_avx512_no_vzeroupper): This.
21152         (MEMPCPY_CHK): Renamed to ...
21153         (__mempcpy_chk_avx512_no_vzeroupper): This.
21154         (MEMCPY_CHK): Renamed to ...
21155         (__memmove_chk_avx512_no_vzeroupper): This.
21156         (MEMCPY): Renamed to ...
21157         (__memmove_avx512_no_vzeroupper): This.
21158         (__memcpy_avx512_no_vzeroupper): New alias.
21159         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
21160
21161 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
21162
21163         [BZ #18858]
21164         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
21165         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
21166         and mempcpy-avx512-no-vzeroupper.
21167         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
21168         New.
21169         (MEMPCPY): Likewise.
21170         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
21171         (MEMPCPY_CHK): New.
21172         (MEMPCPY): Likewise.
21173         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
21174         (MEMPCPY): Likewise.
21175         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
21176         (MEMPCPY): Likewise.
21177         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
21178         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
21179         Likewise.
21180         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
21181         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
21182
21183 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
21184              Amit Pawar  <Amit.Pawar@amd.com>
21185
21186         [BZ #19583]
21187         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
21188         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
21189         processors.  Set Fast_Copy_Backward for AMD Excavator
21190         processors.
21191         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
21192         New.
21193         (index_arch_Fast_Unaligned_Copy): Likewise.
21194         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
21195         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
21196
21197 2016-03-25  Florian Weimer  <fweimer@redhat.com>
21198
21199         [BZ #19791]
21200         * resolv/res_send.c (close_and_return_error): New function.
21201         (send_dg): Initialize *resplen2 after reopen failure.  Call
21202         close_and_return_error for error returns.  On error paths without
21203         __res_iclose, initialze *resplen2 explicitly.  Update comment for
21204         successful return.
21205
21206 2016-03-25  Florian Weimer  <fweimer@redhat.com>
21207
21208         [BZ #19860]
21209         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
21210         zero if the compiler does not provide the AVX512F bit.
21211
21212 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
21213
21214         [BZ #19848]
21215         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
21216         from 8 to 4.
21217         (__ieee754_powl): Compare integer exponent against 4 not 8.
21218         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
21219         from 8 to 4.
21220         (__ieee754_powl): Compare integer exponent against 4 not 8.
21221         * math/auto-libm-test-in: Add more tests of pow.
21222         * math/auto-libm-test-out: Regenerated.
21223         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
21224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21225
21226 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
21227
21228         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
21229         Make code unconditional.
21230         [!__NR_utimensat]: Remove conditional code.
21231         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
21232         Make code unconditional.
21233         [!__NR_utimensat]: Remove conditional code.
21234         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
21235         Make code unconditional.
21236         [!__NR_utimensat]: Remove conditional code.
21237
21238 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
21239
21240         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
21241         Make code unconditional.
21242
21243 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
21244
21245         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
21246         call-clobbered %eax on retry path.
21247         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
21248
21249 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21250
21251         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
21252         Don't set %rcx twice before "rep movsb".
21253
21254 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21255
21256         [BZ #19583]
21257         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
21258         inline.  Check family before setting family, model and
21259         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
21260         bits here.
21261         (init_cpu_features): Replace HAS_CPU_FEATURE and
21262         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
21263         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
21264         for Intel processors with usable AVX2.  Call get_common_indeces
21265         for other processors with family == NULL.
21266         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
21267         (CPU_FEATURES_ARCH_P): Likewise.
21268         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
21269         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
21270
21271 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21272
21273         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
21274         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
21275         $(shared-thread-library) instead of hardcoding the path to libpthread.
21276
21277 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
21278
21279         * sysdeps/unix/sysv/linux/kernel-features.h
21280         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
21281         * sysdeps/unix/sysv/linux/getdents.c
21282         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
21283         [!have_no_getdents64_defined]: Likewise.
21284         (__GETDENTS): Remove __have_no_getdents64 conditional.
21285
21286 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
21287
21288         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
21289         Remove macro.
21290         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
21291         <kernel-features.h>.
21292         (signalfd) [__NR_signalfd4]: Make code unconditional.
21293         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
21294
21295 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21296
21297         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
21298         style.
21299
21300 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
21301
21302         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
21303         (__pthread_enable_asynccancel): Use JUMPTARGET to call
21304         __pthread_unwind.
21305         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
21306         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
21307         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
21308         (__condvar_cleanup1): Likewise.
21309
21310 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
21311
21312         [BZ #19822]
21313         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
21314         move it to the final $@ location.
21315
21316 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21317
21318         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
21319         access where posix_spawn success and pid argument is null.
21320         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
21321         success case.
21322
21323 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
21324
21325         * sysdeps/mach/hurd/i386/c++-types.data: New file.
21326
21327         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
21328
21329         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
21330         and __fcntl.
21331         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
21332         __fcntl only.
21333         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
21334         adding attribute_hidden to __open and __fcntl.
21335
21336         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
21337         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
21338         depend on libc-modules.h,
21339         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
21340
21341 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
21342
21343         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
21344         Remove macro.
21345         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
21346         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
21347         entry.
21348
21349         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
21350         Remove macro.
21351         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
21352         include <kernel-features.h>.
21353         [!__ASSUME_FALLOCATE]: Remove conditional code.
21354         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
21355
21356 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21357
21358         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
21359         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
21360         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
21361         (_ZGVdN4v_cos_avx2): Likewise.
21362         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
21363         (_ZGVdN4v_cos): Likewise.
21364         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
21365         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
21366         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
21367         (_ZGVdN4v_exp_avx2): Likewise.
21368         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
21369         (_ZGVdN4v_exp): Likewise.
21370         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
21371         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
21372         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
21373         (_ZGVdN4v_log_avx2): Likewise.
21374         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
21375         (_ZGVdN4v_log): Likewise.
21376         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
21377         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
21378         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
21379         (_ZGVdN4vv_pow_avx2): Likewise.
21380         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
21381         (_ZGVdN4vv_pow): Likewise.
21382         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
21383         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
21384         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
21385         (_ZGVdN4v_sin_avx2): Likewise.
21386         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
21387         (_ZGVdN4v_sin): Likewise.
21388         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
21389         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
21390         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
21391         (_ZGVdN4vvv_sincos_avx2): Likewise.
21392         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
21393         (_ZGVdN4vvv_sincos): Likewise.
21394         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
21395         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
21396         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
21397         (_ZGVbN4v_cosf_sse4): Likewise.
21398         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
21399         (_ZGVdN8v_cosf_avx2): Likewise.
21400         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
21401         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
21402         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
21403         (_ZGVbN4v_expf_sse4): Likewise.
21404         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
21405         (_ZGVdN8v_expf_avx2): Likewise.
21406         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
21407         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
21408         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
21409         (_ZGVbN4v_logf_sse4): Likewise.
21410         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
21411         (_ZGVdN8v_logf_avx2): Likewise.
21412         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
21413         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
21414         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
21415         (_ZGVbN4vv_powf_sse4): Likewise.
21416         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
21417         (_ZGVdN8vv_powf_avx2): Likewise.
21418         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
21419         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
21420         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
21421         (_ZGVbN4vvv_sincosf_sse4): Likewise.
21422         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
21423         (_ZGVdN8vvv_sincosf_avx2): Likewise.
21424         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
21425         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
21426         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
21427         (_ZGVbN4v_sinf_sse4): Likewise.
21428         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
21429         (_ZGVdN8v_sinf_avx2): Likewise.
21430         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
21431         Use JUMPTARGET to call callee.
21432         (WRAPPER_IMPL_SSE2_ff): Likewise.
21433         (WRAPPER_IMPL_SSE2_fFF): Likewise.
21434         (WRAPPER_IMPL_AVX): Likewise.
21435         (WRAPPER_IMPL_AVX_ff): Likewise.
21436         (WRAPPER_IMPL_AVX_fFF): Likewise.
21437         (WRAPPER_IMPL_AVX512): Likewise.
21438         (WRAPPER_IMPL_AVX512_ff): Likewise.
21439         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
21440         Likewise.
21441         (WRAPPER_IMPL_SSE2_ff): Likewise.
21442         (WRAPPER_IMPL_SSE2_fFF): Likewise.
21443         (WRAPPER_IMPL_AVX): Likewise.
21444         (WRAPPER_IMPL_AVX_ff): Likewise.
21445         (WRAPPER_IMPL_AVX_fFF): Likewise.
21446         (WRAPPER_IMPL_AVX512): Likewise.
21447         (WRAPPER_IMPL_AVX512_ff): Likewise.
21448         (WRAPPER_IMPL_AVX512_fFF): Likewise.
21449
21450 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21451
21452         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
21453         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
21454         qualifier.
21455         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
21456         internal_function qualifiers.
21457
21458 2016-03-15  Carlos O'Donell <carlos@redhat.com>
21459
21460         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
21461         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
21462         * math/atest-exp.c (exp_mpn): Mark chk unused.
21463         * math/atest-exp2.c (exp_mpn): Likewise.
21464         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
21465         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
21466
21467 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
21468
21469         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
21470         Remove macro.
21471         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
21472         <kernel-features.h>.
21473         [__NR_ppoll]: Make code unconditional.
21474         [!__ASSUME_PPOLL]: Remove conditional code.
21475
21476         * sysdeps/unix/sysv/linux/kernel-features.h
21477         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
21478         (__ASSUME_ACCEPT4): Likewise.
21479         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
21480         Define.
21481         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
21482         Likewise.
21483         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
21484         Likewise.
21485         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
21486         Likewise.
21487         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
21488         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
21489         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
21490         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
21491         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
21492         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21493         * sysdeps/unix/sysv/linux/arm/kernel-features.h
21494         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21495         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
21496         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21497         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
21498         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
21499         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21500         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21501         * sysdeps/unix/sysv/linux/i386/kernel-features.h
21502         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
21503         Likewise.
21504         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
21505         Likewise.
21506         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
21507         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
21508         0x040300].
21509         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
21510         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
21511         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21512         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
21513         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
21514         0x030300].
21515         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
21516         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
21517         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
21518         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
21519         0x040300].
21520         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21521         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21522         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
21523         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
21524         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21525         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
21526         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
21527         0x030300].
21528         * sysdeps/unix/sysv/linux/mips/kernel-features.h
21529         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
21530         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21531         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21532         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
21533         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
21534         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21535         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21536         * sysdeps/unix/sysv/linux/s390/kernel-features.h
21537         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
21538         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
21539         0x040300].
21540         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21541         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21542         * sysdeps/unix/sysv/linux/sh/kernel-features.h
21543         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
21544         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21545         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21546         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
21547         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
21548         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21549         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21550         * sysdeps/unix/sysv/linux/tile/kernel-features.h
21551         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
21552         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
21553         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
21554         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
21555         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
21556         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
21557         Likewise.
21558         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
21559         Likewise.
21560
21561 2016-03-15  Andreas Schwab  <schwab@suse.de>
21562
21563         [BZ #19257]
21564         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
21565         statp->_u._ext.nscount as loop count.
21566
21567 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
21568
21569         * math/test-signgam-finite-c99.c: Also #undef
21570         __LIBC_INTERNAL_MATH_INLINES.
21571         * math/test-signgam-main.c: Likewise.
21572
21573 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
21574
21575         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
21576         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21577         (MADV_FREE): Likewise.
21578         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
21579         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
21580         EPOLLEXCLUSIVE.
21581
21582 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
21583
21584         * timezone/README: Remove mention of checktab.awk. Mention wiki
21585         SharedSourceFiles.
21586
21587 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
21588
21589         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
21590         WUNTRACED.
21591
21592 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21593
21594         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
21595         order to match the type of p when calling atomic_exchange_acq().
21596
21597 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21598
21599         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
21600         cfi_offset calls.
21601         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
21602         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
21603         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
21604         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
21605         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
21606
21607 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
21608
21609         * timezone/checktab.awk: Removed.
21610
21611 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
21612
21613         * manual/math.texi (Errors in Math Functions): Document relaxed
21614         accuracy goals for IBM long double.
21615         * math/libm-test.inc (test_exceptions): Always allow spurious
21616         "underflow" and "inexact" exceptions for IBM long double.
21617
21618 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
21619
21620         [BZ #19762]
21621         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
21622         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
21623         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
21624         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
21625         (bit_arch_*): This for feature array.
21626         (bit_*): Renamed to ...
21627         (bit_cpu_*): This for cpu array.
21628         (index_*): Renamed to ...
21629         (index_arch_*): This for feature array.
21630         (index_*): Renamed to ...
21631         (index_cpu_*): This for cpu array.
21632         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
21633         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
21634         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
21635         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
21636         bit_##name with index_cpu_##name and bit_cpu_##name.
21637         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
21638         bit_##name with index_arch_##name and bit_arch_##name.
21639
21640 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
21641
21642         [BZ #19792]
21643         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
21644         Terminate FDE before return label.
21645
21646 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
21647
21648         [BZ #19790]
21649         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
21650         (rintl): Define as macro.
21651         [USE_AS_NEARBYINTL] (__rintl): Likewise.
21652         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
21653         of fesetround.  Ensure results are evaluated before end of scope.
21654         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
21655         USE_AS_NEARBYINTL and include s_rintl.c.
21656         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
21657         Disable exception traps in new environment.
21658         (libc_feholdsetround_ppc_ctx): Likewise.
21659
21660 2016-03-08  Roland McGrath  <roland@hack.frob.com>
21661
21662         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
21663         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
21664         (tst_audit10_aux) [__AVX512F__]: ... here.
21665
21666 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
21667
21668         * include/sys/auxv.h: New file.
21669
21670 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
21671
21672         [BZ #19759]
21673         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
21674
21675 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
21676
21677         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
21678         operand modifier.
21679         (feclearexcept): Likewise.
21680
21681 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21682
21683         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
21684         to reflect the entire 32-bit HWCAP.
21685         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
21686         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
21687
21688 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
21689
21690         [BZ #19783]
21691         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
21692         $(test-via-rtld-prefix).
21693         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
21694
21695 2016-03-08  Florian Weimer  <fweimer@redhat.com>
21696
21697         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
21698         union wait.  Report any non-zero exit status as error.
21699
21700 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21701
21702         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
21703         configured with --enable-hardcoded-path-in-tests.
21704
21705 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
21706
21707         [BZ #19677]
21708         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
21709         (__ieee754_remainderl): Put zero low parts in canonical form.
21710         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
21711         file.  Based on
21712         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
21713         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
21714         with wrapper round test-fmodrem-ldbl-128ibm.c.
21715         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
21716         file.
21717         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
21718         Likewise.
21719         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
21720         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
21721
21722 2016-03-07  Florian Weimer  <fweimer@redhat.com>
21723
21724         [BZ #19610]
21725         * elf/ldconfig.c (opt_link): Update comment.
21726         (options): Update help string for option -X.
21727         (search_dir): Unlink stale symbolic link only if updating symbolic
21728         links.
21729         * elf/tst-ldconfig-X.sh: New file.
21730         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
21731         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
21732
21733 2016-03-07  Andreas Schwab  <schwab@suse.de>
21734
21735         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
21736         needed arguments.
21737
21738 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
21739
21740         [BZ #15333]
21741         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
21742         to lstat64.
21743
21744 2016-03-07  Florian Weimer  <fweimer@redhat.com>
21745
21746         * libio/filedoalloc.c (isatty): Remove.
21747         (local_isatty): Add comment.  Call __isatty directly.
21748         (_IO_file_doallocate): Update comment.  Assume _LIBC.
21749         * libio/wfiledoalloc.c (isatty): Remove.
21750         (_IO_wfile_doallocate): Update comment.
21751
21752 2016-03-07  Florian Weimer  <fweimer@redhat.com>
21753
21754         [BZ #19269]
21755         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
21756         tst-audit4-aux.o.
21757         (tst-audit10): Depend on tst-audit10-aux.o.
21758         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
21759         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
21760         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
21761         instead of inline AVX code.
21762         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
21763         instead of inline AVX512 code.
21764         * sysdeps/x86_64/tst-audit4-aux.c: New file
21765         * sysdeps/x86_64/tst-audit10-aux.c: New file
21766
21767         [BZ #19648]
21768         * test-skeleton.c (main): Do not set RLIMIT_DATA.
21769
21770 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21771
21772         [BZ #14750]
21773         [BZ #10354]
21774         [BZ #18433]
21775         * include/sched.h (__clone): Add hidden prototype.
21776         (__clone2): Likewise.
21777         * include/unistd.h (__dup): Likewise.
21778         * posix/Makefile (tests): Add tst-spawn2.
21779         * posix/tst-spawn2.c: New file.
21780         * sysdeps/posix/dup.c (__dup): Add hidden definition.
21781         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
21782         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
21783         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
21784         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
21785         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
21786         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
21787         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
21788         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
21789         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
21790         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
21791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
21792         Likewise.
21793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21794         Likewise.
21795         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
21796         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
21797         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
21798         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
21799         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
21800         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
21801         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
21802         * sysdeps/unix/sysv/linux/nptl-signals.h
21803         (____nptl_is_internal_signal): New function.
21804         * sysdeps/unix/sysv/linux/spawni.c: New file.
21805
21806         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
21807         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
21808         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
21809         * posix/tst-execvp2.c (do_test): Likewise.
21810         * posix/tst-execvp3.c (do_test): Likewise.
21811         * posix/tst-execvp4.c (do_test): Likewise.
21812         * posix/tst-execvpe1.c: New file.
21813         * posix/tst-execvpe2.c: Likewise.
21814         * posix/tst-execvpe3.c: Likewise.
21815         * posix/tst-execvpe4.c: Likewise.
21816         * posix/tst-execvpe5.c: Likewise.
21817         * posix/tst-execvpe6.c: Likewise.
21818
21819         [BZ #19534]
21820         * posix/execl.c (execl): Remove dynamic memory allocation.
21821         * posix/execle.c (execle): Likewise.
21822         * posix/execlp.c (execlp): Likewise.
21823
21824 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
21825
21826         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
21827         Replace .text with .text.avx512.
21828         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
21829         Likewise.
21830
21831 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
21832
21833         * sysdeps/generic/libnsl.abilist: New file.
21834         * sysdeps/generic/libutil.abilist: New file.
21835
21836 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
21837
21838         [BZ #19762]
21839         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
21840         HAS_ARCH_FEATURE with Fast_Rep_String.
21841         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
21842         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
21843         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
21844         Likewise.
21845         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
21846         Likewise.
21847         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
21848         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
21849         Likewise.
21850         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
21851         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
21852         Likewise.
21853
21854 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21855
21856         [BZ #19745]
21857         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
21858         with *%rax in call.
21859
21860 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21861
21862         [BZ #19745]
21863         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
21864         with *__libc_start_main@GOTPCREL(%rip) in call.
21865
21866 2016-03-04  Roland McGrath  <roland@hack.frob.com>
21867
21868         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
21869         inside conditional for nonempty $(CXX).
21870
21871         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
21872         nonempty.
21873
21874         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
21875         to test for empty $(CXX) rather than $(CXX) of "no".
21876
21877 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21878
21879         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
21880
21881 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
21882             H.J. Lu  <hongjiu.lu@intel.com>
21883
21884         [BZ #18880]
21885         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
21886         instead of Slow_BSF, and also check for Fast_Copy_Backward to
21887         enable __memcpy_ssse3_back.
21888
21889 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21890
21891         [BZ #19758]
21892         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
21893         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
21894
21895 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
21896
21897         [BZ #19490]
21898         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
21899         (__fentry__): Likewise.
21900
21901 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21902
21903         * gmon/Makefile (noprof): Add $(sysdep_noprof).
21904         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
21905
21906 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
21907
21908         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
21909         __mcount_internal directly.
21910         (C_LABEL(__fentry__)): Likewise.
21911         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
21912         directly.
21913
21914 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
21915
21916         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21917         (__start_context): Call __setcontext directly.
21918
21919 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
21920
21921         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
21922         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
21923         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
21924         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
21925         * sysdeps/unix/sysv/linux/arm/kernel-features.h
21926         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
21927         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
21928         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
21929         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
21930         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
21931         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
21932         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
21933         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
21934         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
21935         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
21936         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
21937         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
21938         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
21939         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
21940         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
21941         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
21942         * sysdeps/unix/sysv/linux/mips/kernel-features.h
21943         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
21944         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
21945         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
21946         Remove conditional code.
21947         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
21948         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
21949         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
21950         * sysdeps/unix/sysv/linux/sh/kernel-features.h
21951         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
21952         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
21953         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
21954         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
21955         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
21956         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
21957         * sysdeps/unix/sysv/linux/tile/kernel-features.h
21958         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
21959
21960 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
21961
21962         * NEWS (2.23): Fix typo in bug 19048 text.
21963
21964 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
21965
21966         [BZ #14259]
21967         * Makeconfig: Rename msgcatdir to localedir.
21968         Rename inst_msgcatdir to inst_localedir.
21969         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
21970         * config.make.in: Add localedir.
21971         * elf/Makefile ($(objpfx)sotruss): Use localedir.
21972         (ldd-rewrite): Likewise.
21973         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
21974         (install-others): Use inst_localedir.
21975         (CPPFLAGS): Use localedir.
21976         * locale/Makefile (locale-CPPFLAGS): Likewise.
21977         * po/Makefile (mo-installed): Use inst_localedir.
21978
21979         [BZ #19575]
21980         * localedata/charmaps/GB18030: Update comments regarding PAU to
21981         non-PUA mappings.
21982
21983 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
21984
21985         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
21986         test for header.
21987         * sysdeps/unix/sysv/linux/configure: Regenerated.
21988         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
21989         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
21990         Remove conditional code.
21991         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
21992
21993         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
21994         Define to 3.2.0.
21995         (arch_minimum_kernel): Likewise.
21996         * sysdeps/unix/sysv/linux/configure: Regenerated.
21997         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
21998         Define to 2.6.32.
21999         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
22000         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
22001         (arch_minimum_kernel): Define to 2.6.32.
22002         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
22003         * README: Document Linux 3.2 requirement.
22004         * manual/install.texi (Linux): Document Linux 3.2 headers
22005         requirement.
22006         * INSTALL: Regenerated.
22007
22008 2016-02-24  Andreas Schwab  <schwab@suse.de>
22009
22010         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
22011         if !NO_LONG_DOUBLE.
22012
22013 2016-02-22  Roland McGrath  <roland@hack.frob.com>
22014
22015         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
22016         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
22017
22018 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
22019
22020         [BZ #19512]
22021         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
22022
22023 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
22024
22025         * posix/tst-dir.c: Include libc-internal.h.
22026
22027 2016-02-20  Florian Weimer  <fweimer@redhat.com>
22028
22029         [BZ #19056]
22030         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
22031         * manual/filesys.texi (Reading/Closing Directory): Mention
22032         deprecaion.
22033         * posix/tst-dir.c (main): Disable deprecation warning in test.
22034
22035 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
22036
22037         [BZ #19679]
22038         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
22039         Renamed to ...
22040         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
22041         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
22042         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
22043         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
22044         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
22045         * sysdeps/x86_64/dl-trampoline.h
22046         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
22047         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
22048
22049 2016-02-19  Mark Wielaard  <mjw@redhat.com>
22050
22051         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
22052
22053 2016-02-19  Mark Wielaard  <mjw@redhat.com>
22054
22055         * elf/elf.h (R_386_GOT32X): New.
22056         (R_386_NUM): Update.
22057         (R_X86_64_GOTPCRELX: New.
22058         (R_X86_64_REX_GOTPCRELX): New.
22059         (R_X86_64_NUM): Update.
22060
22061 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
22062
22063         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
22064
22065 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
22066
22067         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
22068         assign attr->stackaddr to it, and adjust it down when
22069         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
22070         [_STACK_GROWS_UP]: Delete assert.
22071         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
22072         Implement stack grows up logic.
22073         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
22074         stack grows up logic.
22075
22076 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22077
22078         * NEWS: Update with 2.24 template.
22079
22080 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
22081
22082         [BZ #19678]
22083         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
22084         Ensure +0.0 is returned when taking the next value below the least
22085         positive value.
22086
22087 2016-02-19  Florian Weimer  <fweimer@redhat.com>
22088
22089         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
22090         available.  Do not define NO_THREADS.
22091         * malloc/malloc.c: Do not check NO_THREADS.
22092         * malloc/arena.c: Likewise.
22093
22094 2016-02-19  Florian Weimer  <fweimer@redhat.com>
22095
22096         * malloc/malloc.c (__libc_mallinfo): Update comment.
22097         (struct malloc_par): Remove max_total_mem member, it was always 0.
22098         (int_mallinfo): Store 0 into usmblks (no functional change).
22099         * malloc/hooks.c (struct malloc_state): Document that
22100         max_total_mem is always 0.
22101         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
22102         always 0.
22103         * manual/memory.texi (Statistics of Malloc): Likewise.
22104
22105 2016-02-19  Florian Weimer  <fweimer@redhat.com>
22106
22107         * malloc/malloc.c (sysmalloc): Do not update arena_max.
22108         * malloc/arena.c (arena_max): Remove.
22109         (heap_trim, _int_new_arena): Do not update arena_max.
22110
22111 2016-02-19  Florian Weimer  <fweimer@redhat.com>
22112
22113         * resolv/res_init.c (res_ninit): Update comment.
22114
22115 2016-02-19  Florian Weimer  <fweimer@redhat.com>
22116
22117         [BZ #19505]
22118         * posix/spawn_int.h: Add headers and include guard.
22119         (__spawn_valid_fd): New function.
22120         * posix/spawn_faction_addopen.c
22121         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
22122         * posix/spawn_faction_addclose.c
22123         (posix_spawn_file_actions_addclose): Likewise.
22124         * posix/spawn_faction_adddup2.c
22125         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
22126         second file descriptor.
22127         * posix/spawn_valid_fd.c: New file.
22128         * posix/tst-posix_spawn-fd.c: New file.
22129         * posix/Makefile (routines): Add spawn_valid_fd.
22130         (tests): Add tst-posix_spawn-fd.
22131
22132 2016-02-19  Florian Weimer  <fweimer@redhat.com>
22133
22134         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
22135         (do_test): Limit the number of arenas, so that we can use fewer
22136         outer threads.  Limit timeout to 3 seconds, in preparation for a
22137         larger TIMEOUT value.
22138
22139 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
22140
22141         [BZ #19674]
22142         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
22143         sign in overflowing and underflowing results when overflow or
22144         underflow is detected early.  Include sign in result before rather
22145         than after scaling.
22146
22147         [BZ #19603]
22148         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
22149         (__ieee754_remainderl): Adjust sign of integer version of low part
22150         when taking absolute value of high part.
22151         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
22152         * math/libm-test.inc (remainder_test_data): Add another test.
22153         (remquo_test_data): Likewise.
22154
22155 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
22156
22157         [BZ #19602]
22158         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
22159         equal high parts and both low parts zero specially.
22160         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
22161         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
22162         Add test-fmodl-ldbl-128ibm.
22163
22164         [BZ #19595]
22165         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
22166         common logic for all cases of shifting subnormal results.  Do not
22167         insert sign bit in shifted mantissa.  Always pass -1023 as biased
22168         exponent to ldbl_insert_mantissa in subnormal case.
22169
22170         [BZ #19594]
22171         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
22172         on high and low parts then adjust result and use
22173         ldbl_canonicalize_int if needed.
22174
22175         [BZ #19593]
22176         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
22177         on high part and __floor or __ceil on low part then use
22178         ldbl_canonicalize_int if needed.
22179
22180         [BZ #19592]
22181         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
22182         high and low parts then use ldbl_canonicalize_int if needed.
22183
22184         [BZ #17899]
22185         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
22186         New function.
22187         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
22188         on high and low parts then use ldbl_canonicalize_int if needed.
22189
22190 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22191
22192         * configure: Regenerated.
22193
22194         * po/libc.pot: Regenerated.
22195
22196         * po/be.po: Updated translation.
22197         * po/bg.po: Likewise.
22198         * po/ca.po: Likewise.
22199         * po/cs.po: Likewise.
22200         * po/da.po: Likewise.
22201         * po/el.po: Likewise.
22202         * po/eo.po: Likewise.
22203         * po/es.po: Likewise.
22204         * po/fi.po: Likewise.
22205         * po/fr.po: Likewise.
22206         * po/gl.po: Likewise.
22207         * po/hr.po: Likewise.
22208         * po/hu.po: Likewise.
22209         * po/ia.po: Likewise.
22210         * po/id.po: Likewise.
22211         * po/it.po: Likewise.
22212         * po/ja.po: Likewise.
22213         * po/lt.po: Likewise.
22214         * po/nb.po: Likewise.
22215         * po/nl.po: Likewise.
22216         * po/pt_BR.po: Likewise.
22217         * po/rw.po: Likewise.
22218         * po/sk.po: Likewise.
22219         * po/sl.po: Likewise.
22220         * po/sv.po: Likewise.
22221         * po/tr.po: Likewise.
22222         * po/zh_CN.po: Likewise.
22223         * po/zh_TW.po: Likewise.
22224
22225         * version.h (RELEAES): Set to "development".
22226         (VERSION): Set to 2.23.90.
22227
22228         * version.h (RELEASE): Set to "stable".
22229         (VERSION): Set to 2.23.
22230         * include/feature.h (__GLIBC_MINOR__): Set to 23.
22231
22232         * NEWS: Updated fixed bugs.
22233
22234 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22235             Wilco Dijkstra  <wdijkstr@arm.com>
22236
22237         [BZ #19462]
22238         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
22239         (_STRING_INLINE_unaligned): This.
22240         * include/string.h: Include <string_private.h>.
22241         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
22242         _STRING_INLINE_unaligned.
22243         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
22244         (_STRING_INLINE_unaligned): New.
22245         * sysdeps/aarch64/string_private.h: New file.
22246         * sysdeps/generic/string_private.h: Likewise.
22247         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
22248         * sysdeps/s390/string_private.h: Likewise.
22249         * sysdeps/x86/string_private.h: Likewise.
22250         * sysdeps/m68k/m680x0/m68020/bits/string.h
22251         (_STRING_ARCH_unaligned): Renamed to ...
22252         (_STRING_INLINE_unaligned): This.
22253         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
22254         to ...
22255         (_STRING_INLINE_unaligned): This.
22256         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
22257         to ...
22258         (_STRING_INLINE_unaligned): This.
22259         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
22260         to ...
22261         (_STRING_INLINE_unaligned): This.
22262
22263 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
22264             H.J. Lu  <hongjiu.lu@intel.com>
22265
22266         [BZ #19590]
22267         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
22268         relocation.
22269
22270 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
22271
22272         [BZ #18665]
22273         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
22274         *herrno_p.
22275         (gaih_getanswer): Document functional behviour. Return tryagain
22276         if any result is tryagain.
22277         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
22278         when freed.
22279         * resolv/res_send.c: Add copyright text.
22280         (__libc_res_nsend): Document that MAXPACKET is expected.
22281         (send_vc): Document. Remove buffer reuse.
22282         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
22283         size of the buffer. Add Dprint for truncated UDP buffer.
22284
22285 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
22286
22287         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
22288         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
22289         * INSTALL: Regenerate.
22290
22291 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
22292             Jonathan Wakely  <jwakely@redhat.com>
22293             Carlos O'Donell  <carlos@redhat.com>
22294
22295         [BZ 19439]
22296         * math/Makefile (tests): Add test-math-isinff.
22297         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
22298         * math/bits/mathcalls.h [__USE_MISC]: Use
22299         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
22300         functions not in C++11 and which don't conflict e.g. isinff,
22301         isinfl etc.
22302         * math/test-math-isinff.cc: New file.
22303
22304 2016-02-12  Florian Weimer  <fweimer@redhat.com>
22305
22306         * misc/bug18240.c (do_test): Set RLIMIT_AS.
22307
22308 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22309
22310         [BZ #19529]
22311         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
22312
22313 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22314
22315         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
22316
22317 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
22318
22319         [BZ #19550]
22320         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
22321         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
22322         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
22323         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
22324         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
22325         New syscall entry.
22326         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
22327         New syscall entry.
22328         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
22329         syscall entry.
22330
22331 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
22332
22333         [BZ #18240]
22334         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
22335         unsigned int wraparound.
22336
22337 2016-01-27  Florian Weimer  <fweimer@redhat.com>
22338
22339         [BZ #18240]
22340         * misc/bug18240.c: New test.
22341         * misc/Makefile (tests): Add it.
22342
22343 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
22344             Joseph Myers  <joseph@codesourcery.com>
22345
22346         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
22347         load in branch delay slot when less than a word of input left.
22348
22349 2016-01-27  Andreas Schwab  <schwab@suse.de>
22350
22351         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
22352         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
22353         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
22354         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
22355
22356 2016-01-26  David S. Miller  <davem@davemloft.net>
22357
22358         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
22359
22360 2016-01-25  David S. Miller  <davem@davemloft.net>
22361
22362         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
22363         __sqrtl_finite.
22364         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
22365         instead using versioned_symbol.
22366         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
22367         of entries.
22368
22369         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
22370         __sqrtl_finite to GLIBC_2.23
22371
22372 2016-01-25  Ricchard Henderson  <rth@redhat.com>
22373
22374         * sysdeps/alpha/fpu/libm-test-ulps: Update.
22375
22376 2016-01-25  Andreas Schwab  <schwab@suse.de>
22377
22378         [BZ #17514]
22379         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
22380         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
22381         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
22382         * nptl/tst-mutex-errorcheck.c: New file.
22383
22384 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22385
22386         [BZ #18560]
22387         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
22388         (IPCOP_semop): Likewise.
22389         (IPCOP_semget): Likewise.
22390         (IPCOP_semctl): Likewise.
22391         (IPCOP_msgsnd): Likewise.
22392         (IPCOP_msgrcv): Likewise.
22393         (IPCOP_msgget): Likewise.
22394         (IPCOP_msgctl): Likewise.
22395         (IPCOP_shmat): Likewise.
22396         (IPCOP_shmdt): Likewise.
22397         (IPCOP_shmget): Likewise.
22398         (IPCOP_shmctl): Likewise.
22399
22400 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
22401
22402         * string/tst-endian.c: Include <libc-internal.h>.
22403         (do_test): Ignore tautological-compare warnings around
22404         "htobeXX (beXXtoh (i)) != i" and
22405         "htoleXX (leXXtoh (i)) != i" if-statements.
22406
22407 2016-01-24  David S. Miller  <davem@davemloft.net>
22408
22409         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
22410         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
22411         alias.
22412         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
22413         __sqrtl_finite.
22414
22415         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22416
22417 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
22418
22419         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
22420         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
22421         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22422
22423 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22424
22425         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
22426         (thread_func): Use new function to simplify barrier check.
22427         (do_test): Use new function to simplify checking barrier exit
22428         code, and actually join the child thread.
22429
22430 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22431
22432         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
22433         semicolon.
22434         (__libc_tend): Likewise.
22435         (__libc_tabort): Likewise.
22436
22437 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
22438
22439         * sysdeps/nios2/libm-test-ulps: Update.
22440         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
22441         (__gtsf2): Likewise.
22442         (__unorddf2): Likewise.
22443         (__unordsf2): Likewise.
22444         (__ledf2): Likewise.
22445
22446 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
22447
22448         * nis/nis_table.c (__follow_path): Disable diagnostic for
22449         uninitialized variable that is a false positive for gcc 4.7.
22450         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
22451
22452 2016-01-20  Roland McGrath  <roland@hack.frob.com>
22453
22454         * sysdeps/nacl/lowlevellock-futex.h
22455         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
22456         Always evaluate PRIVATE argument.
22457
22458 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
22459
22460         [BZ #19490]
22461         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
22462         (pthread_cond_broadcast): Use ENTRY/END
22463         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
22464         (pthread_cond_signal): Likewise.
22465         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
22466         Likewise.
22467         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
22468         Likewise.
22469         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
22470         Likewise.
22471
22472 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
22473
22474         * sysdeps/ieee754/dbl-64/s_finite.c
22475         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
22476         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
22477         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
22478         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
22479         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
22480
22481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
22482         (__gtsf2): Add as optional for libc.so.
22483         (__unordsf2): Likewise.
22484         (__signbit): Remove for libc.so.
22485         (__signbitl): Likewise.
22486
22487 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22488
22489         * iconvdata/bug-iconv11.c (test_ibm93x):
22490         Use %zu printf format specifier for size_t argument.
22491
22492 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
22493
22494         * math/gen-libm-test.pl (parse_ulps): Do not reduce
22495         already-recorded ulps.
22496         * sysdeps/arm/libm-test-ulps: Regenerated.
22497         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
22498         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
22499         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
22500
22501 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
22502             Paul Pluzhnikov  <ppluzhnikov@google.com>
22503
22504         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
22505         assembler not supporting AVX-512.
22506
22507 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
22508
22509         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22510
22511 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
22512
22513         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
22514         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
22515
22516         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
22517
22518         * sysdeps/arm/libm-test-ulps: Regenerated.
22519
22520 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
22521
22522         [BZ #19451]
22523         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
22524
22525 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
22526
22527         [BZ #19486]
22528         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
22529         * sysdeps/generic/fix-fp-int-convert-overflow.h
22530         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
22531         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
22532         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
22533         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
22534         Likewise.
22535         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
22536         Avoid conversions to long int where inexact exceptions
22537         could be raised.
22538         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
22539         Likewise.
22540         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
22541         Avoid conversions to long long int where inexact exceptions
22542         could be raised.
22543         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
22544         Likewise.
22545
22546 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
22547
22548         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
22549         * configure: Regenerated.
22550
22551 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
22552
22553         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
22554
22555 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
22556
22557         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
22558         outside of comment.
22559
22560 2016-01-15  Torvald Riegel  <triegel@redhat.com>
22561
22562         * nptl/tst-barrier1.c: Add description on first line.
22563         * nptl/tst-barrier2.c: Likewise.
22564         * nptl/tst-barrier3.c: Likewise.
22565         * nptl/tst-barrier4.c: Likewise.
22566         * nptl/tst-barrier5.c: Likewise.
22567
22568 2016-01-15  Torvald Riegel  <triegel@redhat.com>
22569
22570         [BZ #18868]
22571         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
22572
22573 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
22574
22575         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
22576         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
22577         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
22578         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
22579         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
22580         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
22581         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
22582         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
22583         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
22584         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
22585         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
22586
22587 2016-01-15  Torvald Riegel  <triegel@redhat.com>
22588
22589         [BZ #13065]
22590         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
22591         new implementation.
22592         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
22593         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
22594         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
22595         (BARRIER_IN_THRESHOLD): New macro.
22596         * nptl/pthread_barrierattr_setpshared.c
22597         (pthread_barrierattr_setpshared): Clean up.
22598         * nptl/tst-barrier4.c: Correct comment.
22599         * nptl/tst-barrier5.c: New file.
22600         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
22601         (gen-as-const-headers): Remove lowlevelbarrier.sym.
22602         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
22603         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
22604         * nptl/lowlevelbarrier.sym: Remove.
22605         * nptl/DESIGN-barrier.txt: Remove.
22606         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
22607         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
22608         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
22609         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
22610         error.
22611         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
22612         implementation.
22613
22614 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22615
22616         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
22617         (do_child): Mask SIGRTMIN while thr is running.
22618
22619 2016-01-15  Martin Sebor  <msebor@redhat.com>
22620
22621         [BZ #19432]
22622         * iconvdata/Makefile: Add bug-iconv11.
22623         * iconvdata/bug-iconv11.c: New test.
22624         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
22625         * iconvdata/ibm933.c: Same.
22626         * iconvdata/ibm935.c: Same.
22627         * iconvdata/ibm937.c: Same.
22628         * iconvdata/ibm939.c: Same.
22629
22630 2016-01-15  Martin Sebor  <msebor@redhat.com>
22631
22632         [BZ #19443]
22633         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
22634         [DEBUG] (_ufc_set_bits): Declare used.
22635         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
22636         [DEBUG] (print_all): Declare used.
22637         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
22638         operands of the ternary ?: expression to target type.
22639         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
22640         calling the undeclared abort.
22641         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
22642
22643 2016-01-15  Martin Sebor  <msebor@redhat.com>
22644
22645         [BZ #18755]
22646         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
22647         warnings.
22648         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
22649         (__gai_create_helper_thread): Same.
22650         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
22651         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
22652         to suppress -Wmaybe-uninitialized warnings.
22653
22654 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
22655
22656         [BZ #19465]
22657         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
22658         inside if.
22659         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
22660         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
22661         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
22662
22663 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
22664
22665         [BZ #19466]
22666         * time/tst-mktime2.c (time_t_max): Removed.
22667         (time_t_min): Likewise.
22668         (TYPE_SIGNED): New.
22669         (TYPE_MINIMUM): Likewise.
22670         (TYPE_MAXIMUM): Likewise.
22671         (TIME_T_MIN): Likewise.
22672         (TIME_T_MAX): Likewise.
22673         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
22674         and TIME_T_MIN.
22675         (do_test): Likewise.
22676
22677 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
22678
22679         [BZ #19467]
22680         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
22681         index_Fast_Unaligned_Load flag for Excavator family CPUs.
22682
22683 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
22684
22685         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
22686
22687 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
22688
22689         * benchtests/Makefile (PYTHON): Define.
22690         (bench-func): Use $(PYTHON) to run python scripts.
22691         ($(objpfx)bench-%.c): Likewise.
22692
22693 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
22694
22695         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
22696         leading slash when `file_name' is "/".
22697
22698 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
22699
22700         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
22701         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
22702         Likewise.
22703         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
22704         Likewise.
22705         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
22706         Likewise.
22707         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
22708         enum constant and macro.
22709         (PTRACE_SETSIGMASK): Likewise.
22710         (PTRACE_SECCOMP_GET_FILTER): Likewise.
22711         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
22712         (PTRACE_GETSIGMASK): Likewise.
22713         (PTRACE_SETSIGMASK): Likewise.
22714         (PTRACE_SECCOMP_GET_FILTER): Likewise.
22715         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
22716         Likewise.
22717         (PTRACE_SETSIGMASK): Likewise.
22718         (PTRACE_SECCOMP_GET_FILTER): Likewise.
22719         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
22720         (PTRACE_GETSIGMASK): Likewise.
22721         (PTRACE_SETSIGMASK): Likewise.
22722         (PTRACE_SECCOMP_GET_FILTER): Likewise.
22723         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
22724         Likewise.
22725         (PTRACE_SETSIGMASK): Likewise.
22726         (PTRACE_SECCOMP_GET_FILTER): Likewise.
22727         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
22728         Likewise.
22729         (PTRACE_SETSIGMASK): Likewise.
22730         (PTRACE_SECCOMP_GET_FILTER): Likewise.
22731         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
22732         Likewise.
22733         (PTRACE_SETSIGMASK): Likewise.
22734         (PTRACE_SECCOMP_GET_FILTER): Likewise.
22735
22736 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
22737             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22738
22739         [BZ #19439]
22740         * math/bits/mathcalls.h
22741         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
22742         prototype.
22743         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
22744
22745 2016-01-11  Andreas Schwab  <schwab@suse.de>
22746
22747         [BZ #19253]
22748         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
22749         cache when TZDEFRULES was used.
22750         * time/tst-tzname.c: New file.
22751         * time/Makefile (test): Add tst-tzname.
22752         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
22753         * timezone/Makefile (test-zones): Add $(posixrules-file).
22754         ($(testdata)/$(posixrules-file)): New rule.
22755
22756 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22757
22758         Fix doc quoting problems with Texinfo 5
22759         Without this change, in the info file output, Texinfo 5 quotes code
22760         in text with undirected single quotes 'like this' and generates
22761         code examples that with many PDF readers cannot be cut out of PDFs
22762         and pasted into code.
22763         * manual/libc.texinfo: Configure the libc manual like the GNU
22764         Emacs manual, by using @documentencoding and setting
22765         txicodequoteundirected and txicodequotebacktick.  This way,
22766         Texinfo 5 quotes code in text with directed single quotes ‘like
22767         this’ and produces examples that can be cut out of PDFs.  This
22768         change causes Texinfo 5 to generate info files that contain UTF-8
22769         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
22770         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
22771
22772 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22773
22774         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
22775         __libc_tabort, __libc_tend): New wrappers that enforce compiler
22776         barriers to their respective compiler built-ins.
22777         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
22778         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
22779         * sysdeps/powerpc/sysdep.h: Likewise.
22780         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
22781         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
22782         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
22783
22784 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
22785
22786         * scripts/config.guess: Revert previous shebang change.
22787         * scripts/config.sub: Likewise.
22788         * scripts/mkinstalldirs: Likewise.
22789
22790 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
22791
22792         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
22793         PPC_FEATURE2_HAS_IEEE128.
22794         * sysdeps/powerpc/dl-procinfo.c:
22795         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
22796
22797 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
22798
22799         [BZ #19415]
22800         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
22801         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
22802         (_dl_lookup_address): Rewrite using function resolver trampoline.
22803         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
22804         two bits in address.
22805
22806 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
22807
22808         * longlong.h: Change !__SHMEDIA__ to
22809         (!defined (__SHMEDIA__) || !__SHMEDIA__).
22810         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
22811
22812 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
22813             Joseph Myers  <joseph@codesourcery.com>
22814             Mark Shinwell  <shinwell@codesourcery.com>
22815             Andrew Stubbs  <ams@codesourcery.com>
22816             Rich Felker <dalias@libc.org>
22817
22818         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
22819
22820 2016-01-07  Richard Henderson  <rth@redhat.com>
22821
22822         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
22823
22824 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
22825
22826         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
22827         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
22828         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22829         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22830         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
22831
22832 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
22833             Joseph Myers  <joseph@codesourcery.com>
22834
22835         * timezone/private.h: Update from tzcode 2015g.
22836         * timezone/tzfile.h: Likewise.
22837         * timezone/tzselect.ksh: Likewise.
22838         * timezone/zdump.c: Likewise.
22839         * timezone/zic.c: Likewise.
22840         * timezone/ialloc.c: Remove file.
22841         * timezone/scheck.c: Likewise.
22842         * timezone/Makefile (extra-objs): Remove variable.
22843         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
22844         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
22845         -Wno-maybe-uninitialized.
22846         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
22847         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
22848         (CFLAGS-ialloc.c): Remove variable.
22849         (CFLAGS-scheck.c): Likewise.
22850         * timezone/README: Update list of files from tzcode.
22851
22852 2016-01-07  Khem Raj  <raj.khem@gmail.com>
22853
22854         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
22855         instead of __fxprintf when _LIBC is undefined.
22856
22857 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
22858
22859         * catgets/test-gencat.sh: Remove space after shebang.
22860         * conform/GlibcConform.pm: Likewise.
22861         * conform/check-header-lists.sh: Likewise.
22862         * conform/conformtest.pl: Likewise.
22863         * conform/linknamespace.pl: Likewise.
22864         * conform/list-header-symbols.pl: Likewise.
22865         * debug/catchsegv.sh: Likewise.
22866         * elf/genrtldtbl.awk: Likewise.
22867         * elf/tst-pathopt.sh: Likewise.
22868         * elf/tst-rtld-load-self.sh: Likewise.
22869         * grp/tst_fgetgrent.sh: Likewise.
22870         * iconvdata/gen-8bit-gap-1.sh: Likewise.
22871         * iconvdata/gen-8bit-gap.sh: Likewise.
22872         * iconvdata/gen-8bit.sh: Likewise.
22873         * iconvdata/run-iconv-test.sh: Likewise.
22874         * intl/tst-gettext.sh: Likewise.
22875         * intl/tst-gettext2.sh: Likewise.
22876         * intl/tst-gettext4.sh: Likewise.
22877         * intl/tst-gettext6.sh: Likewise.
22878         * intl/tst-translit.sh: Likewise.
22879         * io/ftwtest-sh: Likewise.
22880         * libio/test-freopen.sh: Likewise.
22881         * locale/gen-translit.pl: Likewise.
22882         * malloc/tst-mtrace.sh: Likewise.
22883         * manual/check-safety.sh: Likewise.
22884         * manual/libc-texinfo.sh: Likewise.
22885         * manual/tsort.awk: Likewise.
22886         * manual/xtract-typefun.awk: Likewise.
22887         * nptl/tst-cancel-wrappers.sh: Likewise.
22888         * nptl/tst-tls6.sh: Likewise.
22889         * posix/globtest.sh: Likewise.
22890         * posix/tst-getconf.sh: Likewise.
22891         * posix/wordexp-tst.sh: Likewise.
22892         * scripts/check-c++-types.sh: Likewise.
22893         * scripts/check-local-headers.sh: Likewise.
22894         * scripts/config.guess: Likewise.
22895         * scripts/config.sub: Likewise.
22896         * scripts/cpp: Likewise.
22897         * scripts/cross-test-ssh.sh: Likewise.
22898         * scripts/documented.sh: Likewise.
22899         * scripts/evaluate-test.sh: Likewise.
22900         * scripts/gen-libc-abis: Likewise.
22901         * scripts/gen-sorted.awk: Likewise.
22902         * scripts/list-fixed-bugs.py: Likewise.
22903         * scripts/merge-test-results.sh: Likewise.
22904         * scripts/mkinstalldirs: Likewise.
22905         * scripts/rellns-sh: Likewise.
22906         * scripts/test-installation.pl: Likewise.
22907         * scripts/update-copyrights: Likewise.
22908         * stdio-common/tst-printf.sh: Likewise.
22909         * stdio-common/tst-unbputc.sh: Likewise.
22910         * stdlib/tst-fmtmsg.sh: Likewise.
22911         * stdlib/tst-setcontext3.sh: Likewise.
22912         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
22913         * sysdeps/unix/make-syscalls.sh: Likewise.
22914
22915 2016-01-06  John David Anglin  <dave.anglin@bell.net>
22916
22917         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
22918         asm stw with atomic_exchange_rel.  Add explanatory comment.
22919         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
22920         Likewise.
22921
22922 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
22923
22924         [BZ #19122]
22925         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
22926         * sysdeps/generic/dl-unistd.h: New file.
22927         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
22928
22929 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
22930
22931          [BZ #19122]
22932          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
22933          * sysdeps/generic/dl-mman.h: New file.
22934          * sysdeps/mach/hurd/dl-mman.h: Likewise.
22935
22936 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
22937
22938         * manual/texinfo.tex: Update to version 2016-01-04.21 with
22939         trailing whitespace removed.
22940         * scripts/config.guess: Update to version 2016-01-01.
22941         * scripts/config.sub: Update to version 2016-01-01.
22942         * scripts/move-if-change: Update from gnulib.
22943
22944 2016-01-04  Anton Blanchard  <anton@samba.org>
22945
22946         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
22947         for array indices.
22948         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
22949
22950 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
22951
22952         * NEWS: Update copyright dates.
22953         * catgets/gencat.c (print_version): Likewise.
22954         * csu/version.c (banner): Likewise.
22955         * debug/catchsegv.sh: Likewise.
22956         * debug/pcprofiledump.c (print_version): Likewise.
22957         * debug/xtrace.sh (do_version): Likewise.
22958         * elf/ldconfig.c (print_version): Likewise.
22959         * elf/ldd.bash.in: Likewise.
22960         * elf/pldd.c (print_version): Likewise.
22961         * elf/sotruss.sh: Likewise.
22962         * elf/sprof.c (print_version): Likewise.
22963         * iconv/iconv_prog.c (print_version): Likewise.
22964         * iconv/iconvconfig.c (print_version): Likewise.
22965         * locale/programs/locale.c (print_version): Likewise.
22966         * locale/programs/localedef.c (print_version): Likewise.
22967         * login/programs/pt_chown.c (print_version): Likewise.
22968         * malloc/memusage.sh (do_version): Likewise.
22969         * malloc/memusagestat.c (print_version): Likewise.
22970         * malloc/mtrace.pl: Likewise.
22971         * manual/libc.texinfo: Likewise.
22972         * nptl/version.c (banner): Likewise.
22973         * nscd/nscd.c (print_version): Likewise.
22974         * nss/getent.c (print_version): Likewise.
22975         * nss/makedb.c (print_version): Likewise.
22976         * posix/getconf.c (main): Likewise.
22977         * scripts/test-installation.pl: Likewise.
22978         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22979
22980         * All files with FSF copyright notices: Update copyright dates
22981         using scripts/update-copyrights.
22982         * intl/plural.c: Regenerated.
22983         * locale/programs/charmap-kw.h: Likewise.
22984         * locale/programs/locfile-kw.h: Likewise.
22985
22986 2016-01-02  Helge Deller  <deller@gmx.de>
22987
22988         [BZ #19285]
22989         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
22990         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
22991         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
22992         (MADV_xxK_PAGES): Remove.
22993
22994 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
22995
22996         [BZ #15421]
22997         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
22998         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
22999         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
23000         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
23001
23002 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
23003
23004         [BZ #19408]
23005         * sysdeps/unix/sysv/linux/personality.c: New file.
23006         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
23007         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
23008         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
23009         (sysdep_routines): Add personality.
23010         (tests): Add tst-personality.
23011         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
23012         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
23013         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
23014         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
23015         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
23016         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
23017         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
23018         Likewise.
23019         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
23020         Likewise.
23021         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
23022         Likewise.
23023         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
23024         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
23025         Likewise.
23026
23027 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
23028
23029         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
23030         (PATH_ARM_SYSTYPE): Remove.
23031         (PATH_CPUINFO): Likewise.
23032         (IO_BASE_FOOTBRIDGE): Likewise.
23033         (IO_SHIFT_FOOTBRIDGE): Likewise.
23034         (struct platform): Likewise.
23035         (init_iosys): Remove compatibility code for 2.4 kernels.
23036         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
23037
23038 2015-12-29  Florian Weimer  <fweimer@redhat.com>
23039
23040         * malloc/tst-malloc-thread-fail.c: New file.
23041         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
23042         (tst-malloc-thread-fail): Link against libpthread.
23043
23044 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
23045
23046         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
23047         (get_parser): New function.
23048         (main): New function.
23049
23050 2015-12-29  Rob Wu  <rob@robwu.nl>
23051
23052         [BZ #19369]
23053         * resolv/res_init.c (__res_vinit): Reset defdname before use.
23054
23055 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
23056
23057         [BZ #19270]
23058         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
23059
23060 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
23061
23062         [BZ #15421]
23063         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
23064
23065 2015-12-23  Torvald Riegel  <triegel@redhat.com>
23066
23067         [BZ #13690]
23068         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
23069         after releasing it.
23070         (__lll_robust_unlock): Likewise.
23071         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
23072         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
23073         (lll_robust_unlock): Likewise.
23074         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
23075         Prevent warnings in callers.
23076
23077 2015-12-23  Florian Weimer  <fweimer@redhat.com>
23078
23079         * malloc/arena.c (list_lock): Update comment.
23080
23081 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
23082
23083         * sysdeps/powerpc/hwcapinfo.c: Export symbol
23084         __parse_hwcap_and_convert_at_platform to libc.a.
23085
23086 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
23087
23088         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
23089         platform and feature support for POWER9.
23090         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23091         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
23092         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
23093         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
23094         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
23095         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
23096         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
23097         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
23098
23099 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23100
23101         Harmonize generic stdio-lock support with nptl
23102
23103         This fixes build when _IO_funlockfile is a macro, fixes build where
23104         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
23105         stack unwind.
23106
23107         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
23108         _IO_release_lock ): Use cleanup attribute on new
23109         _IO_acquire_lock_file variable instead of assuming that
23110         _IO_release_lock will be called.
23111         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
23112         _IO_acquire_lock_needs_exceptions_enabled.
23113         (_IO_acquire_lock_clear_flags2): New macro.
23114
23115 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23116
23117         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
23118
23119 2015-12-21  Florian Weimer  <fweimer@redhat.com>
23120
23121         [BZ #19182]
23122         * malloc/arena.c (list_lock): Document lock ordering requirements.
23123         (free_list_lock): New lock.
23124         (ptmalloc_lock_all): Comment on free_list_lock.
23125         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
23126         (detach_arena): Update comment.  free_list_lock is now needed.
23127         (_int_new_arena): Use free_list_lock around detach_arena call.
23128         Acquire arena lock after list_lock.  Add comment, including FIXME
23129         about incorrect synchronization.
23130         (get_free_list): Switch to free_list_lock.
23131         (reused_arena): Acquire free_list_lock around detach_arena call
23132         and attached threads counter update.  Add two FIXMEs about
23133         incorrect synchronization.
23134         (arena_thread_freeres): Switch to free_list_lock.
23135         * malloc/malloc.c (struct malloc_state): Update comments to
23136         mention free_list_lock.
23137
23138 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
23139
23140         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
23141         Remove functions.
23142         (sloww, sloww1): Accept argument to offset quadrant.
23143         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
23144         quadrant.
23145         (__sin, __cos): Consolidate common code into new functions.
23146         (reduce_sincos_1, do_sincos_1): New functions.
23147         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
23148
23149         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
23150         code to new functions.
23151         (reduce_sincos_2, do_sincos_2): New functions.
23152         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
23153
23154         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
23155         common code for sincos.
23156         (__cos) [!IN_SINCOS]: Likewise.
23157         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
23158         New function.
23159         (__sincos): Use it.
23160
23161 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
23162
23163         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
23164         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
23165         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
23166
23167 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
23168
23169         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
23170         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
23171         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
23172         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
23173         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23174         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
23175         index_Prefer_No_VZEROUPPER): New feature.
23176         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
23177         Prefer_No_VZEROUPPER for Knights Landing.
23178
23179 015-12-18  Torvald Riegel  <triegel@redhat.com>
23180
23181         * math/atest-exp2.c (mp_exp_m1): Remove.
23182
23183 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23184
23185         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
23186         syscalls.
23187         (__SYSCALL0): New macro.
23188         (__SYSCALL1): Likewise.
23189         (__SYSCALL2): Likewise.
23190         (__SYSCALL3): Likewise.
23191         (__SYSCALL4): Likewise.
23192         (__SYSCALL5): Likewise.
23193         (__SYSCALL6): Likewise.
23194         (__SYSCALL_CONCAT_X): Likewise.
23195         (__SYSCALL_CONCAT): Likewise.
23196         (__SYSCALL_DIST): Likewise.
23197         (__SYSCALL_CALL): Likewise.
23198
23199 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
23200
23201         [BZ #19363]
23202         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
23203
23204 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23205
23206         [BZ #19375]
23207         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
23208         negative subnormals.
23209
23210 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
23211
23212         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23213         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
23214         (INTERNAL_SYSCALL_NCS): Use it.
23215         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23216
23217 2015-12-16  Florian Weimer  <fweimer@redhat.com>
23218
23219         [BZ #19243]
23220         * malloc/arena.c (get_free_list): Remove assert and adjust
23221         reference count handling.  Add comment about reused_arena
23222         interaction.
23223         (reused_arena): Add comments abount get_free_list interaction.
23224         * malloc/tst-malloc-thread-exit.c: New file.
23225         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
23226         (tst-malloc-thread-exit): Link against libpthread.
23227
23228 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
23229
23230         [BZ #19367]
23231         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
23232         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
23233         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
23234         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
23235         (index_Prefer_MAP_32BIT_EXEC): Likewise.
23236
23237 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
23238
23239         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
23240         Silvermont optimizations for Knights Landing.
23241
23242 2015-12-15  Andreas Schwab  <schwab@suse.de>
23243
23244         [BZ #17197]
23245         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
23246         immediately after emitting SI.
23247         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
23248         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
23249         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
23250         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
23251         * iconvdata/bug-iconv10.c: New file.
23252         * iconvdata/Makefile (tests): Add bug-iconv10.
23253         ($(objpfx)bug-iconv10.out): New rule.
23254
23255 2015-12-15  Florian Weimer  <fweimer@redhat.com>
23256
23257         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
23258         aliasing violation.
23259
23260 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
23261
23262         [BZ #18472]
23263         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
23264         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
23265         conditionals for them.
23266         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
23267         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
23268         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
23269         sys/kdaemon.h.
23270         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
23271         compat-only syscall, obsoleted in glibc 2.23.
23272         (create_module): Likewise.
23273         (get_kernel_syms): Likewise.
23274         (query_module): Likewise.
23275         (uselib): Likewise.
23276         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
23277
23278 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
23279
23280         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
23281         <linux/version.h>.
23282         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
23283         conditional code.
23284         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
23285         and ioshift_name initialization.
23286
23287 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
23288
23289         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
23290         Fix indentation.
23291
23292 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
23293
23294         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
23295
23296 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
23297
23298         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
23299
23300 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
23301             Jakub Wilk  <jwilk@debian.org>
23302
23303         [BZ #19347]
23304         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
23305         to change the group of the device to the tty group.
23306
23307 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
23308
23309         Split large string section; add truncation advice
23310         * manual/examples/strncat.c: Remove.
23311         This example was misleading, as the code would have undefined
23312         behavior if "hello" was longer than SIZE.  Anyway, the manual
23313         shouldn't encourage strncpy+strncat for this sort of thing.
23314         * manual/string.texi (Copying Strings and Arrays): Split into
23315         three sections Copying Strings and Arrays, Concatenating Strings,
23316         and Truncating Strings, as this section was way too long.  All
23317         cross-referenced changed.  Add advice about string-truncation
23318         functions.  Remove misleading strncat example.
23319
23320 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
23321
23322         * manual/nss.texi (NSS Modules Interface): Document
23323         NSS_STATUS_NOTFOUND and SUCCESS.
23324
23325 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
23326
23327         [BZ 18568]
23328         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
23329         201505L, for Unicode 8.
23330
23331 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
23332
23333         * locale/C-translit.h: Regenerate.
23334
23335 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
23336
23337         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
23338         and U+0153.
23339
23340 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
23341
23342         [BZ #19351]
23343         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
23344         expanding log(1+z), compare z rather than its square with epsilon
23345         to determine when to avoid evaluating the expansion.
23346
23347         [BZ #19350]
23348         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
23349         Increase overflow threshold.
23350
23351         [BZ #19349]
23352         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
23353         when small.
23354
23355         * sysdeps/unix/sysv/linux/i386/kernel-features.h
23356         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
23357         New macro.
23358         [__LINUX_KERNEL_VERSION >= 0x040300]
23359         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
23360         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
23361         Likewise.
23362         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
23363         Likewise.
23364         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
23365         Likewise.
23366         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
23367         Likewise.
23368         [__LINUX_KERNEL_VERSION >= 0x040300]
23369         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
23370         [__LINUX_KERNEL_VERSION >= 0x040300]
23371         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
23372         [__LINUX_KERNEL_VERSION >= 0x040300]
23373         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
23374         [__LINUX_KERNEL_VERSION >= 0x040300]
23375         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
23376         [__LINUX_KERNEL_VERSION >= 0x040300]
23377         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
23378         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
23379         Likewise.
23380         [__LINUX_KERNEL_VERSION >= 0x040300]
23381         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
23382         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
23383         Likewise.
23384         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
23385         Likewise.
23386         [__LINUX_KERNEL_VERSION >= 0x040300]
23387         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
23388         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
23389         Likewise.
23390         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
23391         Likewise.
23392         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
23393         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
23394         Likewise.
23395         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
23396         Likewise.
23397         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
23398         Likewise.
23399         [__LINUX_KERNEL_VERSION >= 0x040300]
23400         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
23401         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
23402         Likewise.
23403         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
23404         Likewise.
23405         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
23406         Likewise.
23407         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
23408         Likewise.
23409         [__LINUX_KERNEL_VERSION >= 0x040300]
23410         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
23411         [__LINUX_KERNEL_VERSION >= 0x040300]
23412         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
23413         [__LINUX_KERNEL_VERSION >= 0x040300]
23414         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
23415         [__LINUX_KERNEL_VERSION >= 0x040300]
23416         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
23417         [__LINUX_KERNEL_VERSION >= 0x040300]
23418         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
23419         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
23420         Likewise.
23421         [__LINUX_KERNEL_VERSION >= 0x040300]
23422         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
23423         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
23424         Likewise.
23425         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
23426         Likewise.
23427         [__LINUX_KERNEL_VERSION >= 0x040300]
23428         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
23429         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
23430         Likewise.
23431         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
23432         Likewise.
23433         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23434         (__ASSUME_SOCKET_SYSCALL): Likewise.
23435         (__ASSUME_BIND_SYSCALL): Likewise.
23436         (__ASSUME_CONNECT_SYSCALL): Likewise.
23437         (__ASSUME_LISTEN_SYSCALL): Likewise.
23438         (__ASSUME_ACCEPT_SYSCALL): Likewise.
23439         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
23440         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
23441         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
23442         (__ASSUME_SEND_SYSCALL): Likewise.
23443         (__ASSUME_SENDTO_SYSCALL): Likewise.
23444         (__ASSUME_RECV_SYSCALL): Likewise.
23445         (__ASSUME_RECVFROM_SYSCALL): Likewise.
23446         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
23447         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
23448         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
23449         (__ASSUME_SENDMSG_SYSCALL): Likewise.
23450         (__ASSUME_RECVMSG_SYSCALL): Likewise.
23451         * sysdeps/unix/sysv/linux/sh/kernel-features.h
23452         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
23453         Likewise.
23454         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
23455         Likewise.
23456         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
23457         Likewise.
23458         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
23459         Likewise.
23460         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
23461         Likewise.
23462         [__LINUX_KERNEL_VERSION >= 0x020625]
23463         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
23464         [__LINUX_KERNEL_VERSION >= 0x020625]
23465         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
23466         [__LINUX_KERNEL_VERSION >= 0x020625]
23467         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
23468         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
23469         Likewise.
23470         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
23471         Likewise.
23472         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
23473         Likewise.
23474         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
23475         Likewise.
23476         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
23477         Likewise.
23478         [__LINUX_KERNEL_VERSION >= 0x020625]
23479         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
23480         [__LINUX_KERNEL_VERSION >= 0x020625]
23481         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
23482         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
23483         Likewise.
23484         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
23485         Likewise.
23486
23487 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
23488
23489         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
23490         record the current if the current ABI and CPU support the FP64
23491         extension.
23492         (has-modd-spreg): Define to record the current if the current ABI and
23493         CPU support 32-bit floating point values in odd FPU registers.
23494         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
23495         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
23496         $(has-modd-spreg) equals yes.
23497         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
23498         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
23499         $(has-modd-spreg) equal yes.
23500
23501 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
23502
23503         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
23504         basename.
23505
23506 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
23507
23508         * benchtests/Makefile (bench-math): Move ffs and ffsll...
23509         (bench-string): ... here.
23510         (bench): Add bench-string.
23511         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
23512         to *-benchset to reflect what they are.
23513         (benchset): Adjust.
23514
23515         * benchtests/sincos-inputs: Add inputs from sin-inputs and
23516         cos-inputs.
23517
23518 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
23519
23520         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
23521         __attribute__ ((__simd__)) for vector math function declarations.
23522
23523 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23524
23525         Fix typo in strncat, wcsncat manual entries
23526         * manual/string.texi (Copying and Concatenation): Fix typos in
23527         sample implementations of strncat and wcsncat, by having them use
23528         the old value of the destination length, not the new one.
23529
23530 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
23531
23532         [BZ #16961]
23533         [BZ #16962]
23534         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
23535         string on the stack for strtod.
23536         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
23537         a string on the stack for strtof.
23538         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
23539         constructing a string on the stack for strtold.
23540         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
23541         __strtold_nan to GLIBC_PRIVATE.
23542         * math/test-nan-overflow.c: New file.
23543         * math/test-nan-payload.c: Likewise.
23544         * math/Makefile (tests): Add test-nan-overflow and
23545         test-nan-payload.
23546
23547 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23548
23549         Consistency about byte vs character in string.texi
23550         * manual/string.texi (String and Array Utilities):
23551         Distinguish more carefully among bytes, multibyte characters,
23552         and wide characters.  Use "byte" when talking about C 'char',
23553         to distinguish it more clearly from multibyte characters.
23554         Say "wide character" or "multibyte character" instead of
23555         "character", when a wide or multibyte character is intended.
23556         Similarly for "multibyte string" versus "string".
23557         Define these terms more carefully.
23558
23559 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
23560
23561         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
23562         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
23563         Likewise.
23564         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
23565         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
23566         * sysdeps/sh/math_private.h: New file.
23567         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
23568         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
23569         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
23570         long double function name.
23571         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
23572         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
23573         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
23574         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
23575         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
23576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
23577         Remove __finitel, __isinfl, and __isnanl.
23578         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
23579         Likewise.
23580         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
23582         Remove __finitel.
23583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23584         Likewise.
23585         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23586
23587 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
23588
23589         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
23590         installed libmvec_nonshared.a.
23591
23592 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
23593
23594         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
23595         (sysdep_routines): Likewise.
23596         (sysdep-rtld-routines): Likewise.
23597         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
23598         [$(subdir) = nptl](tests-static): test-get_hwcap-static
23599         * sysdeps/powerpc/Versions: Added new
23600         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
23601         * sysdeps/powerpc/hwcapinfo.c: New file.
23602         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
23603         and parse hwcap, hwcap2 and platform number information.
23604         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
23605         to store HWCAP+HWCAP2 and platform number.
23606         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
23607         for HWCAP+HWCAP2 and platform number in the TCB.
23608         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
23609         the HWCAP, HWCAP2 and platform number in the TCB.
23610         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
23611         (TLS_INIT_TP): Included calls to add the hwcap and
23612         at_platform values in the TCB in TP initialization.
23613         (TLS_DEFINE_INIT_TP): Likewise.
23614         (THREAD_GET_HWCAP): New macro.
23615         (THREAD_SET_HWCAP): Likewise.
23616         (THREAD_GET_AT_PLATFORM): Likewise.
23617         (THREAD_SET_AT_PLATFORM): Likewise.
23618         * sysdeps/powerpc/powerpc32/dl-machine.h:
23619         (dl_platform_init): New function that calls
23620         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
23621         powerpc32.
23622         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
23623         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
23624         this functionality, static linking case.
23625         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
23626         linking case.
23627         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
23628         __parse_hwcap_and_convert_at_platform for the static linking case.
23629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
23630         Included the new __parse_hwcap_and_convert_at_platform symbol in the
23631         ABI list for GLIBC 2.23.
23632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
23633         Likewise.
23634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
23635         Likewise.
23636
23637 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
23638
23639         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
23640         * configure: Regenerate.
23641         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
23642         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
23643
23644 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
23645
23646         * iconvdata/ibm930.c: Add comment explaining encoding uses.
23647         * iconvdata/ibm933.c: Likewise.
23648         * iconvdata/ibm935.c: Likewise.
23649         * iconvdata/ibm937.c: Likewise.
23650         * iconvdata/ibm939.c: Likewise.
23651
23652 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23653
23654         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
23655         pthread_join.
23656         * nptl/tst-cancel21.c (tf): Likewise.
23657
23658 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
23659
23660         [BZ #19313]
23661         * bits/typesizes.h (__CPU_MASK_TYPE): New.
23662         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
23663         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
23664         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
23665         Likewise.
23666         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
23667         Likewise.
23668         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
23669         Likewise.
23670         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
23671         Likewise.
23672         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
23673         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
23674         unsigned long int with __CPU_MASK_TYPE.
23675
23676 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23677
23678         * sysdeps/aarch64/libm-test-ulps: Regenerated.
23679
23680 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
23681
23682         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
23683         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
23684         t512.x.
23685         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
23686
23687 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
23688
23689         [BZ #19214]
23690         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
23691         argument to return extended model.  Update family and model
23692         with extended family and model when family == 0x0f.
23693         (init_cpu_features): Updated.
23694
23695 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23696
23697         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
23698         signed off_t, so 32bit bigger than 2GiB values are fine actually.
23699
23700         * sysdeps/mach/hurd/mmap64.c: New file.
23701
23702 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
23703
23704         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
23705         rights for its main user thread in NEWTASK.
23706
23707 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
23708
23709         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
23710         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
23711
23712 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
23713
23714         [BZ #14259]
23715         * Makeconfig: Rename localedir to complocaledir.
23716         Rename inst_localedir to inst_complocaledir.
23717         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
23718         * config.make.in: Use complocaledir and libc_cv_complocaledir.
23719         * configure.ac: Use libc_cv_complocaledir.
23720         * configure: Regenerate.
23721         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
23722         -DCOMPLOCALEDIR.
23723         * locale/findlocale.c: Use COMPLOCALEDIR.
23724         * locale/loadarchive.c: Likewise.
23725         * locale/programs/locale.c: Likewise.
23726         * locale/programs/localedef.c: Likewise.
23727         * locale/programs/locarchive.c: Likewise.
23728         * localedata/Makefile: Use inst_complocaledir.
23729         * sysdeps/gnu/configure: Regenerate.
23730         * sysdeps/hppa/configure: Regenerate.
23731         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
23732         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
23733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
23734         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
23735         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
23736         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
23737         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
23738
23739 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
23740
23741         [BZ #19058]
23742         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
23743         AS_NEEDED.
23744         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
23745         workaround.
23746         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
23747         libmvec-static-only-routines): Added new file.
23748         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
23749
23750 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23751
23752         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
23753         of interrupted RPC instead of restoring it.
23754
23755         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
23756         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
23757         libc_hidden_def.
23758         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
23759         into initialized data instead of common. Define rtld_hidden_data_def.
23760         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
23761         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
23762         libc_hidden_def.
23763         (if_freenameindex): Add libc_hidden_weak.
23764         (if_nameindex): Add libc_hidden_weak.
23765         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
23766         __open64.
23767         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
23768         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
23769         * sysdeps/mach/nanosleep.c: Include <time.h>
23770         (__nanosleep): Rename to __libc_nanosleep.
23771         (__nanosleep): Add weak_alias.
23772         (nanosleep): Update alias.
23773
23774 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
23775
23776         * stdlib/strtod_nan.c: New file.
23777         * stdlib/strtod_nan_double.h: Likewise.
23778         * stdlib/strtod_nan_float.h: Likewise.
23779         * stdlib/strtod_nan_main.c: Likewise.
23780         * stdlib/strtod_nan_narrow.h: Likewise.
23781         * stdlib/strtod_nan_wide.h: Likewise.
23782         * stdlib/strtof_nan.c: Likewise.
23783         * stdlib/strtold_nan.c: Likewise.
23784         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
23785         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
23786         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
23787         * wcsmbs/wcstod_nan.c: Likewise.
23788         * wcsmbs/wcstof_nan.c: Likewise.
23789         * wcsmbs/wcstold_nan.c: Likewise.
23790         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
23791         strtold_nan.
23792         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
23793         wcstof_nan.
23794         * include/stdlib.h (__strtof_nan): Declare and use
23795         libc_hidden_proto.
23796         (__strtod_nan): Likewise.
23797         (__strtold_nan): Likewise.
23798         (__wcstof_nan): Likewise.
23799         (__wcstod_nan): Likewise.
23800         (__wcstold_nan): Likewise.
23801         * include/wchar.h (____wcstoull_l_internal): Declare.
23802         * stdlib/strtod_l.c: Do not include <ieee754.h>.
23803         (____strtoull_l_internal): Remove declaration.
23804         (STRTOF_NAN): Define macro.
23805         (SET_MANTISSA): Remove macro.
23806         (STRTOULL): Likewise.
23807         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
23808         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
23809         (STRTOF_NAN): Define macro.
23810         (SET_MANTISSA): Remove macro.
23811         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
23812         (SET_MANTISSA): Remove macro.
23813         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
23814         macro.
23815         (SET_MANTISSA): Remove macro.
23816         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
23817         macro.
23818         (SET_MANTISSA): Remove macro.
23819         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
23820         (SET_MANTISSA): Remove macro.
23821         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
23822         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
23823         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
23824
23825         [BZ #19266]
23826         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
23827         upper case and lower case letters inside NAN(), not using TOLOWER.
23828         * stdlib/tst-strtod-nan-locale-main.c: New file.
23829         * stdlib/tst-strtod-nan-locale.c: Likewise.
23830         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
23831         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
23832         Depend on $(gen-locales).
23833         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
23834         * wcsmbs/tst-wcstod-nan-locale.c: New file.
23835         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
23836         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
23837         Depend on $(gen-locales).
23838         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
23839
23840 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
23841
23842         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
23843
23844         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
23845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
23846         __finitel, __isinfl, and __isnanl.
23847         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
23848         Likewise.
23849         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23850         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
23851         __finitel.
23852         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23853         Likewise.
23854         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23855
23856 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
23857
23858         * malloc/memusage.c (me): Remove redundant getenv call.
23859
23860 2015-10-24  Florian Weimer  <fweimer@redhat.com>
23861
23862         [BZ #19143]
23863         [BZ #19164]
23864         * nptl/check-cpuset.h: Remove.
23865         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23866         Remove CPU set size check.
23867         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23868         Likewise.
23869         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
23870         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
23871         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
23872         (__pthread_setaffinity_new): Remove CPU set size check.
23873         * sysdeps/unix/sysv/linux/sched_setaffinity.c
23874         (__kernel_cpumask_size): Remove.
23875         (__sched_setaffinity_new): Remove CPU set size check.
23876         * manual/threads.texi (Default Thread Attributes): Remove stale
23877         reference to check_cpuset_attr, determine_cpumask_size in comment.
23878         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
23879         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
23880         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
23881         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
23882         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
23883         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
23884         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
23885         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
23886         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
23887         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
23888         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
23889         skeleton test file.
23890         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
23891         tst-affinity-pid.
23892
23893 2015-11-24  Florian Weimer  <fweimer@redhat.com>
23894
23895         * scripts/update-abilist.sh: New file.
23896         * Makefile (+subdir_targets): Add subdir_update-all-abi.
23897         * Makerules (update-all-abi-%, update-all-abi)
23898         (subdir_update-all-abi): New targets.
23899         * elf/Makefile (update-all-abi): New target.
23900
23901 2015-11-24  Florian Weimer  <fweimer@redhat.com>
23902
23903         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
23904         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
23905         (__libc_lock_define_initialized): Use it.
23906         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
23907         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
23908         * malloc/malloc.c (main_arena): Likewise.
23909         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
23910         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
23911
23912 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
23913
23914         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
23915         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
23916         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
23917         (PTRACE_O_MASK): Update value.
23918         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
23919         New value in enum __ptrace_setoptions.
23920         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
23921         (PTRACE_O_MASK): Update value.
23922         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
23923         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
23924         (PTRACE_O_MASK): Update value.
23925         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
23926         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
23927         (PTRACE_O_MASK): Update value.
23928         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
23929         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
23930         (PTRACE_O_MASK): Update value.
23931         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
23932         New value in enum __ptrace_setoptions.
23933         (PTRACE_O_MASK): Update value.
23934         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
23935         New value in enum __ptrace_setoptions.
23936         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
23937         (PTRACE_O_MASK): Update value.
23938
23939         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
23940         New macro.
23941         (PACKET_AUXDATA): Likewise.
23942         (PACKET_ORIGDEV): Likewise.
23943         (PACKET_VERSION): Likewise.
23944         (PACKET_HDRLEN): Likewise.
23945         (PACKET_RESERVE): Likewise.
23946         (PACKET_TX_RING): Likewise.
23947         (PACKET_LOSS): Likewise.
23948         (PACKET_VNET_HDR): Likewise.
23949         (PACKET_TX_TIMESTAMP): Likewise.
23950         (PACKET_TIMESTAMP): Likewise.
23951         (PACKET_FANOUT): Likewise.
23952         (PACKET_TX_HAS_OFF): Likewise.
23953         (PACKET_QDISC_BYPASS): Likewise.
23954         (PACKET_ROLLOVER_STATS): Likewise.
23955         (PACKET_FANOUT_DATA): Likewise.
23956         (PACKET_MR_UNICAST): Likewise.
23957
23958         [BZ #19242]
23959         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
23960         (TOUPPER): Likewise.
23961         * stdlib/tst-strtol-locale-main.c: New file.
23962         * stdlib/tst-strtol-locale.c: Likewise.
23963         * stdlib/Makefile (tests): Add tst-strtol-locale.
23964         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
23965         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
23966         Depend on $(gen-locales).
23967         * wcsmbs/tst-wcstol-locale.c: New file.
23968         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
23969         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
23970         tr_TR.ISO-8859-9.
23971         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
23972         Depend on $(gen-locales).
23973
23974 2015-11-20  Roland McGrath  <roland@hack.frob.com>
23975
23976         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
23977         __glibc_likely instead of __builtin_expect.  After falling back to
23978         dyncode_create in a non-ET_DYN case, use the allocate_code_data
23979         system interface to register the code pages as occupied.
23980
23981 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
23982
23983         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
23984         [!ARM_MATH_PRIVATE_H].
23985         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
23986         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
23987         [!HPPA_MATH_PRIVATE_H].
23988         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
23989         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
23990         to [!I386_MATH_PRIVATE_H].
23991         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
23992         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
23993         Change guard to [!M68K_MATH_PRIVATE_H].
23994         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
23995         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
23996         guard to [!MICROBLAZE_MATH_PRIVATE_H].
23997         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
23998         macro.
23999         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
24000         [!MIPS_MATH_PRIVATE_H].
24001         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
24002         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
24003         [!NIO2_MATH_PRIVATE_H].
24004         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
24005         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
24006         [!TILE_MATH_PRIVATE_H].
24007         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
24008
24009         [BZ #15421]
24010         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
24011         initialize with 0 and define as weak alias of __signgam.
24012         * include/math.h [!_ISOMAC] (__signgam): Declare.
24013         * math/Makefile (libm-calls): Add w_lgamma_compat.
24014         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
24015         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
24016         test-signgam-ullong-init.
24017         (tests-static): Add test-signgam-uchar-static,
24018         test-signgam-uchar-init-static, test-signgam-uint-static,
24019         test-signgam-uint-init-static, test-signgam-ullong-static and
24020         test-signgam-ullong-init-static.
24021         (CFLAGS-test-signgam-uchar.c): New variable.
24022         (CFLAGS-test-signgam-uchar-init.c): Likewise.
24023         (CFLAGS-test-signgam-uchar-static.c): Likewise.
24024         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24025         (CFLAGS-test-signgam-uint.c): Likewise.
24026         (CFLAGS-test-signgam-uint-init.c): Likewise.
24027         (CFLAGS-test-signgam-uint-static.c): Likewise.
24028         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24029         (CFLAGS-test-signgam-ullong.c): Likewise.
24030         (CFLAGS-test-signgam-ullong-init.c): Likewise.
24031         (CFLAGS-test-signgam-ullong-static.c): Likewise.
24032         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24033         * math/Versions (libm): Add GLIBC_2.23.
24034         * math/lgamma-compat.h: New file.
24035         * math/test-signgam-main.c: Likewise.
24036         * math/test-signgam-uchar-init-static.c: Likewise.
24037         * math/test-signgam-uchar-init.c: Likewise.
24038         * math/test-signgam-uchar-static.c: Likewise.
24039         * math/test-signgam-uchar.c: Likewise.
24040         * math/test-signgam-uint-init-static.c: Likewise.
24041         * math/test-signgam-uint-init.c: Likewise.
24042         * math/test-signgam-uint-static.c: Likewise.
24043         * math/test-signgam-uint.c: Likewise.
24044         * math/test-signgam-ullong-init-static.c: Likewise.
24045         * math/test-signgam-ullong-init.c: Likewise.
24046         * math/test-signgam-ullong-static.c: Likewise.
24047         * math/test-signgam-ullong.c: Likewise.
24048         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
24049         wrapper of w_lgamma_main.c.
24050         * math/w_lgamma_compat.c: New file.
24051         * math/w_lgamma_compatf.c: Likewise.
24052         * math/w_lgamma_compatl.c: Likewise.
24053         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
24054         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
24055         defining compatibility symbols.
24056         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
24057         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
24058         wrapper of w_lgammaf_main.c.
24059         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
24060         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
24061         defining compatibility symbols.
24062         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
24063         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
24064         wrapper of w_lgammal_main.c.
24065         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
24066         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
24067         defining compatibility symbols.
24068         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
24069         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
24070         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
24071         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
24072         <lgamma-compat.h>.
24073         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
24074         (__ieee754_gamma): Define as alias.
24075         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
24076         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
24077         <lgamma-compat.h>.
24078         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
24079         (__ieee754_gammaf): Define as alias.
24080         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
24081         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
24082         <lgamma-compat.h>.
24083         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
24084         (__ieee754_gammal): Define as alias.
24085         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
24086         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
24087         <math/w_lgamma_compat.c>.
24088         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
24089         Define as alias of __lgamma_compat and use in defining lgammal.
24090         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
24091         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
24092         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
24093         (USE_AS_COMPAT): New macro.
24094         (LGAMMA_OLD_VER): Undefine and redefine.
24095         (lgammal): Do not define here.
24096         (gammal): Only define here if [GAMMA_ALIAS].
24097         * conform/linknamespace.pl (@whitelist): Remove signgam.
24098         * sysdeps/nacl/libm.abilist: Update.
24099         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24100         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24101         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24102         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24103         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24104         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24105         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24106         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24107         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24108         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24109         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24110         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24112         Likewise.
24113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24114         Likewise.
24115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24116         Likewise.
24117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24118         Likewise.
24119         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24120         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24121         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24122         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24123         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24124         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24125         Likewise.
24126         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24127         Likewise.
24128         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24129         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24130         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24131
24132 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24133
24134         [BZ #16364]
24135         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
24136         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
24137
24138 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
24139
24140         * sysdeps/s390/fpu/bits/mathinline.h:
24141         Use __asm__ [__volatile__] instead of asm [volatile].
24142         * sysdeps/s390/abort-instr.h: Likewise.
24143         * sysdeps/s390/atomic-machine.h: Likewise.
24144         * sysdeps/s390/bits/string.h: Likewise.
24145         * sysdeps/s390/dl-tls.h: Likewise.
24146         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24147         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24148         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24149         * sysdeps/s390/fpu/fesetround.c: Likewise.
24150         * sysdeps/s390/fpu/fpu_control.h: Likewise.
24151         * sysdeps/s390/fpu/s_fma.c: Likewise.
24152         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
24153         * sysdeps/s390/memusage.h: Likewise.
24154         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
24155         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
24156         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
24157         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
24158         * sysdeps/s390/nptl/tls.h: Likewise.
24159         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
24160         * sysdeps/s390/s390-32/backtrace.c: Likewise.
24161         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
24162         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
24163         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24164         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
24165         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
24166         * sysdeps/s390/s390-64/backtrace.c: Likewise.
24167         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
24168         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
24169         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
24170         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24171         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
24172         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
24173         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
24174         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
24175         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
24176         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
24177         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
24178         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24179         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
24180         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24181         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
24182
24183 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24184             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
24185
24186         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
24187         Add lwarx hint, and use macro for acquire instruction.
24188         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
24189         Likewise.
24190         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
24191         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
24192         update to use new atomic macros.
24193
24194 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
24195
24196         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
24197         (__lll_trylock_elision): Fix setting of adapt_count.
24198         * sysdeps/unix/sysv/linux/powerpc/htm.h
24199         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
24200         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
24201         (_ABORT_SYSCALL): Renumber, and clarify definition.
24202         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
24203
24204 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
24205
24206         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
24207         after system headers to prevent MIN/MAX redefinition.  Define
24208         HAVE_ALLOCA to preserve builtin alloca usage.
24209
24210 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
24211
24212         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
24213         static and don't set or restore rounding.
24214         (__cos)[IN_SINCOS]: Likewise.
24215         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
24216         (__sincos): Set and restore rounding mode.  Remove check for infinite
24217         or NaN input.
24218
24219         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
24220
24221         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
24222         as used.
24223
24224 2015-11-16  Florian Weimer  <fweimer@redhat.com>
24225
24226         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
24227
24228 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24229
24230         * config.make.in (have-glob-dat-reloc): New.
24231         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
24232         target supports GLOB_DAT relocaton. AC_SUBST.
24233         * configure: Regenerated.
24234         * elf/Makefile (tests): Add tst-prelink.
24235         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
24236         (tst-prelink-ENV): New.
24237         ($(objpfx)tst-prelink-conflict.out): Likewise.
24238         ($(objpfx)tst-prelink-cmp.out): Likewise.
24239         * sysdeps/x86/tst-prelink.c: Moved to ...
24240         * elf/tst-prelink.c: Here.
24241         * sysdeps/x86/tst-prelink.exp: Moved to ...
24242         * elf/tst-prelink.exp: Here.
24243         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
24244         (tst-prelink-ENV): Removed.
24245         ($(objpfx)tst-prelink-conflict.out): Likewise.
24246         ($(objpfx)tst-prelink-cmp.out): Likewise.
24247         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
24248
24249 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
24250
24251         [BZ #14551]
24252         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
24253         (__mpn_construct_long_double): If high part overflows to infinity,
24254         set errno and recompute overflowed result of the correct sign.
24255         * sysdeps/ieee754/ldbl-128ibm/Makefile
24256         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
24257         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
24258         $(libm).
24259         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
24260
24261 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
24262
24263         [BZ #15479]
24264         [BZ #19238]
24265         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
24266         floating-point state after first operation on input.  Restore full
24267         state rather than just rounding mode.
24268         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
24269         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
24270         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
24271
24272         [BZ #19235]
24273         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
24274         add 0.5 to integer arguments.
24275         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
24276         Likewise.
24277         (.LC2): New object.
24278
24279 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
24280
24281         * scripts/pylintrc (reports): Set to no.
24282
24283 2015-11-10  Roland McGrath  <roland@hack.frob.com>
24284
24285         * elf/dl-load.c (open_verify): Take new argument FD.
24286         Skip __open call if passed FD is not -1.
24287         (_dl_map_object, open_path): Update callers.
24288         * elf/dl-sysdep-open.h: New file.
24289         * elf/dl-load.c: Include it.
24290         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
24291         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
24292         * sysdeps/nacl/dl-sysdep-open.h: New file.
24293         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
24294         from libc to rtld.
24295
24296 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
24297
24298         [BZ #19228]
24299         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
24300         and restore full floating-point state.
24301         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
24302         Likewise.
24303         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
24304         Likewise.
24305         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
24306         Likewise.
24307         * math/test-nearbyint-except-2.c: New file.
24308         * math/Makefile (tests): Add test-nearbyint-except-2.
24309
24310 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
24311
24312         [BZ #19178]
24313         * sysdeps/x86/Makefile (tests): Add tst-prelink.
24314         (tst-prelink-ENV): New.
24315         ($(objpfx)tst-prelink-conflict.out): Likewise.
24316         ($(objpfx)tst-prelink-cmp.out): Likewise.
24317         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
24318         * sysdeps/x86/tst-prelink.c: New file.
24319         * sysdeps/x86/tst-prelink.exp: Likewise.
24320
24321 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
24322
24323         * math/auto-libm-test-in: Add another test of pow.
24324         * math/auto-libm-test-out: Regenerated.
24325         * math/libm-test.inc (pow_test_data): Add another test.
24326
24327 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24328
24329         [BZ #19219]
24330         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
24331         weak_alias to nearbyintl.
24332
24333 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
24334
24335         * sysdeps/aarch64/bits/string.h: New file.
24336         (_STRING_ARCH_unaligned): Define.
24337
24338 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
24339
24340         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
24341         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24342         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
24343         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
24344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
24345
24346 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
24347
24348         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
24349         for original name of the DSO.  Add it to the name list of the DSO
24350         if it is actually given.
24351         (_dl_map_object): Keep track of whether an audit module rewrote
24352         the file name.  If yes, pass the original name to
24353         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
24354         debugging is enabled, log the change of the file name.
24355         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
24356         _dl_map_object_from_fd.
24357         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
24358         * elf/tst-audit11.c: New file
24359         * elf/tst-auditmod11.c: New file.
24360         * elf/tst-audit11mod1.c: New file.
24361         * elf/tst-audit11mod2.c: New file.
24362         * elf/tst-audit11mod2.map: New file.
24363         * elf/tst-audit12.c: New file
24364         * elf/tst-auditmod12.c: New file.
24365         * elf/tst-audit12mod1.c: New file.
24366         * elf/tst-audit12mod2.c: New file.
24367         * elf/tst-audit12mod2.map: New file.
24368         * elf/tst-audit12mod3.c: New file.
24369
24370 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
24371
24372         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
24373         Don't create weak aliases,
24374         because versioned symbols are created later.
24375         * sysdeps/s390/s390-32/setjmp.S
24376         (setjmp, _setjmp): Remove weak and rename to an unique name
24377         in SHARED case due to existing versioned symbols.
24378         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24379         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
24380         (getcontext): Create weak alias only in non SHARED case.
24381         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
24382
24383 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
24384
24385         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
24386         (__ASSUME_*_SYSCALL) Define new macros.
24387         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
24388         Remove socketcall syscalls.
24389         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
24390         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
24391         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
24392         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
24393         * sysdeps/unix/sysv/linux/send.c (__libc_send):
24394         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
24395
24396 2015-11-09  Florian Weimer  <fweimer@redhat.com>
24397
24398         [BZ #12926]
24399         Terminate process on invalid netlink response.
24400         * sysdeps/unix/sysv/linux/netlinkaccess.h
24401         (__netlink_assert_response): Declare.
24402         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
24403         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
24404         (sysdep_routines): Add netlink_assert_response.
24405         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
24406         __netlink_assert_response.
24407         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
24408         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
24409         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
24410         __netlink_assert_response.
24411
24412 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24413
24414         [BZ #19178]
24415         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
24416         (RTYPE_CLASS_PLT): Likewise.
24417         (RTYPE_CLASS_COPY): Likewise.
24418         (RTYPE_CLASS_TLS): Likewise.
24419         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
24420         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
24421         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
24422         DL_DEBUG_PRELINK.
24423
24424 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
24425
24426         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
24427         calls with argument -0.5.
24428         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
24429
24430         * configure.ac (libc_cv_z_nodelete): Remove configure test.
24431         (libc_cv_z_nodlopen): Likewise.
24432         (libc_cv_z_initfirst): Likewise.
24433         * configure: Regenerated.
24434
24435 2015-11-06  Florian Weimer  <fweimer@redhat.com>
24436
24437         Simplify abilist format to be line-based.
24438         * scripts/abilist.awk: Collect descriptors in the descs variable.
24439         (emit): Write descs variable and sort it
24440         externally, with sort.
24441         * sysdeps/**/*.abilist: Convert to new format.
24442
24443 2015-11-06  Mark Wielaard  <mjw@redhat.com>
24444
24445         [BZ #11460]
24446         * io/Makefile (routines): Add fts64.
24447         (tests): Add tst-fts and tst-fts-lfs.
24448         (CFLAGS-fts64.c): New.
24449         * io/Versions (GLIBC_2.23): New.
24450         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
24451         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
24452         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
24453         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
24454         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
24455         (FTSENT64): Likewise.
24456         (fts64_children): Likewise.
24457         (fts64_close): Likewise.
24458         (fts64_open): Likewise.
24459         (fts64_read): Likewise.
24460         (fts64_set): Likewise.
24461         * io/fts64.c: New file.
24462         * io/tst-fts.c: New test.
24463         * io/tst-fts-lfs.c: Likewise.
24464         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
24465         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
24466         fts64_set.
24467         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24468         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24469         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24470         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24471         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24472         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24473         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24474         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24475         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24476         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
24477         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24478         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24479         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24481         Likewise.
24482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24483         Likewise.
24484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
24485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
24486         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24487         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24488         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24489         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24490         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24491         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
24492         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
24493         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24494         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24495         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24496         * sysdeps/wordsize-64/fts.c: New file.
24497         * sysdeps/wordsize-64/fts64.c: Likewise.
24498         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
24499         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
24500         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
24501         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
24502
24503 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
24504
24505         * math/libm-test.inc (NON_FINITE): New macro.
24506         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
24507         * math/gen-libm-test.pl (show_exceptions): Add argument
24508         $non_finite.
24509         (parse_args): Update call to show_exceptions.
24510         * math/test-math-finite.h: New file.
24511         * math/test-math-no-finite.h: Likewise.
24512         * math/test-double-finite.c: Likewise.
24513         * math/test-float-finite.c: Likewise.
24514         * math/test-ldouble-finite.c: Likewise.
24515         * math/test-double.c: Include "test-math-no-finite.h".
24516         * math/test-float.c: Include "test-math-no-finite.h".
24517         * math/test-ldouble.c: Include "test-math-no-finite.h".
24518         * math/test-math-inline.h (TEST_FINITE): New macro.
24519         * math/test-math-vector.h (TEST_FINITE): Likewise.
24520         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
24521         (libm-tests): Add test-float-finite and test-double-finite.
24522         ($(objpfx)test-float-finite.o): New dependency on
24523         $(objpfx)libm-test.stmp.
24524         ($(objpfx)test-double-finite.o): Likewise.
24525         ($(objpfx)test-ldouble-finite.o): Likewise.
24526         (libm-test-no-inline-cflags): New variable.
24527         (libm-test-finite-cflags): Likewise.
24528         (CFLAGS-test-float-finite.c): Likewise.
24529         (CFLAGS-test-double-finite.c): Likewise.
24530         (CFLAGS-test-ldouble-finite.c): Likewise.
24531         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
24532         (CFLAGS-test-double.c): Likewise.
24533         (CFLAGS-test-ldouble.c): Likewise.
24534
24535 2015-11-05  Roland McGrath  <roland@hack.frob.com>
24536
24537         * io/fcntl.c (__fcntl): Add ... to prototype.
24538         * misc/ioctl.c (__ioctl): Likewise.
24539         * misc/syscall.c (syscall): Likewise.
24540
24541 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
24542
24543         * scripts/list-fixed-bugs.py: New file.
24544
24545         [BZ #19213]
24546         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
24547         returned for argument 1.
24548         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
24549         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
24550         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
24551         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
24552         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
24553         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
24554
24555         [BZ #19211]
24556         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
24557         __USE_XOPEN], not if [!__USE_ISOC99].
24558         (lgammaf): Likewise.
24559         (lgammal): Likewise.
24560         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
24561         (gammaf): Likewise.
24562         (gammal): Likewise.
24563         * math/test-signgam-finite-c11.c: New file.
24564         * math/test-signgam-finite-c99.c: Likewise.
24565         * math/test-signgam-finite.c: Likewise.
24566         * math/Makefile (tests): Add test-signgam-finite,
24567         test-signgam-finite-c99 and test-signgam-finite-c11.
24568         (CFLAGS-test-signgam-finite.c): New variable.
24569         (CFLAGS-test-signgam-finite-c99.c): Likewise.
24570         (CFLAGS-test-signgam-finite-c11.c): Likewise.
24571
24572         [BZ #19212]
24573         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
24574         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
24575         500].
24576         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
24577         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
24578         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
24579         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
24580         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
24581         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
24582         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
24583         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
24584         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
24585         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
24586
24587         [BZ #19209]
24588         * math/bits/math-finite.h (ldexp): Remove declaration.
24589         (ldexpf): Likewise.
24590         (ldexpl): Likewise.
24591
24592         [BZ #19205]
24593         * math/bits/math-finite.h (acosf): Condition declaration on
24594         [__USE_ISOC99].
24595         (acosl): Likewise.
24596         (acoshf): Likewise.
24597         (acoshl): Likewise.
24598         (asinf): Likewise.
24599         (asinl): Likewise.
24600         (atan2f): Likewise.
24601         (atan2l): Likewise.
24602         (atanhf): Likewise.
24603         (atanhl): Likewise.
24604         (coshf): Likewise.
24605         (coshl): Likewise.
24606         (expf): Likewise.
24607         (expl): Likewise.
24608         (fmodf): Likewise.
24609         (fmodl): Likewise.
24610         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
24611         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
24612         (j0l): Likewise.
24613         (y0f): Likewise.
24614         (y0l): Likewise.
24615         (j1f): Likewise.
24616         (j1l): Likewise.
24617         (y1f): Likewise.
24618         (y1l): Likewise.
24619         (jnf): Likewise.
24620         (jnl): Likewise.
24621         (ynf): Likewise.
24622         (ynl): Likewise.
24623         (lgammaf_r): Condition declaration on [__USE_ISOC99].
24624         (lgammal_r): Likewise.
24625         (__lgamma_r_finite): New declaration.
24626         (__lgammaf_r_finite): Likewise.
24627         (__lgammal_r_finite): Likewise.
24628         (lgamma): Use __lgamma_r_finite.
24629         (lgammaf): Condition definition on [__USE_ISOC99].  Use
24630         __lgammaf_r_finite.
24631         (lgammal): Condition definition on [__USE_ISOC99].  Use
24632         __lgammal_r_finite.
24633         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
24634         __lgamma_r_finite.
24635         (gammaf): Condition definition on [__USE_ISOC99].  Use
24636         __lgammaf_r_finite.
24637         (gammal): Condition definition on [__USE_ISOC99].  Use
24638         __lgammal_r_finite.
24639         (logf): Condition declaration on [__USE_ISOC99].
24640         (logl): Likewise.
24641         (log10f): Likewise.
24642         (log10l): Likewise.
24643         (ldexpf): Likewise.
24644         (ldexpl): Likewise.
24645         (powf): Likewise.
24646         (powl): Likewise.
24647         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
24648         __USE_ISOC99].
24649         (remainderf): Condition declaration on [__USE_ISOC99].
24650         (remainderl): Likewise.
24651         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
24652         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
24653         (scalbl): Likewise.
24654         (sinhf): Condition declaration on [__USE_ISOC99].
24655         (sinhl): Likewise.
24656         (sqrtf): Likewise.
24657         (sqrtl): Likewise.
24658
24659 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
24660
24661         * sysdeps/arm/atomic-machine.h
24662         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
24663         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
24664         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
24665         Remove conditional code.
24666         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
24667         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
24668         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
24669         Change conditional to [__ASSEMBLER__].
24670         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
24671         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
24672         [!__ASSEMBLER__].
24673         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
24674         code.
24675         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
24676         conditional macro definitions.
24677         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
24678         (__arch_compare_and_exchange_val_16_acq): Likewise.
24679         (__arch_compare_and_exchange_val_32_acq): Likewise.
24680         (atomic_exchange_and_add): Likewise.
24681         (atomic_add): Likewise.
24682         (atomic_add_negative): Likewise.
24683         (atomic_add_zero): Likewise.
24684         (atomic_bit_set): Likewise.
24685         (atomic_bit_test_set): Likewise.
24686         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
24687         code unconditional.
24688         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
24689
24690         * math/test-math-errno.h: New file.
24691         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
24692         empty.
24693         (TEST_ERRNO): New macro.
24694         (TEST_EXCEPTIONS): Likewise.
24695         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
24696         (TEST_EXCEPTIONS): Likewise.
24697         * math/test-math-vector.h (TEST_ERRNO): Likewise.
24698         * math/test-double.c: Include "test-math-errno.h".
24699         * math/test-float.c: Likewise.
24700         * math/test-ldouble.c: Likewise.
24701         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
24702         code unconditional.
24703         (test_exceptions): Only run code if TEST_EXCEPTIONS.
24704         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
24705         unconditional.
24706         (test_errno): Only run code if TEST_ERRNO.
24707         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
24708
24709 2015-11-04  Florian Weimer  <fweimer@redhat.com>
24710
24711         * nptl/tst-once5.cc: Remove attribution.
24712
24713 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
24714
24715         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
24716         sqrt, tan, tanh, y0, y1 and yn.
24717         * math/auto-libm-test-out: Regenerated.
24718         * math/libm-test.inc (scalb_test_data): Add more tests.
24719         (scalbn_test_data): Likewise.
24720         (scalbln_test_data): Likewise.
24721         (signbit_test_data): Likewise.
24722         (sin_test_data): Likewise.
24723         (sincos_test_data): Likewise.
24724         (sinh_test_data): Likewise.
24725         (sqrt_test_data): Likewise.
24726         (tan_test_data): Likewise.
24727         (tanh_test_data): Likewise.
24728         (tgamma_test_data): Likewise.
24729         (y0_test_data): Likewise.
24730         (y1_test_data): Likewise.
24731         (yn_test_data): Likewise.
24732         (significand_test_data): Likewise.
24733         * sysdeps/i386/fpu/libm-test-ulps: Update.
24734
24735 2015-11-03  David Kastrup  <dak@gnu.org>
24736
24737         [BZ #18604]
24738         * assert/assert.h (assert): Don't macro-expand failed assertion
24739         expression in error message.
24740         * malloc/malloc.c (assert): Likewise.
24741
24742 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
24743
24744         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
24745         test.
24746         * configure: Regenerated.
24747
24748 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
24749
24750         * math/libm-test.inc (modf_test_data): Add more tests.
24751         (nearbyint_test_data): Likewise.
24752         (nextafter_test_data): Likewise.
24753         (nexttoward_test_data): Likewise.
24754         (pow_test_data): Likewise.
24755         (remainder_test_data): Likewise.
24756         (remquo_test_data): Likewise.
24757         (rint_test_data): Likewise.
24758
24759         [BZ #19201]
24760         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
24761         Check for zero remainder in case of large exponents and ensure
24762         correct sign of result in that case.
24763         * math/libm-test.inc (remainder_test_data): Add more tests.
24764
24765         [BZ #6799]
24766         * math/s_nextafter.c: Include <errno.h>.
24767         (__nextafter): Set errno on overflow and underflow.
24768         * math/s_nexttowardf.c: Include <errno.h>.
24769         (__nexttowardf): Set errno on overflow and underflow.
24770         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
24771         (__nextafterl): Set errno on overflow and underflow.
24772         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
24773         (__nexttoward): Set errno on overflow and underflow.
24774         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
24775         (__nexttowardf): Set errno on overflow and underflow.
24776         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
24777         (__nextafterf): Set errno on overflow and underflow.
24778         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
24779         (__nextafterl): Set errno on overflow and underflow.
24780         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
24781         (__nexttoward): Set errno on overflow and underflow.
24782         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
24783         (__nexttowardf): Set errno on overflow and underflow.
24784         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
24785         (__nextafterl): Set errno on overflow and underflow.
24786         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
24787         (__nexttoward): Set errno on overflow and underflow.
24788         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
24789         (__nexttowardf): Set errno on overflow and underflow.
24790         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
24791         (__nexttoward): Set errno on overflow and underflow.
24792         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
24793         (__nexttowardf): Set errno on overflow and underflow.
24794         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
24795         (__nldbl_nexttowardf): Set errno on overflow and underflow.
24796         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
24797         (__nextafterl): Set errno on overflow and underflow.
24798         * math/libm-test.inc (nextafter_test_data): Do not allow errno
24799         setting to be missing on overflow.  Add more tests.
24800         (nexttoward_test_data): Likewise.
24801
24802         * configure.ac (libc_cv_initfini_array): Remove configure test.
24803         * configure: Regenerated.
24804
24805 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
24806
24807         [BZ #19189]
24808         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
24809         non-finite argument handle arguments with negative sign.
24810
24811         * math/libm-test.inc (j0_test_data): Do not test sign of zero
24812         result from infinite argument.
24813         (j1_test_data): Likewise.
24814         (jn_test_data): Likewise.
24815         (y0_test_data): Likewise.
24816         (y1_test_data): Likewise.
24817         (yn_test_data): Likewise.
24818
24819         [BZ #16171]
24820         * math/w_remainder.c (drem): Define as weak alias of __remainder.
24821         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
24822         * math/w_remainderf.c (dremf): Define as weak alias of
24823         __remainderf.
24824         * math/w_remainderl.c (dreml): Define as weak alias of
24825         __remainderl.
24826         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
24827         __remainder.
24828         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
24829         __remainderf.
24830         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
24831         __remainderl.
24832         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
24833         weak alias of remainderl.
24834         * sysdeps/ieee754/ldbl-opt/w_remainder.c
24835         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
24836         alias of __remainder.
24837         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
24838         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
24839         strong alias of __remainderl.
24840         (dreml): Use long_double_symbol.
24841         * math/Makefile (libm-calls): Remove w_drem.
24842         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
24843         (CFLAGS-nldbl-drem.c): Remove variable.
24844         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
24845         * math/w_drem.c: Remove file.
24846         * math/w_dremf.c: Likewise.
24847         * math/w_dreml.c: Likewise.
24848         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
24849         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
24850         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
24851
24852         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
24853         * sysdeps/i386/configure: Regenerated.
24854         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
24855         * sysdeps/x86_64/configure: Regenerated.
24856
24857         * configure.ac (libc_cv_asm_protected_directive): Remove configure
24858         test.
24859         (libc_cv_visibility_attribute): Likewise.
24860         (libc_cv_protected_data): Test unconditionally.
24861         (libc_cv_broken_visibility_attribute): Remove configure test.
24862         (libc_cv_have_sdata_section): Test unconditionally.
24863         * configure: Regenerated.
24864
24865         * include/libc-internal.h (libc_max_align_t): Remove typedef.
24866         * include/scratch_buffer.h: Include <stddef.h> instead of
24867         <libc-internal.h>.
24868         (struct scratch_buffer): Use max_align_t instead of
24869         libc_max_align_t.
24870
24871 2015-10-29  Florian Weimer  <fweimer@redhat.com>
24872
24873         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
24874         instead of extend_alloca.  Change control flow to avoid a goto.
24875         Remove assert which is trivially always true.
24876
24877 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
24878
24879         [BZ #16068]
24880         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
24881         (FE_ALL_EXCEPT_X86): New macro.
24882         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
24883         FE_ALL_EXCEPT.  Ensure precision control is included in
24884         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
24885         handle "denormal operand exception" and clear FZ and DAZ bits.
24886         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
24887         (FE_ALL_EXCEPT_X86): New macro.
24888         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
24889         FE_ALL_EXCEPT.  Ensure precision control is included in
24890         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
24891         handle "denormal operand exception" and clear FZ and DAZ bits.
24892         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
24893         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
24894         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
24895         test-fenv-x87 and test-fenv-sse-2.
24896         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
24897
24898         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
24899         * math/test-double.h (BUILD_COMPLEX): New macro.
24900         * math/test-float.h (BUILD_COMPLEX): Likewise.
24901         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
24902
24903         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
24904         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
24905         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
24906         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
24907         instead of DBL_DENORM_MIN in comment.
24908         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
24909         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
24910         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
24911         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
24912         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
24913         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
24914
24915 2015-10-28  Florian Weimer  <fweimer@redhat.com>
24916
24917         [BZ #19048]
24918         * malloc/malloc.c (struct malloc_state): Update comment.  Add
24919         attached_threads member.
24920         (main_arena): Initialize attached_threads.
24921         * malloc/arena.c (list_lock): Update comment.
24922         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
24923         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
24924         (deattach_arena): New function.
24925         (_int_new_arena): Initialize arena reference count and deattach
24926         replaced arena.
24927         (get_free_list, reused_arena): Update reference count and deattach
24928         replaced arena.
24929         (arena_thread_freeres): Update arena reference count and only put
24930         unreferenced arenas on the free list.
24931
24932 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
24933
24934         [BZ #19181]
24935         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
24936         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
24937         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
24938         * math/test-fenv-clear-main.c: New file.
24939         * math/test-fenv-clear.c: Likewise.
24940         * math/Makefile (tests): Add test-fenv-clear.
24941         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
24942         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
24943         test-fenv-clear-sse.
24944         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
24945
24946         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
24947         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
24948         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
24949
24950 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
24951
24952         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
24953         static libc.
24954
24955 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
24956
24957         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
24958         test.
24959         * sysdeps/i386/configure: Regenerated.
24960         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
24961         test.
24962         * sysdeps/x86_64/configure: Regenerated.
24963         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
24964         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24965         memset-avx2 unconditionally instead of conditionally on
24966         [$(config-cflags-avx2) = yes].
24967         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
24968         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
24969         unconditional.
24970         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
24971         * sysdeps/x86_64/multiarch/memset_chk.S
24972         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
24973         to [IS_IN (libc) && SHARED].
24974
24975 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
24976
24977         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
24978         configure test.
24979         * sysdeps/arm/configure: Regenerated.
24980         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
24981         Define variable if not already defined.
24982
24983         [BZ #17404]
24984         * sysdeps/mips/atomic-machine.h
24985         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
24986         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
24987         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
24988
24989         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
24990         unconditional.
24991         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
24992         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
24993         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
24994         unconditional.
24995         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
24996         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
24997         unconditional.
24998         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
24999         * stdlib/setenv.c
25000         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
25001         code unconditional.
25002         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
25003         Remove conditional code.
25004         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
25005         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
25006         unconditional.
25007         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
25008         code.
25009         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
25010         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
25011         unconditional.
25012         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
25013         code.
25014         * sysdeps/ieee754/ldbl-128/k_tanl.c
25015         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
25016         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
25017         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
25018         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
25019         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
25020         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
25021         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
25022         unconditional.
25023         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
25024         code.
25025         * sysdeps/ieee754/ldbl-96/k_tanl.c
25026         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
25027         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
25028
25029         * nptl/tst-initializers1-c11.c: New file.
25030         * nptl/tst-initializers1-gnu11.c: Likewise.
25031         * nptl/Makefile (tests): Add these new tests.
25032         (CFLAGS-tst-initializers1-c11.c): New variable.
25033         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
25034
25035         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
25036         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
25037         instead of -std=gnu99.
25038         * configure.ac (systemtap): Test with -std=gnu11 instead of
25039         -std=gnu99.
25040         * configure: Regenerated.
25041         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
25042         in compilation command in comment.
25043
25044         * sysdeps/nptl/configure.ac: Remove file.
25045         * sysdeps/nptl/configure: Remove generated file.
25046         * configure.ac (libc_cv_forced_unwind): Do not substitute.
25047         * configure: Regenerated.
25048         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
25049         * config.make.in (have-forced-unwind): Remove variable.
25050         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
25051         unconditional.
25052         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
25053         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
25054         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
25055         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
25056         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
25057         unconditional.
25058
25059 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
25060
25061         [BZ #19174]
25062         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
25063         .skip_lock_out_of_tbegin_retries.
25064         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
25065         (__lll_lock_elision): Likewise, and respect a value of
25066         try_tbegin <= 0.
25067
25068 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
25069
25070         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
25071         statement.
25072
25073 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
25074
25075         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
25076         variable.
25077         (test-xfail-ISO11/stdalign.h/conform): Likewise.
25078         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
25079
25080         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
25081         of -std=c1x -D_ISOC11_SOURCE.
25082
25083         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
25084         * configure: Regenerated.
25085         * manual/install.texi (Tools for Compilation): Document
25086         requirement for GCC 4.7 or later.
25087         * INSTALL: Regenerated.
25088
25089 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
25090
25091         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
25092         on CNT to a conditional jump to 'puntdata'.
25093
25094 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
25095
25096         * configure.ac (libc_cv_gcc___thread): Remove configure test.
25097         (libc_cv_gcc_tls_model_attr): Likewise.
25098         * configure: Regenerated.
25099
25100         * configure.ac (libc_cv_need_minus_P): Remove configure test.
25101         * configure: Regenerated.
25102         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
25103
25104 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
25105
25106         * configure.ac (old_glibc_headers): Remove configure test.
25107         * configure: Regenerated.
25108         * config.make.in (old-glibc-headers): Remove variable.
25109         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
25110         (install): Remove dependency on remove-old-headers.
25111         (headers2_0): Remove variable.
25112         (remove-old-headers): Remove rule.
25113
25114         * configure.ac (libc_cv_dot_text): Remove configure test.
25115         (libc_cv_asm_set_directive): Use .text instead of
25116         ${libc_cv_dot_text} in configure test.
25117         * configure: Regenerated.
25118
25119 2015-10-26  Florian Weimer  <fweimer@redhat.com>
25120
25121         [BZ #19168]
25122         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
25123
25124 2015-10-26  Florian Weimer  <fweimer@redhat.com>
25125
25126         * configure.ac (CXX): Clear the variable if the C++ toolchain does
25127         not support static linking.
25128         * configure: Regenerate.
25129
25130 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
25131
25132         * math/libm-test.inc (check_float_internal): Do not special-case
25133         errors up to 0.5 ulp.
25134
25135         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
25136         log2.
25137         * math/auto-libm-test-out: Regenerated.
25138         * math/libm-test.inc (MAX_EXP): New macro.
25139         (ilogb_test_data): Add more tests.
25140         (isfinite_test_data): Likewise.
25141         (isgreater_test_data): Likewise.
25142         (isgreaterequal_test_data): Likewise.
25143         (isinf_test_data): Likewise.
25144         (isless_test_data): Likewise.
25145         (islessequal_test_data): Likewise.
25146         (islessgreater_test_data): Likewise.
25147         (isnan_test_data): Likewise.
25148         (isnormal_test_data): Likewise.
25149         (issignaling_test_data): Likewise.
25150         (isunordered_test_data): Likewise.
25151         (j0_test_data): Likewise.
25152         (j1_test_data): Likewise.
25153         (jn_test_data): Likewise.
25154         (lgamma_test_data): Likewise.
25155         (log_test_data): Likewise.
25156         (log10_test_data): Likewise.
25157         (log1p_test_data): Likewise.
25158         (log2_test_data): Likewise.
25159         (logb_test_data): Likewise.
25160         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25161
25162         [BZ #18611]
25163         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
25164         avoid excess range and precision on underflow.
25165         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25166         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
25167         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
25168         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
25169         underflow.
25170         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25171         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
25172         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
25173         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25174         * math/auto-libm-test-in: Do not allow missing errno setting for
25175         tests of j1 and jn.
25176         * math/auto-libm-test-out: Regenerated.
25177
25178 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
25179
25180         [BZ #15491]
25181         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
25182         floating-point environment instead of clearing all exceptions.
25183         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
25184         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
25185         merging in "invalid" exceptions from frndint.
25186         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
25187         * math/test-nearbyint-except.c: New file.
25188         * math/Makefile (tests): Add test-nearbyint-except.
25189
25190 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
25191
25192         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
25193
25194         * sysdeps/tile/libm-test-ulps: Regenerated.
25195
25196 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25197
25198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
25199         (__NR_sync_file_range2): Assume it is always defined.
25200         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
25201         (__NR_sync_file_range): Assume it is always defined.
25202
25203 2015-10-22  Andreas Schwab  <schwab@suse.de>
25204
25205         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
25206         INTERNAL_SYSCALL_ERRNO.
25207         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
25208         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
25209         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
25210         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
25211         Likewise.
25212         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
25213
25214 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25215
25216         * io/tst-fcntl.c (fd): New static variable.
25217         (do_prepare): Open temporary file here....
25218         (do_test): ...not here.
25219
25220         * io/ftwtest-sh: Also trap on exit to remove temporary files.
25221
25222 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
25223
25224         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
25225         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
25226         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
25227         Moved before "#ifdef __ASSEMBLER__".
25228
25229 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25230
25231         [BZ #19156]
25232         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
25233         arguments very close to 0.
25234
25235 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
25236
25237         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
25238         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
25239
25240 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
25241
25242         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
25243         New.  Defined for GCC 5 and above when not compiling for
25244         profiling.
25245         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
25246
25247         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
25248         Renamed to ...
25249         (CFLAGS-epoll_pwait.o): This.
25250         (CFLAGS-mmap.c): Renamed to ...
25251         (CFLAGS-mmap.o): This.
25252         (CFLAGS-mmap64.c): Renamed to ...
25253         (CFLAGS-mmap64.o): This.
25254         (CFLAGS-epoll_pwait.os): New.
25255         (CFLAGS-mmap.os): Likewise.
25256         (CFLAGS-mmap64.os): Likewise.
25257         (CFLAGS-semtimedop.os): Likewise.
25258         (CFLAGS-semtimedop.c): Renamed to ...
25259         (CFLAGS-semtimedop.o): This.
25260
25261 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25262
25263         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
25264         warning message.
25265
25266 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25267
25268         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
25269         * Makefile ($(objpfx)c++-types-check.out): Filter out
25270         $(+gccwarn-c) instead of -Wstrict-prototypes.
25271
25272         * io/fts.c (fts_open): Convert to prototype-style function
25273         definition.
25274         * malloc/mcheck.c (mcheck): Likewise.
25275         (mcheck_pedantic): Likewise.
25276         * posix/regexec.c (re_search_2_stub): Likewise.  Use
25277         internal_function.
25278         (re_search_internal): Likewise.
25279         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
25280         prototype-style function definition.
25281         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
25282         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
25283         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
25284         (xdr_utmpptr): Likewise.
25285         (xdr_utmparr): Likewise.
25286         (xdr_utmpidle): Likewise.
25287         (xdr_utmpidleptr): Likewise.
25288         (xdr_utmpidlearr): Likewise.
25289
25290         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
25291         log, log10 and log2.
25292         * math/auto-libm-test-out: Regenerated.
25293         * math/libm-test.inc (fmod_test_data): Add more tests.
25294         (fpclassify_test_data): Likewise.
25295         (frexp_test_data): Likewise.
25296         (hypot_test_data): Likewise.
25297         (ilogb_test_data): Likewise.
25298
25299 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
25300
25301         * debug/fortify_fail.c (__fortify_fail): Convert to
25302         prototype-style function definition.  Use internal_function.
25303         * libio/genops.c (save_for_backup): Convert to prototype-style
25304         function definition.
25305         * libio/wgenops.c (save_for_wbackup): Likewise.
25306         * login/grantpt.c (grantpt): Likewise.
25307         * login/ptsname.c (ptsname): Likewise.
25308         (__ptsname_r): Likewise.
25309         * login/unlockpt.c (unlockpt): Likewise.
25310         * mach/msgserver.c (__mach_msg_server): Likewise.
25311         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
25312         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
25313         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
25314         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
25315         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
25316         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
25317         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
25318         Likewise.
25319         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
25320         internal_function.
25321         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
25322         prototype-style function definition.
25323         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
25324         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
25325         (__pthread_create_2_0): Likewise.
25326         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
25327         * nptl/register-atfork.c (__register_atfork): Likewise.
25328         * posix/glob.c (glob): Likewise.
25329         * posix/regcomp.c (re_comp): Likewise.
25330         * posix/regexec.c (re_exec): Likewise.
25331         * stdlib/add_n.c [__STDC__]: Make code unconditional.
25332         [!__STDC__]: Remove conditional code.
25333         * stdlib/cmp.c [__STDC__]: Make code unconditional.
25334         [!__STDC__]: Remove conditional code.
25335         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
25336         [!__STDC__]: Remove conditional code.
25337         * stdlib/divrem.c [__STDC__]: Make code unconditional.
25338         [!__STDC__]: Remove conditional code.
25339         * stdlib/lshift.c [__STDC__]: Make code unconditional.
25340         [!__STDC__]: Remove conditional code.
25341         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
25342         [!__STDC__]: Remove conditional code.
25343         * stdlib/mul.c [__STDC__]: Make code unconditional.
25344         [!__STDC__]: Remove conditional code.
25345         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
25346         [!__STDC__]: Remove conditional code.
25347         * stdlib/rshift.c [__STDC__]: Make code unconditional.
25348         [!__STDC__]: Remove conditional code.
25349         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
25350         function definition.
25351         (STRTOF): Likewise.
25352         * stdlib/strtod_l.c (__STRTOF): Likewise.
25353         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
25354         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
25355         (__strtol_l): Likewise.
25356         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
25357         [!__STDC__]: Remove conditional code.
25358         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
25359         definition.
25360         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
25361         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
25362         type.
25363         (__strcasecmp): Convert to prototype-style function definition.
25364         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
25365         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
25366         type.
25367         (__strncasecmp): Convert to prototype-style function definition.
25368         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
25369         * sunrpc/xdr.c (xdr_union): Likewise.
25370         * sunrpc/xdr_array.c (xdr_array): Likewise.
25371         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
25372         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
25373         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
25374         Likewise.
25375         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
25376         Likewise.
25377         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
25378         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
25379         Likewise.
25380         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
25381         (LOCALE_PARAM_PROTO): Likewise.
25382         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
25383         argument type.
25384         (ut_argument_spec): Remove macro.
25385         (ut_argument_spec_iso): Rename to ut_argument_spec.
25386         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
25387         prototype-style function definition.
25388         (memcpy_uppcase): Likewise.
25389         (__strftime_internal): Likewise.
25390         (my_strftime): Likewise.
25391         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
25392         (LOCALE_PARAM_DECL): Likewise.
25393         [_LIBC] (LOCALE_PARAM): Include argument type.
25394         (__strptime_internal): Convert to prototype-style function
25395         definition.
25396         (strptime): Likewise.
25397         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
25398         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
25399         type.
25400         (__wcscasecmp): Convert to prototype-style function definition.
25401         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
25402         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
25403         type.
25404         (__wcsncasecmp): Convert to prototype-style function definition.
25405
25406         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
25407         function definition.
25408         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
25409         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
25410         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
25411         * elf/dl-minimal.c (_itoa): Likewise.
25412         * hurd/hurdmalloc.c (malloc): Likewise.
25413         (free): Likewise.
25414         (realloc): Likewise.
25415         * inet/inet6_option.c (inet6_option_space): Likewise.
25416         (inet6_option_init): Likewise.
25417         (inet6_option_append): Likewise.
25418         (inet6_option_alloc): Likewise.
25419         (inet6_option_next): Likewise.
25420         (inet6_option_find): Likewise.
25421         * io/ftw.c (FTW_NAME): Likewise.
25422         (NFTW_NAME): Likewise.
25423         (NFTW_NEW_NAME): Likewise.
25424         (NFTW_OLD_NAME): Likewise.
25425         * libio/iofwide.c (_IO_fwide): Likewise.
25426         * libio/strops.c (_IO_str_init_static_internal): Likewise.
25427         (_IO_str_init_static): Likewise.
25428         (_IO_str_init_readonly): Likewise.
25429         (_IO_str_overflow): Likewise.
25430         (_IO_str_underflow): Likewise.
25431         (_IO_str_count): Likewise.
25432         (_IO_str_seekoff): Likewise.
25433         (_IO_str_pbackfail): Likewise.
25434         (_IO_str_finish): Likewise.
25435         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
25436         (_IO_wstr_overflow): Likewise.
25437         (_IO_wstr_underflow): Likewise.
25438         (_IO_wstr_count): Likewise.
25439         (_IO_wstr_seekoff): Likewise.
25440         (_IO_wstr_pbackfail): Likewise.
25441         (_IO_wstr_finish): Likewise.
25442         * locale/programs/localedef.c (normalize_codeset): Likewise.
25443         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
25444         (add_locales_to_archive): Likewise.
25445         (delete_locales_from_archive): Likewise.
25446         * malloc/malloc.c (__libc_mallinfo): Likewise.
25447         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
25448         * misc/tsearch.c (__tfind): Likewise.
25449         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
25450         * nptl/pthread_attr_getdetachstate.c
25451         (__pthread_attr_getdetachstate): Likewise.
25452         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25453         Likewise.
25454         * nptl/pthread_attr_getinheritsched.c
25455         (__pthread_attr_getinheritsched): Likewise.
25456         * nptl/pthread_attr_getschedparam.c
25457         (__pthread_attr_getschedparam): Likewise.
25458         * nptl/pthread_attr_getschedpolicy.c
25459         (__pthread_attr_getschedpolicy): Likewise.
25460         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
25461         Likewise.
25462         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
25463         Likewise.
25464         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25465         Likewise.
25466         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25467         Likewise.
25468         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
25469         (__pthread_attr_init_2_0): Likewise.
25470         * nptl/pthread_attr_setdetachstate.c
25471         (__pthread_attr_setdetachstate): Likewise.
25472         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25473         Likewise.
25474         * nptl/pthread_attr_setinheritsched.c
25475         (__pthread_attr_setinheritsched): Likewise.
25476         * nptl/pthread_attr_setschedparam.c
25477         (__pthread_attr_setschedparam): Likewise.
25478         * nptl/pthread_attr_setschedpolicy.c
25479         (__pthread_attr_setschedpolicy): Likewise.
25480         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
25481         Likewise.
25482         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
25483         Likewise.
25484         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25485         Likewise.
25486         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25487         Likewise.
25488         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
25489         Likewise.
25490         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
25491         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
25492         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
25493         use internal_function.
25494         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
25495         prototype-style function definition.
25496         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25497         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
25498         internal_function.
25499         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
25500         Convert to prototype-style function definition.
25501         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
25502         Likewise.
25503         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
25504         Likewise.
25505         (__pthread_mutex_unlock): Likewise.
25506         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
25507         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
25508         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
25509         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
25510         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
25511         * nss/makedb.c (process_input): Likewise.
25512         * posix/fnmatch.c (__strchrnul): Likewise.
25513         (__wcschrnul): Likewise.
25514         (fnmatch): Likewise.
25515         * posix/fnmatch_loop.c (FCT): Likewise.
25516         * posix/glob.c (globfree): Likewise.
25517         (__glob_pattern_type): Likewise.
25518         (__glob_pattern_p): Likewise.
25519         * posix/regcomp.c (re_compile_pattern): Likewise.
25520         (re_set_syntax): Likewise.
25521         (re_compile_fastmap): Likewise.
25522         (regcomp): Likewise.
25523         (regerror): Likewise.
25524         (regfree): Likewise.
25525         * posix/regexec.c (regexec): Likewise.
25526         (re_match): Likewise.
25527         (re_search): Likewise.
25528         (re_match_2): Likewise.
25529         (re_search_2): Likewise.
25530         (re_search_stub): Likewise.  Use internal_function
25531         (re_copy_regs): Likewise.
25532         (re_set_registers): Convert to prototype-style function
25533         definition.
25534         (prune_impossible_nodes): Likewise.  Use internal_function.
25535         * resolv/inet_net_pton.c (inet_net_pton): Convert to
25536         prototype-style function definition.
25537         (inet_net_pton_ipv4): Likewise.
25538         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
25539         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
25540         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
25541         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
25542         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
25543         Make variadic.
25544         * time/strptime_l.c (localtime_r): Convert to prototype-style
25545         function definition.
25546         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
25547         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
25548         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
25549         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
25550
25551         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
25552         definition.
25553         (_ufc_doit_r): Likewise.
25554         * crypt/crypt_util.c (_ufc_copymem): Likewise.
25555         (_ufc_output_conversion_r): Likewise.
25556         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
25557         * inet/rcmd.c (rcmd_af): Likewise.
25558         (rcmd): Likewise.
25559         (ruserok_af): Likewise.
25560         (ruserok): Likewise.
25561         (ruserok2_sa): Likewise.
25562         (ruserok_sa): Likewise.
25563         (iruserok_af): Likewise.
25564         (iruserok): Likewise.
25565         (__ivaliduser): Likewise.
25566         (__validuser2_sa): Likewise.
25567         * inet/rexec.c (rexec_af): Likewise.
25568         (rexec): Likewise.
25569         * inet/ruserpass.c (ruserpass): Likewise.
25570         * locale/programs/xmalloc.c (xcalloc): Likewise.
25571         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
25572         * math/w_drem.c (__drem): Likewise.
25573         * math/w_dremf.c (__dremf): Likewise.
25574         * math/w_dreml.c (__dreml): Likewise.
25575         * misc/daemon.c (daemon): Likewise.
25576         * resolv/res_debug.c (p_fqnname): Likewise.
25577         * stdlib/div.c (div): Likewise.
25578         * string/memcmp.c (memcmp_bytes): Likewise.
25579         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
25580         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
25581
25582         * crypt/cert.c (main): Convert to prototype-style function
25583         definition.
25584         * io/pipe.c (__pipe): Likewise.
25585         * io/pipe2.c (__pipe2): Likewise.
25586         * misc/futimesat.c (futimesat): Likewise.
25587         * misc/utimes.c (__utimes): Likewise.
25588         * posix/execve.c (__execve): Likewise.
25589         * posix/execvp.c (execvp): Likewise.
25590         * posix/execvpe.c (__execvpe): Likewise.
25591         * posix/fexecve.c (fexecve): Likewise.
25592         * socket/socketpair.c (socketpair): Likewise.
25593         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
25594         * stdlib/erand48.c (erand48): Likewise.
25595         * stdlib/erand48_r.c (__erand48_r): Likewise.
25596         * stdlib/jrand48.c (jrand48): Likewise.
25597         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
25598         * stdlib/lcong48.c (lcong48): Likewise.
25599         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
25600         * stdlib/nrand48.c (nrand48): Likewise.
25601         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
25602         * stdlib/seed48.c (seed48): Likewise.
25603         * stdlib/seed48_r.c (__seed48_r): Likewise.
25604         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
25605         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
25606         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
25607
25608 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
25609
25610         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
25611         * configure: Regenerated.
25612         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
25613         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
25614         unconditional.
25615         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
25616         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
25617         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
25618         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
25619         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
25620         unconditional.
25621         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
25622
25623         * posix/Makefile (CFLAGS-regex.c): Remove variable.
25624         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
25625
25626         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
25627         function definition.
25628         * crypt/crypt_util.c (__encrypt_r): Likewise.
25629         * libio/genops.c (_IO_no_init): Likewise.
25630         * libio/iofopncook.c (_IO_fopencookie): Likewise.
25631         (_IO_old_fopencookie): Likewise.
25632         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
25633         * libio/iogetline.c (_IO_getline): Likewise.
25634         (_IO_getline_info): Likewise.
25635         * libio/iogetwline.c (_IO_getwline): Likewise.
25636         (_IO_getwline_info): Likewise.
25637         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
25638         * libio/vswprintf.c (_IO_vswprintf): Likewise.
25639         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
25640         (find_entry): Likewise.
25641         (iterate_table): Likewise.
25642         (lookup): Likewise.
25643         * login/forkpty.c (forkpty): Likewise.
25644         * misc/hsearch_r.c (__hsearch_r): Likewise.
25645         * misc/select.c (__select): Likewise.
25646         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
25647         Likewise.
25648         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
25649         Likewise.
25650         * nptl/old_pthread_cond_timedwait.c
25651         (__pthread_cond_timedwait_2_0): Likewise.
25652         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25653         * nptl/pthread_barrierattr_getpshared.c
25654         (pthread_barrierattr_getpshared): Likewise.
25655         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
25656         Likewise.
25657         * nptl/pthread_mutex_setprioceiling.c
25658         (pthread_mutex_setprioceiling): Likewise.
25659         * nptl/pthread_mutexattr_getprioceiling.c
25660         (pthread_mutexattr_getprioceiling): Likewise.
25661         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25662         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
25663         Likewise.
25664         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
25665         Likewise.
25666         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
25667         Likewise.
25668         * socket/recvfrom.c (__recvfrom): Likewise.
25669         * socket/sendto.c (__sendto): Likewise.
25670         * socket/setsockopt.c (__setsockopt): Likewise.
25671         * stdio-common/_itoa.c (_itoa): Likewise.
25672         * stdio-common/_itowa.c (_itowa): Likewise.
25673         * stdio-common/reg-printf.c (__register_printf_specifier):
25674         Likewise.
25675         (__register_printf_function): Likewise.
25676         * stdio-common/tempname.c (__path_search): Likewise.
25677         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
25678         * stdlib/mul_1.c (mpn_mul_1): Likewise.
25679         * stdlib/random_r.c (__initstate_r): Likewise.
25680         * stdlib/setenv.c (__add_to_environ): Likewise.
25681         * stdlib/submul_1.c (mpn_submul_1): Likewise.
25682         * streams/getpmsg.c (getpmsg): Likewise.
25683         * streams/putmsg.c (putmsg): Likewise.
25684         * streams/putpmsg.c (putpmsg): Likewise.
25685         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
25686         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
25687         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
25688         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
25689         * sunrpc/pm_getport.c (pmap_getport): Likewise.
25690         * sunrpc/svc_udp.c (cache_get): Likewise.
25691         * sunrpc/xdr_array.c (xdr_vector): Likewise.
25692         * sysdeps/mach/hurd/getcwd.c
25693         (__canonicalize_directory_name_internal): Likewise.
25694         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
25695         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
25696         * sysdeps/mach/hurd/select.c (__select): Likewise.
25697         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
25698         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
25699         * sysdeps/sparc/nptl/pthread_barrier_init.c
25700         (__pthread_barrier_init): Likewise.
25701         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
25702         (__pthread_cond_timedwait): Likewise.
25703         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
25704         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
25705         Likewise.
25706         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
25707         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
25708         Likewise.
25709         * sysvipc/semtimedop.c (semtimedop): Likewise.
25710         * time/setitimer.c (__setitimer): Likewise.
25711         * time/strftime_l.c (emacs_strftime): Likewise.
25712
25713 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
25714
25715         * config.make.in (have-ssp): Delete.
25716         (stack-protector): New variable.
25717         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
25718         cache test for -fstack-protector-strong.  Export stack_protector to
25719         the best ssp flag.
25720         * configure: Regenerated.
25721         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
25722         * nscd/Makefile (CFLAGS-nscd): Likewise.
25723         * resolv/Makefile (CFLAGS-libresolv): Likewise.
25724
25725 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
25726
25727         [BZ #19122]
25728         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
25729         attribute_hidden.
25730
25731 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25732
25733         [BZ #18743]
25734         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
25735         code to...
25736         (ELIDE_LOCK): ...here.
25737         (__get_new_count): New function with part of the code from
25738         __elide_lock that updates the value of adapt_count after a
25739         transaction abort.
25740         (__elided_trylock): Moved this code to...
25741         (ELIDE_TRYLOCK): ...here.
25742
25743 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
25744
25745         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
25746         * configure: Regenerate.
25747         * INSTALL: Regenerate.
25748         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
25749         and tweak grammar.
25750
25751 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
25752
25753         * login/programs/pt_chown.c: Include signal.h
25754         (main): Clear any signal mask from the parent process.
25755
25756 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
25757
25758         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
25759         * configure: Regenerated.
25760         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
25761         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
25762         $(gnu89-inline-CFLAGS).
25763
25764         * configure.ac (libc_cv_asm_weak_directive): Remove configure
25765         test.
25766         (libc_cv_asm_weakext_directive): Likewise.
25767         * configure: Regenerated.
25768         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
25769         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
25770         * include/libc-symbols.h
25771         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
25772         #error.
25773         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
25774         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
25775
25776         * sysdeps/arm/backtrace.c (__backtrace): Convert to
25777         prototype-style function definition.
25778         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
25779         * sysdeps/i386/ffs.c (__ffs): Likewise.
25780         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
25781         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
25782         Likewise.
25783         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
25784         Likewise.
25785         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
25786         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
25787         Likewise.
25788         * sysdeps/m68k/ffs.c (__ffs): Likewise.
25789         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
25790         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
25791         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
25792         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
25793         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
25794         * sysdeps/mach/hurd/access.c (__access): Likewise.
25795         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
25796         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
25797         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
25798         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
25799         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
25800         (cthread_getspecific): Likewise.
25801         (cthread_setspecific): Likewise.
25802         (__libc_getspecific): Likewise.
25803         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
25804         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
25805         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
25806         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
25807         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
25808         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
25809         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
25810         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
25811         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
25812         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
25813         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
25814         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
25815         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
25816         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
25817         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
25818         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
25819         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
25820         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
25821         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
25822         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
25823         * sysdeps/mach/hurd/link.c (__link): Likewise.
25824         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
25825         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
25826         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
25827         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
25828         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
25829         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
25830         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
25831         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
25832         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
25833         * sysdeps/mach/hurd/rename.c (rename): Likewise.
25834         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
25835         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
25836         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
25837         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
25838         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
25839         * sysdeps/mach/hurd/send.c (__send): Likewise.
25840         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
25841         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
25842         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
25843         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
25844         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
25845         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
25846         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
25847         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
25848         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
25849         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
25850         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
25851         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
25852         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
25853         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
25854         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
25855         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25856         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
25857         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25858         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
25859         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
25860         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
25861         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
25862         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
25863         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
25864         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
25865         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
25866         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
25867         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
25868         * sysdeps/posix/alarm.c (alarm): Likewise.
25869         * sysdeps/posix/cuserid.c (cuserid): Likewise.
25870         * sysdeps/posix/dirfd.c (dirfd): Likewise.
25871         * sysdeps/posix/dup.c (__dup): Likewise.
25872         * sysdeps/posix/dup2.c (__dup2): Likewise.
25873         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
25874         (main): Likewise.
25875         * sysdeps/posix/flock.c (__flock): Likewise.
25876         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
25877         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
25878         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
25879         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
25880         * sysdeps/posix/isatty.c (__isatty): Likewise.
25881         * sysdeps/posix/killpg.c (killpg): Likewise.
25882         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
25883         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
25884         * sysdeps/posix/raise.c (raise): Likewise.
25885         * sysdeps/posix/remove.c (remove): Likewise.
25886         * sysdeps/posix/rename.c (rename): Likewise.
25887         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
25888         * sysdeps/posix/seekdir.c (seekdir): Likewise.
25889         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25890         * sysdeps/posix/sigignore.c (sigignore): Likewise.
25891         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
25892         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
25893         * sysdeps/posix/sigset.c (sigset): Likewise.
25894         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
25895         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
25896         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
25897         * sysdeps/posix/time.c (time): Likewise.
25898         * sysdeps/posix/ttyname.c (getttyname): Likewise.
25899         (ttyname): Likewise.
25900         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
25901         * sysdeps/posix/utime.c (utime): Likewise.
25902         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
25903         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
25904         Likewise.
25905         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
25906         (pthread_spin_trylock): Likewise.
25907         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
25908         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
25909         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
25910         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
25911         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
25912         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
25913         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
25914         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
25915         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
25916         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
25917         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
25918         * sysdeps/s390/ffs.c (__ffs): Likewise.
25919         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
25920         Likewise.
25921         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
25922         Likewise.
25923         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
25924         Likewise.
25925         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
25926         (pthread_barrier_destroy): Likewise.
25927         * sysdeps/sparc/nptl/pthread_barrier_wait.c
25928         (__pthread_barrier_wait): Likewise.
25929         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
25930         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
25931         (__pthread_barrier_wait): Likewise.
25932         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
25933         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
25934         (memcmp_not_common_alignment): Likewise.
25935         (MEMCMP): Likewise.
25936         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
25937         (_wordcopy_fwd_dest_aligned): Likewise.
25938         (_wordcopy_bwd_aligned): Likewise.
25939         (_wordcopy_bwd_dest_aligned): Likewise.
25940         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
25941         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
25942         * sysdeps/unix/bsd/stty.c (stty): Likewise.
25943         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
25944         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
25945         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
25946         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
25947         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
25948         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
25949         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
25950         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
25951         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
25952         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
25953         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
25954         * sysdeps/unix/stime.c (stime): Likewise.
25955         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
25956         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
25957         Likewise.  Use internal_function.
25958         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
25959         Convert to prototype-style function definition.
25960         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
25961         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
25962         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
25963         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
25964         Likewise.  Use internal_function.
25965         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
25966         prototype-style function definition
25967         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25968         Likewise.
25969         (__getlogin_r): Likewise.
25970         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
25971         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
25972         (__pthread_cond_broadcast): Likewise.
25973         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
25974         (__pthread_cond_destroy): Likewise.
25975         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
25976         (__pthread_cond_init): Likewise.
25977         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
25978         (__pthread_cond_signal): Likewise.
25979         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
25980         (__pthread_cond_wait): Likewise.
25981         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
25982         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
25983         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
25984         Likewise.
25985         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
25986         Likewise.
25987         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25988         Likewise.
25989         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
25990         Likewise.
25991         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
25992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
25993         (__ftruncate64): Likewise.
25994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
25995         (truncate64): Likewise.
25996         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
25997         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
25998         (pthread_getcpuclockid): Likewise.
25999         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
26000         Likewise.
26001         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
26002         Likewise.
26003         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
26004         Likewise.
26005         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
26006         Likewise.
26007         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
26008         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
26009         (__libc_sigaction): Likewise.
26010         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
26011         Likewise.
26012         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26013         (__sigprocmask): Likewise.
26014         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
26015         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
26016         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
26017         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
26018         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
26019         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
26020         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
26021         Likewise.
26022         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
26023         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
26024         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
26025         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
26026         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
26027         Likewise.
26028         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26029         (__sigprocmask): Likewise.
26030         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
26031         (cfgetispeed): Likewise.
26032         (cfsetospeed): Likewise.
26033         (cfsetispeed): Likewise.
26034         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
26035         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
26036         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26037         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
26038         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
26039         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
26040         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
26041         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
26042         Likewise.
26043         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
26044         Likewise.
26045         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
26046         Likewise.
26047         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26048         Likewise.
26049         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
26050
26051 2015-10-17  Florian Weimer  <fweimer@redhat.com>
26052
26053         sunrpc: Rewrite with explicit TLS access using __thread.
26054         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
26055         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
26056         directly.
26057         (__rpc_thread_variables): Access thread_rpc_vars directly.
26058         Eliminate redundant assignment of the tvp variable.
26059
26060 2015-10-17  Florian Weimer  <fweimer@redhat.com>
26061
26062         malloc: Rewrite with explicit TLS access using __thread.
26063         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
26064         (tsd_setspecific, tsd_getspecific): Remove.
26065         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
26066         (tsd_setspecific, tsd_getspecific): Likewise.
26067         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
26068         (tsd_setspecific, tsd_getspecific): Likewise.
26069         * malloc/arena.c (thread_arena): New TLS variable.
26070         (arena_key): Remove variable.
26071         (arena_get): Use thread_arena.
26072         (arena_lookup): Remove macro.
26073         (malloc_atfork, free_atfork, ptmalloc_lock_all)
26074         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
26075         (_int_new_arena, get_free_list, reused_arena)
26076         (arena_thread_freeres): Use thread_arena.
26077         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
26078         tsd_getspecific, tsd_setspecific from safety annotations.
26079         (Allocating Cleared Space): Remove arena_lookup from safety
26080         annotations.
26081
26082 2015-10-17  Florian Weimer  <fweimer@redhat.com>
26083
26084         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
26085         struct scratch_buffer instead of extend_alloca.
26086
26087 2015-10-17  Florian Weimer  <fweimer@redhat.com>
26088
26089         * sysdeps/unix/sysv/linux/kernel-features.h
26090         (__ASSUME_SOCK_CLOEXEC): Remove.
26091         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
26092         (__have_paccept): Remove unused macro.
26093         * include/unistd.h (__have_sock_cloexec): Remove declaration.
26094         * misc/syslog.c (openlog_internal): Remove fallback code for
26095         !__ASSUME_SOCK_CLOEXEC.
26096         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
26097         missing SOCK_CLOEXEC.
26098         * nscd/connections.c (have_sock_cloexec): Remove definition.
26099         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
26100         * nscd/nscd_helper.c (open_socket): Remove fallback code for
26101         !__ASSUME_SOCK_CLOEXEC.
26102         * resolv/res_send.c (__have_o_nonblock): Remove definition.
26103         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
26104         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
26105         definition.
26106         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
26107         code for !__ASSUME_SOCK_CLOEXEC.
26108
26109 2015-10-17  Florian Weimer  <fweimer@redhat.com>
26110
26111         [BZ #18982]
26112         * manual/stdio.texi (Variable Arguments Output): Add portability
26113         note, explaining that vfprintf clobbers the va_list pointer.
26114
26115 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
26116
26117         * math/libm-test.inc (fabs_test_data): Add more tests.
26118         (fdim_test_data): Likewise.
26119         (fma_test_data): Likewise.
26120         (fmax_test_data): Likewise.
26121         (fmin_test_data): Likewise.
26122         (fmod_test_data): Likewise.
26123
26124 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
26125
26126         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
26127         data.
26128
26129 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
26130
26131         * math/libm-test.inc (ceil_test_data): Add more tests and more
26132         expectations for "inexact".
26133         (floor_test_data): Add more tests.
26134         (round_test_data): Likewise.
26135         (trunc_test_data): Likewise.
26136
26137         * crypt/cert.c (good_bye): Convert to prototype-style function
26138         definition.
26139         (get8): Likewise.
26140         (put8): Likewise.
26141         * crypt/crypt-entry.c (crypt): Likewise.
26142         (__fcrypt): Likewise.
26143         * crypt/crypt_util.c (_ufc_prbits): Likewise.
26144         (_ufc_set_bits): Likewise.
26145         (_ufc_clearmem): Likewise.
26146         (__init_des_r): Likewise.
26147         (shuffle_sb): Likewise.
26148         (shuffle_sb): Likewise.
26149         (_ufc_setup_salt_r): Likewise.
26150         (_ufc_mk_keytab_r): Likewise.
26151         (_ufc_dofinalperm_r): Likewise.
26152         (encrypt): Likewise.
26153         (__setkey_r): Likewise.
26154         (setkey): Likewise.
26155         * crypt/md5.c (md5_init_ctx): Likewise.
26156         (md5_read_ctx): Likewise.
26157         (md5_finish_ctx): Likewise.
26158         (md5_stream): Likewise.
26159         (md5_buffer): Likewise.
26160         (md5_process_bytes): Likewise.
26161         * crypt/sha256.c (__sha256_init_ctx): Likewise.
26162         (__sha256_finish_ctx): Likewise.
26163         (__sha256_process_bytes): Likewise.
26164         * crypt/sha512.c (__sha512_init_ctx): Likewise.
26165         (__sha512_finish_ctx): Likewise.
26166         (__sha512_process_bytes): Likewise.
26167         * ctype/isctype.c (__isctype): Likewise.
26168         * debug/backtrace.c (__backtrace): Likewise.
26169         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
26170         * debug/fgets_chk.c (__fgets_chk): Likewise.
26171         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
26172         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
26173         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
26174         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
26175         * debug/memset_chk.c (__memset_chk): Likewise.
26176         * debug/strcat_chk.c (__strcat_chk): Likewise.
26177         * debug/strncat_chk.c (__strncat_chk): Likewise.
26178         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
26179         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
26180         * dirent/dirfd.c (dirfd): Likewise.
26181         * dirent/getdents.c (__getdirentries): Likewise.
26182         * dirent/getdents64.c (getdirentries64): Likewise.
26183         * dirent/rewinddir.c (__rewinddir): Likewise.
26184         * dirent/seekdir.c (seekdir): Likewise.
26185         * dirent/telldir.c (telldir): Likewise.
26186         * elf/sln.c (makesymlinks): Likewise.
26187         (makesymlink): Likewise.
26188         * gmon/gmon.c (__moncontrol): Likewise.
26189         (__monstartup): Likewise.
26190         (write_hist): Likewise.
26191         (write_call_graph): Likewise.
26192         (write_bb_counts): Likewise.
26193         * grp/setgroups.c (setgroups): Likewise.
26194         * inet/inet_lnaof.c (inet_lnaof): Likewise.
26195         * inet/inet_net.c (inet_network): Likewise.
26196         * inet/inet_netof.c (inet_netof): Likewise.
26197         * inet/rcmd.c (rresvport_af): Likewise.
26198         (rresvport): Likewise.
26199         * io/access.c (__access): Likewise.
26200         * io/chdir.c (__chdir): Likewise.
26201         * io/chmod.c (__chmod): Likewise.
26202         * io/chown.c (__chown): Likewise.
26203         * io/close.c (__close): Likewise.
26204         * io/creat.c (creat): Likewise.
26205         * io/creat64.c (creat64): Likewise.
26206         * io/dup.c (__dup): Likewise.
26207         * io/dup2.c (__dup2): Likewise.
26208         * io/dup3.c (__dup3): Likewise.
26209         * io/euidaccess.c (__euidaccess): Likewise.
26210         * io/faccessat.c (faccessat): Likewise.
26211         * io/fchmod.c (__fchmod): Likewise.
26212         * io/fchmodat.c (fchmodat): Likewise.
26213         * io/fchown.c (__fchown): Likewise.
26214         * io/fchownat.c (fchownat): Likewise.
26215         * io/fcntl.c (__fcntl): Likewise.
26216         * io/flock.c (__flock): Likewise.
26217         * io/fts.c (fts_load): Likewise.
26218         (fts_close): Likewise.
26219         (fts_read): Likewise.
26220         (fts_set): Likewise.
26221         (fts_children): Likewise.
26222         (fts_build): Likewise.
26223         (fts_stat): Likewise.
26224         (fts_sort): Likewise.
26225         (fts_alloc): Likewise.
26226         (fts_lfree): Likewise.
26227         (fts_palloc): Likewise.
26228         (fts_padjust): Likewise.
26229         (fts_maxarglen): Likewise.
26230         (fts_safe_changedir): Likewise.
26231         * io/getwd.c (getwd): Likewise.
26232         * io/isatty.c (__isatty): Likewise.
26233         * io/lchown.c (__lchown): Likewise.
26234         * io/link.c (__link): Likewise.
26235         * io/linkat.c (linkat): Likewise.
26236         * io/lseek.c (__libc_lseek): Likewise.
26237         * io/mkdir.c (__mkdir): Likewise.
26238         * io/mkdirat.c (mkdirat): Likewise.
26239         * io/mkfifo.c (mkfifo): Likewise.
26240         * io/mkfifoat.c (mkfifoat): Likewise.
26241         * io/open.c (__libc_open): Likewise.
26242         * io/open64.c (__libc_open64): Likewise.
26243         * io/readlink.c (__readlink): Likewise.
26244         * io/readlinkat.c (readlinkat): Likewise.
26245         * io/rmdir.c (__rmdir): Likewise.
26246         * io/symlink.c (__symlink): Likewise.
26247         * io/symlinkat.c (symlinkat): Likewise.
26248         * io/ttyname.c (ttyname): Likewise.
26249         * io/ttyname_r.c (__ttyname_r): Likewise.
26250         * io/umask.c (__umask): Likewise.
26251         * io/unlink.c (__unlink): Likewise.
26252         * io/unlinkat.c (unlinkat): Likewise.
26253         * io/utime.c (utime): Likewise.
26254         * libio/clearerr.c (clearerr): Likewise.
26255         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
26256         * libio/feof.c (_IO_feof): Likewise.
26257         * libio/feof_u.c (feof_unlocked): Likewise.
26258         * libio/ferror.c (_IO_ferror): Likewise.
26259         * libio/ferror_u.c (ferror_unlocked): Likewise.
26260         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
26261         * libio/fileno.c (__fileno): Likewise.
26262         * libio/fputc.c (fputc): Likewise.
26263         * libio/fputc_u.c (fputc_unlocked): Likewise.
26264         * libio/fputwc.c (fputwc): Likewise.
26265         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
26266         * libio/freopen.c (freopen): Likewise.
26267         * libio/freopen64.c (freopen64): Likewise.
26268         * libio/fseek.c (fseek): Likewise.
26269         * libio/fseeko.c (fseeko): Likewise.
26270         * libio/fseeko64.c (fseeko64): Likewise.
26271         * libio/ftello.c (__ftello): Likewise.
26272         * libio/ftello64.c (ftello64): Likewise.
26273         * libio/fwide.c (fwide): Likewise.
26274         * libio/genops.c (_IO_un_link): Likewise.
26275         (_IO_link_in): Likewise.
26276         (_IO_least_marker): Likewise.
26277         (_IO_switch_to_main_get_area): Likewise.
26278         (_IO_switch_to_backup_area): Likewise.
26279         (_IO_switch_to_get_mode): Likewise.
26280         (_IO_free_backup_area): Likewise.
26281         (_IO_switch_to_put_mode): Likewise.
26282         (__overflow): Likewise.
26283         (__underflow): Likewise.
26284         (__uflow): Likewise.
26285         (_IO_setb): Likewise.
26286         (_IO_doallocbuf): Likewise.
26287         (_IO_default_underflow): Likewise.
26288         (_IO_default_uflow): Likewise.
26289         (_IO_default_xsputn): Likewise.
26290         (_IO_sgetn): Likewise.
26291         (_IO_default_xsgetn): Likewise.
26292         (_IO_sync): Likewise.
26293         (_IO_default_setbuf): Likewise.
26294         (_IO_default_seekpos): Likewise.
26295         (_IO_default_doallocate): Likewise.
26296         (_IO_init): Likewise.
26297         (_IO_old_init): Likewise.
26298         (_IO_default_sync): Likewise.
26299         (_IO_default_finish): Likewise.
26300         (_IO_default_seekoff): Likewise.
26301         (_IO_sputbackc): Likewise.
26302         (_IO_sungetc): Likewise.
26303         (_IO_set_column): Likewise.
26304         (_IO_set_column): Likewise.
26305         (_IO_adjust_column): Likewise.
26306         (_IO_get_column): Likewise.
26307         (_IO_init_marker): Likewise.
26308         (_IO_remove_marker): Likewise.
26309         (_IO_marker_difference): Likewise.
26310         (_IO_marker_delta): Likewise.
26311         (_IO_seekmark): Likewise.
26312         (_IO_unsave_markers): Likewise.
26313         (_IO_nobackup_pbackfail): Likewise.
26314         (_IO_default_pbackfail): Likewise.
26315         (_IO_default_seek): Likewise.
26316         (_IO_default_stat): Likewise.
26317         (_IO_default_read): Likewise.
26318         (_IO_default_write): Likewise.
26319         (_IO_default_showmanyc): Likewise.
26320         (_IO_default_imbue): Likewise.
26321         (_IO_iter_next): Likewise.
26322         (_IO_iter_file): Likewise.
26323         * libio/getc.c (_IO_getc): Likewise.
26324         * libio/getwc.c (_IO_getwc): Likewise.
26325         * libio/iofclose.c (_IO_new_fclose): Likewise.
26326         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
26327         * libio/iofflush.c (_IO_fflush): Likewise.
26328         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
26329         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
26330         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
26331         * libio/iofgets.c (_IO_fgets): Likewise.
26332         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
26333         * libio/iofgetws.c (fgetws): Likewise.
26334         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
26335         * libio/iofopen64.c (_IO_fopen64): Likewise.
26336         * libio/iofopncook.c (_IO_cookie_read): Likewise.
26337         (_IO_cookie_write): Likewise.
26338         (_IO_cookie_seek): Likewise.
26339         (_IO_cookie_close): Likewise.
26340         (_IO_cookie_seekoff): Likewise.
26341         (_IO_old_cookie_seek): Likewise.
26342         * libio/iofputs.c (_IO_fputs): Likewise.
26343         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
26344         * libio/iofputws.c (fputws): Likewise.
26345         * libio/iofputws_u.c (fputws_unlocked): Likewise.
26346         * libio/iofread.c (_IO_fread): Likewise.
26347         * libio/iofread_u.c (__fread_unlocked): Likewise.
26348         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
26349         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
26350         * libio/ioftell.c (_IO_ftell): Likewise.
26351         * libio/iofwrite.c (_IO_fwrite): Likewise.
26352         * libio/iogetdelim.c (_IO_getdelim): Likewise.
26353         * libio/iogets.c (_IO_gets): Likewise.
26354         * libio/iopadn.c (_IO_padn): Likewise.
26355         * libio/iopopen.c (_IO_new_proc_open): Likewise.
26356         (_IO_new_popen): Likewise.
26357         (_IO_new_proc_close): Likewise.
26358         * libio/ioputs.c (_IO_puts): Likewise.
26359         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
26360         (_IO_seekoff): Likewise.
26361         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
26362         (_IO_seekpos): Likewise.
26363         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
26364         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
26365         * libio/ioungetc.c (_IO_ungetc): Likewise.
26366         * libio/ioungetwc.c (ungetwc): Likewise.
26367         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
26368         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
26369         * libio/iowpadn.c (_IO_wpadn): Likewise.
26370         * libio/libc_fatal.c (__libc_fatal): Likewise.
26371         * libio/memstream.c (__open_memstream): Likewise.
26372         (_IO_mem_sync): Likewise.
26373         (_IO_mem_finish): Likewise.
26374         * libio/oldfileops.c (_IO_old_file_init): Likewise.
26375         (_IO_old_file_close_it): Likewise.
26376         (_IO_old_file_finish): Likewise.
26377         (_IO_old_file_fopen): Likewise.
26378         (_IO_old_file_attach): Likewise.
26379         (_IO_old_file_setbuf): Likewise.
26380         (_IO_old_do_write): Likewise.
26381         (old_do_write): Likewise.
26382         (_IO_old_file_underflow): Likewise.
26383         (_IO_old_file_overflow): Likewise.
26384         (_IO_old_file_sync): Likewise.
26385         (_IO_old_file_seekoff): Likewise.
26386         (_IO_old_file_write): Likewise.
26387         (_IO_old_file_xsputn): Likewise.
26388         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
26389         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
26390         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
26391         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
26392         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
26393         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
26394         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
26395         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
26396         (_IO_old_popen): Likewise.
26397         (_IO_old_proc_close): Likewise.
26398         * libio/oldpclose.c (__old_pclose): Likewise.
26399         * libio/pclose.c (__new_pclose): Likewise.
26400         * libio/peekc.c (_IO_peekc_locked): Likewise.
26401         * libio/putc.c (_IO_putc): Likewise.
26402         * libio/putc_u.c (putc_unlocked): Likewise.
26403         * libio/putchar.c (putchar): Likewise.
26404         * libio/putchar_u.c (putchar_unlocked): Likewise.
26405         * libio/putwc.c (putwc): Likewise.
26406         * libio/putwc_u.c (putwc_unlocked): Likewise.
26407         * libio/putwchar.c (putwchar): Likewise.
26408         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
26409         * libio/rewind.c (rewind): Likewise.
26410         * libio/setbuf.c (setbuf): Likewise.
26411         * libio/setlinebuf.c (setlinebuf): Likewise.
26412         * libio/vasprintf.c (_IO_vasprintf): Likewise.
26413         * libio/vscanf.c (_IO_vscanf): Likewise.
26414         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
26415         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
26416         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
26417         * libio/wgenops.c (_IO_least_wmarker): Likewise.
26418         (_IO_switch_to_main_wget_area): Likewise.
26419         (_IO_switch_to_wbackup_area): Likewise.
26420         (_IO_wsetb): Likewise.
26421         (_IO_wdefault_pbackfail): Likewise.
26422         (_IO_wdefault_finish): Likewise.
26423         (_IO_wdefault_uflow): Likewise.
26424         (__woverflow): Likewise.
26425         (__wuflow): Likewise.
26426         (__wunderflow): Likewise.
26427         (_IO_wdefault_xsputn): Likewise.
26428         (_IO_wdefault_xsgetn): Likewise.
26429         (_IO_wdoallocbuf): Likewise.
26430         (_IO_wdefault_doallocate): Likewise.
26431         (_IO_switch_to_wget_mode): Likewise.
26432         (_IO_free_wbackup_area): Likewise.
26433         (_IO_switch_to_wput_mode): Likewise.
26434         (_IO_sputbackwc): Likewise.
26435         (_IO_sungetwc): Likewise.
26436         (_IO_adjust_wcolumn): Likewise.
26437         (_IO_init_wmarker): Likewise.
26438         (_IO_wmarker_delta): Likewise.
26439         (_IO_seekwmark): Likewise.
26440         (_IO_unsave_wmarkers): Likewise.
26441         * libio/wmemstream.c (open_wmemstream): Likewise.
26442         (_IO_wmem_sync): Likewise.
26443         (_IO_wmem_finish): Likewise.
26444         * locale/nl_langinfo.c (nl_langinfo): Likewise.
26445         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
26446         * locale/programs/simple-hash.c (init_hash): Likewise.
26447         (delete_hash): Likewise.
26448         (insert_entry): Likewise.
26449         (set_entry): Likewise.
26450         (next_prime): Likewise.
26451         (is_prime): Likewise.
26452         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
26453         (xmalloc): Likewise.
26454         (xrealloc): Likewise.
26455         * locale/programs/xstrdup.c (xstrdup): Likewise.
26456         * localedata/collate-test.c (xstrcoll): Likewise.
26457         * localedata/xfrm-test.c (xstrcmp): Likewise.
26458         * login/getlogin_r.c (__getlogin_r): Likewise.
26459         * login/getpt.c (__posix_openpt): Likewise.
26460         * login/login_tty.c (login_tty): Likewise.
26461         * login/setlogin.c (setlogin): Likewise.
26462         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
26463         (mach_msg_destroy_port): Likewise.
26464         (mach_msg_destroy_memory): Likewise.
26465         * malloc/mcheck.c (flood): Likewise.
26466         * misc/acct.c (acct): Likewise.
26467         * misc/brk.c (__brk): Likewise.
26468         * misc/chflags.c (chflags): Likewise.
26469         * misc/chroot.c (chroot): Likewise.
26470         * misc/fchflags.c (fchflags): Likewise.
26471         * misc/fstab.c (getfsspec): Likewise.
26472         (getfsfile): Likewise.
26473         * misc/fsync.c (fsync): Likewise.
26474         * misc/ftruncate.c (__ftruncate): Likewise.
26475         * misc/ftruncate64.c (__ftruncate64): Likewise.
26476         * misc/getdomain.c (getdomainname): Likewise.
26477         (getdomainname): Likewise.
26478         * misc/gethostname.c (__gethostname): Likewise.
26479         * misc/getpass.c (getpass): Likewise.
26480         * misc/getttyent.c (skip): Likewise.
26481         (value): Likewise.
26482         * misc/gtty.c (gtty): Likewise.
26483         * misc/hsearch.c (hsearch): Likewise.
26484         (hcreate): Likewise.
26485         * misc/hsearch_r.c (__hcreate_r): Likewise.
26486         (__hdestroy_r): Likewise.
26487         * misc/ioctl.c (__ioctl): Likewise.
26488         * misc/mkdtemp.c (mkdtemp): Likewise.
26489         * misc/mkostemp.c (mkostemp): Likewise.
26490         * misc/mkostemp64.c (mkostemp64): Likewise.
26491         * misc/mkostemps.c (mkostemps): Likewise.
26492         * misc/mkostemps64.c (mkostemps64): Likewise.
26493         * misc/mkstemp.c (mkstemp): Likewise.
26494         * misc/mkstemp64.c (mkstemp64): Likewise.
26495         * misc/mkstemps.c (mkstemps): Likewise.
26496         * misc/mkstemps64.c (mkstemps64): Likewise.
26497         * misc/mktemp.c (__mktemp): Likewise.
26498         * misc/preadv.c (preadv): Likewise.
26499         * misc/preadv64.c (preadv64): Likewise.
26500         * misc/pwritev.c (pwritev): Likewise.
26501         * misc/pwritev64.c (pwritev64): Likewise.
26502         * misc/readv.c (__readv): Likewise.
26503         * misc/revoke.c (revoke): Likewise.
26504         * misc/setdomain.c (setdomainname): Likewise.
26505         * misc/setegid.c (setegid): Likewise.
26506         * misc/seteuid.c (seteuid): Likewise.
26507         * misc/sethostid.c (sethostid): Likewise.
26508         * misc/sethostname.c (sethostname): Likewise.
26509         * misc/setregid.c (__setregid): Likewise.
26510         * misc/setreuid.c (__setreuid): Likewise.
26511         * misc/sstk.c (sstk): Likewise.
26512         * misc/stty.c (stty): Likewise.
26513         * misc/syscall.c (syscall): Likewise.
26514         * misc/syslog.c (setlogmask): Likewise.
26515         * misc/truncate.c (__truncate): Likewise.
26516         * misc/truncate64.c (truncate64): Likewise.
26517         * misc/ualarm.c (ualarm): Likewise.
26518         * misc/usleep.c (usleep): Likewise.
26519         * misc/ustat.c (ustat): Likewise.
26520         * misc/writev.c (__writev): Likewise.
26521         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
26522         * nptl/old_pthread_cond_broadcast.c
26523         (__pthread_cond_broadcast_2_0): Likewise.
26524         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
26525         Likewise.
26526         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
26527         Likewise.
26528         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
26529         Likewise.
26530         * nptl/pt-raise.c (raise): Likewise.
26531         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
26532         Likewise.
26533         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
26534         * nptl/pthread_barrierattr_destroy.c
26535         (pthread_barrierattr_destroy): Likewise.
26536         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
26537         Likewise.
26538         * nptl/pthread_barrierattr_setpshared.c
26539         (pthread_barrierattr_setpshared): Likewise.
26540         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
26541         Likewise.
26542         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
26543         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
26544         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
26545         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
26546         Likewise.
26547         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
26548         Likewise.
26549         * nptl/pthread_condattr_getpshared.c
26550         (pthread_condattr_getpshared): Likewise.
26551         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
26552         Likewise.
26553         * nptl/pthread_condattr_setpshared.c
26554         (pthread_condattr_setpshared): Likewise.
26555         * nptl/pthread_detach.c (pthread_detach): Likewise.
26556         * nptl/pthread_equal.c (__pthread_equal): Likewise.
26557         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
26558         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
26559         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
26560         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
26561         Likewise.
26562         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
26563         Likewise.
26564         * nptl/pthread_mutex_getprioceiling.c
26565         (pthread_mutex_getprioceiling): Likewise.
26566         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
26567         Likewise.
26568         * nptl/pthread_mutexattr_getprotocol.c
26569         (pthread_mutexattr_getprotocol): Likewise.
26570         * nptl/pthread_mutexattr_getpshared.c
26571         (pthread_mutexattr_getpshared): Likewise.
26572         * nptl/pthread_mutexattr_getrobust.c
26573         (pthread_mutexattr_getrobust): Likewise.
26574         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
26575         Likewise.
26576         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
26577         Likewise.
26578         * nptl/pthread_mutexattr_setprioceiling.c
26579         (pthread_mutexattr_setprioceiling): Likewise.
26580         * nptl/pthread_mutexattr_setprotocol.c
26581         (pthread_mutexattr_setprotocol): Likewise.
26582         * nptl/pthread_mutexattr_setpshared.c
26583         (pthread_mutexattr_setpshared): Likewise.
26584         * nptl/pthread_mutexattr_setrobust.c
26585         (pthread_mutexattr_setrobust): Likewise.
26586         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
26587         Likewise.
26588         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
26589         Likewise.
26590         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
26591         Likewise.
26592         * nptl/pthread_rwlockattr_getkind_np.c
26593         (pthread_rwlockattr_getkind_np): Likewise.
26594         * nptl/pthread_rwlockattr_getpshared.c
26595         (pthread_rwlockattr_getpshared): Likewise.
26596         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
26597         Likewise.
26598         * nptl/pthread_rwlockattr_setkind_np.c
26599         (pthread_rwlockattr_setkind_np): Likewise.
26600         * nptl/pthread_rwlockattr_setpshared.c
26601         (pthread_rwlockattr_setpshared): Likewise.
26602         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
26603         Likewise.
26604         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
26605         Likewise.
26606         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
26607         Likewise.
26608         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
26609         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
26610         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
26611         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
26612         * nptl/sem_close.c (sem_close): Likewise.
26613         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
26614         * nptl/sem_init.c (__old_sem_init): Likewise.
26615         * nptl/sigaction.c (__sigaction): Likewise.
26616         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
26617         * posix/_exit.c (_exit): Likewise.
26618         * posix/alarm.c (alarm): Likewise.
26619         * posix/confstr.c (confstr): Likewise.
26620         * posix/fpathconf.c (__fpathconf): Likewise.
26621         * posix/getgroups.c (__getgroups): Likewise.
26622         * posix/getpgid.c (__getpgid): Likewise.
26623         * posix/group_member.c (__group_member): Likewise.
26624         * posix/pathconf.c (__pathconf): Likewise.
26625         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
26626         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
26627         * posix/setgid.c (__setgid): Likewise.
26628         * posix/setpgid.c (__setpgid): Likewise.
26629         * posix/setuid.c (__setuid): Likewise.
26630         * posix/sleep.c (__sleep): Likewise.
26631         * posix/sysconf.c (__sysconf): Likewise.
26632         * posix/times.c (__times): Likewise.
26633         * posix/uname.c (__uname): Likewise.
26634         * posix/waitid.c (__waitid): Likewise.
26635         * pwd/getpw.c (__getpw): Likewise.
26636         * resolv/base64.c (b64_pton): Likewise.
26637         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
26638         * resolv/gethnamaddr.c (Dprintf): Likewise.
26639         (gethostbyname): Likewise.
26640         (gethostbyname2): Likewise.
26641         (gethostbyaddr): Likewise.
26642         (_sethtent): Likewise.
26643         (_gethtbyname): Likewise.
26644         (_gethtbyname2): Likewise.
26645         (_gethtbyaddr): Likewise.
26646         (map_v4v6_address): Likewise.
26647         (map_v4v6_hostent): Likewise.
26648         (addrsort): Likewise.
26649         (ht_sethostent): Likewise.
26650         (ht_gethostbyname): Likewise.
26651         (ht_gethostbyaddr): Likewise.
26652         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
26653         (inet_net_ntop_ipv4): Likewise.
26654         * resolv/inet_neta.c (inet_neta): Likewise.
26655         * resolv/inet_ntop.c (inet_ntop): Likewise.
26656         (inet_ntop4): Likewise.
26657         (inet_ntop6): Likewise.
26658         * resolv/inet_pton.c (__inet_pton): Likewise.
26659         (inet_pton4): Likewise.
26660         (inet_pton6): Likewise.
26661         * resolv/res_debug.c (loc_aton): Likewise.
26662         (loc_ntoa): Likewise.
26663         * resource/getpriority.c (__getpriority): Likewise.
26664         * resource/getrusage.c (__getrusage): Likewise.
26665         * resource/nice.c (nice): Likewise.
26666         * resource/setpriority.c (__setpriority): Likewise.
26667         * resource/setrlimit64.c (setrlimit64): Likewise.
26668         * resource/vlimit.c (vlimit): Likewise.
26669         * resource/vtimes.c (vtimes): Likewise.
26670         * rt/aio_error.c (aio_error): Likewise.
26671         * rt/aio_return.c (aio_return): Likewise.
26672         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
26673         * signal/kill.c (__kill): Likewise.
26674         * signal/killpg.c (killpg): Likewise.
26675         * signal/raise.c (raise): Likewise.
26676         * signal/sigaction.c (__sigaction): Likewise.
26677         * signal/sigaddset.c (sigaddset): Likewise.
26678         * signal/sigaltstack.c (sigaltstack): Likewise.
26679         * signal/sigandset.c (sigandset): Likewise.
26680         * signal/sigblock.c (__sigblock): Likewise.
26681         * signal/sigdelset.c (sigdelset): Likewise.
26682         * signal/sigempty.c (sigemptyset): Likewise.
26683         * signal/sigfillset.c (sigfillset): Likewise.
26684         * signal/sighold.c (sighold): Likewise.
26685         * signal/sigignore.c (sigignore): Likewise.
26686         * signal/sigintr.c (siginterrupt): Likewise.
26687         * signal/sigisempty.c (sigisemptyset): Likewise.
26688         * signal/sigismem.c (sigismember): Likewise.
26689         * signal/signal.c (signal): Likewise.
26690         * signal/sigorset.c (sigorset): Likewise.
26691         * signal/sigpause.c (__sigpause): Likewise.
26692         * signal/sigpending.c (sigpending): Likewise.
26693         * signal/sigprocmask.c (__sigprocmask): Likewise.
26694         * signal/sigrelse.c (sigrelse): Likewise.
26695         * signal/sigreturn.c (__sigreturn): Likewise.
26696         * signal/sigset.c (sigset): Likewise.
26697         * signal/sigsetmask.c (__sigsetmask): Likewise.
26698         * signal/sigstack.c (sigstack): Likewise.
26699         * signal/sigsuspend.c (__sigsuspend): Likewise.
26700         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
26701         * signal/sysv_signal.c (__sysv_signal): Likewise.
26702         * socket/accept.c (accept): Likewise.
26703         * socket/accept4.c (__libc_accept4): Likewise.
26704         * socket/bind.c (__bind): Likewise.
26705         * socket/connect.c (__connect): Likewise.
26706         * socket/getpeername.c (getpeername): Likewise.
26707         * socket/getsockname.c (__getsockname): Likewise.
26708         * socket/getsockopt.c (getsockopt): Likewise.
26709         * socket/listen.c (__listen): Likewise.
26710         * socket/recv.c (__recv): Likewise.
26711         * socket/recvmsg.c (__recvmsg): Likewise.
26712         * socket/send.c (__send): Likewise.
26713         * socket/sendmsg.c (__sendmsg): Likewise.
26714         * socket/shutdown.c (shutdown): Likewise.
26715         * socket/sockatmark.c (sockatmark): Likewise.
26716         * socket/socket.c (__socket): Likewise.
26717         * stdio-common/ctermid.c (ctermid): Likewise.
26718         * stdio-common/cuserid.c (cuserid): Likewise.
26719         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
26720         * stdio-common/remove.c (remove): Likewise.
26721         * stdio-common/rename.c (rename): Likewise.
26722         * stdio-common/renameat.c (renameat): Likewise.
26723         * stdio-common/tempname.c (__gen_tempname): Likewise.
26724         * stdio-common/xbug.c (InitBuffer): Likewise.
26725         (AppendToBuffer): Likewise.
26726         (ReadFile): Likewise.
26727         * stdlib/a64l.c (a64l): Likewise.
26728         * stdlib/drand48_r.c (drand48_r): Likewise.
26729         * stdlib/getcontext.c (getcontext): Likewise.
26730         * stdlib/getenv.c (getenv): Likewise.
26731         * stdlib/l64a.c (l64a): Likewise.
26732         * stdlib/llabs.c (llabs): Likewise.
26733         * stdlib/lldiv.c (lldiv): Likewise.
26734         * stdlib/lrand48_r.c (lrand48_r): Likewise.
26735         * stdlib/mrand48_r.c (mrand48_r): Likewise.
26736         * stdlib/putenv.c (putenv): Likewise.
26737         * stdlib/random.c (__srandom): Likewise.
26738         (__initstate): Likewise.
26739         (__setstate): Likewise.
26740         * stdlib/random_r.c (__srandom_r): Likewise.
26741         (__setstate_r): Likewise.
26742         (__random_r): Likewise.
26743         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
26744         * stdlib/setcontext.c (setcontext): Likewise.
26745         * stdlib/setenv.c (setenv): Likewise.
26746         (unsetenv): Likewise.
26747         * stdlib/srand48.c (srand48): Likewise.
26748         * stdlib/srand48_r.c (__srand48_r): Likewise.
26749         * stdlib/swapcontext.c (swapcontext): Likewise.
26750         * stdlib/system.c (__libc_system): Likewise.
26751         * stdlib/tst-strtod.c (expand): Likewise.
26752         * stdlib/tst-strtol.c (expand): Likewise.
26753         * stdlib/tst-strtoll.c (expand): Likewise.
26754         * streams/fattach.c (fattach): Likewise.
26755         * streams/fdetach.c (fdetach): Likewise.
26756         * streams/getmsg.c (getmsg): Likewise.
26757         * streams/isastream.c (isastream): Likewise.
26758         * string/ffs.c (__ffs): Likewise.
26759         * string/ffsll.c (ffsll): Likewise.
26760         * string/memcmp.c (memcmp_common_alignment): Likewise.
26761         (memcmp_not_common_alignment): Likewise.
26762         (MEMCMP): Likewise.
26763         * string/memcpy.c (memcpy): Likewise.
26764         * string/memmove.c (MEMMOVE): Likewise.
26765         * string/memset.c (memset): Likewise.
26766         * string/rawmemchr.c (RAWMEMCHR): Likewise.
26767         * string/strchrnul.c (STRCHRNUL): Likewise.
26768         * string/strerror.c (strerror): Likewise.
26769         * string/strndup.c (__strndup): Likewise.
26770         * string/strverscmp.c (__strverscmp): Likewise.
26771         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
26772         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
26773         (clnttcp_freeres): Likewise.
26774         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
26775         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
26776         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
26777         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
26778         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
26779         (xdr_callhdr): Likewise.
26780         * sunrpc/rpcinfo.c (udpping): Likewise.
26781         (tcpping): Likewise.
26782         (pstatus): Likewise.
26783         (pmapdump): Likewise.
26784         (brdcst): Likewise.
26785         (deletereg): Likewise.
26786         (getprognum): Likewise.
26787         (getvers): Likewise.
26788         (get_inet_address): Likewise.
26789         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
26790         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26791         (svcudp_stat): Likewise.
26792         (svcudp_recv): Likewise.
26793         (svcudp_reply): Likewise.
26794         (svcudp_getargs): Likewise.
26795         (svcudp_freeargs): Likewise.
26796         (svcudp_destroy): Likewise.
26797         * sunrpc/xdr.c (xdr_bytes): Likewise.
26798         (xdr_netobj): Likewise.
26799         (xdr_string): Likewise.
26800         (xdr_wrapstring): Likewise.
26801         * sunrpc/xdr_float.c (xdr_float): Likewise.
26802         (xdr_double): Likewise.
26803         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
26804         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
26805         * sysvipc/ftok.c (ftok): Likewise.
26806         * sysvipc/msgctl.c (msgctl): Likewise.
26807         * sysvipc/msgget.c (msgget): Likewise.
26808         * sysvipc/msgrcv.c (msgrcv): Likewise.
26809         * sysvipc/msgsnd.c (msgsnd): Likewise.
26810         * sysvipc/semget.c (semget): Likewise.
26811         * sysvipc/semop.c (semop): Likewise.
26812         * sysvipc/shmat.c (shmat): Likewise.
26813         * sysvipc/shmctl.c (shmctl): Likewise.
26814         * sysvipc/shmdt.c (shmdt): Likewise.
26815         * sysvipc/shmget.c (shmget): Likewise.
26816         * termios/cfmakeraw.c (cfmakeraw): Likewise.
26817         * termios/speed.c (cfgetospeed): Likewise.
26818         (cfgetispeed): Likewise.
26819         (cfsetospeed): Likewise.
26820         (cfsetispeed): Likewise.
26821         * termios/tcflow.c (tcflow): Likewise.
26822         * termios/tcflush.c (tcflush): Likewise.
26823         * termios/tcgetattr.c (__tcgetattr): Likewise.
26824         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
26825         * termios/tcgetsid.c (tcgetsid): Likewise.
26826         * termios/tcsendbrk.c (tcsendbreak): Likewise.
26827         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
26828         * time/adjtime.c (__adjtime): Likewise.
26829         * time/dysize.c (dysize): Likewise.
26830         * time/ftime.c (ftime): Likewise.
26831         * time/getitimer.c (__getitimer): Likewise.
26832         * time/gettimeofday.c (__gettimeofday): Likewise.
26833         * time/gmtime.c (__gmtime_r): Likewise.
26834         (gmtime): Likewise.
26835         * time/localtime.c (__localtime_r): Likewise.
26836         (localtime): Likewise.
26837         * time/offtime.c (__offtime): Likewise.
26838         * time/settimeofday.c (__settimeofday): Likewise.
26839         * time/stime.c (stime): Likewise.
26840         * time/strftime_l.c (tm_diff): Likewise.
26841         (iso_week_days): Likewise.
26842         * time/strptime.c (strptime): Likewise.
26843         * time/time.c (time): Likewise.
26844         * time/timespec_get.c (timespec_get): Likewise.
26845         * time/tzset.c (tzset_internal): Likewise.
26846         (compute_change): Likewise.
26847         (__tz_compute): Likewise.
26848         * wcsmbs/btowc.c (__btowc): Likewise.
26849         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
26850         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
26851         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
26852         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
26853         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
26854         * wcsmbs/wcscat.c (__wcscat): Likewise.
26855         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
26856         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
26857         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
26858         * wcsmbs/wcscspn.c (wcscspn): Likewise.
26859         * wcsmbs/wcsdup.c (wcsdup): Likewise.
26860         * wcsmbs/wcslen.c (__wcslen): Likewise.
26861         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
26862         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
26863         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
26864         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
26865         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
26866         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
26867         * wcsmbs/wcsspn.c (wcsspn): Likewise.
26868         * wcsmbs/wcsstr.c (wcsstr): Likewise.
26869         * wcsmbs/wcstok.c (wcstok): Likewise.
26870         * wcsmbs/wctob.c (wctob): Likewise.
26871         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
26872         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
26873         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
26874         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
26875         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
26876         * wcsmbs/wmemset.c (__wmemset): Likewise.
26877         * wctype/wcfuncs.c (__towlower): Likewise.
26878         (__towupper): Likewise.
26879
26880         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
26881         (lll_unlock_elision): Add adapt_count parameter.
26882
26883 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
26884
26885         * sysdeps/nptl/configure.ac: Do not give errors based on the
26886         results of top-level configure tests.
26887         * sysdeps/nptl/configure: Regenerated.
26888
26889         * configure.ac (libc_cv_Bgroup): Remove configure test.
26890         * configure: Regenerated.
26891         * config.make.in (have-Bgroup): Remove variable.
26892
26893         * configure.ac (sizeof_long_double): Remove configure test.
26894         * configure: Regenerated.
26895         * config.make.in (sizeof-long-double): Remove variable.
26896
26897         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
26898         * configure: Regenerated.
26899         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
26900         variable.
26901         (exceptions): Likewise.
26902         * sysdeps/arm/configure: Regenerated.
26903         * config.make.in (exceptions): Remove variable.
26904         * Makeconfig (uses-callbacks): Use -fexceptions instead of
26905         $(exceptions).
26906         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
26907         (CFLAGS-vdprintf_chk.c): Likewise.
26908         (CFLAGS-printf_chk.c): Likewise.
26909         (CFLAGS-fprintf_chk.c): Likewise.
26910         (CFLAGS-vprintf_chk.c): Likewise.
26911         (CFLAGS-vfprintf_chk.c): Likewise.
26912         (CFLAGS-gets_chk.c): Likewise.
26913         (CFLAGS-fgets_chk.c): Likewise.
26914         (CFLAGS-fgets_u_chk.c): Likewise.
26915         (CFLAGS-fread_chk.c): Likewise.
26916         (CFLAGS-fread_u_chk.c): Likewise.
26917         (CFLAGS-wprintf_chk.c): Likewise.
26918         (CFLAGS-fwprintf_chk.c): Likewise.
26919         (CFLAGS-vwprintf_chk.c): Likewise.
26920         (CFLAGS-vfwprintf_chk.c): Likewise.
26921         (CFLAGS-fgetws_chk.c): Likewise.
26922         (CFLAGS-fgetws_u_chk.c): Likewise.
26923         * libio/Makefile (CFLAGS-fileops.c): Likewise.
26924         (CFLAGS-fputc.c): Likewise.
26925         (CFLAGS-fputwc.c): Likewise.
26926         (CFLAGS-freopen64.c): Likewise.
26927         (CFLAGS-freopen.c): Likewise.
26928         (CFLAGS-fseek.c): Likewise.
26929         (CFLAGS-fseeko64.c): Likewise.
26930         (CFLAGS-fseeko.c): Likewise.
26931         (CFLAGS-ftello64.c): Likewise.
26932         (CFLAGS-ftello.c): Likewise.
26933         (CFLAGS-fwide.c): Likewise.
26934         (CFLAGS-genops.c): Likewise.
26935         (CFLAGS-getc.c): Likewise.
26936         (CFLAGS-getchar.c): Likewise.
26937         (CFLAGS-getwc.c): Likewise.
26938         (CFLAGS-getwchar.c): Likewise.
26939         (CFLAGS-iofclose.c): Likewise.
26940         (CFLAGS-iofflush.c): Likewise.
26941         (CFLAGS-iofgetpos64.c): Likewise.
26942         (CFLAGS-iofgetpos.c): Likewise.
26943         (CFLAGS-iofgets.c): Likewise.
26944         (CFLAGS-iofgetws.c): Likewise.
26945         (CFLAGS-iofputs.c): Likewise.
26946         (CFLAGS-iofputws.c): Likewise.
26947         (CFLAGS-iofread.c): Likewise.
26948         (CFLAGS-iofsetpos64.c): Likewise.
26949         (CFLAGS-iofsetpos.c): Likewise.
26950         (CFLAGS-ioftell.c): Likewise.
26951         (CFLAGS-iofwrite.c): Likewise.
26952         (CFLAGS-iogetdelim.c): Likewise.
26953         (CFLAGS-iogetline.c): Likewise.
26954         (CFLAGS-iogets.c): Likewise.
26955         (CFLAGS-iogetwline.c): Likewise.
26956         (CFLAGS-ioputs.c): Likewise.
26957         (CFLAGS-ioseekoff.c): Likewise.
26958         (CFLAGS-ioseekpos.c): Likewise.
26959         (CFLAGS-iosetbuffer.c): Likewise.
26960         (CFLAGS-iosetvbuf.c): Likewise.
26961         (CFLAGS-ioungetc.c): Likewise.
26962         (CFLAGS-ioungetwc.c): Likewise.
26963         (CFLAGS-oldfileops.c): Likewise.
26964         (CFLAGS-oldiofclose.c): Likewise.
26965         (CFLAGS-oldiofgetpos64.c): Likewise.
26966         (CFLAGS-oldiofgetpos.c): Likewise.
26967         (CFLAGS-oldiofsetpos64.c): Likewise.
26968         (CFLAGS-oldiofsetpos.c): Likewise.
26969         (CFLAGS-peekc.c): Likewise.
26970         (CFLAGS-putc.c): Likewise.
26971         (CFLAGS-putchar.c): Likewise.
26972         (CFLAGS-putwc.c): Likewise.
26973         (CFLAGS-putwchar.c): Likewise.
26974         (CFLAGS-rewind.c): Likewise.
26975         (CFLAGS-wfileops.c): Likewise.
26976         (CFLAGS-wgenops.c): Likewise.
26977         (CFLAGS-oldiofopen.c): Likewise.
26978         (CFLAGS-iofopen.c): Likewise.
26979         (CFLAGS-iofopen64.c): Likewise.
26980         (CFLAGS-oldtmpfile.c): Likewise.
26981         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
26982         (CFLAGS-fprintf.c): Likewise.
26983         (CFLAGS-printf.c): Likewise.
26984         (CFLAGS-vfwprintf.c): Likewise.
26985         (CFLAGS-vfscanf.c): Likewise.
26986         (CFLAGS-vfwscanf.c): Likewise.
26987         (CFLAGS-fscanf.c): Likewise.
26988         (CFLAGS-scanf.c): Likewise.
26989         (CFLAGS-isoc99_vfscanf.c): Likewise.
26990         (CFLAGS-isoc99_vscanf.c): Likewise.
26991         (CFLAGS-isoc99_fscanf.c): Likewise.
26992         (CFLAGS-isoc99_scanf.c): Likewise.
26993         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
26994         (CFLAGS-isoc99_fwscanf.c): Likewise.
26995         (CFLAGS-isoc99_vwscanf.c): Likewise.
26996         (CFLAGS-isoc99_vfwscanf.c): Likewise.
26997
26998         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
26999         after mkstemp64.
27000         * login/tst-utmp.c (do_prepare): Likewise.
27001         * rt/tst-aio.c (do_prepare): Likewise.
27002         * rt/tst-aio64.c (do_prepare): Likewise.
27003
27004 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
27005
27006         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
27007         (__lll_lock_elision): Remove adapt_count decrement...
27008         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
27009         (__lll_trylock_elision): Likewise.
27010         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
27011         (__lll_unlock_elision): ... to here. And utilize
27012         new adapt_count parameter.
27013         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
27014         (__lll_unlock_elision): Update to include adapt_count
27015         parameter.
27016         (lll_unlock_elision): Pass pointer to adapt_count
27017         variable.
27018
27019 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
27020
27021         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
27022         Add elision adapt_count parameter to list of arguments.
27023         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
27024         (lll_unlock_elision): Update with new parameter list
27025         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
27026         (lll_unlock_elision): Likewise.
27027         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
27028         (lll_unlock_elision): Likewise.
27029
27030 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27031
27032         [BZ #19122]
27033         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
27034         attribute_hidden.
27035
27036         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
27037         attribute_hidden.
27038         [IS_IN (rtld)] (__strdup): Likewise.
27039         [IS_IN (rtld)] (__strerror_r): Likewise.
27040         [IS_IN (rtld)] (__strsep_g): Likewise.
27041         [IS_IN (rtld)] (memchr): Likewise.
27042         [IS_IN (rtld)] (memcmp): Likewise.
27043         [IS_IN (rtld)] (memcpy): Likewise.
27044         [IS_IN (rtld)] (memmove): Likewise.
27045         [IS_IN (rtld)] (memset): Likewise.
27046         [IS_IN (rtld)] (rawmemchr): Likewise.
27047         [IS_IN (rtld)] (stpcpy): Likewise.
27048         [IS_IN (rtld)] (strchr): Likewise.
27049         [IS_IN (rtld)] (strcmp): Likewise.
27050         [IS_IN (rtld)] (strlen): Likewise.
27051         [IS_IN (rtld)] (strnlen): Likewise.
27052         [IS_IN (rtld)] (strsep): Likewise.
27053
27054         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
27055         attribute_hidden.
27056         [IS_IN (rtld)] (__strtoul_internal): Likewise.
27057
27058         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
27059         attribute_hidden.
27060         [IS_IN (rtld)] (__libc_sigaction): Likewise.
27061
27062         * include/setjmp.h (__longjmp): Add attribute_hidden.
27063         [IS_IN (rtld)] (__sigsetjmp): Likewise.
27064
27065         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
27066         Add attribute_hidden.
27067
27068         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
27069         [IS_IN (rtld)] (__open): Likewise.
27070         [IS_IN (rtld)] (__fcntl): Likewise.
27071
27072         * include/dirent.h (__opendirat): Add attribute_hidden.
27073         (__getdents): Likewise.
27074         (__getdents64): Likewise.
27075         (__alloc_dir): Likewise.
27076         [IS_IN (rtld)] (__closedir): Likewise.
27077         [IS_IN (rtld)] (__fdopendir): Likewise.
27078         [IS_IN (rtld)] (__readdir): Likewise.
27079         [IS_IN (rtld)] (__readdir64): Likewise.
27080         [IS_IN (rtld)] (__rewinddir): Likewise.
27081
27082         * include/dlfcn.h (_dl_catch_error): Moved to ...
27083         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
27084         attribute_hidden.
27085
27086         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
27087         (_itoa_word): Likewise.
27088
27089         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
27090         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
27091         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
27092         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
27093         (_dl_higher_prime_number): Likewise.
27094         (_dl_debug_printf_c): Likewise.
27095         (_dl_signal_cerror): Likewise.
27096         (_dl_receive_error): Likewise.
27097         (_dl_reloc_bad_type): Likewise.
27098         (_dl_resolve_conflicts): Likewise.
27099         (_dl_check_all_versions): Likewise.
27100         (_dl_check_map_versions): Likewise.
27101         (_dl_sort_fini): Likewise.
27102         (_dl_debug_initialize): Likewise.
27103         (_dl_init_paths): Likewise.
27104         (_dl_show_auxv): Likewise.
27105         (_dl_next_ld_env_entry): Likewise.
27106         (_dl_important_hwcaps): Likewise.
27107         (_dl_load_cache_lookup): Likewise.
27108         (_dl_update_slotinfo): Likewise.
27109         (_dl_show_scope): Likewise.
27110
27111         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
27112         attribute_hidden.
27113         (_wordcopy_fwd_dest_aligned): Likewise.
27114         (_wordcopy_bwd_aligned): Likewise.
27115         (_wordcopy_bwd_dest_aligned): Likewise.
27116
27117         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
27118         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
27119         Likewise.
27120         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
27121         Likewise.
27122         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
27123
27124 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27125
27126         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
27127         GCC 5 requirement.
27128
27129 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
27130
27131         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
27132         test.
27133         * sysdeps/i386/configure: Regenerated.
27134         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
27135         code unconditional.
27136
27137         * configure.ac (libc_cv_asm_previous_directive): Remove configure
27138         test.
27139         (libc_cv_asm_popsection_directive): Likewise.
27140         * configure: Regenerated.
27141         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
27142         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
27143         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
27144         (__make_section_unallocated): Make definition unconditional.
27145         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
27146         Remove conditional definition.
27147         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
27148         (__make_section_unallocated): Likewise.
27149
27150         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
27151         * configure: Regenerated.
27152         * config.make.in (static-libgcc): Remove variable.
27153         * Makerules (build-shlib-helper): Use -static-libgcc instead of
27154         $(static-libgcc).
27155         (build-module-helper): Likewise.
27156
27157         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
27158         * configure: Regenerated.
27159
27160 2015-10-15  Florian Weimer  <fweimer@redhat.com>
27161
27162         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
27163         (struct char_buffer): New type.
27164         (char_buffer_start, char_buffer_size, char_buffer_error)
27165         (char_buffer_rewind, char_buffer_add): New functions.
27166         (ADDW): Remove macro, replaced by the char_buffer_add function.
27167         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
27168         of extend_alloca.  Make control flow more explicit.
27169
27170 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27171
27172         [BZ #19137]
27173         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
27174         Add -fomit-frame-pointer.
27175         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
27176
27177 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27178
27179         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
27180         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
27181         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
27182         only if !__GNUC_PREREQ (5,0).
27183         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
27184         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
27185         (INTERNAL_SYSCALL_NCS): Likewise.
27186         (LOADREGS_0): New macro for GCC 5.
27187         (ASMARGS_0): Likewise.
27188         (LOADREGS_1): Likewise.
27189         (ASMARGS_1): Likewise.
27190         (LOADREGS_2): Likewise.
27191         (ASMARGS_2): Likewise.
27192         (LOADREGS_3): Likewise.
27193         (ASMARGS_3): Likewise.
27194         (LOADREGS_4): Likewise.
27195         (ASMARGS_4): Likewise.
27196         (LOADREGS_5): Likewise.
27197         (ASMARGS_5): Likewise.
27198         (LOADREGS_6): Likewise.
27199         (ASMARGS_6): Likewise.
27200
27201 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27202
27203         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
27204         -fomit-frame-pointer.
27205         (CFLAGS-mmap64.c): Likewise.
27206         (CFLAGS-semtimedop.c): Likewise.
27207         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
27208         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
27209         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
27210         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
27211
27212 2015-10-15  Florian Weimer  <fweimer@redhat.com>
27213
27214         [BZ #18928]
27215         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
27216         _dl_pointer_guard member.
27217         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
27218         initializer.
27219         (security_init): Always set up pointer guard.
27220         (process_envvars): Do not process LD_POINTER_GUARD.
27221
27222 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
27223
27224         [BZ #19134]
27225         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
27226         (.LC2): Likewise.
27227         (.LC3): Likewise.
27228         (__lround): Do not add 0.5 to integer or out-of-range arguments.
27229
27230 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27231
27232         [BZ #19129]
27233         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
27234         r0 and r1.
27235
27236 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
27237
27238         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
27239
27240 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
27241
27242         * include/stap-probe.h: Fix macro definition formatting.
27243
27244 2015-10-14  Florian Weimer  <fweimer@redhat.com>
27245
27246         [BZ #19074]
27247         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
27248         load and store num_ifs.
27249
27250 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
27251
27252         [BZ #18822]
27253         * sysdeps/unix/sysv/linux/sched_getaffinity.c
27254         (__sched_getaffinity_new): Add libc_hidden_proto and
27255         libc_hidden_def.
27256
27257 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
27258
27259         [BZ #19007]
27260         * scripts/localplt.awk: Also allow GOT references.
27261         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
27262         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
27263         with "+ REL R_386_GLOB_DAT".
27264         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
27265         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
27266
27267 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
27268
27269         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
27270         INLINE_SYSCALL_ERROR_RETURN_VALUE.
27271         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
27272         Likewise.
27273         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
27274         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
27275         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
27276         INTERNAL_SYSCALLINTERNAL_SYSCALL and
27277         INLINE_SYSCALL_ERROR_RETURN_VALUE.
27278         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
27279         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
27280         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
27281         Likewise.
27282         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
27283
27284 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
27285
27286         [BZ #19125]
27287         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
27288         <math_private.h> and <stdint.h>.
27289         (__llround): Avoid conversions to and from long long int, and
27290         subtractions, where those might raise spurious exceptions.
27291         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
27292         <math_private.h> and <stdint.h>.
27293         (__llroundf): Avoid conversions to and from long long int, and
27294         subtractions, where those might raise spurious exceptions.
27295
27296 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
27297
27298         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
27299         INLINE_SYSCALL_ERROR_RETURN_VALUE.
27300         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
27301         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
27302         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
27303         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
27304         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
27305         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
27306         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
27307         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
27308         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
27309         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
27310         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
27311         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
27312         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
27313         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
27314         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
27315         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
27316         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
27317         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
27318         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
27319         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
27320         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
27321         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
27322         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
27323         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
27324         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
27325         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
27326         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
27327         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
27328         (__xstat64_conv): Likewise.
27329         (__xstat32_conv): Likewise.
27330
27331 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
27332
27333         * sysdeps/unix/sysv/linux/sysdep.h: New file.
27334         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
27335         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
27336         <sysdeps/unix/sysv/linux/sysdep.h>.
27337         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
27338         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
27339         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
27340         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27341         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
27342         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
27343         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
27344         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
27345         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
27346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27348         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27349         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27350         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27351         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
27352         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27353         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
27354         (sysdep-dl-routines): Add sysdep.
27355         [$(subdir) == nptl] (libpthread-routines): Likewise.
27356         [$(subdir) == rt] (librt-routines): Likewise.
27357         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
27358         PIC when branching to SYSCALL_ERROR_LABEL.
27359         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
27360         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
27361         <sysdeps/unix/sysv/linux/sysdep.h>.
27362         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
27363         (SYSCALL_ERROR_ERRNO): Removed.
27364         (SYSCALL_ERROR_HANDLER): Changed to empty.
27365         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
27366         (__syscall_error): New prototype.
27367         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
27368         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
27369
27370 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
27371
27372         [BZ #19124]
27373         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
27374         (_dl_runtime_resolve_avx512): Make it a hidden alias of
27375         _dl_runtime_resolve_avx.
27376         (_dl_runtime_profile_avx512): Make it a hidden alias of
27377         _dl_runtime_profile_avx.
27378
27379 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
27380
27381         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
27382         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
27383         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
27384         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
27385
27386         [BZ #16422]
27387         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
27388         New configure test.
27389         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
27390         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
27391         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
27392         <math_private.h> and <stdint.h>.
27393         (__llrint): Avoid conversions to long long int where those might
27394         raise spurious exceptions.
27395         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
27396         <math_private.h> and <stdint.h>.
27397         (__llrintf): Avoid conversions to long long int where those might
27398         raise spurious exceptions.
27399
27400 2015-10-12  Andreas Schwab  <schwab@suse.de>
27401
27402         [BZ #18969]
27403         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
27404         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
27405         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
27406         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
27407         $(gen-locales).
27408         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
27409         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
27410         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
27411         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
27412         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
27413         $(gen-locales).
27414         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
27415         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
27416         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
27417         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
27418         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
27419         ($(objpfx)tst-ftell-active-handler.out)
27420         ($(objpfx)tst-ftell-append.out)
27421         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
27422         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
27423         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
27424         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
27425         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
27426         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
27427         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
27428         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
27429         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
27430         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
27431         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
27432         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
27433         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
27434         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
27435         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
27436         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
27437         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
27438         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
27439         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
27440         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
27441         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
27442         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
27443         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
27444         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
27445         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
27446         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
27447         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
27448         $(gen-locales).
27449         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
27450         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
27451         $(gen-locales).
27452         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
27453         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
27454         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
27455         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
27456         $(gen-locales).
27457         * libio/tst_wprintf2.c (main): Use explicit locale.
27458         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
27459
27460 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27461
27462         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
27463         __msg_sig_post.
27464         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
27465
27466 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
27467
27468         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
27469         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
27470
27471         * sysdeps/arm/libm-test-ulps: Regenerated.
27472
27473         [BZ #15470]
27474         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
27475
27476         [BZ #16399]
27477         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
27478         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
27479         and <fix-fp-int-convert-overflow.h>.
27480         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
27481         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27482         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
27483         and <fix-fp-int-convert-overflow.h>.
27484         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
27485         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27486         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
27487         <fix-fp-int-convert-overflow.h>.
27488         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
27489         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27490         * sysdeps/ieee754/dbl-64/s_lround.c: Include
27491         <fix-fp-int-convert-overflow.h>.
27492         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
27493         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27494         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
27495         and <fix-fp-int-convert-overflow.h>.
27496         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
27497         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27498         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
27499         <limits.h> and <fix-fp-int-convert-overflow.h>.
27500         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
27501         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27502         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
27503         and <fix-fp-int-convert-overflow.h>.
27504         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
27505         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27506         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
27507         and <fix-fp-int-convert-overflow.h>.
27508         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
27509         FIX_DBL_LLONG_CONVERT_OVERFLOW.
27510         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
27511
27512 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
27513
27514         [BZ #18589]
27515         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
27516         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
27517         $(gen-locales).
27518
27519 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27520             Phil Blundell <pb@pbcl.net>
27521
27522         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
27523         * nptl/tst-cancel26.c: New file.
27524         * nptl/tst-cancel27.c: Likewise.
27525
27526 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
27527
27528         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
27529         __ILP32__ isn't defined.
27530         (lrint): Likewise.
27531         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
27532         (lrintf): Likewise.
27533         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
27534         (lrintl): Likewise.
27535         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
27536         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
27537         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
27538
27539 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27540
27541         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
27542         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
27543
27544         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
27545         file.
27546         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
27547         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
27548
27549 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
27550
27551         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
27552         configure test.
27553         * sysdeps/i386/configure: Regenerated.
27554         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
27555         configure test.
27556         * sysdeps/x86_64/configure: Regenerated.
27557         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
27558         Make code unconditional.
27559
27560         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
27561         test.
27562         * sysdeps/i386/configure: Regenerated.
27563         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
27564         test.
27565         * sysdeps/x86_64/configure: Regenerated.
27566         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
27567         Make code unconditional.
27568         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
27569         Likewise.
27570         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
27571         Likewise.
27572         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27573         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
27574         code unconditional.
27575         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27576         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
27577         code unconditional.
27578         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27579         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
27580         code unconditional.
27581         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
27582         code unconditional.
27583         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27584         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
27585         code unconditional.
27586         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27587         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
27588         code unconditional.
27589         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27590         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
27591         code unconditional.
27592         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27593         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
27594         code unconditional.
27595         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
27596         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
27597
27598         [BZ #19095]
27599         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
27600         mantissa to long int before shifting left.
27601
27602 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
27603
27604         [BZ #19094]
27605         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
27606         <limits.h>.
27607         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
27608         when result overflows but exception would not result from cast.
27609         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
27610         <limits.h>.
27611         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
27612         when result overflows but exception would not result from cast.
27613         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
27614         <limits.h>.
27615         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
27616         when result overflows but exception would not result from cast.
27617         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
27618         <limits.h>.
27619         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
27620         when result overflows but exception would not result from cast.
27621         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
27622         <limits.h>.
27623         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
27624         when result overflows but exception would not result from cast.
27625         * math/libm-test.inc (lrint_test_data): Add more tests.
27626         (llrint_test_data): Likewise.
27627
27628 2015-10-08  Roland McGrath  <roland@hack.frob.com>
27629
27630         [BZ #18872]
27631         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
27632         Move out from under [$(run-built-tests) = yes] conditional.
27633         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
27634         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
27635
27636 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
27637
27638         [BZ #18589]
27639         * string/Makefile (tests): Add bug-strcoll2.
27640         (LOCALES): Add cs_CZ.UTF-8.
27641         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
27642
27643         [BZ #18589]
27644         * string/bug-strcoll2.c: New file.
27645         * locale/categories.def: Revert commit
27646         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
27647         * locale/langinfo.h: Likewise.
27648         * locale/localeinfo.h: Likewise.
27649         * locale/C-collate.c: Likewise.
27650         * locale/programs/ld-collate.c (collate_output): Likewise.
27651         * string/strcoll_l.c (STRDIFF): Likewise.
27652         (STRCOLL): Likewise.
27653         * wcsmbs/wcscoll_l.c: Likewise.
27654
27655 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
27656
27657         * math/libm-test.inc (lround_test_data): Do not expect the absence
27658         of "inexact" for some tests with non-integer arguments.
27659         (llround_test_data): Likewise.
27660
27661         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
27662         test.
27663         (libc_cv_cc_sse2avx): Likewise.
27664         * sysdeps/i386/configure: Regenerated.
27665         * sysdeps/i386/i686/multiarch/Makefile
27666         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
27667         [$(subdir) = math].
27668         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
27669         code unconditional.
27670         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
27671         Likewise.
27672         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
27673         Likewise.
27674         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
27675         Likewise.
27676         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
27677         test.
27678         (libc_cv_cc_sse2avx): Likewise.
27679         * sysdeps/x86_64/configure: Regenerated.
27680         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
27681         unconditional.
27682         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
27683         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
27684         unconditional.
27685         (_dl_runtime_profile)
27686         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
27687         conditional code.
27688         * sysdeps/x86_64/fpu/multiarch/Makefile
27689         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
27690         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
27691         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
27692         * sysdeps/x86_64/fpu/multiarch/e_exp.c
27693         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
27694         * sysdeps/x86_64/fpu/multiarch/e_log.c
27695         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
27696         * sysdeps/x86_64/fpu/multiarch/s_atan.c
27697         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
27698         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
27699         Likewise.
27700         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
27701         Likewise.
27702         * sysdeps/x86_64/fpu/multiarch/s_sin.c
27703         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
27704         * sysdeps/x86_64/fpu/multiarch/s_tan.c
27705         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
27706         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
27707         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
27708         (HAVE_SSE2AVX_SUPPORT): Likewise.
27709
27710 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
27711
27712         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
27713         instead of #pragma optimize.
27714
27715 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
27716
27717         [BZ #17195]
27718         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
27719         as is similarly done in systrim and _int_free already.
27720
27721 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27722
27723         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
27724
27725 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
27726
27727         [BZ #19088]
27728         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
27729         <limits.h>.
27730         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
27731         overflows but exception would not result from cast.
27732         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
27733         and <limits.h>.
27734         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
27735         overflows but exception would not result from cast.
27736         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
27737         <limits.h>.
27738         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
27739         overflows but exception would not result from cast.
27740         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
27741         <limits.h>.
27742         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
27743         overflows but exception would not result from cast.
27744         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
27745         <limits.h>.
27746         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
27747         overflows but exception would not result from cast.
27748         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
27749         <limits.h>.
27750         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
27751         overflows but exception would not result from cast.
27752         * math/libm-test.inc (lround_test_data): Add more tests.
27753         (llround_test_data): Likewise.
27754
27755 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
27756
27757         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
27758         (CFLAGS-ialloc.c): Ditto.
27759         (CFLAGS-scheck.c): Ditto.
27760
27761 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
27762
27763         [BZ #19086]
27764         * manual/filesys.texi (Storage Allocation): Fix argument order for
27765         posix_fallocate64.
27766
27767 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
27768
27769         [BZ #19085]
27770         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
27771         exponent below 48 inside case for non-overflowing exponent.
27772         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
27773
27774 2015-10-07  Florian Weimer  <fweimer@redhat.com>
27775
27776         * iconvdata/cp737.h (from_idx): Add const.
27777         * iconvdata/cp775.h (from_idx): Likewise.
27778
27779 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
27780
27781         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
27782         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
27783         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
27784
27785         [BZ #19079]
27786         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
27787         file, conditioned on [!_LP64].
27788         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
27789         [!_LP64] (__lround): Do not define as function or alias.
27790         [!_LP64] (lround): Likewise.
27791         [!_LP64] (__lroundl): Likewise.
27792         [!_LP64] (lroundl): Likewise.
27793         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
27794         macro.
27795         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
27796         Likewise.
27797
27798 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
27799
27800         * math/libm-test.inc (lrint_test_data): Add more tests.
27801         (llrint_test_data): Likewise.
27802         (lround_test_data): Likewise.
27803         (llround_test_data): Likewise.
27804
27805         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
27806         (llrint_test_data): Add tests used for lrint.
27807
27808         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
27809         test.
27810         * sysdeps/i386/configure: Regenerated.
27811         * sysdeps/i386/i686/multiarch/Makefile
27812         [$(config-cflags-sse4) = yes]: Make code unconditional.
27813         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
27814         Likewise.
27815         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
27816         Likewise.
27817         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
27818         test.
27819         * sysdeps/x86_64/configure: Regenerated.
27820         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
27821         Make code unconditional.
27822         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
27823         Likewise.
27824         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
27825         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
27826
27827         * scripts/rpm2dynsym.sh: Remove file.
27828
27829 2015-10-06  Florian Weimer  <fweimer@redhat.com>
27830
27831         * configure.ac (libc_cv_cxx_thread_local): Define.
27832         * configure: Regenerate.
27833         * config.make.in (have-cxx-thread_local): Define.
27834         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
27835         (LDLIBS-tst-thread_local1): Define.
27836         (tests): Add tst-thread_local1.
27837         [have-cxx-thread_local != yes] (tests-unsupported): Add
27838         tst-thread_local1.
27839         * nptl/tst-thread_local1.cc: New file.
27840
27841 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
27842
27843         [BZ #19078]
27844         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
27845         (u_thres): Likewise.
27846         (__expl): Determine whether to call __kernel_standard_l based on
27847         value of result, not argument.
27848
27849         * math/libm-test.inc (scalb_test_data): Add more expectations for
27850         the "inexact" exception.
27851
27852         [BZ #19077]
27853         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
27854         0.0L for argument 1.0L.
27855
27856         [BZ #19076]
27857         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
27858         constant 0.0L when computing infinite result.
27859
27860 2015-10-06  Florian Weimer  <fweimer@redhat.com>
27861
27862         [BZ #10432]
27863         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
27864         malloc_usable_size.
27865
27866 2015-10-06  Florian Weimer  <fweimer@redhat.com>
27867
27868         [BZ #19018]
27869         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
27870         Mangle function pointer before storing it.
27871         (__call_tls_dtors): Demangle function pointer before calling it.
27872
27873 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27874
27875         [BZ #19012]
27876         * iconv/gconv_db.c (gen_steps): Check for additional errors.
27877         Clean up on failure.
27878
27879 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
27880
27881         [BZ #19071]
27882         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
27883         long int variable to store possibly incremented high part of
27884         mantissa.
27885         * math/libm-test.inc (lround_test_data): Add tests used for
27886         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
27887         for tests requiring 64-bit long.  Do not condition tests on
27888         [TEST_FLOAT] unnecessarily.
27889         (llround_test_data): Add tests used for lround.  Add another
27890         expectation for the "inexact" exception.  Do not condition tests
27891         on [TEST_FLOAT] unnecessarily.
27892
27893         [BZ #887]
27894         [BZ #19049]
27895         [BZ #19050]
27896         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
27897         * sysdeps/ieee754/dbl-64/e_log10.c: Include
27898         <fix-int-fp-convert-zero.h>.
27899         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27900         * sysdeps/ieee754/dbl-64/e_log2.c: Include
27901         <fix-int-fp-convert-zero.h>.
27902         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27903         * sysdeps/ieee754/dbl-64/s_erf.c: Include
27904         <fix-int-fp-convert-zero.h>.
27905         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27906         * sysdeps/ieee754/dbl-64/s_logb.c: Include
27907         <fix-int-fp-convert-zero.h>.
27908         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27909         * sysdeps/ieee754/flt-32/e_log10f.c: Include
27910         <fix-int-fp-convert-zero.h>.
27911         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27912         * sysdeps/ieee754/flt-32/e_log2f.c: Include
27913         <fix-int-fp-convert-zero.h>.
27914         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27915         * sysdeps/ieee754/flt-32/s_erff.c: Include
27916         <fix-int-fp-convert-zero.h>.
27917         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27918         * sysdeps/ieee754/flt-32/s_logbf.c: Include
27919         <fix-int-fp-convert-zero.h>.
27920         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27921         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
27922         <fix-int-fp-convert-zero.h>.
27923         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27924         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
27925         <fix-int-fp-convert-zero.h>.
27926         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
27927         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
27928         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
27929         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
27930         file.
27931         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
27932
27933 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
27934
27935         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27936
27937 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
27938
27939         [BZ #19059]
27940         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
27941         overflowing computation.
27942         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
27943         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
27944         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
27945         Likewise.
27946         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
27947         Likewise.
27948         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
27949         Likewise.
27950         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
27951         Likewise.
27952         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
27953         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
27954         Likewise.
27955         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
27956         Likewise.
27957         * math/libm-test.inc (nexttoward_test_data): Add more tests.
27958
27959         * nss/rewrite_field.c (__nss_rewrite_field): Use
27960         internal_function.
27961         * nss/valid_field.c (__nss_valid_field): Likewise.
27962         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
27963
27964 2015-10-02  Florian Weimer  <fweimer@redhat.com>
27965
27966         [BZ #18724]
27967         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
27968         (__nss_invalid_field_characters, __nss_valid_field)
27969         (__nss_valid_list_field, __nss_rewrite_field): Declare.
27970         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
27971         tst-field.c: New file.
27972         * nss/Makefile (routines): Add valid_field, rewrite_field.
27973         (tests-static): Define unconditionally.
27974         (tests): Include tests-static.
27975         [build-static-nss] (tests-static): Use append.
27976         [build-static-nss] (tests): Remove modification.
27977         * nss/getent.c (print_group): Call putgrent.  Report error.
27978         (print_gshadow): Call putsgent.  Report error.
27979         (print_passwd): Call putpwent.  Report error.
27980         (print_shadow): Call putspent.  Report error.
27981         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
27982         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
27983         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
27984         name, password, directory, shell fields for valid syntax.  Rewrite
27985         GECOS field to match syntax.
27986         * pwd/Makefile (tests): Add tst-putpwent.
27987         * pwd/tst-putpwent.c: New file.
27988         * grp/putgrent.c (putgrent): Convert to ISO function definition.
27989         Check grName, grpasswd, gr_mem fields for valid syntax.
27990         Change loop variable i to size_t.
27991         * grp/Makefile (tests): Add tst-putgrent.
27992         * grp/tst-putgrent.c: New file.
27993         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
27994         valid syntax.
27995         * shadow/Makefile (tests): Add tst-putspent.
27996         * shadow/tst-putspent.c: New file.
27997         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
27998         sg_mem fields for valid syntax.
27999         * gshadow/Makefile (tests): Add tst-putsgent.
28000         * gshadow/tst-putsgent.c: New file.
28001
28002 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
28003
28004         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
28005         assembly instructions.
28006
28007 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
28008
28009         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
28010         prefix from operands.
28011
28012 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
28013
28014         [BZ #16347]
28015         [BZ #19046]
28016         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
28017         <libc-internal.h>.
28018         (MAXLGM): Do not use diagnostic control macros.
28019         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
28020         threshold for ldbl-128ibm.
28021         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
28022         instead of multiplying by log then subtracting.
28023         * math/auto-libm-test-in: Add more tests of lgamma.
28024         * math/auto-libm-test-out: Regenerated.
28025
28026         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
28027         (TYPE_HEX_DIG): Likewise.
28028         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
28029         precisions when printing floating-point numbers.
28030         (check_float_internal): Likewise.
28031
28032 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
28033
28034         [BZ #16620]
28035         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
28036         of log (10) rounded downward to 48 bits.
28037         (log10_low): Use corresponding low part of log (10).
28038
28039         [BZ #19032]
28040         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
28041         compute result as (x - x) / (x - x) not as 0 / 0.
28042         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
28043         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
28044
28045         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
28046         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
28047         and expm1.
28048         * math/auto-libm-test-out: Regenerated.
28049         * math/libm-test.inc (acos_test_data): Add more tests.
28050         (asin_test_data): Likewise.
28051         (asinh_test_data): Likewise.
28052         (atan_test_data): Likewise.
28053         (atanh_test_data): Likewise.
28054         (atan2_test_data): Likewise.
28055         (cbrt_test_data): Likewise.
28056         (ceil_test_data): Likewise.
28057         (copysign_test_data): Likewise.
28058         (cos_test_data): Likewise.
28059         (cosh_test_data): Likewise.
28060         (erf_test_data): Likewise.
28061         (erfc_test_data): Likewise.
28062         (exp_test_data): Likewise.
28063         (exp10_test_data): Likewise.
28064         (exp2_test_data): Likewise.
28065         (expm1_test_data): Likewise.
28066         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28067
28068 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
28069
28070         [BZ #19006]
28071         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
28072         to ...
28073         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
28074         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
28075         to ...
28076         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
28077         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
28078         to ...
28079         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
28080         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
28081         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
28082         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
28083         to ...
28084         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
28085         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
28086         Moved to ...
28087         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
28088         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
28089         Moved to ...
28090         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
28091         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
28092         to ...
28093         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
28094         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
28095         Moved to ...
28096         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
28097         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
28098         to ...
28099         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
28100         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
28101         Removed.
28102         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
28103         Likewise.
28104         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
28105         Likewise.
28106         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
28107         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
28108         Likewise.
28109         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
28110         Likewise.
28111         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
28112         Likewise.
28113         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
28114         Likewise.
28115         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
28116         Likewise.
28117         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
28118         Likewise.
28119         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
28120         Likewise.
28121         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
28122         Likewise.
28123         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
28124         Likewise.
28125         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
28126         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
28127         Likewise.
28128         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
28129         Likewise.
28130         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
28131         Likewise.
28132         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
28133         Likewise.
28134         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
28135         Likewise.
28136         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
28137         Replace ../i486/pthread_cond_timedwait.S with
28138         ../pthread_cond_timedwait.S.
28139
28140 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
28141
28142         * math/libm-test.inc (acos_test_data): Refine expectations for
28143         errno and "inexact" exceptions.
28144         (acosh_test_data): Likewise.
28145         (asin_test_data): Likewise.
28146         (asinh_test_data): Likewise.
28147         (atan_test_data): Likewise.
28148         (atanh_test_data): Likewise.
28149         (atan2_test_data): Likewise.
28150         (cbrt_test_data): Likewise.
28151         (ceil_test_data): Likewise.
28152         (copysign_test_data): Likewise.
28153         (cosh_test_data): Likewise.
28154         (erf_test_data): Likewise.
28155         (erfc_test_data): Likewise.
28156         (exp_test_data): Likewise.
28157         (exp10_test_data): Likewise.
28158         (exp2_test_data): Likewise.
28159         (expm1_test_data): Likewise.
28160         (fabs_test_data): Likewise.
28161         (floor_test_data): Likewise.
28162         (fma_test_data): Likewise.
28163         (fmax_test_data): Likewise.
28164         (fmin_test_data): Likewise.
28165         (fmod_test_data): Likewise.
28166         (fpclassify_test_data): Likewise.
28167         (frexp_test_data): Likewise.
28168         (hypot_test_data): Likewise.
28169         (ilogb_test_data): Likewise.
28170         (isgreater_test_data): Likewise.
28171         (isgreaterequal_test_data): Likewise.
28172         (isinf_test_data): Likewise.
28173         (isless_test_data): Likewise.
28174         (islessequal_test_data): Likewise.
28175         (islessgreater_test_data): Likewise.
28176         (isnan_test_data): Likewise.
28177         (isnormal_test_data): Likewise.
28178         (issignaling_test_data): Likewise.
28179         (isunordered_test_data): Likewise.
28180         (j0_test_data): Likewise.
28181         (j1_test_data): Likewise.
28182         (jn_test_data): Likewise.
28183         (lgamma_test_data): Likewise.
28184         (lrint_test_data): Likewise.
28185         (llrint_test_data): Likewise.
28186         (log_test_data): Likewise.
28187         (log10_test_data): Likewise.
28188         (log1p_test_data): Likewise.
28189         (log2_test_data): Likewise.
28190         (logb_test_data): Likewise.
28191         (lround_test_data): Likewise.
28192         (llround_test_data): Likewise.
28193         (modf_test_data): Likewise.
28194         (nearbyint_test_data): Likewise.
28195         (nextafter_test_data): Likewise.
28196         (nexttoward_test_data): Likewise.
28197         (pow_test_data): Likewise.
28198         (remainder_test_data): Likewise.
28199         (remquo_test_data): Likewise.
28200         (rint_test_data): Likewise.
28201         (round_test_data): Likewise.
28202         (signbit_test_data): Likewise.
28203         (sinh_test_data): Likewise.
28204         (sqrt_test_data): Likewise.
28205         (tanh_test_data): Likewise.
28206         (tgamma_test_data): Likewise.
28207         (trunc_test_data): Likewise.
28208         (y0_test_data): Likewise.
28209         (y1_test_data): Likewise.
28210         (yn_test_data): Likewise.
28211         (significand_test_data): Likewise.
28212
28213 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
28214
28215         * manual/filesys.texi (Storage Allocation): Document that
28216         posix_fallocate emulation fails when fd is open with O_WRONLY.
28217
28218 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
28219
28220         [BZ #19016]
28221         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
28222         allow more cases with X^2 + Y^2 >= 0.5.
28223         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
28224         normal element in sum instead of special-casing based on values of
28225         arguments.
28226         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
28227         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
28228         -1 as normal element in sum instead of special-casing based on
28229         values of arguments.
28230         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
28231         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
28232         (__x2y2m1): Update comment.
28233         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
28234         as normal element in sum instead of special-casing based on values
28235         of arguments.
28236         * math/s_clog.c (__clog): Handle more cases using log1p without
28237         hypot.
28238         * math/s_clog10.c (__clog10): Likewise.
28239         * math/s_clog10f.c (__clog10f): Likewise.
28240         * math/s_clog10l.c (__clog10l): Likewise.
28241         * math/s_clogf.c (__clogf): Likewise.
28242         * math/s_clogl.c (__clogl): Likewise.
28243         * math/auto-libm-test-in: Add more tests of clog and clog10.
28244         * math/auto-libm-test-out: Regenerated.
28245         * sysdeps/i386/fpu/libm-test-ulps: Update.
28246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28247
28248 2015-09-28  Martin Sebor  <msebor@redhat.com>
28249
28250         [BZ #18969]
28251         * string/Makefile (LOCALES): Define.
28252         (gen-locales.mk): Include.
28253         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
28254         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
28255         * string/tst-strxfrm2.c (do_test): Print the name of the locale
28256         on setlocale failure.
28257
28258 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
28259
28260         [BZ #18985]
28261         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
28262         (__strftime_internal): Likewise.
28263         * time/tst-strftime.c (do_bz18985): New test.
28264         (do_test): Call it.
28265
28266 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
28267
28268         [BZ #18956]
28269         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
28270         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
28271         extracting high part.
28272         * math/auto-libm-test-in: Add another test of pow.
28273         * math/auto-libm-test-out: Regenerated.
28274         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28275
28276 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
28277
28278         [BZ #18825]
28279         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
28280         New macro.
28281         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
28282         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
28283         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
28284         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
28285         DBL_NARROW_EVAL, reloading the PIC register as needed.
28286         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
28287         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
28288         FLT_NARROW_EVAL.  Use separate return path for case when first
28289         argument is NaN.
28290         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
28291         DEFINE_LDBL_MIN.
28292         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
28293         PIC register.
28294         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
28295         math_check_force_underflow_nonneg.
28296         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
28297         underflow for subnormal result.
28298         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
28299         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
28300         math_check_force_underflow_nonneg.
28301         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
28302         math_check_force_underflow.
28303         * sysdeps/x86_64/fpu/x86_64-math-asm.h
28304         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
28305         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
28306         DEFINE_LDBL_MIN.
28307         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
28308         * math/auto-libm-test-in: Add more tests of pow.
28309         * math/auto-libm-test-out: Regenerated.
28310
28311 2015-09-25  Florian Weimer  <fweimer@redhat.com>
28312
28313         * nss/bug17079.c (init_test_items): Add diagnostic for
28314         inconsistent entries.
28315         (test_buffer_size): Skip inconsistent entries.
28316
28317 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
28318
28319         [BZ #13304]
28320         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
28321         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
28322         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
28323
28324         [BZ #13304]
28325         * sysdeps/microblaze/s_fma.c: New file.
28326         * sysdeps/microblaze/s_fmaf.c: Likewise.
28327         * sysdeps/microblaze/sfp-machine.h: Likewise.
28328
28329 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
28330
28331         [BZ #17250]
28332         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
28333         member.
28334
28335 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
28336
28337         [BZ #18803]
28338         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
28339         (MO): New macro.
28340         (__ieee754_hypot) [PIC]: Load PIC register.
28341         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
28342         DBL_NARROW_EVAL.
28343         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
28344         math_check_force_underflow_nonneg in case where result might be
28345         tiny.
28346         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
28347         Likewise.
28348         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
28349         Likewise.
28350         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
28351         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
28352         * math/auto-libm-test-in: Add more tests of hypot.
28353         * math/auto-libm-test-out: Regenerated.
28354
28355 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
28356
28357         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
28358
28359 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
28360
28361         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
28362         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
28363         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
28364         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
28365         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
28366         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
28367         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
28368
28369         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
28370         LOAD_PIC_REG.
28371
28372         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
28373         (FLT_CHECK_FORCE_UFLOW): Likewise.
28374         (DBL_CHECK_FORCE_UFLOW): Likewise.
28375         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
28376         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
28377         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
28378         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
28379         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
28380         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
28381         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
28382         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
28383         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
28384         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28385         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
28386         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
28387         (flt_min): Replace with use of DEFINE_FLT_MIN.
28388         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
28389         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
28390         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28391         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
28392         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
28393         (flt_min): Replace with use of DEFINE_FLT_MIN.
28394         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
28395         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
28396         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28397         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
28398         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
28399         (flt_min): Replace with use of DEFINE_FLT_MIN.
28400         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
28401         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
28402         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
28403         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
28404         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
28405         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
28406         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
28407         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
28408         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28409         (__atan): Use DBL_CHECK_FORCE_UFLOW.
28410         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
28411         (flt_min): Replace with use of DEFINE_FLT_MIN.
28412         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
28413         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
28414         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28415         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
28416         main computation.
28417         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
28418         (flt_min): Replace with use of DEFINE_FLT_MIN.
28419         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
28420         main computation.
28421         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
28422         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28423         (MO): New macro.
28424         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
28425         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
28426         (flt_min): Replace with use of DEFINE_FLT_MIN.
28427         (MO): New macro.
28428         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
28429         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
28430         (__log1pl): Use MO.
28431
28432         [BZ #19003]
28433         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
28434         $(config-cflags-nofma).
28435
28436 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28437
28438         * sysdeps/aarch64/libm-test-ulps: Regenerated.
28439
28440 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
28441
28442         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
28443         (TWO127): Likewise.
28444
28445         * sysdeps/generic/math_private.h (fabs_tg): New macro.
28446         (min_of_type): Likewise.
28447         (math_check_force_underflow): Likewise.
28448         (math_check_force_underflow_nonneg): Likewise.
28449         (math_check_force_underflow_complex): Likewise.
28450         * math/e_exp2l.c (__ieee754_exp2l): Use
28451         math_check_force_underflow_nonneg.
28452         * math/k_casinh.c (__kernel_casinh): Likewise.
28453         * math/k_casinhf.c (__kernel_casinhf): Likewise.
28454         * math/k_casinhl.c (__kernel_casinhl): Likewise.
28455         * math/s_catan.c (__catan): Use
28456         math_check_force_underflow_complex.
28457         * math/s_catanf.c (__catanf): Likewise.
28458         * math/s_catanh.c (__catanh): Likewise.
28459         * math/s_catanhf.c (__catanhf): Likewise.
28460         * math/s_catanhl.c (__catanhl): Likewise.
28461         * math/s_catanl.c (__catanl): Likewise.
28462         * math/s_ccosh.c (__ccosh): Likewise.
28463         * math/s_ccoshf.c (__ccoshf): Likewise.
28464         * math/s_ccoshl.c (__ccoshl): Likewise.
28465         * math/s_cexp.c (__cexp): Likewise.
28466         * math/s_cexpf.c (__cexpf): Likewise.
28467         * math/s_cexpl.c (__cexpl): Likewise.
28468         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
28469         * math/s_clog10.c (__clog10): Likewise.
28470         * math/s_clog10f.c (__clog10f): Likewise.
28471         * math/s_clog10l.c (__clog10l): Likewise.
28472         * math/s_clogf.c (__clogf): Likewise.
28473         * math/s_clogl.c (__clogl): Likewise.
28474         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
28475         * math/s_csinf.c (__csinf): Likewise.
28476         * math/s_csinh.c (__csinh): Likewise.
28477         * math/s_csinhf.c (__csinhf): Likewise.
28478         * math/s_csinhl.c (__csinhl): Likewise.
28479         * math/s_csinl.c (__csinl): Likewise.
28480         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
28481         * math/s_csqrtf.c (__csqrtf): Likewise.
28482         * math/s_csqrtl.c (__csqrtl): Likewise.
28483         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
28484         * math/s_ctanf.c (__ctanf): Likewise.
28485         * math/s_ctanh.c (__ctanh): Likewise.
28486         * math/s_ctanhf.c (__ctanhf): Likewise.
28487         * math/s_ctanhl.c (__ctanhl): Likewise.
28488         * math/s_ctanl.c (__ctanl): Likewise.
28489         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
28490         instead of volatile.
28491         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
28492         math_check_force_underflow.
28493         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
28494         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
28495         volatile when forcing underflow.
28496         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28497         math_check_force_underflow_nonneg.
28498         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
28499         Likewise.
28500         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
28501         math_check_force_underflow.
28502         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
28503         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
28504         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
28505         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
28506         math_check_force_underflow_nonneg.
28507         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
28508         math_check_force_underflow.
28509         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
28510         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
28511         instead of volatile.
28512         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
28513         math_check_force_underflow.
28514         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
28515         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28516         math_check_force_underflow_nonneg.
28517         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
28518         math_check_force_underflow.
28519         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
28520         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
28521         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
28522         math_check_force_underflow_nonneg.
28523         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
28524         Likewise.
28525         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
28526         math_check_force_underflow.
28527         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
28528         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
28529         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
28530         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
28531         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
28532         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
28533         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
28534         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
28535         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
28536         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
28537         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
28538         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
28539         Likewise.
28540         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
28541         math_check_force_underflow_nonneg.
28542         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
28543         Likewise.
28544         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
28545         math_check_force_underflow.
28546         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28547         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
28548         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
28549         Likewise.
28550         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
28551         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
28552         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
28553         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
28554         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
28555         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
28556         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
28557         instead of volatile.
28558         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
28559         math_check_force_underflow.
28560         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
28561         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
28562         math_check_force_underflow.
28563         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
28564         Likewise.
28565         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
28566         Use math_check_force_underflow_nonneg.
28567         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
28568         math_check_force_underflow.
28569         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
28570         Likewise.
28571         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
28572         Likewise.
28573         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
28574         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
28575         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
28576         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
28577         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
28578         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
28579         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
28580         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
28581         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
28582         math_check_force_underflow_nonneg.
28583         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
28584         math_check_force_underflow.
28585         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
28586         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
28587         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
28588         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
28589         math_check_force_underflow_nonneg.
28590         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
28591         math_check_force_underflow.
28592         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
28593         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
28594         instead of volatile.
28595         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
28596         math_check_force_underflow.
28597
28598         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
28599         * stdlib/strtod_l.c: Include <math_private.h>.
28600         (overflow_value): Use math_narrow_eval.
28601         (underflow_value): Likewise.
28602         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
28603         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
28604         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
28605         (__ieee754_gamma_r): Likewise.
28606         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
28607         Likewise.
28608         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
28609         Likewise.
28610         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
28611         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
28612         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
28613         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
28614         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
28615         (__ieee754_gammaf_r): Likewise.
28616         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
28617         Likewise.
28618         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
28619         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
28620         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
28621         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
28622         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
28623         volatile.
28624         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
28625         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
28626         math_narrow_eval.
28627         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
28628         Likewise.
28629         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
28630         Likewise.
28631         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
28632         Likewise.
28633         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
28634         volatile.
28635         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
28636         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
28637         math_narrow_eval.
28638         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
28639         Likewise.
28640         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
28641         Likewise.
28642
28643 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
28644
28645         * nptl/Versions: Remove ignored symbols.
28646
28647 2015-09-22  Florian Weimer  <fweimer@redhat.com>
28648
28649         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
28650         * nss/Makefile (tests): Update.
28651
28652 2015-09-22  Florian Weimer  <fweimer@redhat.com>
28653
28654         * nss/bug18287.c: New file.
28655         * nss/Makefile (tests): Add bug18287.
28656
28657 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28658
28659         * mach/Versions (__mach_host_self_): Add symbol.
28660
28661 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28662
28663         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
28664         vm_page_size.
28665
28666 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28667
28668         Really fix sysdeps/i386/fpu/s_scalbn.S build
28669
28670         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
28671         (libc: GLIBC_2_22): Remove unused version set.
28672
28673 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
28674
28675         * config.make.in (enable-timezone-tools): New variable.
28676         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
28677         (enable_timezone_tools): Export to generated files.
28678         * configure: Regenerate.
28679         * INSTALL: Regenerate.
28680         * manual/install.texi (--disable-timezone-tools): Document new flag.
28681         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
28682         ifeq ($(enable-timezone-tools),yes) check.
28683
28684 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
28685
28686         * timezone/Makefile: Revert previous change.
28687
28688         [BZ #18980]
28689         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
28690         (DEFINE_DBL_MIN): Likewise.
28691         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
28692         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
28693         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
28694         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
28695         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
28696         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28697         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
28698         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
28699         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
28700         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28701         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
28702         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
28703         (flt_min): Replace with use of DEFINE_FLT_MIN.
28704         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
28705         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
28706         (dbl_min): Replace with use of DEFINE_DBL_MIN.
28707         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
28708         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
28709         (flt_min): Replace with use of DEFINE_FLT_MIN.
28710         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
28711         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
28712         (flt_min): Replace with use of DEFINE_FLT_MIN.
28713         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
28714         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
28715         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
28716         (__ieee754_hypot): Use DBL_NARROW_EVAL.
28717         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
28718         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
28719         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
28720         (__ieee754_pow): Use DBL_NARROW_EVAL.
28721         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
28722         (__ieee754_powf): Use FLT_NARROW_EVAL.
28723         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
28724         (__ieee754_expf_sse2): Convert double-precision result to single
28725         precision.
28726         * sysdeps/i386/fpu/libm-test-ulps: Update.
28727
28728 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
28729
28730         * timezone/Makefile: Ignore unused variable errors due to private.h
28731         (time_t_min) and (time_t_max).
28732         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
28733         Likewise.
28734
28735 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
28736
28737         [BZ #18981]
28738         * sysdeps/i386/fpu/i386-math-asm.h: New file.
28739         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
28740         (__ieee754_scalb): Use DBL_NARROW_EVAL.
28741         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
28742         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
28743         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
28744         (__scalbn): Use DBL_NARROW_EVAL.
28745         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
28746         (__scalbnf): Use FLT_NARROW_EVAL.
28747
28748 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
28749
28750         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
28751         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
28752         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
28753         * stdio-common/printf_fp.c (___printf_fp):
28754         Use signbit to get the sign. Use isinf macro to allow inlining.
28755         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
28756         * stdio-common/printf_size.c (__printf_size): Likewise.
28757
28758 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
28759
28760         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
28761
28762 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
28763
28764         [BZ #18980]
28765         * sysdeps/generic/math_private.h: Include <float.h>.
28766         (math_narrow_eval): New macro.
28767         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
28768         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
28769         math_narrow_eval on overflowing return value.
28770         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
28771         Likewise.
28772         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
28773         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
28774         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
28775         Likewise.
28776         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
28777
28778 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
28779
28780         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
28781         * math/Makefile: Remove isinf_ns.c.
28782         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
28783         * math/multc3.c (__multc3): Likewise.
28784         * math/s_casin.c (__casin): Likewise.
28785         * math/s_casinf.c (__casinf): Likewise.
28786         * math/s_casinl.c (__casinl): Likewise.
28787         * math/s_cproj.c (__cproj): Likewise.
28788         * math/s_cprojf.c (__cprojf): Likewise.
28789         * math/s_cprojl.c (__cprofl): Likewise.
28790         * math/s_ctan.c (__ctan): Likewise.
28791         * math/s_ctanf.c (__ctanf): Likewise.
28792         * math/s_ctanh.c (__ctanh): Likewise.
28793         * math/s_ctanhf.c (__ctanhf): Likewise.
28794         * math/s_ctanhl.c (__ctanhl): Likewise.
28795         * math/s_ctanl.c (__ctanl): Likewise.
28796         * math/w_fmod.c (__fmod): Likewise.
28797         * math/w_fmodf.c (__fmodf): Likewise.
28798         * math/w_fmodl.c (_fmodl): Likewise.
28799         * math/w_remainder.c (__remainder): Likewise.
28800         * math/w_remainderf.c (__remainderf): Likewise.
28801         * math/w_remainderl.c (__remainderl): Likewise.
28802         * math/w_scalb.c (__scalb): Likewise.
28803         * math/w_scalbf.c (__scalbf): Likewise.
28804         * math/w_scalbl.c (__scalbl): Likewise.
28805         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
28806         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
28807         with isinf.
28808         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
28809         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
28810         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
28811         __isinf_nsf with isinf.
28812         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
28813         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
28814         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
28815         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
28816         with isinf.
28817         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
28818         __isinf_nsl with isinf.
28819         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
28820         with isinf.
28821         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
28822         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
28823         __isinf_nsl with isinf.
28824         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
28825         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
28826         with isinf.
28827
28828 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
28829
28830         * resolv/base64.c (rcsid): Remove unused static.
28831         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
28832         static.  (tqpi1): Likewise.
28833         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
28834         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
28835         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
28836         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
28837         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
28838         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
28839         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
28840         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
28841         Likewise.
28842
28843 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
28844
28845         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
28846         <nptl/pthreadP.h>.
28847         (_longjmp_unwind): Use __libc_ptf_call.
28848         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
28849
28850 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
28851
28852         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
28853         * sysdeps/arm/__longjmp.S: Likewise.
28854
28855 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
28856
28857         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
28858         Use __builtin_signbit.
28859         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
28860         Use __builtin_signbitf.
28861         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
28862         Use __builtin_signbitl.
28863         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
28864         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
28865
28866 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
28867
28868         [BZ #15367]
28869         [BZ #17441]
28870
28871         * math/Makefile: Build test-snan.c with -fsignaling-nans.
28872         * math/math.h (fpclassify): Use __builtin_fpclassify when
28873         available.  (signbit): Use __builtin_signbit(f/l).
28874         (isfinite): Use__builtin_isfinite.  (isnormal): Use
28875         __builtin_isnormal.  (isnan): Use __builtin_isnan.
28876         (isinf): Use __builtin_isinf_sign.
28877
28878 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
28879
28880         * benchtests/Makefile: Add bench-math-inlines, link with libm.
28881         * benchtests/bench-math-inlines.c: New benchmark.
28882         * benchtests/bench-util.h: New file.
28883         * benchtests/bench-util.c: New file.
28884         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
28885
28886 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
28887
28888         * elf/tst-dlmopen1.c: Define TEST_SO.
28889         (do_test): Use TEST_SO.
28890
28891         * elf/dl-load.c: Include libc-internal.h.
28892         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
28893
28894 2015-09-18  Vincent Bernat  <vincent@bernat.im>
28895
28896         [BZ #17887]
28897         * time/strptime_l.c (__strptime_internal): Make %z accept
28898         [+-]HH:MM time zones.
28899
28900 2015-09-18  Vincent Bernat  <vincent@bernat.im>
28901
28902         [BZ #17886]
28903         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
28904         valid time zone.
28905
28906 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
28907
28908         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
28909         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
28910         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28911         (__ASSUME_FDATASYNC): Delete.
28912
28913 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
28914
28915         * conform/linknamespace.pl: Require weak undefined symbols to be
28916         in the standard namespace.
28917         (%strong_syms): Rename to %seen_syms.
28918         (%strong_seen): Rename to %seen_where.
28919
28920 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
28921
28922         [BZ #18970]
28923         * misc/error.c (error): Replace pthread_setcancelstate with
28924         __pthread_setcancelstate.
28925         (error_at_line): Likewise.
28926         * posix/wordexp.c (parse_comm): Likewise.
28927         * stdlib/fmtmsg.c (fmtmsg): Likewise.
28928         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
28929         (__pthread_setcancelstate): This.
28930         (pthread_setcancelstate): Add an alias.
28931         * nptl/nptl-init.c (pthread_functions): Replace
28932         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
28933         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
28934         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
28935         hidden_proto.
28936         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
28937         it with hidden_def.
28938         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
28939         (pthread_setcancelstate): Renamed to ...
28940         (__pthread_setcancelstate): This.
28941         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
28942         __libc_ptf_call with __pthread_setcancelstate.
28943
28944 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
28945             Andreas Schwab  <schwab@suse.de>
28946
28947         [BZ #17118]
28948         * math/s_ctan.c (__ctan): Determine sign of zero real part of
28949         result when imaginary part of argument is infinite using sine and
28950         cosine.
28951         * math/s_ctanf.c (__ctanf): Likewise.
28952         * math/s_ctanl.c (__ctanl): Likewise.
28953         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
28954         of result when real part of argument is infinite using sine and
28955         cosine.
28956         * math/s_ctanhf.c (__ctanhf): Likewise.
28957         * math/s_ctanhl.c (__ctanhl): Likewise.
28958         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
28959         (ctanh_test_data): Add more tests of ctanh.
28960
28961 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
28962
28963         [BZ #15384]
28964         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
28965         bit-mask as in subtraction.
28966         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
28967         Likewise.
28968         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
28969         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
28970         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
28971
28972         [BZ #18951]
28973         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
28974         underflow exception for small results.
28975         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
28976         Likewise.
28977         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
28978         Likewise.
28979         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
28980         Likewise.
28981         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
28982         Likewise.
28983         * math/auto-libm-test-in: Add more tests of tgamma.
28984         * math/auto-libm-test-out: Regenerated.
28985
28986 2015-09-17  Andreas Schwab  <schwab@suse.de>
28987
28988         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
28989
28990 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
28991
28992         [BZ #18977]
28993         * math/bits/mathcalls.h
28994         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
28995         not declare.
28996         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
28997         Likewise.
28998         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
28999         Likewise.
29000         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
29001         Likewise.
29002         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
29003         Likewise.
29004         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
29005         Likewise.
29006         * conform/data/math.h-data
29007         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
29008         function.
29009         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
29010         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
29011         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
29012         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
29013         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
29014         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
29015         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
29016         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
29017         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
29018         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
29019         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
29020
29021         [BZ #6803]
29022         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
29023         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
29024         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
29025         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
29026         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
29027         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
29028         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
29029         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
29030         [NO_LONG_DOUBLE] (scalbnl): Likewise.
29031         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
29032         Likewise.
29033         [NO_LONG_DOUBLE] (scalbnl): Likewise.
29034         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
29035         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
29036         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
29037         long_double_symbol calls.
29038         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
29039         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
29040         strong alias of __ldexpl.
29041         (scalbnl): Define using long_double_symbol.
29042         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
29043         Remove alias.
29044         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
29045         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
29046         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
29047         (scalbln_test_data): Add more errno expectations.
29048
29049 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
29050
29051         Cache the host port like we cache the task port.  This way we do not
29052         need to call the kernel just to get the port.  Furthermore, we no
29053         longer increase the reference count on every invocation of
29054         `mach_host_self'.
29055
29056         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
29057         Protect declarations against the macro expansion.
29058         * mach/mach_init.c (__mach_host_self_): New variable.
29059         (mach_init): Initialize `__mach_host_self_'.
29060         * mach/mach_init.h (__mach_host_self_): New declaration.
29061         (__mach_host_self, mach_host_self): New macros.
29062         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
29063         Release reference.
29064
29065 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
29066
29067         [BZ #4404]
29068         * po/de.po: Update from Translation Project.
29069
29070         [BZ #16415]
29071         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
29072         (__expm1l): Remove code to handle positive infinity and overflow.
29073         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
29074         variable.
29075         (__expm1l): Remove code to handle positive infinity and overflow.
29076
29077 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29078             Paul Pluzhnikov  <ppluzhnikov@google.com>
29079
29080         [BZ #18872]
29081         * stdio-common/Makefile (tst-printf-bz18872): New test.
29082         (tst-printf-bz18872-mem.out): Likewise.
29083         * stdio-common/tst-printf-bz18872.sh: Generate new test.
29084         * stdio-common/vfprintf.c: Fix memory leaks.
29085
29086 2015-09-16  Andreas Schwab  <schwab@suse.de>
29087
29088         [BZ #17244]
29089         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
29090         Remove extra va_start/va_end calls.
29091
29092         [BZ #17243]
29093         * posix/execl.c (execl): Add missing va_end.
29094         * posix/execle.c (execle): Likewise.
29095         * posix/execlp.c (execlp): Likewise.
29096
29097 2015-09-15  Roland McGrath  <roland@hack.frob.com>
29098
29099         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
29100         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
29101
29102 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
29103
29104         [BZ #18967]
29105         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
29106         undefine around includes of <bits/mathcalls.h>.
29107         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
29108         not declare function.
29109         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
29110         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
29111         (scalb): Likewise.
29112         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
29113         not define macro.
29114         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
29115         variable.
29116         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
29117         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
29118         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
29119
29120         [BZ #18857]
29121         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
29122         return non-finite argument without doing ordered comparisons on
29123         it.
29124
29125         [BZ #16296]
29126         * math/fenv.h (fegetround): Use __attribute_pure__.
29127         * include/fenv.h (__fegetround): Likewise.
29128
29129         [BZ #18595]
29130         * math/s_ctan.c (__ctan): Force underflow exception for results
29131         whose real or imaginary part has small absolute value.
29132         * math/s_ctanf.c (__ctanf): Likewise.
29133         * math/s_ctanh.c (__ctanh): Likewise.
29134         * math/s_ctanhf.c (__ctanhf): Likewise.
29135         * math/s_ctanhl.c (__ctanhl): Likewise.
29136         * math/s_ctanl.c (__ctanl): Likewise.
29137         * math/auto-libm-test-in: Do not allow missing underflow for ctan
29138         and ctanh.  Add more tests of ctan and ctanh.
29139
29140         [BZ #15918]
29141         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
29142         handling of cases where one argument is an infinity.
29143
29144         [BZ #18875]
29145         [BZ #18966]
29146         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
29147         (MO): New macro.
29148         (__ieee754_exp10): For small results, force underflow exception
29149         and remove excess range and precision from return value.
29150         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
29151         (MO): New macro.
29152         (__ieee754_exp10f): For small results, force underflow exception
29153         and remove excess range and precision from return value.
29154         * math/auto-libm-test-in: Add more tests of exp10.
29155         * math/auto-libm-test-out: Regenerated.
29156
29157 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
29158
29159         [BZ #18875]
29160         [BZ #18961]
29161         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
29162         (MO): New macro.
29163         (__ieee754_exp): For small results, force underflow exception and
29164         remove excess range and precision from return value.
29165         (__exp_finite): Likewise.
29166         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
29167         (MO): New macro.
29168         (__ieee754_expf): For small results, force underflow exception and
29169         remove excess range and precision from return value.
29170         (__expf_finite): Likewise.
29171         * math/auto-libm-test-in: Add more tests of exp.
29172         * math/auto-libm-test-out: Regenerated.
29173
29174         [BZ #16521]
29175         [BZ #18875]
29176         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
29177         small results.
29178         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
29179         (MO): New macro.
29180         (__ieee754_exp2): For small results, force underflow exception and
29181         remove excess range and precision from return value.
29182         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
29183         (MO): New macro.
29184         (__ieee754_exp2f): For small results, force underflow exception
29185         and remove excess range and precision from return value.
29186         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
29187         (MO): New macro.
29188         (__ieee754_exp2l): Force underflow exception for small results.
29189         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
29190         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
29191         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
29192         (MO): New macro.
29193         (__ieee754_exp2l): Force underflow exception for small results.
29194         * math/auto-libm-test-in: Add more tests or exp2.
29195         * math/auto-libm-test-out: Regenerated.
29196
29197 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
29198
29199         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
29200
29201         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
29202         /dev/null.
29203
29204 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29205
29206         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
29207         io fs process)): Drop spurious backslash.
29208
29209 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
29210
29211         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
29212         Use sysinfo system call instead of parsing /proc/meminfo.
29213         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
29214         Likewise.
29215
29216 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
29217
29218         [BZ #16985]
29219         * programs/localedef.c (main): Display argv[remaining] when
29220         output_path is NULL.
29221
29222 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
29223
29224         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
29225         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
29226         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
29227         tanh.
29228         * math/auto-libm-test-out: Regenerated.
29229         * sysdeps/i386/fpu/libm-test-ulps: Update.
29230         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29231         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29233
29234 2015-09-11  Roland McGrath  <roland@hack.frob.com>
29235
29236         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
29237         Use 'override' keyword to freeze the value here, preventing
29238         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
29239
29240 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
29241
29242         [BZ #14912]
29243         * sysdeps/aarch64/bits/atomic.h: Move to ...
29244         * sysdeps/aarch64/atomic-machine.h: ...here.
29245         (_AARCH64_BITS_ATOMIC_H): Rename macro to
29246         _AARCH64_ATOMIC_MACHINE_H.
29247         * sysdeps/alpha/bits/atomic.h: Move to ...
29248         * sysdeps/alpha/atomic-machine.h: ...here.
29249         * sysdeps/arm/bits/atomic.h: Move to ...
29250         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
29251         * bits/atomic.h: Move to ...
29252         * sysdeps/generic/atomic-machine.h: ...here.
29253         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
29254         * sysdeps/i386/bits/atomic.h: Move to ...
29255         * sysdeps/i386/atomic-machine.h: ...here.
29256         * sysdeps/ia64/bits/atomic.h: Move to ...
29257         * sysdeps/ia64/atomic-machine.h: ...here.
29258         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
29259         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
29260         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
29261         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
29262         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
29263         * sysdeps/microblaze/bits/atomic.h: Move to ...
29264         * sysdeps/microblaze/atomic-machine.h: ...here.
29265         * sysdeps/mips/bits/atomic.h: Move to ...
29266         * sysdeps/mips/atomic-machine.h: ...here.
29267         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
29268         * sysdeps/powerpc/bits/atomic.h: Move to ...
29269         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
29270         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
29271         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
29272         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
29273         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
29274         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
29275         <atomic-machine.h> instead of <bits/atomic.h>.
29276         * sysdeps/s390/bits/atomic.h: Move to ...
29277         * sysdeps/s390/atomic-machine.h: ...here.
29278         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
29279         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
29280         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
29281         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
29282         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
29283         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
29284         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
29285         * sysdeps/tile/bits/atomic.h: Move to ...
29286         * sysdeps/tile/atomic-machine.h: ...here.
29287         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
29288         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
29289         <sysdeps/tile/atomic-machine.h> instead of
29290         <sysdeps/tile/bits/atomic.h>.
29291         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
29292         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
29293         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
29294         <sysdeps/tile/atomic-machine.h> instead of
29295         <sysdeps/tile/bits/atomic.h>.
29296         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
29297         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
29298         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
29299         <sysdeps/arm/atomic-machine.h> instead of
29300         <sysdeps/arm/bits/atomic.h>.
29301         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
29302         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
29303         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
29304         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
29305         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
29306         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
29307         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
29308         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
29309         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
29310         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
29311         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
29312         * sysdeps/x86_64/bits/atomic.h: Move to ...
29313         * sysdeps/x86_64/atomic-machine.h: ...here.
29314         * include/atomic.h: Include <atomic-machine.h> instead of
29315         <bits/atomic.h>.
29316
29317         * sysdeps/mips/mips32/libm-test-ulps: Update.
29318         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29319
29320         [BZ #18952]
29321         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
29322         not convert non-integer negative arguments to int to determine the
29323         value of signgam.
29324         * math/auto-libm-test-in: Add more tests of lgamma.
29325         * math/auto-libm-test-out: Regenerated.
29326
29327         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
29328         cosh, csqrt, erfc, expm1 and lgamma.
29329         * math/auto-libm-test-out: Regenerated.
29330         * sysdeps/i386/fpu/libm-test-ulps: Update.
29331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29332
29333 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
29334
29335         [BZ #2542]
29336         [BZ #2543]
29337         [BZ #2558]
29338         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
29339         __lgamma_neg for arguments from -28.0 to -2.0.
29340         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
29341         __lgamma_negf for arguments from -15.0 to -2.0.
29342         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29343         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
29344         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
29345         Call __lgamma_negl for arguments from -33.0 to -2.0.
29346         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
29347         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
29348         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
29349         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
29350         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
29351         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
29352         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
29354         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
29355         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
29356         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
29357         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
29358         (__lgamma_neg): Likewise.
29359         (__lgamma_negl): Likewise.
29360         (__lgamma_product): Likewise.
29361         (__lgamma_productl): Likewise.
29362         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
29363         * math/auto-libm-test-in: Add more tests of lgamma.
29364         * math/auto-libm-test-out: Regenerated.
29365         * sysdeps/i386/fpu/libm-test-ulps: Update.
29366         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29367
29368 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
29369
29370         [BZ #18675]
29371         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
29372
29373 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29374
29375         [BZ #14912]
29376         * bits/libc-lock.h: Move to ...
29377         * sysdeps/generic/libc-lock.h: ...here.
29378         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
29379         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
29380         * sysdeps/mach/hurd/libc-lock.h: ...here.
29381         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
29382         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
29383         * sysdeps/mach/bits/libc-lock.h: Move to ...
29384         * sysdeps/mach/libc-lock.h: ...here.
29385         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
29386         * sysdeps/nptl/bits/libc-lock.h: Move to ...
29387         * sysdeps/nptl/libc-lock.h: ...here.
29388         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
29389         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
29390         * sysdeps/nptl/libc-lockP.h: ...here.
29391         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
29392         * crypt/crypt_util.c: Include <libc-lock.h> instead of
29393         <bits/libc-lock.h>.
29394         * dirent/scandir-tail.c: Likewise.
29395         * dlfcn/dlerror.c: Likewise.
29396         * elf/dl-close.c: Likewise.
29397         * elf/dl-iteratephdr.c: Likewise.
29398         * elf/dl-lookup.c: Likewise.
29399         * elf/dl-open.c: Likewise.
29400         * elf/dl-support.c: Likewise.
29401         * elf/dl-writev.h: Likewise.
29402         * elf/rtld.c: Likewise.
29403         * grp/fgetgrent.c: Likewise.
29404         * gshadow/fgetsgent.c: Likewise.
29405         * gshadow/sgetsgent.c: Likewise.
29406         * iconv/gconv_conf.c: Likewise.
29407         * iconv/gconv_db.c: Likewise.
29408         * iconv/gconv_dl.c: Likewise.
29409         * iconv/gconv_int.h: Likewise.
29410         * iconv/gconv_trans.c: Likewise.
29411         * include/link.h: Likewise.
29412         * inet/getnameinfo.c: Likewise.
29413         * inet/getnetgrent.c: Likewise.
29414         * inet/getnetgrent_r.c: Likewise.
29415         * intl/bindtextdom.c: Likewise.
29416         * intl/dcigettext.c: Likewise.
29417         * intl/finddomain.c: Likewise.
29418         * intl/gettextP.h: Likewise.
29419         * intl/loadmsgcat.c: Likewise.
29420         * intl/localealias.c: Likewise.
29421         * intl/textdomain.c: Likewise.
29422         * libidn/idn-stub.c: Likewise.
29423         * libio/libioP.h: Likewise.
29424         * locale/duplocale.c: Likewise.
29425         * locale/freelocale.c: Likewise.
29426         * locale/newlocale.c: Likewise.
29427         * locale/setlocale.c: Likewise.
29428         * login/getutent_r.c: Likewise.
29429         * login/getutid_r.c: Likewise.
29430         * login/getutline_r.c: Likewise.
29431         * login/utmp-private.h: Likewise.
29432         * login/utmpname.c: Likewise.
29433         * malloc/mtrace.c: Likewise.
29434         * misc/efgcvt.c: Likewise.
29435         * misc/error.c: Likewise.
29436         * misc/fstab.c: Likewise.
29437         * misc/getpass.c: Likewise.
29438         * misc/mntent.c: Likewise.
29439         * misc/syslog.c: Likewise.
29440         * nis/nis_call.c: Likewise.
29441         * nis/nis_callback.c: Likewise.
29442         * nis/nss-default.c: Likewise.
29443         * nis/nss_compat/compat-grp.c: Likewise.
29444         * nis/nss_compat/compat-initgroups.c: Likewise.
29445         * nis/nss_compat/compat-pwd.c: Likewise.
29446         * nis/nss_compat/compat-spwd.c: Likewise.
29447         * nis/nss_nis/nis-alias.c: Likewise.
29448         * nis/nss_nis/nis-ethers.c: Likewise.
29449         * nis/nss_nis/nis-grp.c: Likewise.
29450         * nis/nss_nis/nis-hosts.c: Likewise.
29451         * nis/nss_nis/nis-network.c: Likewise.
29452         * nis/nss_nis/nis-proto.c: Likewise.
29453         * nis/nss_nis/nis-pwd.c: Likewise.
29454         * nis/nss_nis/nis-rpc.c: Likewise.
29455         * nis/nss_nis/nis-service.c: Likewise.
29456         * nis/nss_nis/nis-spwd.c: Likewise.
29457         * nis/nss_nisplus/nisplus-alias.c: Likewise.
29458         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
29459         * nis/nss_nisplus/nisplus-grp.c: Likewise.
29460         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
29461         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
29462         * nis/nss_nisplus/nisplus-network.c: Likewise.
29463         * nis/nss_nisplus/nisplus-proto.c: Likewise.
29464         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
29465         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
29466         * nis/nss_nisplus/nisplus-service.c: Likewise.
29467         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
29468         * nis/ypclnt.c: Likewise.
29469         * nptl/libc_pthread_init.c: Likewise.
29470         * nss/getXXbyYY.c: Likewise.
29471         * nss/getXXent.c: Likewise.
29472         * nss/getXXent_r.c: Likewise.
29473         * nss/nss_db/db-XXX.c: Likewise.
29474         * nss/nss_db/db-netgrp.c: Likewise.
29475         * nss/nss_db/nss_db.h: Likewise.
29476         * nss/nss_files/files-XXX.c: Likewise.
29477         * nss/nss_files/files-alias.c: Likewise.
29478         * nss/nsswitch.c: Likewise.
29479         * posix/regex_internal.h: Likewise.
29480         * posix/wordexp.c: Likewise.
29481         * pwd/fgetpwent.c: Likewise.
29482         * resolv/res_hconf.c: Likewise.
29483         * resolv/res_libc.c: Likewise.
29484         * shadow/fgetspent.c: Likewise.
29485         * shadow/lckpwdf.c: Likewise.
29486         * shadow/sgetspent.c: Likewise.
29487         * socket/opensock.c: Likewise.
29488         * stdio-common/reg-modifier.c: Likewise.
29489         * stdio-common/reg-printf.c: Likewise.
29490         * stdio-common/reg-type.c: Likewise.
29491         * stdio-common/vfprintf.c: Likewise.
29492         * stdio-common/vfscanf.c: Likewise.
29493         * stdlib/abort.c: Likewise.
29494         * stdlib/cxa_atexit.c: Likewise.
29495         * stdlib/fmtmsg.c: Likewise.
29496         * stdlib/random.c: Likewise.
29497         * stdlib/setenv.c: Likewise.
29498         * string/strsignal.c: Likewise.
29499         * sunrpc/auth_none.c: Likewise.
29500         * sunrpc/bindrsvprt.c: Likewise.
29501         * sunrpc/create_xid.c: Likewise.
29502         * sunrpc/key_call.c: Likewise.
29503         * sunrpc/rpc_thread.c: Likewise.
29504         * sysdeps/arm/backtrace.c: Likewise.
29505         * sysdeps/generic/ldsodefs.h: Likewise.
29506         * sysdeps/generic/stdio-lock.h: Likewise.
29507         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
29508         * sysdeps/i386/backtrace.c: Likewise.
29509         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
29510         * sysdeps/m68k/backtrace.c: Likewise.
29511         * sysdeps/mach/hurd/cthreads.c: Likewise.
29512         * sysdeps/mach/hurd/dirstream.h: Likewise.
29513         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
29514         * sysdeps/nptl/malloc-machine.h: Likewise.
29515         * sysdeps/nptl/stdio-lock.h: Likewise.
29516         * sysdeps/posix/dirstream.h: Likewise.
29517         * sysdeps/posix/getaddrinfo.c: Likewise.
29518         * sysdeps/posix/system.c: Likewise.
29519         * sysdeps/pthread/aio_suspend.c: Likewise.
29520         * sysdeps/s390/s390-32/backtrace.c: Likewise.
29521         * sysdeps/s390/s390-64/backtrace.c: Likewise.
29522         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29523         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29524         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
29525         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
29526         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
29527         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
29528         * sysdeps/unix/sysv/linux/system.c: Likewise.
29529         * sysdeps/x86_64/backtrace.c: Likewise.
29530         * time/alt_digit.c: Likewise.
29531         * time/era.c: Likewise.
29532         * time/tzset.c: Likewise.
29533         * wcsmbs/wcsmbsload.c: Likewise.
29534         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
29535         instead of <bits/libc-lock.h> in comment.
29536
29537 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
29538
29539         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
29540         Only use .set mips2 if the current ISA is below mips2.
29541         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
29542         Likewise.
29543         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
29544         mips32r2 if the current ISA is below mips32r2.
29545         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
29546         (TLS_IE): Updated to use the TLD_RDHWR macro.
29547         (TLS_LE): Likewise.
29548         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
29549         __ASSEMBLER__ condition.
29550
29551 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29552
29553         Fix parallel build of before-compile targets.
29554
29555         * sysdeps/mach/Makefile ($(patsubst
29556         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
29557         mach-before-compile target.
29558         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
29559         io fs process)): Move rule to dedicated hurd-before-compile target.
29560
29561 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29562
29563         Fix rules generating headers in hurd/ and mach/ when initial make call
29564         has subdir= explicitly set.
29565
29566         * sysdeps/mach/Makefile ($(patsubst
29567         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
29568         calling $(MAKE).
29569         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
29570         io fs process)): Force subdir to hurd when calling $(MAKE).
29571         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
29572         subdir to mach when calling $(MAKE).
29573
29574 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
29575
29576         Check sysheaders when looking for Mach and Hurd headers
29577
29578         * sysdeps/mach/configure.ac: Add sysheaders check.
29579         * sysdeps/mach/configure: Regenerate.
29580         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
29581         * sysdeps/mach/hurd/configure: Regenerate.
29582
29583 2015-09-04  Roland McGrath  <roland@hack.frob.com>
29584
29585         [BZ #18921]
29586         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
29587         Fix inverted sense of test of 'o_directory_works' value.
29588         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
29589         Bernhard Voelker <mail@bernhard-voelker.de>.
29590
29591 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
29592
29593         [BZ #14912]
29594         * bits/linkmap.h: Move to ...
29595         * sysdeps/generic/linkmap.h: ...here.
29596         * sysdeps/aarch64/bits/linkmap.h: Move to ...
29597         * sysdeps/aarch64/linkmap.h: ...here.
29598         * sysdeps/arm/bits/linkmap.h: Move to ...
29599         * sysdeps/arm/linkmap.h: ...here.
29600         * sysdeps/hppa/bits/linkmap.h: Move to ...
29601         * sysdeps/hppa/linkmap.h: ...here.
29602         * sysdeps/ia64/bits/linkmap.h: Move to ...
29603         * sysdeps/ia64/linkmap.h: ...here.
29604         * sysdeps/mips/bits/linkmap.h: Move to ...
29605         * sysdeps/mips/linkmap.h: ...here.
29606         * sysdeps/s390/bits/linkmap.h: Move to ...
29607         * sysdeps/s390/linkmap.h: ...here.
29608         * sysdeps/sh/bits/linkmap.h: Move to ...
29609         * sysdeps/sh/linkmap.h: ...here.
29610         * sysdeps/x86/bits/linkmap.h: Move to ...
29611         * sysdeps/x86/linkmap.h: ...here.
29612         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
29613
29614 2015-09-04  Andreas Schwab  <schwab@suse.de>
29615
29616         [BZ #18635]
29617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
29618         (__makecontext): Terminate FDE before return label.
29619         (__novec_makecontext): Likewise.
29620
29621 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
29622
29623         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
29624         first member of struct sv in syscall macro.
29625
29626 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
29627
29628         [BZ #14912]
29629         * bits/stdio-lock.h: Move to ...
29630         * sysdeps/generic/stdio-lock.h: ...here.
29631         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
29632         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
29633         * sysdeps/nptl/stdio-lock.h: ...here.
29634         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
29635         * include/libio.h: Include <stdio-lock.h> instead of
29636         <bits/stdio-lock.h>.
29637         * sysdeps/nptl/fork.c: Likewise.
29638         * sysdeps/pthread/flockfile.c: Likewise.
29639         * sysdeps/pthread/ftrylockfile.c: Likewise.
29640         * sysdeps/pthread/funlockfile.c: Likewise.
29641
29642         [BZ #14912]
29643         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
29644         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
29645         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
29646         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
29647         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
29648         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
29649         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
29650
29651 2015-09-03  Roland McGrath  <roland@hack.frob.com>
29652
29653         * elf/Makefile (test-xfail-tst-protected1a): New variable.
29654         (test-xfail-tst-protected1b): New variable.
29655
29656 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
29657
29658         [BZ #14912]
29659         * bits/libc-tsd.h: Move to ...
29660         * sysdeps/generic/libc-tsd.h: ...here.
29661         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
29662         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
29663         * sysdeps/mach/hurd/libc-tsd.h: ...here.
29664         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
29665         * include/ctype.h: Include <libc-tsd.h> instead of
29666         <bits/libc-tsd.h>.
29667         * include/rpc/rpc.h: Likewise.
29668         * locale/localeinfo.h: Likewise.
29669         * sunrpc/rpc_thread.c: Likewise.
29670         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
29671         * sysdeps/nptl/malloc-machine.h: Likewise.
29672
29673         * Makefile (headers): Remove bits/libc-lock.h.
29674         * libio/Makefile (headers): Remove bits/stdio-lock.h.
29675
29676         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
29677         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
29678         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
29679         <bits/stdio-lock.h>.
29680         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
29681         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
29682
29683 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
29684
29685         [BZ #18757]
29686         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
29687         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
29688         BZ #18757.
29689
29690 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
29691
29692         * malloc/mtrace.pl: Filter out NULL entries.
29693
29694 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
29695
29696         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
29697         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
29698         macro.
29699
29700         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
29701         (TCP_CC_INFO): Likewise.
29702         (TCP_SAVE_SYN): Likewise.
29703         (TCP_SAVED_SYN): Likewise.
29704
29705 2015-08-31  Brett Neumeier <brett@neumeier.us>
29706
29707         [BZ #18870]
29708         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
29709
29710 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29711
29712         [BZ #18873]
29713         Fix broken overflow check in posix_fallocate
29714         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
29715         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
29716         Fix parenthesization typo.
29717
29718 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
29719
29720         [BZ #18887]
29721         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
29722         tst-mntent-blank-passno.
29723         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
29724         * misc/tst-mntent-blank-corrupt.c: New test.
29725         * misc/tst-mntent-blank-passno.c: New test ripped from ...
29726         * misc/tst-mntent.c (do_test): ... here.
29727
29728 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
29729
29730         [BZ #4404]
29731         * po/de.po: Fix SIGALRM typo.
29732
29733 2015-08-28  James Perkins  <james@loowit.net>
29734
29735         * time/tst-strptime2.c (tests): Replace short list of test
29736         strings for strptime %z specifier with code which exhaustively
29737         tests every combination of sign and 0 to 5 digits. Tests for
29738         rejection of invalid strings.
29739
29740 2015-08-28  James Perkins  <james@loowit.net>
29741
29742         [BZ #16141]
29743         * time/strptime_l.c (__strptime_internal): Fix %z minutes
29744         calculation, removing incorrect decimal time rounding, so that
29745         all minute values result in a valid seconds value.
29746         * time/strptime_l.c (__strptime_internal): Extend %z time zone
29747         offset range limits to UTC-99:59 through UTC+99:59 to parse
29748         current and historical use cases.
29749         * time/tst-strptime2.c (tests): Modify and add tests for the
29750         strptime %z input field descriptor, specifically conversion of
29751         minutes to seconds and validating an offset range of -9959 to
29752         +9959.
29753
29754 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29755             Dmitry V. Levin  <ldv@altlinux.org>
29756
29757         [BZ #18877]
29758         * posix/Makefile (tests): Add tst-mmap-offset.
29759         * posix/tst-mmap.c: New file.
29760         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
29761         offset calculation for negative values.
29762
29763 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29764
29765         * sysdeps/i386/init-arch.h: New file.
29766         * sysdeps/i386/i586/init-arch.h: Likewise.
29767         * sysdeps/i386/i686/init-arch.h: Likewise.
29768         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
29769         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
29770         * sysdeps/x86/cpu-features.h (bit_I586): New.
29771         (bit_I686): Likewise.
29772         (bit_CX8): Likewise.
29773         (bit_CMOV): Likewise.
29774         (index_CX8): Likewise.
29775         (index_CMOV): Likewise.
29776         (index_I586): Likewise.
29777         (index_I686): Likewise.
29778         (reg_CX8): Likewise.
29779         (reg_CMOV): Likewise.
29780         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
29781         available at compile-time.
29782         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
29783         available at compile-time.
29784         * sysdeps/x86/init-arch.h (USE_I586): New macro.
29785         (USE_I686): Likewise.
29786
29787 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29788
29789         * sysdeps/i386/bcopy.S: New file.
29790         * sysdeps/i386/bzero.S: Likewise.
29791         * sysdeps/i386/memcpy.S: Likewise.
29792         * sysdeps/i386/memmove.S: Likewise.
29793         * sysdeps/i386/mempcpy.S: Likewise.
29794         * sysdeps/i386/memset.S: Likewise.
29795         * sysdeps/i386/bzero.c: Removed.
29796         * sysdeps/i386/memset.c: Likewise.
29797         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
29798         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
29799         * sysdeps/i386/i586/memset_chk.S: Likewise.
29800         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
29801         * sysdeps/i386/memcpy_chk.S: Here.
29802         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
29803         * sysdeps/i386/memmove_chk.S: Here.
29804         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
29805         * sysdeps/i386/mempcpy_chk.S: Likewise.
29806         * sysdeps/i386/i686/memset_chk.S: Moved to ...
29807         * sysdeps/i386/memset_chk.S: Likewise.
29808
29809 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
29810
29811         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
29812         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
29813         file, move DIAG_POP_NEEDS_COMMENT to end of file.
29814         * soft-fp/fmadf4.c: Ditto.
29815         * soft-fp/fmatf4.c: Ditto.
29816
29817 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29818
29819         * sysdeps/i386/i586/Implies: Removed.
29820         * sysdeps/i386/i686/Implies: Likewise.
29821
29822 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29823
29824         * sysdeps/i386/i486/strlen.S: Moved to ...
29825         * sysdeps/i386/strlen.S: Here.
29826
29827 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29828
29829         * sysdeps/i386/i486/strcat.S: Moved to ...
29830         * sysdeps/i386/strcat.S: Here.
29831
29832 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29833
29834         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
29835         * sysdeps/i386/pthread_spin_trylock.S: Here.
29836         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
29837         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
29838
29839 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29840
29841         * sysdeps/i386/i486/string-inlines.c: Moved to ...
29842         * sysdeps/i386/string-inlines.c: Here.
29843
29844 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29845
29846         * sysdeps/i386/i486/htonl.S: Moved ...
29847         * sysdeps/i386/htonl.S: here.
29848
29849 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29850
29851         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
29852         * sysdeps/i386/bits/atomic.h: Here.
29853
29854 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
29855
29856         * sysdeps/i386/i486/Versions: Removed.
29857
29858 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
29859
29860         [BZ #2898]
29861         * misc/mktemp.c: Add mkdtemp to the link_warning message.
29862         Based on patch by Aurelien Jarno.
29863
29864 2015-08-26  Stan Shebs  <stanshebs@google.com>
29865
29866         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
29867         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
29868
29869 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
29870
29871         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
29872         * sysdeps/powerpc/dl-procinfo.c:
29873         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
29874         feature so it shows when LD_SHOW_AUXV=1.
29875
29876 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
29877
29878         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
29879         (__arch_compare_and_exchange_val_32_acq): Remove and use common
29880         definition.  ISA 2.07B no longer requires full sync.
29881
29882 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
29883
29884         [BZ #18863]
29885         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
29886         (si_call_addr): Define.
29887         (si_syscall): Define.
29888         (si_arch): Define.
29889
29890 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
29891
29892         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
29893         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
29894         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
29895         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
29896         (__memset_zero_constant_len_parameter): New.
29897         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
29898         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
29899         (__memset_zero_constant_len_parameter): Don't define if
29900         __memset_chk or USE_AS_BZERO are defined.
29901
29902         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
29903         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
29904         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
29905
29906         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
29907         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
29908         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
29909         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
29910         comments.
29911         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
29912         -mno-mmx for $(all-rtld-routines).
29913         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
29914         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
29915         i386.
29916
29917 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
29918
29919         * sysdeps/generic/unwind.h
29920         (_Unwind_Word): Use __mode__(__unwind_word__)
29921         instead of __mode__(__word__).
29922         (_Unwind_Sword): Likewise.
29923
29924         * sysdeps/s390/s390-64/utf8-utf16-z9.c
29925         (MAX_NEEDED_INPUT): New define.
29926         (MAX_NEEDED_OUTPUT): New define.
29927
29928         * NEWS: New item for IBM z13 string optimizations.
29929
29930         * sysdeps/s390/multiarch/memrchr-c.c: New File.
29931         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
29932         * sysdeps/s390/multiarch/memrchr.c: Likewise.
29933         * sysdeps/s390/multiarch/Makefile
29934         (sysdep_routines): Add memrchr functions.
29935         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
29936         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
29937
29938         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
29939         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
29940         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
29941         * sysdeps/s390/multiarch/Makefile
29942         (sysdep_routines): Add wmemcmp functions.
29943         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
29944         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
29945         * benchtests/bench-wmemcmp.c: New File.
29946         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
29947
29948         * sysdeps/s390/multiarch/wmemset-c.c: New File.
29949         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
29950         * sysdeps/s390/multiarch/wmemset.c: Likewise.
29951         * sysdeps/s390/multiarch/Makefile
29952         (sysdep_routines): Add wmemset functions.
29953         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
29954         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
29955         * wcsmbs/wmemset.c: Use WMEMSET if defined.
29956         * string/test-memset.c: Add wmemset support.
29957         * wcsmbs/test-wmemset.c: New File.
29958         * wcsmbs/Makefile (strop-tests): Add wmemset.
29959         * benchtests/bench-memset.c: Add wmemset support.
29960         * benchtests/bench-wmemset.c: New File.
29961         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
29962
29963         * sysdeps/s390/multiarch/memccpy-c.c: New File.
29964         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
29965         * sysdeps/s390/multiarch/memccpy.c: Likewise.
29966         * sysdeps/s390/multiarch/Makefile
29967         (sysdep_routines): Add memccpy functions.
29968         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
29969         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
29970         * string/memccpy.c: Use MEMCCPY if defined.
29971
29972         * sysdeps/s390/multiarch/memchr-vx.S: New File.
29973         * sysdeps/s390/multiarch/memchr.c: Likewise.
29974         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
29975         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
29976         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
29977         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
29978         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
29979         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
29980         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
29981         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
29982         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
29983         and rawmemchr functions.
29984         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
29985         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
29986         and wmemchr.
29987         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
29988         * string/test-memchr.c: Add wmemchr support.
29989         * wcsmbs/test-wmemchr.c: New File.
29990         * wcsmbs/Makefile (strop-tests): Add wmemchr.
29991         * benchtests/bench-memchr.c: Add wmemchr support.
29992         * benchtests/bench-wmemchr.c: New File.
29993         * benchtests/Makefile (wcsmbs-bench): wmemchr.
29994
29995         * sysdeps/s390/multiarch/strcspn-c.c: New File.
29996         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
29997         * sysdeps/s390/multiarch/strcspn.c: Likewise.
29998         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
29999         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
30000         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
30001         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
30002         wcscspn functions.
30003         * sysdeps/s390/multiarch/ifunc-impl-list.c
30004         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
30005         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
30006         * string/test-strcspn.c: Add wcscspn support.
30007         * wcsmbs/test-wcscspn.c: New File.
30008         * wcsmbs/Makefile (strop-tests): Add wcscspn.
30009         * benchtests/bench-strcspn.c: Add wcscspn support.
30010         * benchtests/bench-wcscspn.c: New File.
30011         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
30012
30013         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
30014         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
30015         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
30016         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
30017         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
30018         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
30019         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
30020         wcspbrk functions.
30021         * sysdeps/s390/multiarch/ifunc-impl-list.c
30022         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
30023         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
30024         * string/test-strpbrk.c: Add wcspbrk support.
30025         * wcsmbs/test-wcspbrk.c: New File.
30026         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
30027         * benchtests/bench-strpbrk.c: Add wcspbrk support.
30028         * benchtests/bench-wcspbrk.c: New File.
30029         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
30030
30031         * sysdeps/s390/multiarch/strspn-c.c: New File.
30032         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
30033         * sysdeps/s390/multiarch/strspn.c: Likewise.
30034         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
30035         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
30036         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
30037         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
30038         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
30039         wcsspn functions.
30040         * sysdeps/s390/multiarch/ifunc-impl-list.c
30041         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
30042         * string/test-strspn.c: Add wcsspn support.
30043         * wcsmbs/test-wcsspn.c: New File.
30044         * wcsmbs/Makefile (strop-tests): Add wcsspn.
30045         * benchtests/bench-strspn.c: Add wcsspn support.
30046         * benchtests/bench-wcsspn.c: New File.
30047         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
30048
30049         * sysdeps/s390/multiarch/strrchr-c.c: New File.
30050         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
30051         * sysdeps/s390/multiarch/strrchr.c: Likewise.
30052         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
30053         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
30054         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
30055         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
30056         wcsrchr functions.
30057         * sysdeps/s390/multiarch/ifunc-impl-list.c
30058         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
30059         * benchtests/bench-wcsrchr.c: New File.
30060         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
30061
30062         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
30063         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
30064         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
30065         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
30066         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
30067         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
30068         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
30069         wcschrnul functions.
30070         * sysdeps/s390/multiarch/ifunc-impl-list.c
30071         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
30072         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
30073         * string/test-strchr.c: Add wcschrnul support.
30074         * wcsmbs/test-wcschrnul.c: New File.
30075         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
30076         * benchtests/bench-strchr.c: Add wcschrnul support.
30077         * benchtests/bench-wcschrnul.c: New File.
30078         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
30079
30080         * sysdeps/s390/multiarch/strchr-c.c: New File.
30081         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
30082         * sysdeps/s390/multiarch/strchr.c: Likewise.
30083         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
30084         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
30085         * sysdeps/s390/multiarch/wcschr.c: Likewise.
30086         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
30087         wcschr functions.
30088         * sysdeps/s390/multiarch/ifunc-impl-list.c
30089         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
30090         * string/strchr.c (STRCHR): Define and use macro.
30091         * benchtests/bench-wcschr.c: New File.
30092         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
30093
30094         * sysdeps/s390/multiarch/strncmp-c.c: New File.
30095         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
30096         * sysdeps/s390/multiarch/strncmp.c: Likewise.
30097         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
30098         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
30099         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
30100         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
30101         wcsncmp functions.
30102         * sysdeps/s390/multiarch/ifunc-impl-list.c
30103         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
30104         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
30105         * benchtests/bench-strncmp.c: Add wcsncmp support.
30106         * benchtests/bench-wcsncmp.c: New File.
30107         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
30108
30109         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
30110         * sysdeps/s390/multiarch/strcmp.c: Likewise.
30111         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
30112         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
30113         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
30114         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
30115         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
30116         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
30117         wcscmp functions.
30118         * sysdeps/s390/multiarch/ifunc-impl-list.c
30119         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
30120         * string/strcmp.c (STRCMP): Define and use macro.
30121         * benchtests/bench-wcscmp.c: New File.
30122         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
30123         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
30124         instead of _HAVE_STRING_ARCH_memchr.
30125
30126         * sysdeps/s390/multiarch/strncat-c.c: New File.
30127         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
30128         * sysdeps/s390/multiarch/strncat.c: Likewise.
30129         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
30130         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
30131         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
30132         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
30133         wcsncat functions.
30134         * sysdeps/s390/multiarch/ifunc-impl-list.c
30135         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
30136         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
30137         * string/test-strncat.c: Add wcsncat support.
30138         * wcsmbs/test-wcsncat.c: New File.
30139         * wcsmbs/Makefile (strop-tests): Add wcsncat.
30140         * benchtests/bench-strncat.c: Add wcsncat support.
30141         * benchtests/bench-wcsncat.c: New File.
30142         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
30143
30144         * sysdeps/s390/multiarch/strcat-c.c: New File.
30145         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
30146         * sysdeps/s390/multiarch/strcat.c: Likewise.
30147         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
30148         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
30149         * sysdeps/s390/multiarch/wcscat.c: Likewise.
30150         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
30151         wcscat functions.
30152         * sysdeps/s390/multiarch/ifunc-impl-list.c
30153         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
30154         * string/strcat.c (STRCAT): Define and use macro.
30155         * wcsmbs/wcscat.c: Use WCSCAT if defined.
30156         * string/test-strcat.c: Add wcscat support.
30157         * wcsmbs/test-wcscat.c: New File.
30158         * wcsmbs/Makefile (strop-tests): Add wcscat.
30159         * benchtests/bench-strcat.c: Add wcscat support.
30160         * benchtests/bench-wcscat.c: New File.
30161         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
30162
30163         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
30164         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
30165         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
30166         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
30167         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
30168         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
30169         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
30170         wcpncpy functions.
30171         * sysdeps/s390/multiarch/ifunc-impl-list.c
30172         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
30173         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
30174         * string/test-stpncpy.c: Add wcpncpy support.
30175         * wcsmbs/test-wcpncpy.c: New File.
30176         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
30177         * benchtests/bench-stpncpy.c: Add wcpncpy support.
30178         * benchtests/bench-wcpncpy.c: New File.
30179         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
30180
30181         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
30182         * sysdeps/s390/multiarch/strncpy.c: Likewise.
30183         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
30184         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
30185         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
30186         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
30187         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
30188         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
30189         wcsncpy functions.
30190         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
30191         * sysdeps/s390/multiarch/ifunc-impl-list.c
30192         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
30193         * string/test-strncpy.c: Add wcsncpy support.
30194         * wcsmbs/test-wcsncpy.c: New File.
30195         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
30196         * benchtests/bench-strncpy.c: Add wcsncpy support.
30197         * benchtests/bench-wcsncpy.c: New File.
30198         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
30199
30200         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
30201         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
30202         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
30203         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
30204         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
30205         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
30206         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
30207         wcpcpy functions.
30208         * string/stpcpy.c: Use STPCPY if defined.
30209         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
30210         * sysdeps/s390/multiarch/ifunc-impl-list.c
30211         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
30212         * string/test-stpcpy.c: Add wcpcpy support.
30213         * wcsmbs/test-wcpcpy.c: New File.
30214         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
30215         * benchtests/bench-stpcpy.c: Add wcpcpy support.
30216         * benchtests/bench-wcpcpy.c: New File.
30217         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
30218
30219         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
30220         * sysdeps/s390/multiarch/strcpy.c: Likewise.
30221         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
30222         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
30223         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
30224         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
30225         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
30226         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
30227         wcscpy functions.
30228         * sysdeps/s390/multiarch/ifunc-impl-list.c
30229         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
30230         * benchtests/bench-wcscpy.c: New File.
30231         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
30232
30233         * sysdeps/s390/multiarch/strnlen-c.c: New File.
30234         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
30235         * sysdeps/s390/multiarch/strnlen.c: Likewise.
30236         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
30237         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
30238         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
30239         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
30240         wcsnlen functions.
30241         * sysdeps/s390/multiarch/ifunc-impl-list.c
30242         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
30243         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
30244         * string/test-strnlen.c: Add wcsnlen support.
30245         * wcsmbs/test-wcsnlen.c: New File.
30246         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
30247         * benchtests/bench-strnlen.c: Add wcsnlen support.
30248         * benchtests/bench-wcsnlen.c: New File.
30249         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
30250
30251         * sysdeps/s390/multiarch/Makefile: New File.
30252         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
30253         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
30254         * sysdeps/s390/multiarch/strlen.c: Likewise.
30255         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
30256         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
30257         * sysdeps/s390/multiarch/wcslen.c: Likewise.
30258         * string/strlen.c (STRLEN): Define and use macro.
30259         * sysdeps/s390/multiarch/ifunc-impl-list.c
30260         (IFUNC_VX_IMPL): New macro function.
30261         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
30262         * benchtests/Makefile (wcsmbs-bench): New variable.
30263         (string-bench-all): Added wcsmbs-bench.
30264         * benchtests/bench-wcslen.c: New File.
30265
30266         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
30267         s390_vx_libc_ifunc2): New macro function.
30268
30269         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
30270         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
30271         assembler support.
30272         * sysdeps/s390/configure: Regenerated.
30273
30274         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
30275         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30276
30277         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
30278         * sysdeps/s390/dl-procinfo.h: Add vector capability.
30279         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
30280
30281         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
30282         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
30283         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
30284         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
30285         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
30286         (memcmp, bcmp): Use __memcmp_default as alias source.
30287         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
30288         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
30289         Rename to __memcmp_default.
30290         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
30291         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
30292         (memcpy): Use __memcpy_default as alias source.
30293         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
30294         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
30295         Rename to __memcpy_default.
30296         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
30297         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
30298         (memset): Use __memset_default as alias source.
30299         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
30300         * sysdeps/s390/s390-32/memset.S (__memset_g5):
30301         Rename to __memset_default.
30302         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
30303         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
30304         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
30305         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
30306         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
30307         (memcmp, bcmp): Use __memcmp_default as alias source.
30308         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
30309         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
30310         Rename to __memcmp_default.
30311         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
30312         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
30313         (memcpy): Use __memcpy_default as alias source.
30314         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
30315         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
30316         Rename to __memcpy_default.
30317         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
30318         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
30319         (memset): Use __memset_default as alias source.
30320         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
30321         * sysdeps/s390/s390-64/memset.S (__memset_z900):
30322         Rename to __memset_default.
30323         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
30324         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
30325
30326         [BZ #18610]
30327         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
30328         __ieee_instruction_pointer to __unused.
30329         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
30330         __ieee_instruction_pointer.
30331         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
30332         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
30333         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
30334         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
30335         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
30336         Mark dxc-field as reserved.
30337
30338 2015-08-25  Roland McGrath  <roland@hack.frob.com>
30339
30340         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
30341         if the weak reference is not null.
30342
30343 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
30344
30345         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
30346
30347         [BZ #11214]
30348         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
30349
30350 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
30351
30352         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
30353         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
30354         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
30355         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
30356         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
30357         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
30358         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
30359         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
30360         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
30361         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
30362         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
30363         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
30364         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
30365         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
30366         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
30367         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
30368         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
30369         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
30370
30371 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
30372
30373         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
30374         register other than r0 for tabort, it has special meaning.
30375         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
30376         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
30377         transaction before starting syscall.
30378
30379 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
30380
30381         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
30382
30383 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
30384
30385         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
30386
30387         * sysdeps/x86_64/rtld-memcmp.c: Removed.
30388         * sysdeps/x86_64/rtld-memset.S: Likewise.
30389         * sysdeps/x86_64/rtld-strchr.S: Likewise.
30390         * sysdeps/x86_64/rtld-strlen.S: Likewise.
30391         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
30392         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30393
30394         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
30395
30396 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
30397
30398         * debug/strcpy_chk.c: Improve performance.
30399         * debug/stpcpy_chk.c: Likewise.
30400         * sysdeps/x86_64/strcpy_chk.S: Remove.
30401         * sysdeps/x86_64/stpcpy_chk.S: Remove.
30402
30403         [BZ #18240]
30404         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
30405
30406 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
30407
30408         [BZ #15128]
30409         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
30410         ifuncmain8.
30411         (modules-names): Add ifuncmod8.
30412         ($(objpfx)ifuncmain8): New rule.
30413         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
30414         <cpuid.h>.
30415         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
30416         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
30417         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
30418         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
30419         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
30420         * sysdeps/x86_64/dl-trampoline.h: Likewise.
30421         * sysdeps/x86_64/ifuncmain8.c: New file.
30422         * sysdeps/x86_64/ifuncmod8.c: Likewise.
30423         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
30424         Removed.
30425         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
30426         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
30427         Change rtld_savespace_sse to __glibc_unused2.
30428         (RTLD_CHECK_FOREIGN_CALL): Removed.
30429         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
30430         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
30431         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
30432
30433 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
30434
30435         * sysdeps/aarch64/bzero.S (__bzero): Remove.
30436
30437 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
30438
30439         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
30440         Unconditionally set __fpcr to avoid uninialized warning.
30441         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
30442
30443 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30444
30445         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
30446         is corrupt.
30447
30448         * malloc/arena.c (arena_get2): Drop unused argument.
30449         (arena_lock): Adjust.
30450         (arena_get_retry): Likewise.
30451
30452 2015-08-24  Andreas Schwab  <schwab@suse.de>
30453
30454         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
30455         Don't define.
30456         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
30457         (__ASSUME_IPC64): Don't undef.
30458         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
30459         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
30460         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
30461         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
30462         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
30463         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
30464         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
30465         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
30466         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
30467         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
30468         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
30469         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
30470         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
30471         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
30472         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
30473         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
30474         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
30475         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
30476         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
30477         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
30478         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
30479
30480 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
30481
30482         * manual/Makefile (install): Only build manual when perl is available.
30483
30484 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
30485
30486         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
30487         '#undef memcpy' by '#undef memchr'.
30488
30489 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
30490
30491         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
30492         memchr not point to the internal __GI_memchr implementation.
30493
30494 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
30495
30496         * timezone/Makefile (CFLAGS-zdump.c): Remove
30497         -Wno-strict-prototypes.
30498         (CFLAGS-zic.c): Likewise.
30499         (CFLAGS-ialloc.c): Likewise.
30500         (CFLAGS-scheck.c): Likewise.
30501
30502         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
30503         -Wno-error=undef.
30504
30505 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
30506
30507         * i386/i686/multiarch/strcasestr-c.c: Removed.
30508         * x86_64/multiarch/strcasestr.c: Likewise.
30509         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30510         Remove strcasestr.
30511
30512 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
30513
30514         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
30515
30516         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
30517         variables for high and low parts before possibly modifying them.
30518
30519 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
30520
30521         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
30522         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
30523         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
30524         of "multiarch/init-arch.h".
30525         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
30526         * sysdeps/x86/init-arch.h: This.
30527
30528 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
30529
30530         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
30531         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
30532
30533 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
30534
30535         [BZ #17787]
30536         * manual/macros.texi: Add twoexp macro.
30537         * manual/filesys.texi: Fix exponents.
30538         * manual/llio.texi: Likewise.
30539         * manual/stdio.texi: Likewise.
30540
30541 2015-08-20  Florian Weimer  <fweimer@redhat.com>
30542
30543         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
30544         incorrect use.
30545
30546 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
30547
30548         [BZ #18370]
30549         * math/s_csqrt.c (__csqrt): Force underflow exception for results
30550         whose real or imaginary part has small absolute value.
30551         * math/s_csqrtf.c (__csqrtf): Likewise.
30552         * math/s_csqrtl.c (__csqrtl): Likewise.
30553         * math/auto-libm-test-in: Add more tests of csqrt.
30554         * math/auto-libm-test-out: Regenerated.
30555         * sysdeps/i386/fpu/libm-test-ulps: Update.
30556
30557 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30558
30559         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
30560         __ppc_set_ppr_very_low): New functions.
30561         * manual/platform.texi: Add documentation about
30562         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
30563
30564 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
30565
30566         * string/stpncpy.c (stpncpy): Improve performance using
30567         __strnlen/memcpy/memset.
30568
30569 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
30570
30571         [BZ #18796]
30572         * scripts/test-installation.pl: Don't add -lmvec to build options if
30573         libmvec wasn't built.
30574
30575 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
30576
30577         [BZ #14341]
30578         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
30579         case when there is a gap between DT_REL and DT_JMPREL sections.
30580         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
30581         (LDFLAGS-tst-split-dynreloc): New.
30582         (tst-split-dynreloc-ENV): Likewise.
30583         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
30584         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
30585
30586 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
30587
30588         [BZ #18822]
30589         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
30590         attribute_hidden.
30591         (__xstat64_conv): Likewise.
30592         (__xstat32_conv): Likewise.
30593
30594 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
30595
30596         [BZ #18822]
30597         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
30598         Don't load %ebx when calling __setcontext.  Call __setcontext
30599         with HIDDEN_JUMPTARGET.
30600         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
30601         libc_hidden_def.
30602
30603 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
30604
30605         * sysdeps/i386/i686/Makefile
30606         [$(subdir) == string] (sysdep_routines): Moved to ...
30607         * sysdeps/i386/Makefile: Here.
30608         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
30609         * sysdeps/i386/cacheinfo.c: Here.
30610         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
30611         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
30612         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
30613         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
30614
30615 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
30616
30617         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
30618         __i586__ is defined.
30619         (HAS_I686): Defined to 1 if __i686__ is defined.
30620
30621 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
30622
30623         * elf/Makefile [$(have-z-execstack) = yes]
30624         (CPPFLAGS-tst-execstack.c): New variable.
30625
30626         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
30627         conditional to [defined UTMPX || _HAVE_UT_TYPE].
30628         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
30629         UTMPX || _HAVE_UT_TV].
30630         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
30631         UTMPX || _HAVE_UT_TV - 0].
30632
30633 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
30634
30635         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
30636         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
30637         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
30638
30639 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
30640
30641         * sysdeps/powerpc/dl-procinfo.c:
30642         (_dl_powerpc_cap_flags): Added missing strings for some
30643         hwcap features.
30644         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
30645
30646 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30647
30648         Port the 0x7efe...feff pattern to GCC 6.
30649         See Steve Ellcey's bug report in:
30650         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
30651         * string/memrchr.c (MEMRCHR):
30652         * string/rawmemchr.c (RAWMEMCHR):
30653         * string/strchr.c (strchr):
30654         * string/strchrnul.c (STRCHRNUL):
30655         Rewrite code to avoid issues with signed shift overflow.
30656
30657 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
30658
30659         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
30660         whether cpuid is available only if HAS_CPUID is 0.
30661         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
30662         (HAS_I586): Likewise.
30663         (HAS_I686): Likewise.
30664
30665 2015-08-18  Zack Weinberg  <zackw@panix.com>
30666
30667         * misc/Versions (libc): Add GLIBC_2.23.
30668
30669 2015-08-18  Alan Modra  <amodra@gmail.com>
30670
30671         [BZ #18421]
30672         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
30673         .Lp__global.
30674         (_start): Load %dp via .Lp__global.
30675         [!SHARED]: Use .section .rodata.
30676
30677 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30678
30679         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
30680         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
30681
30682 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30683
30684         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
30685         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
30686
30687 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30688
30689         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
30690         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
30691
30692 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30693
30694         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
30695         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
30696
30697 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30698
30699         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
30700         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
30701
30702 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30703
30704         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
30705         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
30706
30707 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30708
30709         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
30710
30711 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30712
30713         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
30714         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
30715         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30716         (__ASSUME_LWS_CAS): Delete.
30717
30718 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
30719
30720         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
30721         * sysdeps/hppa/configure: Regenerated.
30722         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
30723         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
30724         * sysdeps/hppa/nptl/tls.h: Likewise.
30725
30726 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
30727
30728         [BZ #18823]
30729         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
30730         for scaling up small arguments.
30731         * math/s_csqrtf.c (__csqrtf): Likewise.
30732         * math/s_csqrtl.c (__csqrtl): Likewise.
30733         * math/auto-libm-test-in: Add more tests of csqrt.
30734         * math/auto-libm-test-out: Regenerated.
30735
30736 2015-08-17  Andreas Schwab  <schwab@suse.de>
30737
30738         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
30739         version set GLIBC_2.19.
30740
30741 2015-08-16  Zack Weinberg  <zackw@panix.com>
30742
30743         [BZ #18681]
30744         * misc/regexp.h: This interface is no longer supported.
30745         Remove all contents, leaving only an #error directive.
30746         * misc/regexp.c (loc1, loc2, locs, step, advance):
30747         Demote to compatibility symbols.
30748
30749 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
30750
30751         [BZ #18084]
30752         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
30753         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
30754         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
30755         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
30756         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
30757         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
30758         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
30759         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
30760         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
30761
30762 2015-08-15  Zack Weinberg  <zackw@panix.com>
30763
30764         [BZ #18795]
30765         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
30766         buffer length is known to be too large, not if it's known to be
30767         small enough.
30768         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
30769         overflow at runtime, involving a length parameter, twice: once
30770         with a compile-time constant length parameter, once without.
30771
30772 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
30773
30774         [BZ #18824]
30775         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
30776         scaling x * y up instead of down.
30777         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
30778         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
30779         * math/auto-libm-test-in: Add more tests of fma.
30780         * math/auto-libm-test-out: Regenerated.
30781
30782 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
30783
30784         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30785
30786 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
30787
30788         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
30789         unnecessary movq.
30790         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
30791         Likewise.
30792
30793 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
30794
30795         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
30796         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
30797         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
30798         and tgamma.
30799         * math/auto-libm-test-out: Regenerated.
30800         * sysdeps/i386/fpu/libm-test-ulps: Update.
30801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30802
30803         [BZ #16520]
30804         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
30805         (__tanh): Force underflow exception for arguments with small
30806         absolute value.
30807         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
30808         (__tanhf): Force underflow exception for arguments with small
30809         absolute value.
30810         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
30811         (__tanhl): Force underflow exception for arguments with small
30812         absolute value.
30813         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
30814         (__tanhl): Force underflow exception for arguments with small
30815         absolute value.
30816         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
30817         (__tanhl): Force underflow exception for arguments with small
30818         absolute value.
30819         * math/auto-libm-test-in: Add more tests of tanh.
30820         * math/auto-libm-test-out: Regenerated.
30821         * sysdeps/i386/fpu/libm-test-ulps: Update.
30822
30823 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
30824
30825         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
30826         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
30827
30828 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
30829
30830         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
30831         <cpuid.h>.
30832
30833 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
30834
30835         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
30836         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
30837
30838 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
30839
30840         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
30841         Remove $(objpfx)init-arch.o.
30842         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
30843         init-arch.
30844         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
30845         (INIT_ARCH_EXT): Defined as empty.
30846         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
30847         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
30848         __init_cpu_features call.  Replace HAS_XXX with
30849         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
30850         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
30851         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
30852         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
30853         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
30854         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
30855         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
30856         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
30857         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
30858         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
30859         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
30860         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
30861         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
30862         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
30863         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
30864         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
30865         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
30866         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
30867         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
30868         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
30869         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
30870         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
30871         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
30872         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
30873         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
30874         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
30875         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
30876         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
30877         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
30878         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
30879         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
30880         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
30881         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
30882         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
30883         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
30884         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
30885
30886 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
30887
30888         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
30889         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
30890         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
30891         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
30892         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
30893         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
30894         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
30895         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
30896         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
30897         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
30898         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
30899         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
30900         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
30901         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30902         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30903         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30904         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30905         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30906         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30907         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30908         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30909         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30910         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30911         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30912         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30913         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30914         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
30915         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30916         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30917         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30918         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30919         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30920         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30921         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
30922         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30923         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30924         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30925         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30926         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30927         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30928         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30929         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30930         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30931
30932 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
30933
30934         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
30935         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
30936         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
30937         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30938         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30939         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
30940         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30941         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
30942         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
30943         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30944         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30945         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
30946         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
30947         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
30948         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
30949         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
30950         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
30951         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
30952         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
30953         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
30954         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
30955         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
30956         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
30957         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
30958         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
30959         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
30960         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
30961         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
30962         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
30963         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
30964         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
30965         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
30966         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
30967         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30968         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30969         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
30970         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
30971         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
30972         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
30973         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
30974         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30975         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
30976         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
30977
30978 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
30979
30980         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
30981         (dl_platform_init): Call init_cpu_features.
30982         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
30983         * sysdeps/i386/i686/cacheinfo.c
30984         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
30985         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
30986         * sysdeps/i386/i686/multiarch/Versions: Removed.
30987         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
30988         Removed.
30989         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
30990         * sysdeps/unix/sysv/linux/x86/Makefile
30991         (libpthread-sysdep_routines): Remove init-arch.
30992         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
30993         <sysdeps/x86_64/dl-procinfo.c> instead of
30994         sysdeps/generic/dl-procinfo.c>.
30995         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
30996         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
30997         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
30998         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
30999         [$(subdir) == elf] (tests-static): Add
31000         tst-get-cpu-features-static.
31001         * sysdeps/x86/Versions: New file.
31002         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
31003         * sysdeps/x86/cpu-features.c: Likewise.
31004         * sysdeps/x86/cpu-features.h: Likewise.
31005         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
31006         * sysdeps/x86/libc-start.c: Likewise.
31007         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
31008         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
31009         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
31010         * sysdeps/x86_64/dl-procinfo.c: Likewise.
31011         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
31012         Assume USE_MULTIARCH is defined and don't check it.
31013         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
31014         (is_amd): Likewise.
31015         (max_cpuid): Likewise.
31016         (intel_check_word): Likewise.
31017         (__cache_sysconf): Don't call __init_cpu_features.
31018         (__x86_preferred_memory_instruction): Removed.
31019         (init_cacheinfo): Don't call __init_cpu_features. Replace
31020         __cpu_features with GLRO(dl_x86_cpu_features).
31021         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
31022         (dl_platform_init): Call init_cpu_features.
31023         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
31024         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
31025         * sysdeps/x86_64/multiarch/Versions: Removed.
31026         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
31027         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
31028         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
31029         Removed.
31030         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
31031
31032 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
31033
31034         [BZ #18820]
31035         * libio/Makefile (test-fmemopen-mem): New test.
31036         * libio/test-fmemopen.c (do_bz18820): New test.
31037         * libio/fmemopen.c (__fmemopen): Fix memory leak.
31038         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
31039
31040 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
31041
31042         [BZ #16734]
31043         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
31044         (FREE_BUF): Delete.
31045         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
31046         * libio/genops.c (_IO_setb): Use malloc and free directly.
31047         (_IO_default_doallocate, _IO_default_finish): Likewise.
31048         ( _IO_unbuffer_all): Likewise.
31049         ( libc_freeres_fn): Likewise.
31050         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
31051         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
31052         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
31053         (_IO_wdefault_doallocate): Likewise.
31054
31055 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
31056
31057         [BZ #18086]
31058         * sysdeps/posix/nice.c (nice): Restore old errno.
31059         * posix/tst-nice.c (do_test): Add test for BZ #18086.
31060
31061 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
31062
31063         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
31064
31065 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31066
31067         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
31068         __bcopy and add a weak_alias to bcopy.
31069         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
31070         for static build.
31071
31072         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
31073         cleanup macro usage.
31074         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
31075         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
31076         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
31077         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
31078         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
31079         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
31080         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
31081         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
31082         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
31083         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
31084         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
31085         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
31086         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
31087         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
31088         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
31089         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
31090         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
31091         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
31092         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
31093
31094         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
31095         libc_hidden_def.
31096         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
31097
31098         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
31099         (sysdep_routines): Add strstr-ppc64.
31100         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
31101
31102 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
31103
31104         [BZ #18778]
31105         * elf/Makefile (tests): Add Add tst-nodelete2.
31106         (modules-names): Add tst-nodelete2mod.
31107         (tst-nodelete2mod.so-no-z-defs): New.
31108         ($(objpfx)tst-nodelete2): Likewise.
31109         ($(objpfx)tst-nodelete2.out): Likewise.
31110         (LDFLAGS-tst-nodelete2): Likewise.
31111         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
31112         out of loop through all loaded libraries.
31113         * elf/tst-nodelete2.c: New file.
31114         * elf/tst-nodelete2mod.c: Likewise.
31115         * elf/tst-znodelete-zlib.cc: Delete.
31116
31117 2015-08-11  Andreas Schwab  <schwab@suse.de>
31118
31119         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
31120         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
31121         (__openat64_nocancel): Likewise.
31122
31123 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
31124
31125         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
31126         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
31127         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
31128         * math/auto-libm-test-out: Regenerated.
31129         * sysdeps/i386/fpu/libm-test-ulps: Update.
31130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31131
31132 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
31133
31134         [BZ #18790]
31135         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
31136         threshold for returning +/- 1.
31137         * math/auto-libm-test-in: Add more tests of tanh.
31138         * math/auto-libm-test-out: Regenerated.
31139         * sysdeps/i386/fpu/libm-test-ulps: Update.
31140
31141 2015-08-10  Andreas Schwab  <schwab@suse.de>
31142
31143         [BZ #18781]
31144         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
31145         MORE_OFLAGS to oflag.
31146         * io/test-lfs.c (do_test): Test openat64.
31147
31148 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
31149
31150         [BZ #18789]
31151         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
31152         smaller threshold for returning the argument.
31153         * math/auto-libm-test-in: Add more tests of sinh.
31154         * math/auto-libm-test-out: Regenerated.
31155         * sysdeps/i386/fpu/libm-test-ulps: Update.
31156
31157 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
31158
31159         [BZ #18674]
31160         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
31161         break.
31162
31163 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
31164
31165         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
31166         (generated): Don't add $(addprefix z.,$(tzfiles)).
31167
31168 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
31169
31170         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
31171         * scripts/sysd-rules.awk: Likewise.
31172
31173 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
31174
31175         * iconvdata/tst-tables.sh: Change echo -n to printf.
31176         * nss/db-Makefile: Likewise.
31177         * posix/tst-getconf.sh: Likewise.
31178         * stdio-common/tst-unbputc.sh: Likewise.
31179
31180 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
31181
31182         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
31183         MADV_*_PAGES defines behind this feature check.
31184
31185 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
31186
31187         [BZ #18480]
31188         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
31189         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
31190         Define.
31191         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
31192         LOAD_REGS_5, LOAD_REGS_6): Update.
31193         (INTERNAL_SYSCALL): Update using new LOAD defines.
31194         (INTERNAL_SYSCALL_NCS): Likewise.
31195         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
31196
31197 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
31198
31199         [BZ #16734]
31200         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
31201
31202 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
31203
31204         [BZ #17905]
31205         * catgets/Makefile (tst-catgets-mem): New test.
31206         * catgets/catgets.c (catopen): Don't use unbounded alloca.
31207         * catgets/open_catalog.c (__open_catalog): Likewise.
31208         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
31209
31210 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
31211
31212         [BZ #18787]
31213         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
31214         clobber registers.
31215         (atomic_compare_and_exchange_val_acq): Use register asms to assign
31216         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
31217         Cast return to __typeof (oldval).
31218
31219 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
31220
31221         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
31222         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
31223         and delete sys/syscall.h include.
31224
31225 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
31226
31227         [BZ #16517]
31228         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
31229         (tan): Force underflow exception for arguments with small absolute
31230         value.
31231         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
31232         (__kernel_tanf): Force underflow exception for arguments with
31233         small absolute value.
31234         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
31235         (__kernel_tanl): Force underflow exception for arguments with
31236         small absolute value.
31237         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
31238         (__kernel_tanl): Force underflow exception for arguments with
31239         small absolute value.
31240         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
31241         (__kernel_tanl): Force underflow exception for arguments with
31242         small absolute value.
31243         * math/auto-libm-test-in: Add more tests of tan.
31244         * math/auto-libm-test-out: Regenerated.
31245
31246 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31247
31248         Fix sysdeps/i386/fpu/s_scalbn.S build
31249
31250         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
31251
31252 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
31253
31254         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
31255
31256 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31257
31258         Fix gcrt0.o compilation
31259
31260         When static-start-installed-name is different from
31261         start-installed-name, we must not use the shared objects.
31262
31263         * csu/Makefile
31264         (extra-objs): Add gmon-start.o when building shared library and
31265         $(static-start-installed-name) is different from
31266         $(start-installed-name).
31267         $(objpfx)g$(static-start-installed-name): When building shared
31268         library and $(static-start-installed-name) is different from
31269         $(static-start-installed-name), revert to non-shared rule,
31270         i.e. using $(objpfx)% and gmon-start.o.
31271
31272 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
31273
31274         [BZ #16519]
31275         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
31276         (__ieee754_sinh): Force underflow exception for arguments with
31277         small absolute value.
31278         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
31279         (__ieee754_sinhf): Force underflow exception for arguments with
31280         small absolute value.
31281         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
31282         (__ieee754_sinhl): Force underflow exception for arguments with
31283         small absolute value.
31284         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
31285         (__ieee754_sinhl): Force underflow exception for arguments with
31286         small absolute value.
31287         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
31288         (__ieee754_sinhl): Force underflow exception for arguments with
31289         small absolute value.
31290         * math/auto-libm-test-in: Add more tests of sinh.
31291         * math/auto-libm-test-out: Regenerated.
31292         * sysdeps/i386/fpu/libm-test-ulps: Update.
31293
31294 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
31295
31296         * libio/oldfileops.c: Include unistd.h.
31297
31298 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
31299
31300         * stdlib/isomac.c: Include ctype.h.
31301
31302 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
31303
31304         * dirent/tst-seekdir.c (main): Converted to ...
31305         (do_test): ... this.
31306         (TEST_FUNCTION): New macro.
31307         Include test-skeleton.c.
31308         * elf/tst-dlmodcount.c (main): Converted to ...
31309         (do_test): ... this.
31310         (TEST_FUNCTION): New macro.
31311         Include test-skeleton.c.
31312         * elf/tst-order-main.c (main): Converted to ...
31313         (do_test): ... this.
31314         (TEST_FUNCTION): New macro.
31315         Include test-skeleton.c.
31316         * elf/tst-pie2.c (main): Converted to ...
31317         (do_test): ... this.
31318         (TEST_FUNCTION): New macro.
31319         Include test-skeleton.c.
31320         * inet/tst-ether_aton.c (main): Converted to ...
31321         (do_test): ... this.
31322         (TEST_FUNCTION): New macro.
31323         Include test-skeleton.c.
31324         * misc/tst-mntent.c (main): Converted to ...
31325         (do_test): ... this.
31326         (TEST_FUNCTION): New macro.
31327         Include test-skeleton.c.
31328         * misc/tst-tsearch.c (main): Converted to ...
31329         (do_test): ... this.
31330         (TEST_FUNCTION): New macro.
31331         Include test-skeleton.c.
31332         * posix/tst-regexloc.c (main): Converted to ...
31333         (do_test): ... this.
31334         (TEST_FUNCTION): New macro.
31335         Include test-skeleton.c.
31336         * resolv/tst-aton.c (main): Converted to ...
31337         (do_test): ... this.
31338         (TEST_FUNCTION): New macro.
31339         Include test-skeleton.c.
31340         * stdio-common/test-fwrite.c (main): Converted to ...
31341         (do_test): ... this.
31342         (TEST_FUNCTION): New macro.
31343         Include test-skeleton.c.
31344         * stdio-common/tst-ferror.c (main): Converted to ...
31345         (do_test): ... this.
31346         (TEST_FUNCTION): New macro.
31347         Include test-skeleton.c.
31348         * stdio-common/tst-printf.c (main): Converted to ...
31349         (do_test): ... this.
31350         (TEST_FUNCTION): New macro.
31351         Include test-skeleton.c.
31352         * stdio-common/tst-printfsz.c (main): Converted to ...
31353         (do_test): ... this.
31354         (TEST_FUNCTION): New macro.
31355         Include test-skeleton.c.
31356         * stdlib/tst-strtod.c (main): Converted to ...
31357         (do_test): ... this.
31358         (TEST_FUNCTION): New macro.
31359         Include test-skeleton.c.
31360         * string/tst-strlen.c (main): Converted to ...
31361         (do_test): ... this.
31362         (TEST_FUNCTION): New macro.
31363         Include test-skeleton.c.
31364         * string/tst-svc.c (main): Converted to ...
31365         (do_test): ... this.
31366         (TEST_FUNCTION): New macro.
31367         Include test-skeleton.c.
31368         * time/tst-strptime.c (main): Converted to ...
31369         (do_test): ... this.
31370         (TEST_FUNCTION): New macro.
31371         Include test-skeleton.c.
31372         * timezone/tst-timezone.c (main): Converted to ...
31373         (do_test): ... this.
31374         (TEST_FUNCTION): New macro.
31375         Include test-skeleton.c.
31376
31377 2015-08-05  Zack Weinberg  <zackw@panix.com>
31378
31379         * misc/regexp.h: Update comments.
31380
31381 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
31382
31383         [BZ #18635]
31384         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
31385         before return label.
31386
31387 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
31388
31389         [BZ #18661]
31390         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
31391         when calling __errno_location.
31392         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
31393         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
31394
31395 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
31396
31397         [BZ #18661]
31398         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
31399         (__lll_timedwait_tid): Align stack to 16 bytes when calling
31400         __gettimeofday.
31401
31402 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
31403
31404         [BZ #18661]
31405         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
31406         (__start_context): Don't use pop to restore %rdi so that stack
31407         is aligned to 16 bytes when calling __setcontext.
31408
31409 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
31410
31411         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
31412         only for libc.
31413         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
31414
31415 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
31416
31417         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
31418         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
31419         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
31420
31421 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
31422
31423         * string/memccpy.c (memccpy):
31424         Improve performance by using memchr/memcpy/__mempcpy.
31425
31426 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
31427
31428         * string/strncpy.c (strncpy):
31429         Improve performance by using __strnlen/memcpy.
31430
31431 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
31432
31433         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
31434         Optimize to avoid an unnecessary FPCR read.
31435
31436 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
31437
31438         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
31439         Optimize to reduce FPCR/FPSR accesses.
31440
31441 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
31442
31443         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
31444         dead->data[category] != NULL.
31445
31446 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
31447
31448         [BZ #18647]
31449         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
31450         and |x| close to 1, use absolute value of x when computing log.
31451         * math/auto-libm-test-in: Add more tests of pow.
31452         * math/auto-libm-test-out: Regenerated.
31453
31454 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31455
31456         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
31457         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
31458         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
31459
31460 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
31461
31462         [BZ #18525]
31463         * locales/km_KH: Remove timezone definition.
31464         * locales/lo_LA: Likewise.
31465         * locales/my_MM: Likewise.
31466         * locales/nan_TW@latin: Likewise.
31467         * locales/th_TH: Likewise.
31468         * locales/uk_UA: Likewise.
31469
31470 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
31471
31472         [BZ #18265]
31473         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
31474         (wcsncat): Likewise.
31475         (wcscmp): Likewise.
31476         (wcsncmp): Likewise.
31477
31478 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
31479
31480         * test-skeleton.c (usage): New function.
31481         (main): Call usage when opt is '?'.
31482
31483 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
31484
31485         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
31486         before first use.
31487
31488 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
31489
31490         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
31491         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
31492         in there too.
31493
31494 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
31495
31496         * version.h (RELEASE): Set to "development".
31497         (VERSION): Set to "2.22.90"
31498
31499         * version.h (RELEASE): Set to "stable".
31500         (VERSION): Set to "2.22"
31501         * include/features.h (__GLIBC_MINOR__): Set to 22.
31502
31503 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
31504
31505         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
31506         Restructure macro to avoid "value computed is not used" warning.
31507         (atomic_compare_and_exchange_val_acq): Likewise.
31508
31509 2015-08-04  Andreas Schwab  <schwab@suse.de>
31510
31511         [BZ #18635]
31512         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
31513         ret.
31514         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
31515
31516 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
31517
31518         * po/pl.po: Updated translation.
31519         * po/uk.po: Likewise.
31520         * po/fi.po: Likewise.
31521         * po/ko.po: Likewise.
31522         * po/ru.po: Likewise.
31523         * po/vi.po: Likewise.
31524
31525 2015-07-31  Zack Weinberg  <zackw@panix.com>
31526
31527         [BZ #18681]
31528         * regexp.h: Add unconditional #warning stating that this header
31529         will be removed soon.  Revise banner comment to match.
31530         (compile): Consistently use ERROR instead of RETURN to report
31531         errors (partial fix for BZ #18681).
31532         * regexp.c: Don't include regexp.h. Remove some unnecessary
31533         declarations.
31534
31535 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
31536
31537         * po/libc.pot: Regenerated.
31538
31539 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
31540
31541         [BZ #18740]
31542         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
31543         float-vlen4-arch-ext-cflags): Removed.
31544         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
31545         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
31546
31547 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
31548
31549         [BZ #14113]
31550         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
31551         aligned to __aligned__.
31552         (pthread_cond_t, pthread_rwlock_t): Likewise.
31553
31554 2015-07-30  Torvald Riegel  <triegel@redhat.com>
31555
31556         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
31557
31558 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
31559
31560         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
31561         (struct sigaction): Change sa_flags from a long to an int, and add
31562         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
31563
31564 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
31565
31566         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
31567         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
31568         sysdeps/generic/sysdep.h include.
31569         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
31570         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
31571         sysdeps/hppa/sysdep.h.
31572         (ENTRY, PSEUDO): Undefine before defining.
31573
31574 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
31575
31576         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
31577         from scratch to use INTERNAL_SYSCALL.
31578
31579 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
31580
31581         [BZ #18078]
31582         * scripts/check-localplt.awk: Support alternate relocations.
31583         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
31584         sections.
31585         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
31586         malloc entries with + REL R_386_GLOB_DAT.
31587         * sysdeps/x86_64/localplt.data: New file.
31588
31589 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
31590
31591         [BZ #18731]
31592         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
31593         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
31594         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
31595
31596 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
31597
31598         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
31599
31600 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
31601
31602         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
31603         directly in terms of __sync_fetch_and_add and delete (int) cast.
31604
31605 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
31606
31607         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
31608         the -D_ASM_IA64_CURRENT_H flag.
31609
31610 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
31611
31612         [BZ #18641]
31613         * pwd/pwd.h (putpwent): Delete __nonnull markings.
31614
31615 2015-07-27  Andreas Schwab  <schwab@suse.de>
31616
31617         * conform/conformtest.pl (checknamespace): Filter out string
31618         literals while tokenizing.
31619
31620 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
31621
31622         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
31623         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
31624         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
31625
31626 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
31627
31628         * nptl/tst-join7mod.c: Add #include <string.h>.
31629
31630 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
31631
31632         * sysdeps/nios2/libm-test-ulps: Update.
31633
31634 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
31635
31636         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
31637         Fix order of arguments to the rt_sigprocmask syscall.
31638         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
31639         Likewise.
31640
31641 2015-07-24  Roland McGrath  <roland@hack.frob.com>
31642
31643         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
31644
31645 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
31646
31647         [BZ #18457]
31648         * nptl/Makefile (tests): New test case tst-join7.
31649         (modules-names): New test case module tst-join7mod.
31650         * nptl/tst-join7.c: New file.
31651         * nptl/tst-join7mod.c: New file.
31652         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
31653         all translation units in libc.so, libpthread.so and rtld.
31654
31655 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31656
31657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31658
31659 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
31660
31661         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
31662         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
31663         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
31664         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
31665         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
31666         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
31667         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
31668         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
31669         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
31670         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
31671         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
31672         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
31673         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
31674         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
31675         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
31676         implementation.
31677
31678 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31679
31680         [BZ #17711]
31681         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
31682         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
31683         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
31684         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
31685         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
31686         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
31687
31688 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
31689
31690         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
31691         instead of just saying load lock in the comments.
31692
31693 2015-07-23  Roland McGrath  <roland@hack.frob.com>
31694
31695         * sysdeps/unix/Subdirs: Moved ...
31696         * sysdeps/posix/Subdirs: ... here.
31697         * login/pty.h (struct termios, struct winsize): Add forward decls.
31698         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
31699         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
31700         * sysdeps/arm/nacl/libc.abilist: Updated.
31701         * sysdeps/nacl/libutil.abilist: New file.
31702
31703         * bits/signum.h: Update comments to mention 1003.1-2013 too.
31704         (SIGWINCH): New macro.
31705
31706         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
31707         * sysdeps/arm/nacl/libc.abilist: Add it.
31708
31709 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
31710
31711         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
31712
31713 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
31714
31715         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
31716         Swap __glibc_reserved0 and sa_flags order.
31717
31718 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
31719
31720         [BZ #18657]
31721         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
31722         are pending TLS destructor calls.
31723         * include/link.h (struct link_map): Add concurrency note for
31724         L_TLS_DTOR_COUNT.
31725         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
31726         Don't touch the link map flag.  Atomically increment
31727         l_tls_dtor_count.
31728         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
31729         Avoid taking the load lock and don't touch the link map flag.
31730         * stdlib/tst-tls-atexit-nodelete.c: New test case.
31731         * stdlib/Makefile (tests): Use it.
31732         * stdlib/tst-tls-atexit.c (do_test): dlopen
31733         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
31734         to allow tst-tls-atexit-nodelete test case to use it.
31735
31736 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
31737
31738         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
31739         to bits/types.h.
31740         (msgqnum_t): New typedef.
31741         (msglen_t): Likewise.
31742         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
31743         and msg_qbytes type to msglen_t.
31744
31745 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
31746
31747         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
31748         pad0 to __glibc_reserved0.
31749         (struct stat64): Likewise.
31750
31751 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
31752
31753         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
31754         Change sa_flags from a long to an int and add __glibc_reserved0 before
31755         it for padding.
31756
31757 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
31758
31759         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
31760         anonymous by deleting "siginfo" name.
31761
31762 2015-07-21  Roland McGrath  <roland@hack.frob.com>
31763
31764         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
31765         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
31766         rather than __nacl_irt_filename.
31767         * sysdeps/nacl/xstat.c (__xstat): Likewise.
31768
31769         * NEWS: New item for arm-nacl port.
31770         * sysdeps/arm/nacl/libc.abilist: New file.
31771         * sysdeps/nacl/ld.abilist: New file.
31772         * sysdeps/nacl/libBrokenLocale.abilist: New file.
31773         * sysdeps/nacl/libanl.abilist: New file.
31774         * sysdeps/nacl/libcrypt.abilist: New file.
31775         * sysdeps/nacl/libdl.abilist: New file.
31776         * sysdeps/nacl/libm.abilist: New file.
31777         * sysdeps/nacl/libpthread.abilist: New file.
31778         * sysdeps/nacl/libresolv.abilist: New file.
31779         * sysdeps/nacl/librt.abilist: New file.
31780
31781 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
31782
31783         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
31784         __startcontext to initialize the new context.
31785         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
31786         up CFI directive to forbid further backtracing.
31787
31788 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
31789
31790         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
31791         reference.
31792         * charmaps/ANSI_X3.4-1968: Likewise.
31793         * charmaps/BS_4730: Likewise.
31794         * charmaps/BS_VIEWDATA: Likewise.
31795         * charmaps/CP1250: Likewise.
31796         * charmaps/CP1251: Likewise.
31797         * charmaps/CP1252: Likewise.
31798         * charmaps/CP1253: Likewise.
31799         * charmaps/CP1254: Likewise.
31800         * charmaps/CP1255: Likewise.
31801         * charmaps/CP1256: Likewise.
31802         * charmaps/CSN_369103: Likewise.
31803         * charmaps/EBCDIC-DK-NO: Likewise.
31804         * charmaps/GB_1988-80: Likewise.
31805         * charmaps/GREEK-CCITT: Likewise.
31806         * charmaps/GREEK7: Likewise.
31807         * charmaps/INIS-8: Likewise.
31808         * charmaps/ISIRI-3342: Likewise.
31809         * charmaps/ISO_2033-1983: Likewise.
31810         * charmaps/ISO_5427-EXT: Likewise.
31811         * locales/POSIX: Likewise.
31812         * locales/ar_SA: Likewise.
31813         * locales/be_BY: Likewise.
31814         * locales/be_BY@latin: Likewise.
31815         * locales/ca_ES: Likewise.
31816         * locales/cs_CZ: Likewise.
31817         * locales/da_DK: Likewise.
31818         * locales/de_BE: Likewise.
31819         * locales/de_CH: Likewise.
31820         * locales/de_LU: Likewise.
31821         * locales/en_AU: Likewise.
31822         * locales/en_BW: Likewise.
31823         * locales/en_CA: Likewise.
31824         * locales/en_DK: Likewise.
31825         * locales/en_GB: Likewise.
31826         * locales/en_IE: Likewise.
31827         * locales/en_NZ: Likewise.
31828         * locales/en_ZA: Likewise.
31829         * locales/en_ZW: Likewise.
31830         * locales/es_AR: Likewise.
31831         * locales/es_BO: Likewise.
31832         * locales/es_CL: Likewise.
31833         * locales/es_CO: Likewise.
31834         * locales/es_DO: Likewise.
31835         * locales/es_EC: Likewise.
31836         * locales/es_ES: Likewise.
31837         * locales/es_HN: Likewise.
31838         * locales/es_MX: Likewise.
31839         * locales/es_PA: Likewise.
31840         * locales/es_PE: Likewise.
31841         * locales/es_PY: Likewise.
31842         * locales/es_SV: Likewise.
31843         * locales/es_US: Likewise.
31844         * locales/es_UY: Likewise.
31845         * locales/es_VE: Likewise.
31846         * locales/et_EE: Likewise.
31847         * locales/fa_IR: Likewise.
31848         * locales/fo_FO: Likewise.
31849         * locales/fr_CA: Likewise.
31850         * locales/fr_CH: Likewise.
31851         * locales/gv_GB: Likewise.
31852         * locales/he_IL: Likewise.
31853         * locales/hr_HR: Likewise.
31854         * locales/id_ID: Likewise.
31855         * locales/is_IS: Likewise.
31856         * locales/it_CH: Likewise.
31857         * locales/iw_IL: Likewise.
31858         * locales/kl_GL: Likewise.
31859         * locales/ko_KR: Likewise.
31860         * locales/kw_GB: Likewise.
31861         * locales/lg_UG: Likewise.
31862         * locales/lt_LT: Likewise.
31863         * locales/lv_LV: Likewise.
31864         * locales/mi_NZ: Likewise.
31865         * locales/nhn_MX: Likewise.
31866         * locales/nl_BE: Likewise.
31867         * locales/pl_PL: Likewise.
31868         * locales/sk_SK: Likewise.
31869         * locales/sl_SI: Likewise.
31870         * locales/sv_FI: Likewise.
31871         * locales/tl_PH: Likewise.
31872         * locales/tr_TR: Likewise.
31873         * locales/vi_VN: Likewise.
31874
31875 2015-07-21  Khem Raj  <raj.khem@gmail.com>
31876
31877         [BZ #17475]
31878         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
31879         of tu_IN and bh_IN.
31880
31881 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
31882
31883         [BZ #18694]
31884         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
31885         bits/wordsize.h.
31886         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
31887
31888 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
31889
31890         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
31891         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
31892         (spawn_thread): New function.
31893         (load): Rename to reg_dtor_and_close.  Move dlopen to...
31894         (do_test): ... here.  Use IS_LOADED to test for its
31895         availability.
31896
31897 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
31898
31899         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31900
31901 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
31902
31903         [BZ #18696]
31904         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
31905         si_addr_bnd.
31906         (si_lower): New.
31907         (si_upper): Likewise.
31908
31909 2015-07-16  David S. Miller  <davem@davemloft.net>
31910
31911         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
31912
31913 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31914
31915         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
31916         buffer.
31917         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
31918         fail output information.
31919
31920 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
31921
31922         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
31923         and strstr-ppc64..
31924         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
31925         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
31926         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
31927         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
31928         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
31929
31930 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
31931
31932         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
31933         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
31934         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
31935         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
31936
31937 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
31938
31939         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
31940         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
31941         rtld_hidden_proto.
31942         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
31943
31944 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
31945
31946         * tst-nodelete-opened.c (do_test): Add comment to clarify how
31947         the test can fail.
31948
31949         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
31950
31951         [BZ #18676]
31952         * elf/tst-nodelete-opened.c: New test case.
31953         * elf/tst-nodelete-opened-lib.c: New test case module.
31954         * elf/Makefile (tests, modules-names): Use them.
31955         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
31956         early.
31957
31958 2015-07-15  David S. Miller  <davem@davemloft.net>
31959
31960         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
31961         futex-intenal.h
31962         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
31963         * sysdeps/sparc/sparc64/Makefile: Likewise.
31964         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
31965         Remove space from macro define.
31966         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
31967
31968 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
31969
31970         [BZ #17475]
31971         * locale/iso-639.def: Update Bhili and Tulu language codes as
31972         per iso639-3.
31973
31974 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
31975
31976         * elf/tst-leaks1.c (main): Converted to ...
31977         (do_test): ... this.
31978         (TEST_FUNCTION): New macro.
31979         Include test-skeleton.c.
31980         * localedata/tst-langinfo.c (main): Converted to ...
31981         (do_test): ... this.
31982         (TEST_FUNCTION): New macro.
31983         Include test-skeleton.c.
31984         * math/test-fpucw.c (main): Converted to ...
31985         (do_test): ... this.
31986         (TEST_FUNCTION): New macro.
31987         Include test-skeleton.c.
31988         * math/test-tgmath.c (main): Converted to ...
31989         (do_test): ... this.
31990         (TEST_FUNCTION): New macro.
31991         Include test-skeleton.c.
31992         * math/test-tgmath2.c (main): Converted to ...
31993         (do_test): ... this.
31994         (TEST_FUNCTION): New macro.
31995         Include test-skeleton.c.
31996         * setjmp/tst-setjmp.c (main): Converted to ...
31997         (do_test): ... this.
31998         (TEST_FUNCTION): New macro.
31999         Include test-skeleton.c.
32000         * stdio-common/tst-sscanf.c (main): Converted to ...
32001         (do_test): ... this.
32002         (TEST_FUNCTION): New macro.
32003         Include test-skeleton.c.
32004         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
32005         (do_test): ... this.
32006         (TEST_FUNCTION): New macro.
32007         Include test-skeleton.c.
32008
32009         * elf/tst-audit9.c (main): Converted to ...
32010         (do_test): ... this.
32011         (TEST_FUNCTION): New macro.
32012         Include test-skeleton.c.
32013
32014 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
32015
32016         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
32017
32018 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
32019
32020         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
32021         New variable.
32022
32023 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
32024
32025         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
32026
32027 2015-07-14  Roland McGrath  <roland@hack.frob.com>
32028
32029         * sysdeps/generic/dl-fileid.h: New file.
32030         * sysdeps/posix/dl-fileid.h: New file.
32031         * sysdeps/nacl/dl-fileid.h: New file.
32032         * include/link.h: Include <dl-fileid.h>.
32033         (struct link_map): Replace l_dev and l_ino with l_file_id.
32034         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
32035         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
32036         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
32037
32038 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
32039
32040         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
32041
32042 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32043
32044         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
32045         Add iff $CXX is set.
32046         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
32047         Likewise.
32048         (tst-nodelete-zmodiff): Likewise.
32049         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
32050
32051 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
32052
32053         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
32054
32055 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
32056
32057         * sysdeps/aarch64/fpu/math_private.h
32058         (define math_opt_barrier): Add AArch64 version.
32059         (math_force_eval): Likewise.
32060
32061 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
32062
32063         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
32064
32065 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
32066
32067         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
32068         %ld with %jd and cast to intmax_t.
32069         (do_test_length_zero): Likewise.
32070
32071 2015-07-10  Roland McGrath  <roland@hack.frob.com>
32072
32073         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
32074
32075 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
32076
32077         * sysdeps/tile/libm-test-ulps: Regenerated.
32078
32079         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
32080         Comment out the whole function, not just its body.
32081
32082 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32083
32084         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
32085         locks.
32086
32087         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
32088
32089 2015-07-10  Torvald Riegel  <triegel@redhat.com>
32090
32091         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
32092         (sem_assume_only_signals_cause_futex_EINTR): Remove.
32093
32094 2015-07-10  Torvald Riegel  <triegel@redhat.com>
32095
32096         * sysdeps/nptl/futex-internal.h: New file.
32097         * sysdeps/nacl/futex-internal.h: New file.
32098         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
32099         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
32100         error checking.
32101         (setxid_unmark_thread): Likewise.
32102         (__nptl_setxid): Likewise.
32103         (__wait_lookup_done): Likewise.
32104         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
32105         * nptl/nptl-init.c (sighandler_setxid): Likewise.
32106         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
32107         * nptl/pthread_once.c (clear_once_control): Likewise.
32108         (__pthread_once_slow): Likewise.
32109         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
32110         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
32111         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
32112         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
32113         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
32114         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
32115         Likewise.
32116         (__pthread_rwlock_rdlock): Likewise.
32117         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
32118         Likewise.
32119         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
32120         Likewise.
32121         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
32122         Likewise.
32123         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
32124         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
32125         Likewise.
32126         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
32127         __ASSUME_PRIVATE_FUTEX check.
32128         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
32129         Check that shared futexes are supported.
32130         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
32131         wrappers with error checking.
32132         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
32133         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
32134         * nptl/pthread_barrierattr_setpshared.c
32135         (pthread_barrierattr_setpshared): Check that shared futexes are
32136         supported.
32137         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
32138         Likewise.
32139         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
32140         Likewise.
32141         * nptl/sem_init.c (futex_private_if_supported): Remove.
32142         (__new_sem_init): Adapt and check that shared futexes are supported.
32143         * nptl/sem_open.c (sem_open): Likewise.
32144         * nptl/sem_post.c (futex_wake): Remove.
32145         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
32146         (do_futex_wait): Use futex wrappers with error checking.
32147         * nptl/sem_wait.c: Include lowlevellock.h.
32148         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
32149         Use futex_supports_pshared.
32150         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
32151         Use futex wrappers with error checking.
32152         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
32153         Likewise.
32154         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
32155         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
32156         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
32157         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
32158         (futex_wake): Likewise.
32159         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
32160         (do_futex_wait): Use futex wrappers with error checking.
32161         (__new_sem_wait_slow): Update EINTR handling.
32162         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
32163
32164 2015-07-09  Martin Sebor  <msebor@redhat.com>
32165
32166         [BZ #18435]
32167         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
32168         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
32169         * nptl/Makefile (test-xfail-tst-once5): Define.
32170
32171 2015-07-09  Roland McGrath  <roland@hack.frob.com>
32172
32173         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
32174         * elf/dl-minimal.c: For readability, reorder some definitions and
32175         introduce more page breaks.  Include <stdio.h>.
32176         (__libc_fatal): New function.
32177
32178         * include/unistd.h: Add rtld_hidden_proto for _exit.
32179         * posix/_exit.c: Add rtld_hidden_def.
32180         * sysdeps/mach/hurd/_exit.c: Likewise.
32181         * sysdeps/nacl/_exit.c: Likewise.
32182         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
32183         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
32184
32185 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
32186
32187         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
32188         bndmov encoding with zero displacement.
32189
32190 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
32191             H.J. Lu  <hongjiu.lu@intel.com>
32192
32193         [BZ #18134]
32194         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
32195         * sysdeps/i386/configure: Regenerated.
32196         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
32197         (_dl_runtime_profile): Save and restore Intel MPX return bound
32198         registers when calling _dl_call_pltexit.  Add
32199         PRESERVE_BND_REGS_PREFIX before return.
32200         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
32201         (LRV_BND1_OFFSET): Likewise.
32202         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
32203         lrv_bnd1.
32204         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
32205         typo in bndmov encoding.
32206         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
32207         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
32208         branch instructions to preserve bounds.
32209
32210 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32211
32212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
32213         [GLIBC_2.22]: Add fmemopen.
32214
32215 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32216
32217         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
32218         returns an error, also try to use host port from __mach_host_self for
32219         the __vm_wire call.
32220         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
32221
32222 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32223
32224         [BZ #18400]
32225         [BZ #18648]
32226         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
32227         Fix pr_uid and pr_gid members.
32228         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
32229         definition to elf_greg_t.
32230
32231 2015-07-08  Roland McGrath  <roland@hack.frob.com>
32232
32233         [BZ #18383]
32234         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
32235         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
32236         * sysdeps/arm/configure: Regenerated.
32237         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
32238         (test-xfail-tst-tlsalign-static): Variable removed.
32239
32240         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
32241         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
32242         rather than explicit 'ln -s'.
32243
32244         * resolv/rpc/netdb.h: New file.
32245         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
32246
32247 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32248
32249         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
32250         length buffers.
32251         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
32252         test-skeleton.c.
32253
32254         [BZ #6544]
32255         [BZ #11216]
32256         [BZ #12836]
32257         [BZ #13151]
32258         [BZ #13152]
32259         [BZ #14292]
32260         * include/stdio.h (fmemopen): Remove hidden prototype.
32261         (__fmemopen): Add new hidden prototype.
32262         * libio/Makefile: Add oldfmemopen object.
32263         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
32264         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
32265         compliance.
32266         * libio/oldfmemopen.c: New file: old fmemopen implementation for
32267         symbol compatibility.
32268         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
32269         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
32270         fmemopen.
32271         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
32272         on append and read mode.
32273         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
32274         fmemopen.
32275         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
32276         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
32277         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
32278         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
32279         Likewise.
32280         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
32281         [GLIBC_2.22]: Likewise.
32282         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
32283         Likewise.
32284         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
32285         Likewise.
32286         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
32287         [GLIBC_2.22]: Likewise.
32288         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
32289         [GLIBC_2.22]: Likewise.
32290         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
32291         [GLIBC_2.22]: Likewise.
32292         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
32293         [GLIBC_2.22]: Likewise.
32294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
32295         [GLIBC_2.22]: Likewise.
32296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
32297         [GLIBC_2.22]: Likewise.
32298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
32299         [GLIBC_2.22]: Likewise.
32300         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
32301         Likewise.
32302         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
32303         Likewise.
32304         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
32305         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
32306         [GLIBC_2.22]: Likewise.
32307         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
32308         [GLIBC_2.22]: Likewise.
32309         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
32310         [GLIBC_2.22]: Likewise.
32311         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
32312         [GLIBC_2.22]: Likewise.
32313         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
32314         Likewise.
32315         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
32316         Likewise.
32317         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
32318         Likewise.
32319         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
32320         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
32321
32322 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
32323
32324         [BZ #18643]
32325         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
32326         IPV6_PATHMTU, and IPV6_DONTFRAG.
32327
32328 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
32329
32330         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
32331         and _IO_UNBUFFERED.
32332         * libio/oldfileops.c: Likewise.
32333         * libio/wfileops.c: Likewise.
32334
32335 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
32336
32337         * nscd/selinux.c: Delete selinux/flask.h include.
32338
32339 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
32340
32341         [BZ #18641]
32342         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
32343         (putpwent): Likewise.
32344         (getpwnam): Likewise.
32345         (getpwent_r): Likewise.
32346         (getpwuid_r): Likewise.
32347         (getpwnam_r): Likewise.
32348         (fgetpwent_r): Likewise.
32349
32350 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
32351
32352         [BZ #18557]
32353         * inet/rcmd.c (__validuser2_sa): Check user first to
32354         short-circuit host check.
32355
32356 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
32357             Mikhail Ilin  <m.ilin@samsung.com>
32358
32359         [BZ #17833]
32360         * elf/Makefile (tests): Add tst-nodelete.
32361         (modules-names): Add tst-nodelete-uniquemod.
32362         (tst-nodelete-uniquemod.so-no-z-defs): New.
32363         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
32364         (tst-nodelete-zmod.so-no-z-defs): Likewise.
32365         ($(objpfx)tst-nodelete): Likewise.
32366         ($(objpfx)tst-nodelete.out): Likewise.
32367         (LDFLAGS-tst-nodelete): Likewise.
32368         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
32369         * elf/dl-close.c (_dl_close_worker): Add a parameter to
32370         implement forced object deletion.
32371         (_dl_close): Pass false to _dl_close_worker.
32372         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
32373         * elf/tst-nodelete.cc: New file.
32374         * elf/tst-nodeletelib.cc: Likewise.
32375         * elf/tst-znodeletelib.cc: Likewise.
32376         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
32377
32378 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
32379
32380         [BZ #18508]
32381         * stdlib/Makefile ($(objpfx)tst-makecontext3):
32382         Depend on $(libdl).
32383         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
32384         is not called infinitely times.
32385         (backtrace_helper): New function.
32386         (trace_arg): New struct.
32387         (st1): Enlarge stack size.
32388         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
32389         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
32390         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
32391         Likewise.
32392
32393 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
32394
32395         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
32396
32397 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
32398
32399         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
32400         Include sys/types.h instead of bits/types.h.
32401         Remove inclusion of bits/wordsize.h.
32402
32403 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
32404
32405         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
32406         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
32407         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
32408         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
32409         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
32410         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
32411
32412 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
32413
32414         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
32415         link-defines.sym.
32416         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
32417         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
32418         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
32419         and LR_SIZE.
32420         * sysdeps/i386/link-defines.sym: New file.
32421
32422 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
32423
32424         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
32425         (modules-names): Add tst-auditmod3a tst-auditmod3b.
32426         ($(objpfx)tst-audit3): New rule.
32427         ($(objpfx)tst-audit3.out): Likewise.
32428         * sysdeps/i386/tst-audit3.c: New file.
32429         * sysdeps/i386/tst-audit3.h: Likewise.
32430         * sysdeps/i386/tst-auditmod3a.c: Likewise.
32431         * sysdeps/i386/tst-auditmod3b.c: Likewise.
32432
32433 2015-07-07  Torvald Riegel  <triegel@redhat.com>
32434
32435         [BZ #18633]
32436         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
32437         pointer in C code.
32438         (__strcat_c): Likewise.
32439         (__strcat_g): Likewise.
32440
32441 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
32442
32443         [BZ #18592]
32444         * misc/sbrk.c: Set errno to ENOMEM on overflow.
32445
32446 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
32447
32448         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
32449         New function.  (__ieee754_sqrtf): New function.
32450         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
32451         New function.
32452         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
32453         New function.
32454
32455 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
32456
32457         * sysdeps/ieee754/support.c: Remove unused file.
32458
32459 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32460
32461         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
32462         registers instead of d ones so the layout is kernel abi compatible.
32463         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
32464         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
32465         Likewise.
32466
32467 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32468
32469         * sysdeps/aarch64/libm-test-ulps: Regenerated.
32470
32471 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
32472
32473         [BZ #18619]
32474         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
32475         and return argument in case of subnormal argument.
32476
32477 2015-07-01  Martin Sebor  <msebor@redhat.com>
32478
32479         [BZ #18435]
32480         * nptl/Makefile: Add tst-once5.cc.
32481         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
32482         Remove macro redefinitions.
32483         * nptl/tst-once5.cc: New test.
32484
32485 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
32486
32487         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
32488
32489         * sysdeps/arm/libm-test-ulps: Regenerated.
32490
32491         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
32492         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
32493
32494 2015-06-30  Torvald Riegel  <triegel@redhat.com>
32495
32496         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
32497         lll_lock_wait_private and lll_futex_wake probes.
32498
32499         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
32500         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
32501         Likewise.
32502         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
32503         atomic_spin_nop.
32504         * sysdeps/x86_64/bits/atomic.h: Likewise.
32505         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
32506         to atomic_spin_nop and move ...
32507         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
32508         ... here and ...
32509         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
32510         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
32511         atomic_spin_nop instead of BUSY_WAIT_NOP.
32512         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
32513         Likewise.
32514         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
32515         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
32516         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
32517         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
32518         instead of atomic_delay.
32519
32520 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
32521
32522         [BZ #18613]
32523         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
32524         X_ADJ not X when adjusting exponent.
32525         (__ieee754_gamma_r): Do intermediate computations in
32526         round-to-nearest then adjust overflowing and underflowing results
32527         as needed.
32528         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
32529         of X_ADJ not X when adjusting exponent.
32530         (__ieee754_gammaf_r): Do intermediate computations in
32531         round-to-nearest then adjust overflowing and underflowing results
32532         as needed.
32533         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
32534         log of X_ADJ not X when adjusting exponent.
32535         (__ieee754_gammal_r): Do intermediate computations in
32536         round-to-nearest then adjust overflowing and underflowing results
32537         as needed.  Use 1.0L not 1.0f as numerator of division.
32538         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
32539         log of X_ADJ not X when adjusting exponent.
32540         (__ieee754_gammal_r): Do intermediate computations in
32541         round-to-nearest then adjust overflowing and underflowing results
32542         as needed.  Use 1.0L not 1.0f as numerator of division.
32543         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
32544         of X_ADJ not X when adjusting exponent.
32545         (__ieee754_gammal_r): Do intermediate computations in
32546         round-to-nearest then adjust overflowing and underflowing results
32547         as needed.  Use 1.0L not 1.0f as numerator of division.
32548         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
32549         to auto-libm-test-in.
32550         (tgamma_test): Use ALL_RM_TEST.
32551         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
32552         tests of tgamma with spurious-overflow.
32553         * math/auto-libm-test-out: Regenerated.
32554         * math/gen-libm-have-vector-test.sh: Do not check for START.
32555         * sysdeps/i386/fpu/libm-test-ulps: Update.
32556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32557
32558         [BZ #18612]
32559         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
32560         arguments, just return 0.5 times the argument, with underflow
32561         forced as needed.
32562         * math/auto-libm-test-in: Add more tests of j1.
32563         * math/auto-libm-test-out: Regenerated.
32564
32565         [BZ #16559]
32566         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
32567         (__ieee754_j1): Force underflow exception for small results.
32568         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32569         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
32570         (__ieee754_j1f): Force underflow exception for small results.
32571         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
32572         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32573         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
32574         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
32575         (__ieee754_j1l): Force underflow exception for small results.
32576         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32577         * math/auto-libm-test-in: Add more tests of j1 and jn.
32578         * math/auto-libm-test-out: Regenerated.
32579
32580         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
32581         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
32582         (PF_MPLS): Likewise.
32583         (AF_IB): Likewise.
32584         (AF_MPLS): Likewise.
32585         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
32586         value and macro.
32587         (MS_RMT_MASK): Include MS_LAZYTIME.
32588
32589 2015-06-26  Mel Gorman  <mgorman@suse.de>
32590
32591         [BZ #18502]
32592         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
32593         already minimal.
32594
32595 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
32596
32597         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
32598         (DT_MIPS_NUM): Update.
32599         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
32600         DT_MIPS_RLD_MAP_REL.
32601
32602 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
32603
32604         [BZ #16559]
32605         [BZ #18602]
32606         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
32607         round-to-nearest internally then recompute results that
32608         underflowed to zero in the original rounding mode.
32609         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
32610         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32611         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
32612         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32613         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
32614         * sysdeps/i386/fpu/libm-test-ulps: Update.
32615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32616
32617 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
32618
32619         * NEWS: Fixed description of link with vector math library.
32620
32621 2015-06-25  Andreas Schwab  <schwab@suse.de>
32622
32623         [BZ #18549]
32624         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
32625         * libio/test-fmemopen.c (do_test): Add test for it.
32626
32627 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
32628
32629         [BZ #17841]
32630         * Makeconfig (no-pie-ldflag): New.
32631         (+link): Set to $(+link-pie) if default to PIE.
32632         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
32633         * config.make.in (build-pie-default): New.
32634         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
32635         is default.  AC_SUBST.
32636         * configure: Regenerated.
32637         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
32638
32639 2015-06-24  Roland McGrath  <roland@hack.frob.com>
32640
32641         * nptl/descr.h (struct pthread): Change type of field setxid_futex
32642         to 'unsigned int'.
32643
32644         * resolv/gai_misc.h (struct waitlist): Change type of field
32645         counterp to 'volatile unsigned int *'.
32646         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
32647         FUTEXADDR and OLDVAL.
32648         * resolv/getaddrinfo_a.c (getaddrinfo_a):
32649         Give local variable TOTAL type 'volatile unsigned int'.
32650         (struct async_waitlist): Change type of field counter to 'unsigned int'.
32651         * resolv/gai_suspend.c (gai_suspend):
32652         Give local variable CNTR type 'unsigned int'.
32653
32654         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
32655         counterp to 'volatile unsigned int *'.
32656         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
32657         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
32658         (aio_suspend): Give local variable CNTR type 'unsigned int'.
32659         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
32660         Give local variable TOTAL type 'volatile unsigned int'.
32661         (struct async_waitlist): Change type of field counter to 'unsigned int'.
32662
32663 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
32664
32665         [BZ #18383]
32666         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
32667         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
32668         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
32669         comment for i386/x86-64.
32670         (test-xfail-tst-tlsalign-extern-static): Removed.
32671
32672 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
32673
32674         * math/test-double.h: New file.
32675         * math/test-float.h: Likewise.
32676         * math/test-ldouble.h: Likewise.
32677         * math/test-math-inline.h: Likewise.
32678         * math/test-math-no-inline.h: Likewise.
32679         * math/test-math-scalar.h: Likewise.
32680         * math/test-math-vector.h: Likewise.
32681         * math/test-vec-loop.h: Remove file.  Contents moved into
32682         test-math-vector.h.
32683         * math/libm-test.inc (MATHCONST): Do not document macro.
32684         * math/test-double.c: Include test-double.h, test-math-no-inline.h
32685         and test-math-scalar.h.
32686         (FUNC): Remove macro.
32687         (FUNC_TEST): Likewise.
32688         (FLOAT): Likewise.
32689         (MATHCONST): Likewise.
32690         (PRINTF_EXPR): Likewise.
32691         (PRINTF_XEXPR): Likewise.
32692         (PRINTF_NEXPR): Likewise.
32693         (TEST_DOUBLE): Likewise.
32694         (TEST_MATHVEC): Likewise.
32695         (__NO_MATH_INLINES): Likewise.
32696         * math/test-float.c: Include test-float.h, test-math-no-inline.h
32697         and test-math-scalar.h.
32698         (FUNC): Remove macro.
32699         (FUNC_TEST): Likewise.
32700         (FLOAT): Likewise.
32701         (MATHCONST): Likewise.
32702         (PRINTF_EXPR): Likewise.
32703         (PRINTF_XEXPR): Likewise.
32704         (PRINTF_NEXPR): Likewise.
32705         (TEST_FLOAT): Likewise.
32706         (TEST_MATHVEC): Likewise.
32707         (__NO_MATH_INLINES): Likewise.
32708         * math/test-idouble.c: Include test-double.h, test-math-inline.h
32709         and test-math-scalar.h.
32710         (FUNC): Remove macro.
32711         (FUNC_TEST): Likewise.
32712         (FLOAT): Likewise.
32713         (MATHCONST): Likewise.
32714         (PRINTF_EXPR): Likewise.
32715         (PRINTF_XEXPR): Likewise.
32716         (PRINTF_NEXPR): Likewise.
32717         (TEST_DOUBLE): Likewise.
32718         (TEST_MATHVEC): Likewise.
32719         (TEST_INLINE): Likewise.
32720         (__NO_MATH_INLINES): Likewise.
32721         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
32722         test-math-scalar.h.
32723         (FUNC): Remove macro.
32724         (FUNC_TEST): Likewise.
32725         (FLOAT): Likewise.
32726         (MATHCONST): Likewise.
32727         (PRINTF_EXPR): Likewise.
32728         (PRINTF_XEXPR): Likewise.
32729         (PRINTF_NEXPR): Likewise.
32730         (TEST_FLOAT): Likewise.
32731         (TEST_MATHVEC): Likewise.
32732         (TEST_INLINE): Likewise.
32733         (__NO_MATH_INLINES): Likewise.
32734         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
32735         and test-math-scalar.h.
32736         (FUNC): Remove macro.
32737         (FUNC_TEST): Likewise.
32738         (FLOAT): Likewise.
32739         (MATHCONST): Likewise.
32740         (PRINTF_EXPR): Likewise.
32741         (PRINTF_XEXPR): Likewise.
32742         (PRINTF_NEXPR): Likewise.
32743         (TEST_LDOUBLE): Likewise.
32744         (TEST_MATHVEC): Likewise.
32745         (TEST_INLINE): Likewise.
32746         (__NO_MATH_INLINES): Likewise.
32747         * math/test-ldouble.c: Include test-ldouble.h,
32748         test-math-no-inline.h and test-math-scalar.h.
32749         (FUNC): Remove macro.
32750         (FUNC_TEST): Likewise.
32751         (FLOAT): Likewise.
32752         (MATHCONST): Likewise.
32753         (PRINTF_EXPR): Likewise.
32754         (PRINTF_XEXPR): Likewise.
32755         (PRINTF_NEXPR): Likewise.
32756         (TEST_LDOUBLE): Likewise.
32757         (TEST_MATHVEC): Likewise.
32758         (__NO_MATH_INLINES): Likewise.
32759         * math/test-double-vlen2.h: Include test-double.h,
32760         test-math-no-inline.h and test-math-vector.h.
32761         (FLOAT): Remove macro.
32762         (FUNC): Likewise.
32763         (MATHCONST): Likewise.
32764         (PRINTF_EXPR): Likewise.
32765         (PRINTF_XEXPR): Likewise.
32766         (PRINTF_NEXPR): Likewise.
32767         (TEST_DOUBLE): Likewise.
32768         (TEST_MATHVEC): Likewise.
32769         (__NO_MATH_INLINES): Likewise.
32770         (CNCT): Likewise.
32771         (CONCAT): Likewise.
32772         (WRAPPER_NAME): Likewise.
32773         (WRAPPER_DECL): Likewise.
32774         (WRAPPER_DECL_ff): Likewise.
32775         (WRAPPER_DECL_fFF): Likewise.
32776         (VECTOR_WRAPPER): Likewise.
32777         (VECTOR_WRAPPER_ff): Likewise.
32778         (VECTOR_WRAPPER_fFF): Likewise.
32779         (VEC_LEN): New macro.
32780         * math/test-double-vlen4.h: Include test-double.h,
32781         test-math-no-inline.h and test-math-vector.h.
32782         (FLOAT): Remove macro.
32783         (FUNC): Likewise.
32784         (MATHCONST): Likewise.
32785         (PRINTF_EXPR): Likewise.
32786         (PRINTF_XEXPR): Likewise.
32787         (PRINTF_NEXPR): Likewise.
32788         (TEST_DOUBLE): Likewise.
32789         (TEST_MATHVEC): Likewise.
32790         (__NO_MATH_INLINES): Likewise.
32791         (CNCT): Likewise.
32792         (CONCAT): Likewise.
32793         (WRAPPER_NAME): Likewise.
32794         (WRAPPER_DECL): Likewise.
32795         (WRAPPER_DECL_ff): Likewise.
32796         (WRAPPER_DECL_fFF): Likewise.
32797         (VECTOR_WRAPPER): Likewise.
32798         (VECTOR_WRAPPER_ff): Likewise.
32799         (VECTOR_WRAPPER_fFF): Likewise.
32800         (VEC_LEN): New macro.
32801         * math/test-double-vlen8.h: Include test-double.h,
32802         test-math-no-inline.h and test-math-vector.h.
32803         (FLOAT): Remove macro.
32804         (FUNC): Likewise.
32805         (MATHCONST): Likewise.
32806         (PRINTF_EXPR): Likewise.
32807         (PRINTF_XEXPR): Likewise.
32808         (PRINTF_NEXPR): Likewise.
32809         (TEST_DOUBLE): Likewise.
32810         (TEST_MATHVEC): Likewise.
32811         (__NO_MATH_INLINES): Likewise.
32812         (CNCT): Likewise.
32813         (CONCAT): Likewise.
32814         (WRAPPER_NAME): Likewise.
32815         (WRAPPER_DECL): Likewise.
32816         (WRAPPER_DECL_ff): Likewise.
32817         (WRAPPER_DECL_fFF): Likewise.
32818         (VECTOR_WRAPPER): Likewise.
32819         (VECTOR_WRAPPER_ff): Likewise.
32820         (VECTOR_WRAPPER_fFF): Likewise.
32821         (VEC_LEN): New macro.
32822         * math/test-float-vlen4.h: Include test-float.h,
32823         test-math-no-inline.h and test-math-vector.h.
32824         (FLOAT): Remove macro.
32825         (FUNC): Likewise.
32826         (MATHCONST): Likewise.
32827         (PRINTF_EXPR): Likewise.
32828         (PRINTF_XEXPR): Likewise.
32829         (PRINTF_NEXPR): Likewise.
32830         (TEST_FLOAT): Likewise.
32831         (TEST_MATHVEC): Likewise.
32832         (__NO_MATH_INLINES): Likewise.
32833         (CNCT): Likewise.
32834         (CONCAT): Likewise.
32835         (WRAPPER_NAME): Likewise.
32836         (WRAPPER_DECL): Likewise.
32837         (WRAPPER_DECL_ff): Likewise.
32838         (WRAPPER_DECL_fFF): Likewise.
32839         (VECTOR_WRAPPER): Likewise.
32840         (VECTOR_WRAPPER_ff): Likewise.
32841         (VECTOR_WRAPPER_fFF): Likewise.
32842         (VEC_LEN): New macro.
32843         * math/test-float-vlen8.h: Include test-float.h,
32844         test-math-no-inline.h and test-math-vector.h.
32845         (FLOAT): Remove macro.
32846         (FUNC): Likewise.
32847         (MATHCONST): Likewise.
32848         (PRINTF_EXPR): Likewise.
32849         (PRINTF_XEXPR): Likewise.
32850         (PRINTF_NEXPR): Likewise.
32851         (TEST_FLOAT): Likewise.
32852         (TEST_MATHVEC): Likewise.
32853         (__NO_MATH_INLINES): Likewise.
32854         (CNCT): Likewise.
32855         (CONCAT): Likewise.
32856         (WRAPPER_NAME): Likewise.
32857         (WRAPPER_DECL): Likewise.
32858         (WRAPPER_DECL_ff): Likewise.
32859         (WRAPPER_DECL_fFF): Likewise.
32860         (VECTOR_WRAPPER): Likewise.
32861         (VECTOR_WRAPPER_ff): Likewise.
32862         (VECTOR_WRAPPER_fFF): Likewise.
32863         (VEC_LEN): New macro.
32864         * math/test-float-vlen16.h: Include test-float.h,
32865         test-math-no-inline.h and test-math-vector.h.
32866         (FLOAT): Remove macro.
32867         (FUNC): Likewise.
32868         (MATHCONST): Likewise.
32869         (PRINTF_EXPR): Likewise.
32870         (PRINTF_XEXPR): Likewise.
32871         (PRINTF_NEXPR): Likewise.
32872         (TEST_FLOAT): Likewise.
32873         (TEST_MATHVEC): Likewise.
32874         (__NO_MATH_INLINES): Likewise.
32875         (CNCT): Likewise.
32876         (CONCAT): Likewise.
32877         (WRAPPER_NAME): Likewise.
32878         (WRAPPER_DECL): Likewise.
32879         (WRAPPER_DECL_ff): Likewise.
32880         (WRAPPER_DECL_fFF): Likewise.
32881         (VECTOR_WRAPPER): Likewise.
32882         (VECTOR_WRAPPER_ff): Likewise.
32883         (VECTOR_WRAPPER_fFF): Likewise.
32884         (VEC_LEN): New macro.
32885         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
32886         test-vec-loop.h.
32887         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
32888         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
32889         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
32890         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
32891         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
32892         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
32893         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
32894
32895 2015-06-24  Roland McGrath  <roland@hack.frob.com>
32896
32897         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
32898         (__getlogin_r): ... this.
32899
32900 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
32901
32902         [BZ #18594]
32903         * math/s_ccosh.c (__ccosh): Compare with least normal value
32904         instead of comparing class with FP_SUBNORMAL.
32905         * math/s_ccoshf.c (__ccoshf): Likewise.
32906         * math/s_ccoshl.c (__ccoshl): Likewise.
32907         * math/s_cexp.c (__cexp): Likewise.
32908         * math/s_cexpf.c (__cexpf): Likewise.
32909         * math/s_cexpl.c (__cexpl): Likewise.
32910         * math/s_csin.c (__csin): Likewise.
32911         * math/s_csinf.c (__csinf): Likewise.
32912         * math/s_csinh.c (__csinh): Likewise.
32913         * math/s_csinhf.c (__csinhf): Likewise.
32914         * math/s_csinhl.c (__csinhl): Likewise.
32915         * math/s_csinl.c (__csinl): Likewise.
32916         * math/s_ctan.c (__ctan): Likewise.
32917         * math/s_ctanf.c (__ctanf): Likewise.
32918         * math/s_ctanh.c (__ctanh): Likewise.
32919         * math/s_ctanhf.c (__ctanhf): Likewise.
32920         * math/s_ctanhl.c (__ctanhl): Likewise.
32921         * math/s_ctanl.c (__ctanl): Likewise.
32922         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
32923         csin, csinh, ctan and ctanh.
32924         * math/auto-libm-test-out: Regenerated.
32925         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
32926         * sysdeps/i386/fpu/libm-test-ulps: Update.
32927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32928
32929 2015-06-24  Roland McGrath  <roland@hack.frob.com>
32930
32931         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
32932         return value is wrong, print the expected value too.
32933
32934 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
32935
32936         [BZ #18585]
32937         * elf/readlib.c (is_gdb_python_file): New.
32938         (process_file): Don't issue errors on filenames with -gdb.py
32939         suffix.
32940
32941 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
32942
32943         * math/auto-libm-test-in: Add more tests of csin and csinh.
32944         * math/auto-libm-test-out: Regenerated.
32945         * math/libm-test.inc (csin_test_data): Remove tests moved to
32946         auto-libm-test-in.
32947         (csinh_test_data): Likewise.
32948
32949         [BZ #18593]
32950         * math/s_csin.c (__csin): Negate before rather than after possibly
32951         overflowing multiplication.
32952         * math/s_csinf.c (__csinf): Likewise.
32953         * math/s_csinh.c (__csinh): Likewise.
32954         * math/s_csinhf.c (__csinhf): Likewise.
32955         * math/s_csinhl.c (__csinhl): Likewise.
32956         * math/s_csinl.c (__csinl): Likewise.
32957         * math/auto-libm-test-in: Add some tests of csin and csinh.
32958         * math/auto-libm-test-out: Regenerated.
32959         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
32960         (csinh_test_data): Likewise.
32961         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32962
32963         [BZ #18586]
32964         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
32965         underflow exception for small results.
32966
32967 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
32968
32969         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
32970         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
32971         variable and included header.
32972         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
32973         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
32974         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
32975         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
32976         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
32977         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
32978         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
32979         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
32980         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
32981         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
32982         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
32983         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
32984         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
32985         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
32986         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
32987         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
32988
32989 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
32990
32991         [BZ #16526]
32992         [BZ #16538]
32993         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
32994         (__sin): Force underflow exception for arguments with small
32995         absolute value.
32996         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
32997         (__kernel_sinf): Force underflow exception for arguments with
32998         small absolute value.
32999         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
33000         (__kernel_sincosl): Force underflow exception for arguments with
33001         small absolute value.
33002         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
33003         (__kernel_sinl): Force underflow exception for arguments with
33004         small absolute value.
33005         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
33006         (__kernel_sincosl): Force underflow exception for arguments with
33007         small absolute value.
33008         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
33009         (__kernel_sinl): Force underflow exception for arguments with
33010         small absolute value.
33011         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
33012         (__kernel_sinl): Force underflow exception for arguments with
33013         small absolute value.
33014         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
33015         (__kernel_sinf): Force underflow exception for arguments with
33016         small absolute value.
33017         * math/auto-libm-test-in: Add more tests of sin and sincos.
33018         * math/auto-libm-test-out: Regenerated.
33019
33020         [BZ #18245]
33021         [BZ #18583]
33022         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
33023         (__kernel_standard_l): Use feholdexcept and fesetenv around
33024         conversion to double instead of special-casing overflow and
33025         underflow.
33026         * math/libm-test.inc (fmod_test_data): Add more tests.
33027         (remainder_test_data): Likewise.
33028         (sqrt_test_data): Likewise.
33029
33030 2015-06-23  Torvald Riegel  <triegel@redhat.com>
33031
33032         [BZ #17403]
33033         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
33034         atomic_read_barrier, atomic_write_barrier): Define.
33035         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
33036         atomic_read_barrier, atomic_write_barrier): Define.
33037
33038 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
33039
33040         * math/Makefile [$(PERL) != no]
33041         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
33042         dependency on libm-test.stmp below the inclusion of Rules.
33043
33044 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
33045
33046         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
33047         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
33048         and included header.
33049         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
33050         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
33051         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
33052         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
33053         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
33054         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
33055         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
33056         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
33057         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
33058         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
33059         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
33060         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
33061         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
33062         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
33063         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
33064         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
33065         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
33066         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
33067         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
33068
33069 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
33070
33071         [BZ #18371]
33072         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
33073         intermediate but not final result might underflow.
33074         * math/s_csqrtf.c (__csqrtf): Likewise.
33075         * math/s_csqrtl.c (__csqrtl): Likewise.
33076         * math/auto-libm-test-in: Add more tests of csqrt.
33077         * math/auto-libm-test-out: Regenerated.
33078         * sysdeps/i386/fpu/libm-test-ulps: Update.
33079
33080         [BZ #18219]
33081         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
33082         threshold on absolute value of exponent for which scaling is used.
33083         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
33084         * math/auto-libm-test-in: Add more tests of exp2.
33085         * math/auto-libm-test-out: Regenerated.
33086
33087 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
33088
33089         [BZ #17977]
33090         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
33091         when initializing interface list, based on the bug analysis
33092         and the patch proposed by Eric Newton.
33093         * resolv/tst-res_hconf_reorder.c: New test.
33094         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
33095         tst-res_hconf_reorder.
33096         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
33097         and $(shared-thread-library).
33098         (tst-res_hconf_reorder-ENV): New variable.
33099
33100         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
33101         in comment.
33102
33103 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
33104
33105         [BZ #16353]
33106         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
33107         (__expm1): Force underflow exception for arguments with small
33108         absolute value.
33109         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
33110         (__expm1f): Force underflow exception for arguments with small
33111         absolute value.
33112         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
33113         (__expm1): Force underflow exception for arguments with small
33114         absolute value.
33115         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
33116         (__expm1f): Force underflow exception for arguments with small
33117         absolute value.
33118         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
33119         Check for small arguments before calling __expm1.
33120         * math/auto-libm-test-in: Do not mark underflow exceptions as
33121         possibly missing for bug 16353.
33122         * math/auto-libm-test-out: Regenerated.
33123
33124 2015-06-22  Andreas Schwab  <schwab@suse.de>
33125
33126         [BZ #18513]
33127         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
33128         PTR queries.
33129
33130 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
33131
33132         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
33133
33134         * string/strcoll_l.c: Remove unused struct element idxnow.
33135
33136 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
33137
33138         [BZ #18569]
33139         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
33140         underflow and return argument in case of subnormal argument.
33141         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
33142         Likewise.
33143         * math/auto-libm-test-in: Add more tests of expm1.
33144         * math/auto-libm-test-out: Regenerated.
33145
33146         [BZ #16361]
33147         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
33148         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
33149         tiny results.
33150         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
33151         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
33152         tiny results.
33153         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
33154         mark underflow exceptions as possibly missing for bug 16361.
33155         * math/auto-libm-test-out: Regenerated.
33156
33157 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
33158
33159         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
33160         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
33161         Remove variable.
33162         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
33163         (test-xfail-XOPEN2K8/utmpx.h/conform).
33164
33165         * conform/conformtest.pl ($xerrors): New variable.
33166         (note_error): New function.
33167         (compiletest): New argument $xfail.  Use not_error.
33168         (runtest): Likewise.
33169         (top level): Handle xfail- lines.  Update calls to compiletest and
33170         runtest.  Handle xfail- and optional- in headers listed with
33171         allow-header.
33172         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
33173         (O_EXEC): Likewise.
33174         (O_SEARCH): Likewise.
33175         * conform/data/stropts.h-data (ioctl): Likewise.
33176         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
33177         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
33178         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
33179         (msghdr.msg_controllen): Likewise.
33180         (cmsghdr.cmsg_len): Likewise.
33181         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
33182         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
33183         variable.
33184         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
33185         (test-xfail-XPG4/stropts.h/conform): Likewise.
33186         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
33187         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
33188         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
33189         (test-xfail-UNIX98/stropts.h/conform): Likewise.
33190         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
33191         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
33192         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
33193         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
33194         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
33195         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
33196         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
33197         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
33198         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
33199         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
33200         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
33201         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
33202         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
33203         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
33204         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
33205
33206 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
33207
33208         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
33209         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
33210         definitions for proper unfolding of __MATHDECL_VEC.
33211
33212 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
33213
33214         * benchtests/bench-strcoll.c:
33215         Include string.h.
33216         (main): Remove unused variable res.
33217
33218 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
33219
33220         * timezone/Makefile (%/UTC %/Universal):
33221         Generate test-result files for UTC and Universal.
33222
33223 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
33224
33225         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
33226
33227 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
33228
33229         [BZ #16350]
33230         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
33231         for arguments with small absolute value.
33232         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
33233         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
33234         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
33235         (__asinh): Force underflow exception for arguments with small
33236         absolute value.
33237         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
33238         (__asinhf): Force underflow exception for arguments with small
33239         absolute value.
33240         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
33241         (__asinhl): Force underflow exception for arguments with small
33242         absolute value.
33243         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
33244         (__asinhl): Force underflow exception for arguments with small
33245         absolute value.
33246         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
33247         (__asinhl): Force underflow exception for arguments with small
33248         absolute value.
33249         * math/auto-libm-test-in: Do not mark underflow exceptions as
33250         possibly missing for bug 16350.
33251         * math/auto-libm-test-out: Regenerated.
33252
33253         * include/bits/ipc.h: Remove file.
33254         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
33255         variable.
33256         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
33257         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
33258         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
33259         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
33260         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
33261         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
33262         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
33263         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
33264         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
33265
33266         * math/auto-libm-test-in: Remove spurious underflow allowance for
33267         tests of cexp.
33268         * math/auto-libm-test-out: Regenerated.
33269
33270         [BZ #18558]
33271         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
33272         unconditional definition.
33273         (MCAST_BLOCK_SOURCE): Likewise.
33274         (MCAST_UNBLOCK_SOURCE): Likewise.
33275         (MCAST_LEAVE_GROUP): Likewise.
33276         (MCAST_JOIN_SOURCE_GROUP): Likewise.
33277         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
33278         (MCAST_MSFILTER): Likewise.
33279         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
33280         Remove variable.
33281         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
33282         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
33283         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
33284         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
33285         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
33286
33287 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
33288
33289         * NEWS: Mention addition of x86_64 vector sincosf.
33290         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
33291         * math/test-float-vlen4.h: Likewise.
33292         * math/test-float-vlen8.h: Likewise.
33293         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
33294         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
33295         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33296         * sysdeps/x86_64/fpu/Versions: New versions added.
33297         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33298         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
33299         Added build of SSE, AVX2 and AVX512 IFUNC versions.
33300         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
33301         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
33302         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
33303         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
33304         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
33305         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
33306         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
33307         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
33308         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
33309         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
33310         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
33311         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
33312         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
33313         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
33314         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
33315         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
33316         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
33317         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
33318         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
33319         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
33320         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
33321
33322         * NEWS: Mention addition of x86_64 vector sincos.
33323         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
33324         * math/math.h (__MATHDECL_VEC): New macro.
33325         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
33326         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
33327         declaration under condition.
33328         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
33329         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
33330         TEST_VEC_LOOP change.
33331         * math/test-double-vlen4.h: Likewise.
33332         * math/test-double-vlen8.h: Likewise.
33333         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
33334         * math/test-float-vlen4.h: Likewise.
33335         * math/test-float-vlen8.h: Likewise.
33336         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
33337         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
33338         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33339         * sysdeps/x86_64/fpu/Versions: New versions added.
33340         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33341         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
33342         Added build of SSE, AVX2 and AVX512 IFUNC versions.
33343         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
33344         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
33345         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
33346         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
33347         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
33348         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
33349         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
33350         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
33351         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
33352         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
33353         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
33354         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
33355         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
33356         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
33357         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
33358         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
33359         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
33360         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
33361         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
33362         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
33363         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
33364
33365         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
33366         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
33367         redirections for powf.
33368         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33369         * sysdeps/x86_64/fpu/Versions: New versions added.
33370         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33371         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
33372         Added build of SSE, AVX2 and AVX512 IFUNC versions.
33373         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
33374         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
33375         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
33376         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
33377         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
33378         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
33379         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
33380         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
33381         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
33382         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
33383         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
33384         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
33385         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
33386         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
33387         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
33388         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
33389         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
33390         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
33391         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
33392         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
33393         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
33394         * math/test-float-vlen16.h: Fixed 2 argument macro.
33395         * math/test-float-vlen4.h: Likewise.
33396         * math/test-float-vlen8.h: Likewise.
33397         * NEWS: Mention addition of x86_64 vector powf.
33398
33399 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
33400
33401         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
33402         and redefine.
33403         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
33404         and redefine.
33405         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
33406         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
33407         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
33408
33409         [BZ #18553]
33410         * resource/getpriority.c (getpriority): Rename to __getpriority
33411         and define as weak alias of __getpriority.
33412         * resource/setpriority.c (setpriority): Rename to __setpriority
33413         and define as weak alias of __setpriority.
33414         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
33415         __getpriority and define as weak alias of __getpriority.
33416         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
33417         __setpriority and define as weak alias of __setpriority.
33418         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
33419         strong name.
33420         (setpriority): Use __setpriority as strong name.
33421         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
33422         __getpriority and define as weak alias of __getpriority.
33423         * include/sys/resource.h (__getpriority): Declare.  Use
33424         libc_hidden_proto.
33425         (__setpriority): Likewise.
33426         (getpriority): Don't use libc_hidden_proto.
33427         (setpriority): Likewise.
33428         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
33429         getpriority.  Call __setpriority instead of setpriority.
33430         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
33431         Remove variable.
33432
33433         [BZ #18547]
33434         * misc/getttyent.c (getttynam): Rename to __getttynam and define
33435         as weak alias of __getttynam.  Use prototype function definition.
33436         Call __setttyent, __getttyent and __endttyent instead of
33437         setttyent, getttyent and endttyent.
33438         (getttyent): Rename to __getttyent and define as weak alias of
33439         __getttyent.  Call __setttyent instead of setttyent.  Call
33440         __fgets_unlocked instead of fgets_unlocked.
33441         (setttyent): Rename to __setttyent and define as weak alias of
33442         __setttyent.
33443         (endttyent): Rename to __endttyent and define as weak alias of
33444         __endttyent.
33445         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
33446         (__setttyent): Likewise.
33447         (__endttyent): Likewise.
33448         (getttyent): Don't use libc_hidden_proto.
33449         (setttyent): Likewise.
33450         (endttyent): Likewise.
33451         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
33452         __endttyent instead of setttyent, getttyent and endttyent.
33453         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
33454         Remove variable.
33455
33456         [BZ #18546]
33457         * socket/recv.c (__recv): Use libc_hidden_def.
33458         * socket/socket.c (__socket): Likewise.
33459         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
33460         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
33461         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
33462         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
33463         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
33464         libc_hidden_def.
33465         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
33466         libc_hidden_weak.
33467         * include/sys/socket.h (__socket): Do not use attribute_hidden.
33468         Use libc_hidden_proto.
33469         (__recv): Likewise.
33470         * socket/Versions (libc): Export __recv and __socket at version
33471         GLIBC_PRIVATE.
33472         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
33473         instead of recv.
33474         (init_mq_netlink): Call __socket instead of socket.
33475         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
33476         Remove variable.
33477
33478         [BZ #18545]
33479         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
33480         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
33481         hidden_weak.
33482         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
33483         define as alias of __mq_timedsend.  Use hidden_weak.
33484         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
33485         __mq_timedsend as strong name.
33486         (mq_timedreceive): Use __mq_timedreceive as strong name.
33487         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
33488         (__mq_timedreceive): Likewise.
33489         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
33490         __mq_timedreceive instead of mq_timedreceive.
33491         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
33492         instead of mq_timedsend.
33493         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
33494         Remove variable.
33495
33496         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
33497         hidden_def and hidden_weak instead of libc_hidden_def and
33498         libc_hidden_weak.
33499         (top level): Refer to hidden_def in comment.
33500         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
33501         macro.  Use it instead of libc_hidden_def.
33502         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
33503         specify __GI_* name explicitly.
33504         (mq_timedreceive): Likewise.
33505         (mq_setattr): Likewise.
33506
33507         [BZ #18544]
33508         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
33509         __pthread_barrier_init and define as weak alias of
33510         __pthread_barrier_init.
33511         * sysdeps/sparc/nptl/pthread_barrier_init.c
33512         (pthread_barrier_init): Likewise.
33513         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
33514         __pthread_barrier_wait and define as weak alias of
33515         __pthread_barrier_wait.
33516         * sysdeps/sparc/nptl/pthread_barrier_wait.c
33517         (pthread_barrier_wait): Likewise.
33518         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
33519         (pthread_barrier_wait): Likewise.
33520         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
33521         (pthread_barrier_wait): Likewise.
33522         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
33523         (pthread_barrier_wait): Likewise.
33524         * nptl/Versions (libpthread): Export __pthread_barrier_init and
33525         __pthread_barrier_wait at version GLIBC_PRIVATE.
33526         * include/pthread.h (__pthread_barrier_init): Declare.
33527         (__pthread_barrier_wait): Likewise.
33528         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
33529         Call __pthread_barrier_wait instead of pthread_barrier_wait.
33530         (helper_thread): Likewise.
33531         (init_mq_netlink): Call __pthread_barrier_init instead of
33532         pthread_barrier_init.
33533
33534         [BZ #18542]
33535         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
33536         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
33537         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
33538         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
33539         vswscanf.
33540         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
33541         Remove variable.
33542
33543         [BZ #18540]
33544         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
33545         strong alias of _IO_fflush.  Use libc_hidden_def.
33546         * libio/iofflush_u.c (fflush_unlocked): Rename to
33547         __fflush_unlocked and define as weak alias of __fflush_unlocked.
33548         Use libc_hidden_weak.
33549         * include/stdio.h (__fflush_unlocked): Declare.  Use
33550         libc_hidden_proto.
33551         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
33552         fflush_unlocked.
33553         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
33554         Remove variable.
33555
33556         [BZ #18539]
33557         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
33558         define as weak alias of __addseverity.
33559         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
33560         Remove variable.
33561         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
33562         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
33563         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
33564
33565         [BZ #18536]
33566         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
33567         (__tfind): Likewise.
33568         (__tdelete): Likewise.
33569         (__twalk): Likewise.
33570         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
33571         __twalk to GLIBC_PRIVATE.
33572         * include/search.h (__tsearch): Use libc_hidden_proto.
33573         (__tfind): Likewise.
33574         (__tdelete): Likewise.
33575         (__twalk): Likewise.
33576         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
33577         Call __tdelete instead of tdelete.
33578         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
33579         tfind.  Call __tsearch instead of tsearch.
33580         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
33581         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
33582         Remove variable.
33583         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
33584
33585         [BZ #18534]
33586         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
33587         (dprintf): Define as a weak alias of __dprintf, not a strong
33588         alias.
33589         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
33590         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
33591         dprintf.
33592         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
33593         Remove variable.
33594         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
33595         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
33596
33597         [BZ #18533]
33598         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
33599         not a strong alias.
33600         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
33601         Remove variable.
33602
33603         [BZ #18532]
33604         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
33605         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
33606         (in6addr_loopback): Rename to __in6addr_loopback and define as
33607         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
33608         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
33609         libc_hidden_proto.
33610         (__in6addr_any): Likewise.
33611         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
33612         in6addr_any.
33613         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
33614         variable.
33615         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
33616
33617 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
33618
33619         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
33620         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
33621         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
33622         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
33623         redirections for pow.
33624         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33625         * sysdeps/x86_64/fpu/Versions: New versions added.
33626         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33627         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
33628         build of SSE, AVX2 and AVX512 IFUNC versions.
33629         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
33630         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
33631         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
33632         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
33633         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
33634         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
33635         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
33636         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
33637         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
33638         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
33639         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
33640         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
33641         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
33642         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
33643         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
33644         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
33645         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
33646         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
33647         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
33648         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
33649         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
33650         * NEWS: Mention addition of x86_64 vector pow.
33651
33652         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
33653         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
33654         redirections for expf.
33655         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33656         * sysdeps/x86_64/fpu/Versions: New versions added.
33657         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33658         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
33659         build of SSE, AVX2 and AVX512 IFUNC versions.
33660         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
33661         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
33662         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
33663         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
33664         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
33665         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
33666         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
33667         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
33668         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
33669         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
33670         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
33671         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
33672         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
33673         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
33674         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
33675         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
33676         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
33677         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
33678         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
33679         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
33680         * NEWS: Mention addition of x86_64 vector expf.
33681
33682         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
33683         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
33684         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
33685         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
33686         redirections for exp.
33687         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33688         * sysdeps/x86_64/fpu/Versions: New versions added.
33689         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33690         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
33691         build of SSE, AVX2 and AVX512 IFUNC versions.
33692         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
33693         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
33694         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
33695         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
33696         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
33697         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
33698         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
33699         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
33700         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
33701         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
33702         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
33703         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
33704         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
33705         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
33706         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
33707         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
33708         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
33709         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
33710         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
33711         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
33712         * NEWS: Mention addition of x86_64 vector exp.
33713
33714         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
33715         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
33716         redirections for logf.
33717         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33718         * sysdeps/x86_64/fpu/Versions: New versions added.
33719         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33720         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
33721         build of SSE, AVX2 and AVX512 IFUNC versions.
33722         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
33723         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
33724         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
33725         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
33726         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
33727         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
33728         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
33729         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
33730         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
33731         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
33732         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
33733         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
33734         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
33735         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
33736         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
33737         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
33738         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
33739         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
33740         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
33741         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
33742         * NEWS: Mention addition of x86_64 vector logf.
33743
33744         * bits/libm-simd-decl-stubs.h: Added stubs for log.
33745         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
33746         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
33747         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
33748         redirections for log.
33749         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33750         * sysdeps/x86_64/fpu/Versions: New versions added.
33751         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33752         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
33753         build of SSE, AVX2 and AVX512 IFUNC versions.
33754         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
33755         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
33756         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
33757         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
33758         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
33759         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
33760         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
33761         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
33762         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
33763         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
33764         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
33765         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
33766         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
33767         test.
33768         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
33769         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
33770         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
33771         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
33772         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
33773         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
33774         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
33775         * NEWS: Mention addition of x86_64 vector log.
33776
33777 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33778
33779         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
33780         cfi_adjust_cfa_offset argument.
33781         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
33782         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
33783
33784         [BZ #18034]
33785         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
33786         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
33787         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
33788         ordering using ldar.
33789         (_dl_tlsdesc_dynamic): Likewise.
33790         (_dl_tlsdesc_return_lazy): Likewise.
33791         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
33792         relaxed atomics instead of volatile and synchronize with release store.
33793         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
33794         volatile.
33795         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
33796
33797 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
33798
33799         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
33800         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
33801         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33802         * sysdeps/x86_64/fpu/Versions: New versions added.
33803         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33804         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
33805         build of SSE, AVX2 and AVX512 IFUNC versions.
33806         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
33807         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
33808         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
33809         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
33810         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
33811         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
33812         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
33813         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
33814         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
33815         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
33816         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
33817         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
33818         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
33819         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
33820         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
33821         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
33822         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
33823         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
33824         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
33825         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
33826         * NEWS: Mention addition of x86_64 vector sinf.
33827
33828 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
33829
33830         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
33831         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
33832         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
33833         Remove variable.
33834         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
33835         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
33836
33837 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
33838
33839         [BZ #18530]
33840         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
33841         strong alias of _IO_fputs.  Use libc_hidden_def.
33842         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
33843         and define as weak alias of __fputs_unlocked.  Use
33844         libc_hidden_weak.
33845         * include/stdio.h (__fputs_unlocked): Declare.  Use
33846         libc_hidden_proto.
33847         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
33848         fputs_unlocked.
33849
33850         [BZ #18529]
33851         * resolv/netdb.h [__USE_POSIX]: Change condition to
33852         [__USE_XOPEN2K].
33853         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
33854         not expect.
33855         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
33856         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
33857         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
33858         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
33859         [XPG4 || UNIX98] (AI_ALL): Likewise.
33860         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
33861         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
33862         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
33863         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
33864         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
33865         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
33866         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
33867         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
33868         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
33869         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
33870         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
33871         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
33872         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
33873         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
33874         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
33875         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
33876         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
33877         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
33878         [XPG4 || UNIX98] (gai_strerror): Likewise.
33879         [XPG4 || UNIX98] (getaddrinfo): Likewise.
33880         [XPG4 || UNIX98] (getnameinfo): Likewise.
33881
33882         [BZ #18528]
33883         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
33884         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
33885         __USE_XOPEN2K8].
33886         (getgrent): Likewise.
33887         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
33888         expect.
33889         [XPG3 || POSIX2008] (endgrent): Likewise.
33890         [XPG3] (setgrent): Likewise.
33891         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
33892         variable.
33893         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
33894
33895         [BZ #18527]
33896         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
33897         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
33898         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
33899         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
33900         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
33901         * include/unistd.h (__getlogin_r): Declare.  Use
33902         libc_hidden_proto.
33903         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
33904         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
33905         variable.
33906         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
33907         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
33908         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
33909
33910 2015-06-12  Martin Sebor  <msebor@redhat.com>
33911
33912         [BZ #18512]
33913         * Makerules (check-install-supported): New target.
33914         (install): Add check-install-supported as a dependency.
33915         * manual/install.texi (Installing the C Library): Document
33916         that overriding prefix and exec_prefix is not supported.
33917         Mention DESTDIR.
33918         * INSTALL: Regenerate from the above.
33919
33920 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
33921
33922         [BZ #18519]
33923         * posix/Versions (libc): Export __libc_pread at version
33924         GLIBC_PRIVATE.
33925         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
33926         instead of pread.
33927         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
33928         variable.
33929
33930         [BZ #18522]
33931         * misc/efgcvt_r.c
33932         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
33933         (cvt_symbol): Use weak_alias instead of strong_alias.
33934         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
33935         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
33936         Remove variable.
33937         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
33938         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
33939
33940         [BZ #18520]
33941         * inet/herrno.c (h_errno): Rename to __h_errno.
33942         (__libc_h_errno): Define as alias of __h_errno not h_errno.
33943         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
33944         to __h_errno instead of h_errno.
33945         * nptl/herrno.c (h_errno): Rename to __h_errno.
33946         (__h_errno_location): Refer to __h_errno not h_errno.
33947         * resolv/Versions (h_errno): Rename to __h_errno.
33948         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
33949         Remove variable.
33950         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
33951
33952 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
33953
33954         * configure.ac: More strict check for AVX512 assembler support.
33955         * configure: Regenerated.
33956
33957         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
33958         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
33959         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
33960         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
33961         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
33962         * sysdeps/x86_64/fpu/Versions: New versions added.
33963         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33964         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
33965         Added build of SSE, AVX2 and AVX512 IFUNC versions.
33966         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
33967         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
33968         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
33969         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
33970         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
33971         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
33972         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
33973         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
33974         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
33975         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
33976         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
33977         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
33978         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
33979         test.
33980         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
33981         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
33982         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
33983         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
33984         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
33985         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
33986         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
33987         * NEWS: Mention addition of x86_64 vector sin.
33988
33989 2015-06-11  Florian Weimer  <fweimer@redhat.com>
33990
33991         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
33992         comment.
33993
33994 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
33995
33996         [BZ #18479]
33997         * nptl/pt-interp.c: New file.
33998         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
33999         Add pt-interp.
34000         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
34001         $(common-objpfx)runtime-linker.h.
34002
34003 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
34004
34005         * Makeconfig (+interp): Remove unused variable.
34006         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
34007         only.  Depend on $(common-objpfx)runtime-linker.h instead of
34008         $(elf-objpfx)runtime-linker.h.
34009         ($(elf-objpfx)runtime-linker.h): Rename to
34010         $(common-objpfx)runtime-linker.h and move ...
34011         * Makerules [$(build-shared) = yes]: ... here.
34012         * elf/interp.c: Include <runtime-linker.h> instead of
34013         <elf/runtime-linker.h>.
34014
34015 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34016
34017         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
34018         (__gettimeofday_syscall): Remove vsyscall fallback.
34019         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
34020         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
34021         Add syscall fallback function.
34022         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
34023         if vDSO is not present.
34024         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
34025         fallback function.
34026         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
34027         present.
34028         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
34029         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34030
34031 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
34032
34033         [BZ #18497]
34034         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
34035         of wcscmp.
34036         (wcscmp): Define as weak alias of WCSCMP.
34037         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
34038         wcscoll.
34039         (USE_HIDDEN_DEF): Define.
34040         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
34041         __wcscoll.  Don't use libc_hidden_weak.
34042         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
34043         wcscmp.
34044         * sysdeps/i386/i686/multiarch/wcscmp-c.c
34045         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
34046         __GI_wcscmp.
34047         (weak_alias): Undefine and redefine.
34048         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
34049         __wcscmp and define as weak alias of __wcscmp.
34050         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
34051         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
34052         (__wcscoll): Likewise.
34053         (wcscmp): Don't use libc_hidden_proto.
34054         (wcscoll): Likewise.
34055         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
34056         wcscoll.
34057         * posix/regexec.c (check_node_accept_bytes): Likewise.
34058         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
34059         variable.
34060         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
34061         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
34062
34063         [BZ #18507]
34064         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
34065         __fstatvfs and define as weak alias of __fstatvfs.  Use
34066         libc_hidden_weak.
34067         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
34068         and define as weak alias of __statvfs.  Use libc_hidden_weak.
34069         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
34070         Define as alias of __fstatvfs, not fstatvfs.
34071         (fstatvfs64): Likewise.
34072         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
34073         Define as alias of __statvfs, not statvfs.
34074         (statvfs64): Likewise.
34075         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
34076         Remove variable.
34077
34078 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34079
34080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
34081         (HAVE_GETCPU_VSYSCALL): Define.
34082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
34083         (HAVE_GETCPU_VSYSCALL): Likewise.
34084         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
34085         * sysdeps/unix/sysv/linux/sched_getcpu.c
34086         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
34087         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
34088         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
34089         prototype.
34090         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34091         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
34092         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
34093         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
34094         Define.
34095         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
34096         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34097         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
34098         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
34099
34100 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
34101
34102         * sysdeps/x86_64/fpu/Makefile: New file.
34103         * sysdeps/x86_64/fpu/Versions: New file.
34104         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
34105         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
34106         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
34107         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
34108         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
34109         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
34110         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
34111         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
34112         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
34113         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
34114         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
34115         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
34116         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
34117         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
34118         Added build of SSE, AVX2 and AVX512 IFUNC versions.
34119         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
34120         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
34121         * sysdeps/x86_64/configure.ac: Options for libmvec build.
34122         * sysdeps/x86_64/configure: Regenerated.
34123         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
34124         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
34125         * manual/install.texi (Configuring and compiling): Document
34126         --disable-mathvec.
34127         * INSTALL: Regenerated.
34128         * NEWS: Mention addition of libmvec and x86_64 vector cos.
34129
34130         * math/Makefile: Added rules for vector tests.
34131         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
34132         declaration under condition.
34133         * math/test-double-vlen2.h: New file.
34134         * math/test-double-vlen4.h: New file.
34135         * math/test-double-vlen8.h: New file.
34136         * math/test-vec-loop.h: Added initialization macro.
34137         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
34138         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
34139         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
34140         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
34141         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
34142         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
34143         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
34144         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
34145         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
34146         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
34147         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
34148
34149         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
34150         * sysdeps/x86_64/fpu/Versions: New versions added.
34151         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
34152         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
34153         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
34154         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
34155         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
34156         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
34157         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
34158         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
34159         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
34160         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
34161         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
34162         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
34163         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
34164         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
34165         Added build of SSE, AVX2 and AVX512 IFUNC versions.
34166         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
34167         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
34168         * NEWS: Mention addition of x86_64 vector cosf.
34169
34170         * math/Makefile: Added CFLAGS for new tests.
34171         * math/test-float-vlen16.h: New file.
34172         * math/test-float-vlen4.h: New file.
34173         * math/test-float-vlen8.h: New file.
34174         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
34175         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
34176         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
34177         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
34178         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
34179         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
34180         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
34181         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
34182         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
34183         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
34184         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
34185
34186 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
34187
34188         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
34189         * locale/programs/ld-ctype.c: Likewise.
34190
34191 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
34192
34193         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
34194         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
34195         bit_ZMM16_31_state): New macro.
34196         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34197         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
34198
34199 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
34200
34201         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
34202
34203 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
34204
34205         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
34206
34207 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
34208
34209         [BZ #18498]
34210         * libio/memstream.c (open_memstream): Rename to __open_memstream
34211         and define as weak alias of __open_memstream.
34212         * include/stdio.h (__open_memstream): Declare.  Use
34213         libc_hidden_proto.
34214         (open_memstream): Don't use libc_hidden_proto.
34215         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
34216         open_memstream.
34217         * posix/getopt.c (_getopt_internal_r): Likewise.
34218         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
34219         variable.
34220         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
34221         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
34222         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
34223
34224         [BZ #18496]
34225         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
34226         instead of wcrtomb.
34227
34228         [BZ #18483]
34229         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
34230         [__USE_XOPEN2K8].  Remove redundant #endif.
34231         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
34232         Remove redundant #if.
34233         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
34234         Remove variable.
34235         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
34236         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
34237
34238         [BZ #18495]
34239         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
34240         (__iswlower): Likewise.
34241         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
34242         (__iswlower): Likewise.
34243         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
34244         instead of towlower.
34245         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
34246         instead of iswlower.  Call __towupper instead of towupper.
34247         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
34248         instead of iswalnum.
34249
34250 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
34251
34252         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
34253         errors to stderr.
34254
34255 2015-06-05  Florian Weimer  <fweimer@redhat.com>
34256
34257         [BZ #15661]
34258         [BZ #17322]
34259         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
34260         Check for overflow properly.  Check for O_APPEND.  Ignore large
34261         file system block sizes.  Add comments about problems.
34262         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
34263         * manual/filesys.texi (Storage Allocation): New node.
34264
34265 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34266
34267         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
34268         cancellable syscalls.
34269         (SYS_ify): Add guard to no redefine it.
34270         (INLINE_SYSCALL): Likewise.
34271         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
34272         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
34273         SYSCALL_CANCEL instead.
34274         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
34275         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
34276         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
34277         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
34278         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
34279         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
34280         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
34281         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
34282         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
34283         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
34284         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
34285         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
34286         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
34287         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
34288         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
34289         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
34290         Likewise.
34291         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
34292         (__libc_pread64): Likewise.
34293         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
34294         (__libc_preadv): Likewise.
34295         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
34296         (__libc_readv64): Likewise.
34297         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
34298         (__libc_pwrite): Likewise.
34299         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
34300         (__libc_pwrite64): Likewise.
34301         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
34302         (__libc_pwritev): Likewise.
34303         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
34304         (__libc_pwritev64): Likewise.
34305         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
34306         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
34307         (sync_file_range): Likewise.
34308         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
34309         Likewise.
34310         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
34311         Likewise.
34312         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
34313         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
34314         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
34315         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
34316         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
34317         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
34318         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
34319         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
34320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
34321         Likewise.
34322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
34323         (__libc_read64): Likewise.
34324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
34325         Likewise.
34326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
34327         Likewise.
34328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
34329         Likewise.
34330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
34331         Likewise.
34332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
34333         (__libc_pread64): Likewise.
34334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
34335         Likewise.
34336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
34337         (__libc_pwrite64): Likewise.
34338         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
34339         (sync_file_range): Likewise.
34340         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
34341         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
34342         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
34343         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
34344         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
34345         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
34346         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
34347         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
34348         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
34349         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
34350         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
34351         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
34352         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
34353         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
34354         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
34355         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
34356         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
34357         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
34358         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
34359         Likewise.
34360         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
34361         Likewise.
34362         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
34363         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
34364         Likewise.
34365         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
34366         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
34367         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
34368         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
34369         Likewise.
34370         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
34371         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
34372         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
34373         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
34374         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
34375
34376 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
34377
34378         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
34379         Include dl-vdso.
34380         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
34381         Use VDSO routines for gettimeofday, clock_gettime if
34382         available.
34383         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
34384         Declare VDSO symbols.
34385         * sysdeps/unix/sysv/linux/arm/sysdep.h:
34386         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
34387         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
34388         * sysdeps/unix/sysv/linux/arm/Versions: Add
34389         __vdso_clock_gettime.
34390
34391 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34392
34393         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
34394         be an inline implementation regardless of library is built within.
34395         (open_not_cancel_2): Likewise.
34396         (__read_nocancel): Likewise.
34397         (__write_nocancel): Likewise.
34398         (openat_not_cancel): Likewise.
34399         (openat_not_cancel_3): Likewise.
34400         (openat64_not_cancel): Likewise.
34401         (openat64_not_cancel_3): Likewise.
34402         (__close_nocancel): Likewise.
34403         (pause_not_cancel): Likewise.
34404         (nanosleep_not_cancel): Likewise.
34405         (sigsuspend_not_cancel): Likewise.
34406
34407 2015-06-04  Torvald Riegel  <triegel@redhat.com>
34408
34409         [BZ #14958]
34410         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
34411         wake-up.
34412         (__pthread_rwlock_rdlock_slow): Likewise.
34413         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
34414         Likewise.
34415         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
34416         Likewise.
34417         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
34418         * nptl/tst-rwlock16.c: New file.
34419         * nptl/Makefile (tests): Add new test.
34420
34421 2015-06-04  Torvald Riegel  <triegel@redhat.com>
34422
34423         [BZ #18324]
34424         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
34425         missing wake-up of readers.
34426         * nptl/tst-rwlock15.c: New file.
34427         * nptl/Makefile (tests): Add new test.
34428
34429 2015-06-03  Roland McGrath  <roland@hack.frob.com>
34430
34431         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
34432         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
34433         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
34434         and __nacl_supply_interface_rtld.
34435         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
34436         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
34437         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
34438         Add __nacl_supply_interface_rtld.
34439         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
34440
34441 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
34442
34443         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
34444         isfinite.
34445         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
34446         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
34447
34448 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
34449
34450         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
34451         __signbit* with standard C99 macros.
34452         * math/e_exp10l.c: Likewise.
34453         * math/e_exp2l.c: Likewise.
34454         * math/e_scalb.c: Likewise.
34455         * math/e_scalbf.c: Likewise.
34456         * math/e_scalbl.c: Likewise.
34457         * math/s_ldexp.c: Likewise.
34458         * math/s_ldexpf.c: Likewise.
34459         * math/s_ldexpl.c: Likewise.
34460         * math/w_atan2.c: Likewise.
34461         * math/w_atan2f.c: Likewise.
34462         * math/w_atan2l.c: Likewise.
34463         * math/w_cosh.c: Likewise.
34464         * math/w_coshf.c: Likewise.
34465         * math/w_coshl.c: Likewise.
34466         * math/w_exp10.c: Likewise.
34467         * math/w_exp10f.c: Likewise.
34468         * math/w_exp10l.c: Likewise.
34469         * math/w_exp2.c: Likewise.
34470         * math/w_exp2f.c: Likewise.
34471         * math/w_exp2l.c: Likewise.
34472         * math/w_fmod.c: Likewise.
34473         * math/w_fmodf.c: Likewise.
34474         * math/w_fmodl.c: Likewise.
34475         * math/w_hypot.c: Likewise.
34476         * math/w_hypotf.c: Likewise.
34477         * math/w_hypotl.c: Likewise.
34478         * math/w_jnl.c: Likewise.
34479         * math/w_lgamma.c: Likewise.
34480         * math/w_lgamma_r.c: Likewise.
34481         * math/w_lgammaf.c: Likewise.
34482         * math/w_lgammaf_r.c: Likewise.
34483         * math/w_lgammal.c: Likewise.
34484         * math/w_lgammal_r.c: Likewise.
34485         * math/w_pow.c: Likewise.
34486         * math/w_powf.c: Likewise.
34487         * math/w_powl.c: Likewise.
34488         * math/w_remainder.c: Likewise.
34489         * math/w_remainderf.c: Likewise.
34490         * math/w_remainderl.c: Likewise.
34491         * math/w_scalb.c: Likewise.
34492         * math/w_scalbf.c: Likewise.
34493         * math/w_scalbl.c: Likewise.
34494         * math/w_scalbln.c: Likewise.
34495         * math/w_scalblnf.c: Likewise.
34496         * math/w_scalblnl.c: Likewise.
34497         * math/w_sinh.c: Likewise.
34498         * math/w_sinhf.c: Likewise.
34499         * math/w_sinhl.c: Likewise.
34500         * math/w_tgamma.c: Likewise.
34501         * math/w_tgammaf.c: Likewise.
34502         * math/w_tgammal.c: Likewise.
34503         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
34504         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
34505         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
34506         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
34507         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
34508         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
34509         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
34510         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
34511         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
34512         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34513         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
34514         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34515         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
34516         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
34517         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
34518         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34519         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
34520         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
34521         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
34522         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
34523         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
34524         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34525         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
34526         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34527         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
34528         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
34529         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
34530         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
34531         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34532         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
34533         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
34534         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
34535         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
34536         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
34537         * stdio-common/printf_fp.c: Likewise.
34538         * stdio-common/printf_fphex.c: Likewise.
34539         * stdio-common/printf_size.c: Likewise.
34540
34541 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
34542
34543         [BZ #18470]
34544         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
34545         strnlen.
34546         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
34547         Remove variable.
34548         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
34549         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
34550         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
34551         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
34552         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
34553         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
34554         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
34555         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
34556         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
34557         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
34558
34559         [BZ #18468]
34560         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
34561         weak alias of __wmemchr.  Use libc_hidden_weak.
34562         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
34563         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
34564         instead of wmemchr.
34565
34566 2015-06-02  Roland McGrath  <roland@hack.frob.com>
34567
34568         [BZ #18383]
34569         * elf/tst-tlsalign-extern.c: New file.
34570         * elf/tst-tlsalign-extern-static.c: New file.
34571         * elf/tst-tlsalign-vars.c: New file.
34572         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
34573         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
34574         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
34575         ($(objpfx)tst-tlsalign-extern-static): Likewise.
34576         (test-xfail-tst-tlsalign-extern-static): New variable.
34577
34578 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
34579
34580         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
34581         Use variable name _sc_err instead of err.
34582         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
34583         instead of ret.
34584         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
34585         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
34586         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
34587         (INLINE_SYSCALL): Likewise.
34588
34589         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
34590         * include/string.h (__strnlen): Use libc_hidden_proto.
34591         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
34592         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
34593         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
34594         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
34595         (libc_hidden_def): Undefine and redefine.
34596         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
34597         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
34598         __GI_strnlen.
34599         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
34600         libc_hidden_def.
34601         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
34602
34603         [BZ #18469]
34604         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
34605         weak alias of __towlower.  Use libc_hidden_weak.
34606         (towupper): Rename to __towupper and define as weak alias of
34607         __towupper.  Use libc_hidden_weak.
34608         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
34609         (__towupper): Likewise.
34610         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
34611         __towlower instead of towlower.
34612
34613 2015-06-02  Roland McGrath  <roland@hack.frob.com>
34614
34615         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
34616         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
34617
34618 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
34619
34620         * sysdeps/aarch64/libm-test-ulps: Update.
34621
34622 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34623
34624         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
34625         Define.
34626         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
34627         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
34628         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
34629         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
34630         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
34631         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
34632         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
34633
34634 2015-06-01  Martin Sebor  <msebor@redhat.com>
34635
34636         [BZ #18116]
34637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
34638         (__setcontext): Use extended four-operand version of mtsf whenever
34639         possible.
34640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
34641         (__novec_swapcontext): Likewise.
34642
34643 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
34644
34645         * benchtests/scripts/compare_bench.py: New file.
34646         * benchtests/scripts/import_bench.py (mean): New function.
34647         (split_list): Likewise.
34648         (do_for_all_timings): Likewise.
34649         (compress_timings): Likewise.
34650
34651         * benchtests/scripts/import_bench.py: New file.
34652         * benchtests/scripts/validate_benchout.py: Import import_bench
34653         instead of jsonschema.
34654         (validate_bench): Remove function.
34655         (main): Use import_bench.
34656
34657 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
34658
34659         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
34660         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
34661
34662 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34663
34664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34665
34666 2015-05-28  Roland McGrath  <roland@hack.frob.com>
34667
34668         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
34669         set THREAD_SELF->tid to a magic value and futex-wake it.
34670         Pass its address to the thread_exit system call.
34671         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
34672         bit is clear.
34673         * sysdeps/nacl/lowlevellock.h: New file.
34674         * sysdeps/nacl/lll_timedwait_tid.c: New file.
34675
34676         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
34677         Add TIMEOUT to current time, don't subtract it.
34678
34679 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
34680
34681         [BZ #2981]
34682         [BZ #18422]
34683         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
34684         ($(objpfx)tst-audit2.out): Also depend on
34685         $(objpfx)tst-auditmod9b.so.
34686         * elf/tst-audit2.c: Include <dlfcn.h>.
34687         (calloc_called): New.
34688         (calloc): Allow to be called more than once.
34689         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
34690
34691 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
34692
34693         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
34694         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
34695
34696 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
34697
34698         * stdlib/monetary.h: Fix comment.
34699
34700 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
34701
34702         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
34703         Avoid using variables in #defines that might cause shadowing.
34704         (INTERNAL_VSYSCALL_CALL): Likewise.
34705
34706 2015-05-26  Roland McGrath  <roland@hack.frob.com>
34707
34708         * sysdeps/nacl/lll_timedlock_wait.c: New file.
34709
34710         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
34711         * nptl/lll_timedlock_wait.c: ... to this new file.
34712         * nptl/Makefile (libpthread-routines): Add it.
34713         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
34714         * nptl/lll_timedwait_tid.c: ... to this new file.
34715         * nptl/Makefile (libpthread-routines): Add it.
34716         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
34717         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
34718         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
34719         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
34720         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
34721         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
34722         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
34723         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
34724         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
34725         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
34726
34727 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34728
34729         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
34730         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
34731         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
34732         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
34733         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
34734         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
34735         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
34736         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
34737         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
34738         * sysdeps/unix/sysv/linux/tile/sysdep.h
34739         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
34740         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
34741         using vDSO syscall macro.
34742
34743 2015-05-26  Andriy Rysin  <arysin@gmail.com>
34744
34745         [BZ #17293]
34746         * uk_UA: Fix sorting order for Ukrainian locale
34747
34748 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
34749
34750         * stdlib/monetary.h: Fix comment.
34751
34752 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
34753
34754         [BZ #18234]
34755         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
34756         st_mtim and st_ctim members.
34757         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
34758         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
34759         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
34760         (struct stat64): Likewise.
34761         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
34762         (struct stat64): Likewise.
34763         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
34764         (struct stat64): Likewise.
34765
34766 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34767
34768         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
34769         Define and include sysdep-vdso.h.
34770         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
34771         Likewise.
34772         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
34773         Likewise.
34774         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
34775         Define with VDSO_SYMBOL and use PTR_MANGLE.
34776         (__vdso_clock_gettime): Likewise.
34777         (__vdso_clock_getres): Likewise.
34778         (_libc_vdso_platform_setup): Likewise.
34779         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
34780         Likewise.
34781         (_libc_vdso_platform_setup): Likewise.
34782         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
34783         Likewise.
34784         (__vdso_clock_gettime): Likewise.
34785         (__vdso_clock_getres): Likewise.
34786         (__vdso_get_tbfreq): Likewise.
34787         (__vdso_getcpu): Likewise.
34788         (__vdso_time): Likewise.
34789         (__vdso_sigtramp_rt64): Likewise.
34790         (__vdso_signtramp32): Likewise.
34791         (__vdso_sigtramp_rt32): Likewise.
34792         (_libc_vdso_platform_setup): Likewise.
34793         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
34794         Likewise.
34795         (__vdso_clock_gettime): Likewise.
34796         (__vdso_clock_getres): Likewise.
34797         (_libc_vdso_platform_setup): Likewise.
34798         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
34799         Likewise.
34800         (__vdso_clock_gettime): Likewise.
34801         (_libc_vdso_platform_setup): Likewise.
34802         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
34803         Likewise.
34804         (__vdso_getcpu): Likewise.
34805         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
34806         Use VDSO_SYMBOL macro to define.
34807         (__vdso_clock_gettime): Likewise.
34808         (__vdso_clock_getres): Likewise.
34809         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
34810         Likewise.
34811         (__vdso_clock_gettime): Likewise.
34812         (__vdso_clock_getres): Likewise.
34813         (__vdso_get_tbfreq): Likewise.
34814         (__vdso_getcpu): Likewise.
34815         (__vdso_time): Likewise.
34816         (__vdso_sigtramp_rt64): Likewise.
34817         (__vdso_signtramp32): Likewise.
34818         (__vdso_sigtramp_rt32): Likewise.
34819         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
34820         Likewise.
34821         (__vdso_clock_gettime): Likewise.
34822         (__vdso_clock_getres): Likewise.
34823         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
34824         Likewise.
34825         (__vdso_clock_gettime): Likewise.
34826         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
34827         Likewise.
34828         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
34829         macro.
34830         (INTERNAL_VSYSCALL): Likewise.
34831         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
34832         Remove macro.
34833         (INTERNAL_VSYSCALL): Likewise.
34834         (INTERNAL_VSYSCALL_NCS): Likewise.
34835         (INTERNAL_VSYSCALL_CALL): New macro.
34836         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
34837         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
34838         Likewise.
34839         (INTERNAL_VSYSCALL): Likewise.
34840         (INTERNAL_VSYSCALL_NCS): Likewise.
34841         (INTERNAL_VSYSCALL_CALL): New macro.
34842         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
34843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
34844         (INLINE_VSYSCALL): Remove macro.
34845         (INTERNAL_VSYSCALL): Remove macro.
34846         (INTERNAL_VSYSCALL_NCS): Remove macro.
34847         (INTERNAL_VSYSCALL_CALL): New macro.
34848         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
34849         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
34850         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
34851         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
34852         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
34853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
34854         (INLINE_VSYSCALL): Remove macro.
34855         (INTERNAL_VSYSCALL): Likewise.
34856         (INTERNAL_VSYSCALL_NCS): Likewise.
34857         (INTERNAL_VSYSCALL_CALL): New macro.
34858         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
34859         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
34860         PTR_DEMANGLE on vDSO pointer.
34861         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
34862         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
34863         macro.
34864         (INTERNAL_SYSCALL): Likewise.
34865         (INTERNAL_VSYSCALL_NCS): Remove macro.
34866         (INTERNAL_VSYSCALL_CALL): New macro.
34867         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
34868         Remove macro.
34869         (INTERNAL_VSYSCALL): Likewise.
34870         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
34871         sysdep-vdso.h instead of libc-vdso.h.
34872         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
34873         definition.
34874         (INLINE_VSYSCALL): Likewise.
34875         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
34876         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
34877         definition.
34878         (INLINE_VSYSCALL): Likewise.
34879         (INTERNAL_VSYSCALL): Likewise.
34880         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
34881         * sysdeps/unix/sysv/linux/timespec_get.c
34882         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
34883         (timespec_get): Use ANSI prototype.
34884         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
34885         and definition for Linux.
34886
34887 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
34888
34889         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
34890         * include/libc-symbols.h: libmvec_hidden_* macro series added.
34891
34892 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
34893
34894         [BZ #2981]
34895         [BZ #18410]
34896         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
34897         for missing DT_PLTRELSZ.
34898
34899 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
34900
34901         Remove obsolete aliases that broke 'locale -a'
34902         [BZ #18412]
34903         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
34904         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
34905         breaking some applications that use 'locale -a' output.
34906         Change the encoding of this file from Latin-1 to ASCII to avoid
34907         other potential problems with people grepping this file.
34908
34909 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34910
34911         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
34912         -fasynchronous-unwind-tables.
34913         (CFLAGS-sendto.c): Likewise.
34914         (CFLAGS-sendmsg.c): Likewise.
34915         (CFLAGS-connect.c): Likewise.
34916         (CFLAGS-recvmsg.c): Likewise.
34917         (CFLAGS-recvfrom.c): Likewise.
34918         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
34919         (SOCKETCALL): New macro: non-cancellable socketcall.
34920         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
34921         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
34922         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
34923         * sysdeps/unix/sysv/linux/accept.c: New file.
34924         * sysdeps/unix/sysv/linux/bind.c: Likewise.
34925         * sysdeps/unix/sysv/linux/connect.c: Likewise.
34926         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
34927         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
34928         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
34929         * sysdeps/unix/sysv/linux/listen.c: Likewise.
34930         * sysdeps/unix/sysv/linux/recv.c: Likewise.
34931         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
34932         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
34933         * sysdeps/unix/sysv/linux/send.c: Likewise.
34934         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
34935         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
34936         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
34937         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
34938         * sysdeps/unix/sysv/linux/socket.c: Likewise.
34939         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
34940         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
34941         prototype.
34942         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
34943         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
34944         instead of __internal_xxx function.
34945         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
34946         prototype.
34947         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
34948         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
34949         instead of __internal_xxx function.
34950         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
34951         prototype.
34952         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
34953         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
34954         instead of __internal_xxx function.
34955         * sysdeps/unix/sysv/linux/accept.S: Remove file.
34956         * sysdeps/unix/sysv/linux/bind.S: Likewise.
34957         * sysdeps/unix/sysv/linux/connect.S: Likewise.
34958         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
34959         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
34960         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
34961         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
34962         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
34963         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
34964         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
34965         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
34966         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
34967         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
34968         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
34969         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
34970         * sysdeps/unix/sysv/linux/listen.S: Likewise.
34971         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
34972         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
34973         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
34974         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
34975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
34976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
34977         * sysdeps/unix/sysv/linux/recv.S: Likewise.
34978         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
34979         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
34980         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
34981         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
34982         * sysdeps/unix/sysv/linux/send.S: Likewise.
34983         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
34984         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
34985         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
34986         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
34987         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
34988         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
34989         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
34990         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
34991         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
34992         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
34993         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
34994         socketcall is implemented in GLIBC.
34995
34996 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
34997
34998         * soft-fp/fmadf4.c: Include <libc-internal.h>.
34999         (__fma): Ignore uninitialized warnings around packing.
35000         * soft-fp/fmasf4.c: Include <libc-internal.h>.
35001         (__fmaf): Ignore uninitialized warnings around packing.
35002         * soft-fp/fmatf4.c: Include <libc-internal.h>.
35003         (__fmal): Ignore uninitialized warnings around packing.
35004
35005         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
35006         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
35007         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
35008         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
35009
35010         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
35011         switch statement into default case.
35012         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
35013
35014         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
35015         a conditional in forcing "inexact".
35016         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
35017         Likewise.
35018
35019 2015-05-22  Roland McGrath  <roland@hack.frob.com>
35020
35021         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
35022         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
35023         for each INTERNAL_SYSCALL use.
35024
35025 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
35026
35027         [BZ #438]
35028         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
35029         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
35030         variable.
35031
35032         [BZ #18444]
35033         * string/basename.c (basename): Rename to __basename and define as
35034         weak alias of __basename.  Use libc_hidden_weak.
35035         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
35036         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
35037         __basename instead of basename.
35038         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
35039         Remove variable.
35040         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
35041
35042 2015-05-18  Florian Weimer  <fweimer@redhat.com>
35043
35044         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
35045         (_IO_JUMPS_FILE_plus): New.
35046         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
35047         _IO_CAST_FIELD_ACCESS.
35048         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
35049         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
35050         * libio/freopen.c (freopen): Likewise.
35051         * libio/freopen64.c (freopen64): Likewise.
35052         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
35053         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
35054         * libio/iofwide.c (_IO_fwide): Likewise.
35055         * libio/memstream.c (open_memstream): Likewise.
35056         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
35057         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
35058         * libio/oldiopopen.c (_IO_old_popen): Likewise.
35059
35060 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
35061
35062         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
35063         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
35064         NADJ.
35065         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
35066         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
35067         NADJ.
35068         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
35069         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
35070         NADJ.
35071
35072         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
35073         (p == 4) case.
35074
35075         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
35076         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
35077         Remove variable.
35078         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
35079         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
35080         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
35081
35082 2015-05-21  Florian Weimer  <fweimer@redhat.com>
35083
35084         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
35085         Adjust jump table label generation macros.
35086
35087 2015-05-21  Florian Weimer  <fweimer@redhat.com>
35088
35089         * stdio-common/vfprintf.c (vfprintf): Move local variables
35090         args_malloced, specs, specs_malloced, and the code after
35091         do_positional to the printf_positional function.
35092         (printf_positional): New function.
35093
35094 2015-05-21  Florian Weimer  <fweimer@redhat.com>
35095
35096         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
35097         function.
35098         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
35099         STEP4_TABLE, process_arg): Move macro definitions
35100         out of the vfprintf function.  (Cosmetic change only.)
35101
35102 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
35103
35104         * benchtests/Makefile (stdio-common-bench): Define.
35105         (benchset): Add stdio-common-bench.
35106         * sprintf-inputs: New file.
35107         * sprintf-source.c: New file.
35108
35109 2015-05-21  Andreas Schwab  <schwab@suse.de>
35110
35111         [BZ #13028]
35112         [BZ #17053]
35113         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
35114         of struct __res_state.
35115         * resolv/res_send.c (__libc_res_nsend): Likewise.
35116         (get_nsaddr): New function.
35117         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
35118         statp directly.
35119
35120 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
35121
35122         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
35123         -D_POSIX_C_SOURCE=199506L.
35124
35125         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
35126
35127         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
35128         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
35129         Do not mention otherwise.
35130         [POSIX] (_XOPEN_VERSION): Do not expect.
35131         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
35132         [POSIX] (_POSIX2_C_BIND): Likewise.
35133         [POSIX] (_POSIX2_VERSION): Likewise.
35134         [POSIX] (_XOPEN_XPG2): Likewise.
35135         [POSIX] (_XOPEN_XPG3): Likewise.
35136         [POSIX] (_XOPEN_XPG4): Likewise.
35137         [POSIX] (_XOPEN_UNIX): Likewise.
35138         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
35139         [POSIX] (_POSIX_BARRIERS): Likewise.
35140         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
35141         [POSIX] (_POSIX_CPUTIME): Likewise.
35142         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
35143         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
35144         [POSIX] (_POSIX_SHELL): Likewise.
35145         [POSIX] (_POSIX_SPAWN): Likewise.
35146         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
35147         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
35148         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
35149         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
35150         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
35151         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
35152         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
35153         [POSIX] (_XBS5_LP64_OFF64): Likewise.
35154         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
35155         [POSIX] (_POSIX_TIMEOUTS): Likewise.
35156         [POSIX] (_POSIX2_PBS): Likewise.
35157         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
35158         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
35159         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
35160         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
35161         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
35162         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
35163         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
35164         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
35165         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
35166         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
35167         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
35168         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
35169         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
35170         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
35171         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
35172         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
35173         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
35174         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
35175         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
35176         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
35177         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
35178         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
35179         [POSIX] (_SC_2_C_BIND): Likewise.
35180         [POSIX] (_SC_2_C_VERSION): Likewise.
35181         [POSIX] (_SC_2_PBS): Likewise.
35182         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
35183         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
35184         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
35185         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
35186         [POSIX] (_SC_2_PBS_TRACK): Likewise.
35187         [POSIX] (_SC_ATEXIT_MAX): Likewise.
35188         [POSIX] (_SC_BARRIERS): Likewise.
35189         [POSIX] (_SC_BASE): Likewise.
35190         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
35191         [POSIX] (_SC_DEVICE_IO): Likewise.
35192         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
35193         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
35194         [POSIX] (_SC_FD_MGMT): Likewise.
35195         [POSIX] (_SC_FIFO): Likewise.
35196         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
35197         [POSIX] (_SC_FILE_LOCKING): Likewise.
35198         [POSIX] (_SC_FILE_SYSTEM): Likewise.
35199         [POSIX] (_SC_IOV_MAX): Likewise.
35200         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
35201         [POSIX] (_SC_NETWORKING): Likewise.
35202         [POSIX] (_SC_PAGE_SIZE): Likewise.
35203         [POSIX] (_SC_PASS_MAX): Likewise.
35204         [POSIX] (_SC_PIPE): Likewise.
35205         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
35206         [POSIX] (_SC_REGEXP): Likewise.
35207         [POSIX] (_SC_SHELL): Likewise.
35208         [POSIX] (_SC_SIGNALS): Likewise.
35209         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
35210         [POSIX] (_SC_SPIN_LOCKS): Likewise.
35211         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
35212         [POSIX] (_SC_USER_GROUPS): Likewise.
35213         [POSIX] (_SC_USER_GROUPS_R): Likewise.
35214         [POSIX] (_SC_STREAMS): Likewise.
35215         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
35216         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
35217         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
35218         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
35219         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
35220         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
35221         [POSIX] (_PC_FILESIZEBITS): Likewise.
35222         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
35223         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
35224         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
35225         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
35226         [POSIX] (uid_t): Likewise.
35227         [POSIX] (gid_t): Likewise.
35228         [POSIX] (off_t): Likewise.
35229         [POSIX] (pid_t): Likewise.
35230         [POSIX] (cuserid): Allow.
35231         (_SC_2_CHAR_TERM): Require constant.
35232         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
35233         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
35234         variable.
35235
35236 2015-05-20  Roland McGrath  <roland@hack.frob.com>
35237
35238         * sysdeps/nacl/pthread-pids.h: New file.
35239         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
35240         (create_thread): Use __nacl_get_tid to initialize PD->tid.
35241
35242         * nptl/pthread-pids.h: New file.
35243         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
35244         * nptl/nptl-init.c: Include <pthread-pids.h>.
35245         (__pthread_initialize_minimal_internal):
35246         Call __pthread_initialize_pids instead of set_tid_address syscall.
35247
35248         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
35249         * sysdeps/posix/usleep.c: ... here.
35250
35251 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35252
35253         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
35254         call_pselect6 object.
35255         [$(subdir) = io]: Remove call_sync_file_range object.
35256         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
35257         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
35258         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
35259         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
35260
35261 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
35262
35263         * math/s_cproj.c: Add include "math_private.h".
35264         * math/s_cprojf.c: Likewise.
35265         * math/s_cprojl.c: Likewise.
35266
35267 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
35268
35269         [BZ #18244]
35270         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
35271         high mantissa bit when testing whether P is a NaN.
35272         * math/libm-test.inc (remainder_test_data): Add more tests.
35273         (remquo_test_data): Likewise.
35274
35275         [BZ #18049]
35276         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
35277         below -32, return the argument, with underflow if subnormal.
35278         * math/auto-libm-test-in: Add more tests of atanh.
35279         * math/auto-libm-test-out: Regenerated.
35280
35281 2015-05-19  Roland McGrath  <roland@hack.frob.com>
35282
35283         [BZ #18434]
35284         * nptl/tst-sem15.c: New file.
35285         * nptl/Makefile (tests): Add it.
35286         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
35287         s/<</>>/ to fix typo in EOVERFLOW check.
35288         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
35289
35290 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
35291
35292         * manual/strings.texi (envz_remove): Fix typo in safety
35293         annotations.
35294
35295 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35296             Steve Ellcey  <sellcey@imgtec.com>
35297
35298         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
35299         in order to avoid strict alias warnings.
35300         (iruserok_af): Ditto for ra.
35301
35302 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
35303
35304         [BZ #17581]
35305         * malloc/hooks.c
35306         (magicbyte): Convert to a function and avoid returning 0x01.
35307         (mem2mem_check): Avoid using a length byte equal to the magic byte.
35308         (mem2chunk_check): Fix unsigned comparisons to zero.
35309         Hoist defs of sz and magic.
35310
35311 2015-05-19  Richard Henderson  <rth@redhat.com>
35312
35313         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
35314
35315         * sysdeps/alpha/fpu/libm-test-ulps: Update.
35316
35317 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
35318
35319         [BZ #16159]
35320         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
35321         * malloc/arena.c (arena_lock): Check if arena is corrupt.
35322         (reused_arena): Find a non-corrupt arena.
35323         (heap_trim): Pass arena to unlink.
35324         * malloc/hooks.c (malloc_check_get_size): Pass arena to
35325         malloc_printerr.
35326         (top_check): Likewise.
35327         (free_check): Likewise.
35328         (realloc_check): Likewise.
35329         * malloc/malloc.c (malloc_printerr): Add arena argument.
35330         (unlink): Likewise.
35331         (munmap_chunk): Adjust.
35332         (ARENA_CORRUPTION_BIT): New macro.
35333         (arena_is_corrupt): Likewise.
35334         (set_arena_corrupt): Likewise.
35335         (sysmalloc): Use mmap if there are no usable arenas.
35336         (_int_malloc): Likewise.
35337         (__libc_malloc): Don't fail if arena_get returns NULL.
35338         (_mid_memalign): Likewise.
35339         (__libc_calloc): Likewise.
35340         (__libc_realloc): Adjust for additional argument to
35341         malloc_printerr.
35342         (_int_free): Likewise.
35343         (malloc_consolidate): Likewise.
35344         (_int_realloc): Likewise.
35345         (_int_memalign): Don't touch corrupt arenas.
35346         * malloc/tst-malloc-backtrace.c: New test case.
35347
35348         * Makefile (summarize-tests): Fix return value on success.
35349
35350         * manual/string.texi (Envz Functions): Add envz_remove.
35351
35352 2015-05-18  Roland McGrath  <roland@hack.frob.com>
35353
35354         * sysdeps/posix/opendir.c: Include <stdbool.h>.
35355         (invalid_name): New function, broken out of ...
35356         (__opendirat): ... here.  Call it.
35357         (need_isdir_precheck): New function, broken out of ...
35358         (__opendirat): ... here.  Call it.
35359         Use __fxstatat64, not __xstatat64.
35360         (opendir_oflags): New function, broken out of ...
35361         (__opendirat): ... here.  Call it.
35362         (opendir_tail): New function, broken out of ...
35363         (__opendirat): ... here.  Call it.
35364         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
35365         opendir_tail, rather than punting to __opendirat.
35366         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
35367
35368 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
35369
35370         * .gitignore: Ignore generated *.pyc.
35371
35372 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
35373
35374         * include/stdio.h: Define __need_wint_t.
35375         * test-skeleton.c: Avoid `for' loop initial declaration.
35376         * nptl/tst-initializers1.c: Use test-skeleton.c.
35377
35378 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35379
35380         [BZ #18418]
35381         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
35382
35383 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
35384
35385         [BZ #16352]
35386         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
35387         (__ieee754_atanh): Force underflow exception for results with
35388         small absolute value.
35389         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
35390         (__ieee754_atanhf): Force underflow exception for results with
35391         small absolute value.
35392         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
35393         (__ieee754_atanh): Force underflow exception for results with
35394         small absolute value.
35395         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
35396         (__ieee754_atanhf): Force underflow exception for results with
35397         small absolute value.
35398         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
35399         (__ieee754_atanhl): Force underflow exception for results with
35400         small absolute value.
35401         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
35402         (__ieee754_atanhl): Force underflow exception for results with
35403         small absolute value.
35404         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
35405         (__ieee754_atanhl): Force underflow exception for results with
35406         small absolute value.
35407         * math/auto-libm-test-in: Do not allow missing underflow
35408         exceptions from atanh.
35409         * math/auto-libm-test-out: Regenerated.
35410
35411         [BZ #18221]
35412         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
35413         2**-28 as threshold for returning x or +/- 1/x.
35414         * math/auto-libm-test-in: Add more tests of tan.
35415         * math/auto-libm-test-out: Regenerated.
35416
35417         [BZ #18220]
35418         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
35419         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
35420         * math/auto-libm-test-in: Add another test of lgamma.
35421         * math/auto-libm-test-out: Regenerated.
35422
35423 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
35424
35425         * stdio-common/printf_fp.c (___printf_fp): Use abs.
35426         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
35427         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
35428         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
35429         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
35430         (ADD2A): Use fabs.  (SUB2A): Use fabs.
35431         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
35432         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
35433         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
35434         (log1): Use fabs.  (my_log2): Use fabs.
35435         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
35436         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
35437         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
35438         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
35439         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
35440         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
35441         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
35442         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
35443         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
35444         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
35445         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
35446
35447 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
35448
35449         [BZ #18217]
35450         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
35451         as threshold for returning 1 - x.
35452         * math/auto-libm-test-in: Add more tests of erfc.
35453         * math/auto-libm-test-out: Regenerated.
35454
35455 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
35456
35457         [BZ #18196]
35458         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
35459         threshold for large arguments.
35460         * math/auto-libm-test-in: Add another test of atan.
35461         * math/auto-libm-test-out: Regenerated.
35462
35463         [BZ #16339]
35464         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
35465         (__log1p): Force underflow exception for results with small
35466         absolute value.
35467         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
35468         (__log1pf): Force underflow exception for results with small
35469         absolute value.
35470         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
35471         (__log1p): Force underflow exception for results with small
35472         absolute value.
35473         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
35474         (__log1pf): Force underflow exception for results with small
35475         absolute value.
35476         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
35477         (__log1pl): Force underflow exception for results with small
35478         absolute value.
35479         * math/auto-libm-test-in: Do not allow missing underflow
35480         exceptions from log1p.
35481         * math/auto-libm-test-out: Regenerated.
35482
35483 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
35484             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35485
35486         [BZ #16704]
35487         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
35488
35489 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
35490
35491         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
35492         (libmvec): New variable.
35493         * configure.ac: Added option for mathvec build.
35494         * configure: Regenerated.
35495         * mathvec/Depend: New file.
35496         * mathvec/Makefile: New file.
35497         * shlib-versions: Added libmvec.
35498         * math/Makefile: Added rule for libm.so installation.
35499
35500         * bits/math-vector.h: New file.
35501         * bits/libm-simd-decl-stubs.h: New header.
35502         * math/Makefile (headers): Added new header
35503         libm-simd-decl-stubs.h.
35504         * math/math.h (__MATHCALL_VEC): New macro.
35505
35506         * math/gen-libm-have-vector-test.sh: Script generates series of macros
35507         for conditions in testing functions.
35508         * math/Makefile: Added call of libm-have-vector-test.sh.
35509         * math/libm-test.inc (HAVE_VECTOR): New macros.
35510
35511         * math/libm-test.inc: START refactored.
35512         * math/test-double.c (TEST_MATHVEC): Add define.
35513         * math/test-float.c: Likewise.
35514         * math/test-idouble.c: Likewise.
35515         * math/test-ifloat.c: Likewise.
35516         * math/test-ildoubl.c: Likewise.
35517         * math/test-ldouble.c: Likewise.
35518         * sysdeps/generic/math-tests-arch.h
35519         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
35520         architecture check.
35521
35522         * math/test-double.c (FUNC_TEST): New macro.
35523         * math/test-float.c: Likewise.
35524         * math/test-idouble.c: Likewise.
35525         * math/test-ifloat.c: Likewise.
35526         * math/test-ildoubl.c: Likewise.
35527         * math/test-ldouble.c: Likewise.
35528         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
35529
35530 2015-05-13  Roland McGrath  <roland@hack.frob.com>
35531
35532         * sysdeps/nacl/fdopendir.c: New file.
35533
35534         * dirent/scandir-tail.c: New file.
35535         * dirent/scandir64-tail.c: New file.
35536         * dirent/Makefile (routines): Add them.
35537         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
35538         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
35539         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
35540         [!SCANDIR] (SCANDIR_TAIL): New macro.
35541         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
35542         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
35543         (SCANDIRAT): Macro removed.
35544         (SCANDIR_TAIL): New macro.
35545         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
35546         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
35547         (SCANDIRAT): Just call __opendirat and __scandir_tail.
35548         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
35549         (READDIR): Macro removed.
35550         (SCANDIR_TAIL): New macro.
35551         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
35552         (SCANDIR_TAIL): New macro.
35553
35554         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
35555         * dirent/scandir-cancel.c: ... to this new file.
35556         * dirent/Makefile (routines): Add it.
35557         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
35558         * sysdeps/unix/sysv/linux/i386/scandir64.c
35559         (SKIP_SCANDIR_CANCEL): Macro removed.
35560         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
35561
35562         * dirent/tst-scandir.c: New file.
35563         * dirent/tst-scandir64.c: New file.
35564         * dirent/Makefile (tests): Add them.
35565
35566 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
35567
35568         [BZ #18409]
35569         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
35570
35571 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
35572
35573         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
35574         list.
35575
35576 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
35577
35578         * benchtests/bench-strcoll.c: New benchmark.
35579         * benchtests/Makefile: Generate locales and run benchmark.
35580         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
35581         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
35582         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
35583         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
35584         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
35585         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
35586         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
35587         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
35588         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
35589         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
35590         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
35591         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
35592         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
35593         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
35594         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
35595         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
35596         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
35597         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
35598         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
35599         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
35600         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
35601         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
35602         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
35603         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
35604
35605 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
35606
35607         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
35608         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
35609
35610 2015-05-12  Roland McGrath  <roland@hack.frob.com>
35611
35612         * posix/uname-values.h: New file.
35613         * posix/uname.c: Include that instead of <config-name.h>.
35614         * sysdeps/nacl/uname-values.h: New file.
35615         * sysdeps/arm/nacl/uname-values.h: New file.
35616
35617 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
35618
35619         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
35620         splitting into fields.
35621
35622 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
35623
35624         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
35625         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
35626         * locale/localeinfo.h: Add enum collation_encoding_type.
35627         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
35628         * programs/ld-collate.c (collate_output): Add encoding type info.
35629         * string/strcoll_l.c (STRDIFF): New function.
35630         * (STRCOLL): Use STRDIFF to skip over equal prefix.
35631         * wcsmbs/wcscoll_l.c: Define STRDIFF.
35632
35633 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
35634
35635         [BZ #18397]
35636         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
35637         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
35638         <fpu_control.h> instead of <math/fpu_control.c>.
35639         * sysdeps/mips/mips32/fpu/Makefile: New file.
35640
35641 2015-05-11  Andreas Schwab  <schwab@suse.de>
35642
35643         [BZ #18007]
35644         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
35645         nss_endgrent.
35646         (_nss_compat_endgrent): Call nss_endgrent.
35647         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
35648         nss_endpwent.
35649         (_nss_compat_endpwent): Call nss_endpwent.
35650         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
35651         needent, call nss_setspent only if non-zero.
35652         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
35653         (internal_endspent): Don't call nss_endspent.
35654         (_nss_compat_endspent): Call nss_endspent.
35655         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
35656         Remove.  All uses removed.
35657         (internal_setent): Remove parameter stayopen, add parameter
35658         stream.  Use it instead of global variable.
35659         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
35660         (internal_endent, internal_getent): Add parameter stream.  Use it
35661         instead of global variable.
35662         (CONCAT(_nss_files_end,ENTNAME))
35663         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
35664         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
35665         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
35666         uses removed.
35667         (internal_setent, internal_endent): Add parameter stream.  Use it
35668         instead of global variable.
35669         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
35670         stream.
35671         (get_next_alias): Add parameter stream.
35672         (_nss_files_getaliasent_r): Pass global stream.
35673         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
35674         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
35675         (_nss_files_gethostbyname4_r): Pass local stream to
35676         internal_setent, internal_getent and internal_endent.  Remove
35677         locking.
35678
35679 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
35680
35681         * tst-strfmon1.c (tests): Update expected currency symbol.
35682
35683 2015-05-08  Roland McGrath  <roland@hack.frob.com>
35684
35685         * sysdeps/nacl/gethostname.c: New file.
35686
35687 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
35688
35689         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
35690         and sinh.
35691         * math/auto-libm-test-out: Regenerated.
35692         * sysdeps/i386/fpu/libm-test-ulps: Update.
35693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35694
35695 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
35696
35697         [BZ #18125]
35698         * stdlib/tst-setcontext3.c: New file.
35699         * stdlib/tst-setcontext3.sh: New file.
35700         * stdlib/Makefile (tests): Add tst-setcontext3.
35701         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
35702         to verify test program created output file.
35703         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
35704         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
35705         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
35706         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
35707
35708 2015-05-06  Roland McGrath  <roland@hack.frob.com>
35709
35710         [BZ #18383]
35711         * elf/tst-tlsalign.c: New file.
35712         * elf/tst-tlsalign-static.c: New file.
35713         * elf/tst-tlsalign-lib.c: New file.
35714         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
35715         (tests-static): Add tst-tlsalign-static.
35716         (modules-names): Add tst-tlsalign-lib.
35717         (test-xfail-tst-tlsalign): New variable.
35718         (test-xfail-tst-tlsalign-static): New variable.
35719
35720         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
35721         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
35722
35723 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
35724
35725         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
35726         csqrt, erfc, sin and sincos.
35727         * math/auto-libm-test-out: Regenerated.
35728         * sysdeps/i386/fpu/libm-test-ulps: Update.
35729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35730
35731 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
35732
35733         * sysdeps/aarch64/libm-test-ulps: Update.
35734
35735 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
35736
35737         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
35738         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
35739         * math/auto-libm-test-out: Regenerated.
35740         * sysdeps/i386/fpu/libm-test-ulps: Update.
35741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35742
35743 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
35744
35745         [BZ #18265]
35746         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
35747         (wcsncpy): Likewise.
35748
35749 2015-05-05  Florian Weimer  <fweimer@redhat.com>
35750
35751         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
35752         Assume __ASSUME_FALLOCATE is always true.
35753         * sysdeps/unix/sysv/linux/posix_fallocate64.c
35754         (__posix_fallocate64_l64): Likewise.
35755         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
35756         (posix_fallocate): Likewise.
35757         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
35758         (__posix_fallocate64_l64): Likewise.
35759         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
35760         [!__ASSUME_FALLOCATE]: Add comment.
35761
35762 2015-05-05  Florian Weimer  <fweimer@redhat.com>
35763
35764         * sysdeps/unix/sysv/linux/i386/Makefile
35765         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
35766         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
35767         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
35768         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
35769         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
35770         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
35771         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
35772
35773 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
35774
35775         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
35776         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
35777         tgamma.
35778         * math/auto-libm-test-out: Regenerated.
35779         * sysdeps/i386/fpu/libm-test-ulps: Update.
35780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35781
35782 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
35783
35784         * math/auto-libm-test-in: Add more tests of tgamma.
35785         * math/auto-libm-test-out: Regenerated.
35786         * sysdeps/i386/fpu/libm-test-ulps: Update.
35787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35788
35789         * math/auto-libm-test-in: Add more tests of tanh.
35790         * math/auto-libm-test-out: Regenerated.
35791         * sysdeps/i386/fpu/libm-test-ulps: Update.
35792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35793
35794         * math/auto-libm-test-in: Add more tests of tan.
35795         * math/auto-libm-test-out: Regenerated.
35796         * sysdeps/i386/fpu/libm-test-ulps: Update.
35797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35798
35799         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
35800         * math/auto-libm-test-out: Regenerated.
35801         * sysdeps/i386/fpu/libm-test-ulps: Update.
35802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35803
35804         * math/auto-libm-test-in: Add another test of pow.
35805         * math/auto-libm-test-out: Regenerated.
35806         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35807
35808         * math/auto-libm-test-in: Add more tests of lgamma.
35809         * math/auto-libm-test-out: Regenerated.
35810         * sysdeps/i386/fpu/libm-test-ulps: Update.
35811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35812
35813         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
35814         log1p.
35815         * math/auto-libm-test-out: Regenerated.
35816         * sysdeps/i386/fpu/libm-test-ulps: Update.
35817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35818
35819 2015-05-01  Mark Wielaard  <mjw@redhat.com>
35820
35821         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
35822         Elf64_Chdr structs and ELFCOMPRESS constants.
35823
35824 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
35825
35826         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
35827         expm1.
35828         * math/auto-libm-test-out: Regenerated.
35829         * sysdeps/i386/fpu/libm-test-ulps: Update.
35830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35831
35832         * math/auto-libm-test-in: Add more tests of erf and erfc.
35833         * math/auto-libm-test-out: Regenerated.
35834         * sysdeps/i386/fpu/libm-test-ulps: Update.
35835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35836
35837 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
35838
35839         * config.h.in (HAVE_AARCH64_BE): Add.
35840
35841 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
35842
35843         * math/auto-libm-test-in: Add more tests of csqrt.
35844         * math/auto-libm-test-out: Regenerated.
35845         * sysdeps/i386/fpu/libm-test-ulps: Update.
35846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35847
35848         * math/auto-libm-test-in: Add more tests of cosh and sinh.
35849         * math/auto-libm-test-out: Regenerated.
35850         * sysdeps/i386/fpu/libm-test-ulps: Update.
35851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35852
35853         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
35854
35855 2015-04-29  Roland McGrath  <roland@hack.frob.com>
35856
35857         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
35858         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
35859
35860         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
35861         (euidaccess, eaccess): Define as weak aliases.
35862
35863         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
35864         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
35865         but __suseconds_t is often 'long int' so some sources assume that
35866         type is being used (e.g. they use %ld to print tv_usec).
35867
35868 2015-04-29  Florian Weimer  <fweimer@redhat.com>
35869
35870         [BZ #18007]
35871         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
35872         (CVE-2014-8121)
35873         * nss/tst-nss-getpwent.c: New file.
35874         * nss/Makefile (tests): Add new test.
35875
35876 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
35877
35878         [BZ #18346]
35879         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
35880         exponents less than 48 as cases where high part of mantissa needs
35881         examining to determine whether argument is integral.
35882         * math/libm-test.inc (round_test_data): Add more tests.
35883
35884 2015-04-28  Mark Wielaard  <mjw@redhat.com>
35885
35886         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
35887
35888 2015-04-27  David S. Miller  <davem@davemloft.net>
35889
35890         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
35891         __tls_get_addr.
35892         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
35893
35894 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
35895
35896         [BZ #18333]
35897         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
35898
35899 2015-04-27  Florian Weimer  <fweimer@redhat.com>
35900
35901         [BZ #18333]
35902         * time/tzset.c (parse_tzname): Return error on memory allocation
35903         failure.
35904         * test-skeleton.c (struct temp_name_list): Change type of name
35905         member to non-const.
35906         (add_temp_file): Create a copy of the file name.
35907         (delete_temp_files): Deallocate memory.
35908         (create_temp_file): Add comment.
35909
35910 2015-04-24  Florian Weimer  <fweimer@redhat.com>
35911
35912         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
35913         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
35914
35915 2015-04-24  Roland McGrath  <roland@hack.frob.com>
35916
35917         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
35918         * sysdeps/arm/configure: Regenerated.
35919
35920 2015-04-24  Florian Weimer  <fweimer@redhat.com>
35921
35922         [BZ #17715]
35923         * time/tzfile.c (__tzfile_read): Check for large values of
35924         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
35925         * time/tzset.c (__tzstring_len): New function, based on the old
35926         __tzstring function.
35927         (__tzstring): Call __tzstring_len.
35928         (parse_tzname): New helper function extracted from
35929         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
35930         the input string.
35931         (parse_offset): New helper function extracted from
35932         __tzset_parse_tz.  Replace switch with fallthrough with
35933         initialization before sscanf.
35934         (parse_rule): Likewise.
35935         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
35936         new-style function definition.
35937         * timezone/Makefile (tests): Add tst-tzset.
35938         (tst-tzset.out): Dependencies on time zone files.
35939         (tst-tzset-ENV): Set TZDIR.
35940         (testdata/XT%): Copy crafted time zone files.
35941         * timezone/README: Mention crafted time zone files.
35942         * timezone/testdata/XT1, timezone/testdata/XT2,
35943         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
35944         files.
35945         * timezone/tst-tzset.c: New test.
35946
35947 2015-04-24  Florian Weimer  <fweimer@redhat.com>
35948
35949         * Makeconfig (+gccwarn): Remove -Winline.
35950
35951 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
35952
35953         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
35954
35955 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
35956
35957         * NEWS: Mention sysconf() cache information support for s390.
35958         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
35959
35960 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
35961
35962         * math/k_casinh.c (__kernel_casinh): Use __copysign.
35963         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
35964         (__nearbyint): Likewise.
35965         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
35966         (copysignl): Likewise.
35967
35968 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
35969
35970         [BZ #18287]
35971         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
35972         based on padding.  (CVE-2015-1781)
35973
35974 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35975
35976         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
35977         libc-vdso.h.
35978         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
35979         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
35980         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
35981         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
35982         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
35983         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
35984         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
35985         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
35986         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
35987         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
35988         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
35989         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
35990         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
35991         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
35992         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
35993         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
35994         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
35995         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
35996         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
35997         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
35998         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
35999         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
36000         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
36001
36002 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
36003
36004         * stdlib/setenv.c (__add_to_environ):
36005         Dump core quickly if setenv (..., NULL, ...) is called.
36006         This time, do it the right way, and pacify GCC with a pragma.
36007
36008 2015-04-17  Roland McGrath  <roland@hack.frob.com>
36009
36010         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
36011         IMAP->l_prev cannot be null, and #if out the code for the contrary
36012         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
36013         believe that NS (&_dl_ns[NSID]) could point outside the array.
36014
36015         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
36016         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
36017         before using NSID as an index.
36018
36019 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
36020
36021         [BZ #17825]
36022         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
36023         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
36024         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
36025
36026 2015-04-17  Roland McGrath  <roland@hack.frob.com>
36027
36028         Add preliminary port to Google Native Client on ARM.
36029         * abi-tags (.*-.*-nacl.*): New entry.
36030         * sysdeps/arm/nacl: New directory.
36031         * sysdeps/nacl: New directory.
36032
36033 2015-04-16  David S. Miller  <davem@davemloft.net>
36034
36035         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
36036         lowlevellock-futex.h
36037
36038 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
36039
36040         * sysdeps/tile/configure.ac: New file.
36041         * sysdeps/tile/configure: Regenerated.
36042
36043 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36044
36045         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
36046         conditionals for weak_alias and libc_hidden_weak.
36047         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
36048         libc_hidden_weak and weak_alias.
36049         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
36050         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
36051         and weak_alias for static one.
36052
36053 2015-04-15  David S. Miller  <davem@davemloft.net>
36054
36055         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
36056
36057 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
36058
36059         [BZ #18206]
36060         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
36061           Use signed comparision instead of substraction to avoid
36062           overflow bug.
36063         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
36064           Take the sign of ret.
36065         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
36066           Do not expect precise return values. Only the sign matters.
36067         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
36068         * wcsmbs/test-wcsncmp.c: New File.
36069         * string/test-strncmp.c: Add wcsncmp support.
36070
36071 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
36072
36073         [BZ #6792]
36074         * math/w_log1p.c: New file.
36075         * math/w_log1pf.c: Likewise.
36076         * math/w_log1pl.c: Likewise.
36077         * math/Makefile (libm-calls): Add w_log1p.
36078         * math/s_log1pl.c (log1pl): Remove weak_alias.
36079         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
36080         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
36081         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
36082         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
36083         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
36084         [NO_LONG_DOUBLE] (log1pl): Likewise.
36085         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
36086         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
36087         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
36088         (log1p): Remove long_double_symbol.
36089         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
36090         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
36091         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
36092         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
36093         remove weak_alias for corresponding log1p function.
36094         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
36095         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
36096         * sysdeps/ia64/fpu/w_log1p.c: New file.
36097         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
36098         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
36099         * math/libm-test.inc (log1p_test_data): Add errno expectations.
36100
36101 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
36102
36103         [BZ #18247]
36104         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
36105         decimal exponent by 1.
36106         * stdlib/tst-strtod-round-data: Add more tests.
36107         * stdlib/tst-strtod-round.c (tests): Regenerated.
36108
36109 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
36110
36111         * math/auto-libm-test-in: Add more tests of clog and clog10.
36112         * math/auto-libm-test-out: Regenerated.
36113         * sysdeps/i386/fpu/libm-test-ulps: Update.
36114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36115
36116 2015-04-09  Roland McGrath  <roland@hack.frob.com>
36117
36118         * Makeconfig (module-cppflags): Exclude all .v.i files.
36119         (skip-module-cppflags): Variable removed.
36120
36121         * configure.ac (libc_config_ok): Initialize before reading
36122         preconfigure scripts, not after.
36123         * configure: Regenerated.
36124
36125         * test-skeleton.c (TIMEOUT): Move #define to top level.
36126         (main): Grok environment variable TEST_DIRECT.  If set, print
36127         test expectation details into that file and then behave as if
36128         given --direct.
36129
36130 2015-04-09  Florian Weimer  <fweimer@redhat.com>
36131
36132         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
36133         warning on 32-bit.
36134
36135 2015-04-08  David S. Miller  <davem@davemloft.net>
36136
36137         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36138
36139 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
36140
36141         * math/auto-libm-test-in: Add more tests of atanh.
36142         * math/auto-libm-test-out: Regenerated.
36143         * sysdeps/i386/fpu/libm-test-ulps: Update.
36144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36145
36146         * math/auto-libm-test-in: Add more tests of atan.
36147         * math/auto-libm-test-out: Regenerated.
36148         * sysdeps/i386/fpu/libm-test-ulps: Update.
36149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36150
36151 2015-04-08  Florian Weimer  <fweimer@redhat.com>
36152
36153         * elf/pldd.c (main): Rewrite to use struct
36154         scratch_buffer instead of extend_alloca.
36155         * elf/pldd-xx.c (find_maps): Likewise.
36156         * grp/initgroups.c: Include <scratch_buffer.h> instead of
36157         <alloca.h>.
36158         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
36159         scratch_buffer instead of extend_alloca.
36160         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
36161         grp/compat-initgroups.c.
36162         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
36163         Rewrite to use struct scratch_buffer instead of extend_alloca.
36164         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
36165         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36166
36167 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
36168
36169         * math/auto-libm-test-in: Add more tests of cbrt.
36170         * math/auto-libm-test-out: Regenerated.
36171         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36172
36173         * math/auto-libm-test-in: Add more tests of cabs.
36174         * math/auto-libm-test-out: Regenerated.
36175         * sysdeps/i386/fpu/libm-test-ulps: Update.
36176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36177
36178         [BZ #18210]
36179         [BZ #18211]
36180         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
36181         (__ieee754_atan2): Set FE_TONEAREST mode for internal
36182         computations.
36183         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
36184         clog10.
36185         * math/auto-libm-test-out: Regenerated.
36186         * sysdeps/i386/fpu/libm-test-ulps: Update.
36187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36188
36189         [BZ #18197]
36190         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
36191         (atan): Set FE_TONEAREST mode for internal computations.
36192         * math/auto-libm-test-in: Add more tests of atan.
36193         * math/auto-libm-test-out: Regenerated.
36194
36195 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
36196
36197         [BZ #17930]
36198         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
36199
36200 2015-04-07  Florian Weimer  <fweimer@redhat.com>
36201
36202         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
36203
36204 2015-04-07  Florian Weimer  <fweimer@redhat.com>
36205
36206         * include/scratch_buffer.h: New file.
36207         * malloc/scratch_buffer_grow.c: Likewise.
36208         * malloc/scratch_buffer_grow_preserve.c: Likewise.
36209         * malloc/scratch_buffer_set_array_size.c: Likewise.
36210         * malloc/tst-scratch_buffer.c: Likewise.
36211         * malloc/Makefile (routines): Add scratch_buffer_grow.
36212         (tests): Add test case.
36213         * malloc/Versions (GLIBC_PRIVATE): Export
36214         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
36215         __libc_scratch_buffer_set_array_size.
36216
36217 2015-04-06  Richard Henderson  <rth@redhat.com>
36218
36219         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
36220         * sysdeps/alpha/fpu/libm-test-ulps: Update.
36221
36222         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
36223         unsigned int before printing.
36224
36225 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36226
36227         [BZ #17596]
36228         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
36229         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
36230
36231 2015-04-02  Florian Weimer  <fweimer@redhat.com>
36232
36233         * include/libc-internal.h (libc_max_align_t): Define.
36234
36235 2015-04-02  Andreas Schwab  <schwab@suse.de>
36236
36237         [BZ #16850]
36238         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
36239
36240 2015-04-02  Mel Gorman  <mgorman@suse.de>
36241
36242         [BZ #17195]
36243         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
36244         as well as the main arena.
36245
36246 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
36247
36248         [BZ #18185]
36249         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
36250         sharing L2 cache to 2 for Silvermont/Knights Landing.
36251
36252 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
36253
36254         [BZ #17711]
36255         * config.make.in (have-protected-data): New.
36256         * configure.ac: Check linker support for protected data symbol.
36257         * configure: Regenerated.
36258         * elf/Makefile (modules-names): Add tst-protected1moda and
36259         tst-protected1modb if $(have-protected-data) is yes.
36260         (tests): Add tst-protected1a and tst-protected1b if
36261         $(have-protected-data) is yes.
36262         ($(objpfx)tst-protected1a): New.
36263         ($(objpfx)tst-protected1b): Likewise.
36264         (tst-protected1modb.so-no-z-defs): Likewise.
36265         * elf/tst-protected1a.c: New file.
36266         * elf/tst-protected1b.c: Likewise.
36267         * elf/tst-protected1mod.h: Likewise.
36268         * elf/tst-protected1moda.c: Likewise.
36269         * elf/tst-protected1modb.c: Likewise.
36270
36271 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
36272
36273         [BZ #17711]
36274         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
36275         indicates it is called from do_lookup_x on relocation against
36276         protected data, skip the data definion in the executable from
36277         copy reloc.
36278         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
36279         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
36280         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
36281         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
36282         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
36283         otherwise to 0.
36284         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
36285         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
36286         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
36287         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
36288         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
36289         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
36290
36291 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
36292
36293         * sysdeps/nptl/pthread.h: Remove duplicate definition of
36294         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
36295
36296 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
36297
36298         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
36299         THREAD_SETMEM_NC.
36300         * sysdeps/x86_64/nptl/tls.h: Ditto.
36301
36302 2015-03-27  Roland McGrath  <roland@hack.frob.com>
36303
36304         * dlfcn/tststatic.c (main): Converted to ...
36305         (do_test): ... this.
36306         (TEST_FUNCTION): New macro.
36307         Include test-skeleton.c.
36308
36309 2015-03-26  Alan Modra  <amodra@gmail.com>
36310
36311         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
36312         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
36313         zero for undefined weak.
36314         (elf_machine_plt_conflict): Similarly.
36315
36316 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
36317
36318         * math/auto-libm-test-in: Add more tests of acosh, asinh and
36319         atanh.
36320         * math/auto-libm-test-out: Regenerated.
36321         * sysdeps/i386/fpu/libm-test-ulps: Update.
36322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36323
36324         * math/auto-libm-test-in: Add another test of asin.
36325         * math/auto-libm-test-out: Regenerated.
36326         * sysdeps/i386/fpu/libm-test-ulps: Update.
36327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36328
36329         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
36330         Remove macro.
36331         (LLL_EBX_REG): Likewise.
36332         (LLL_ENTER_KERNEL): Likewise.
36333
36334         * math/auto-libm-test-in: Add more tests of asin.
36335         * math/auto-libm-test-out: Regenerated.
36336         * sysdeps/i386/fpu/libm-test-ulps: Update.
36337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36338
36339         [BZ #18138]
36340         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
36341         libc_do_syscall_args): New structure.
36342         (INTERNAL_SYSCALL_MAIN_0): New macro.
36343         (INTERNAL_SYSCALL_MAIN_1): Likewise.
36344         (INTERNAL_SYSCALL_MAIN_2): Likewise.
36345         (INTERNAL_SYSCALL_MAIN_3): Likewise.
36346         (INTERNAL_SYSCALL_MAIN_4): Likewise.
36347         (INTERNAL_SYSCALL_MAIN_5): Likewise.
36348         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
36349         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
36350         Replace conditional definitions by conditional definitions of ....
36351         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
36352         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
36353         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
36354         (libpthread-sysdep_routines): Add libc-do-syscall.
36355         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
36356         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
36357         to __NR_futex not 240.
36358
36359 2015-03-25  Alan Modra  <amodra@gmail.com>
36360
36361         * NEWS: Advertise TLS optimization.
36362         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
36363         (DT_PPC_NUM): Increment.
36364         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
36365         (CHECK_STATIC_TLS): Use here.
36366         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
36367         TLS descriptors.
36368         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
36369         * sysdeps/powerpc/dl-tls.c: New file.
36370         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
36371         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
36372         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
36373         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
36374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
36375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
36376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
36377
36378 2015-03-25  Alan Modra  <amodra@gmail.com>
36379
36380         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
36381         for overlapping .opd entries" to "support...".
36382         * sysdeps/powerpc/powerpc64/configure: Regenerate
36383
36384 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
36385
36386         * math/auto-libm-test-in: Add more tests of acos.
36387         * math/auto-libm-test-out: Regenerated.
36388         * sysdeps/i386/fpu/libm-test-ulps: Update.
36389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36390
36391         * math/auto-libm-test-in: Add more tests of expm1.
36392         * math/auto-libm-test-out: Regenerated.
36393         * sysdeps/i386/fpu/libm-test-ulps: Update.
36394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36395
36396 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
36397
36398         * math/auto-libm-test-in: Add more tests of cosh and sinh.
36399         * math/auto-libm-test-out: Regenerated.
36400         * sysdeps/i386/fpu/libm-test-ulps: Update.
36401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36402
36403         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
36404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36405
36406         * math/auto-libm-test-in: Add more tests of log2.
36407         * math/auto-libm-test-out: Regenerated.
36408         * sysdeps/i386/fpu/libm-test-ulps: Update.
36409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36410
36411 2015-03-23  Roland McGrath  <roland@hack.frob.com>
36412
36413         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
36414         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
36415         _IO_IS_APPENDING bit in READ_WRITE instead.
36416
36417 2015-03-23  Florian Weimer  <fweimer@redhat.com>
36418
36419         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
36420         (__determine_cpumask_size): Replace extend_alloca with a
36421         variable-length array.  Do not treat res == 0 as an error.
36422
36423 2015-03-23  Florian Weimer  <fweimer@redhat.com>
36424
36425         [BZ #18100]
36426         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
36427         and integer overflow.
36428         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
36429         (main): Add integer overflow tests.
36430         * manual/pattern.texi (Calling Wordexp): Document additional use
36431         for WRDE_SYNTAX.
36432
36433 2015-03-23  Alan Modra  <amodra@gmail.com>
36434
36435         * config.h.in: Remove HAVE_ASM_PPC_REL16.
36436         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
36437         and false branch of conditional.
36438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
36439         Likewise.
36440
36441 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
36442
36443         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
36444         libc-modules.h
36445         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
36446         unused declaration of _hurd_intr_rpc_msg_in_trap.
36447         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
36448         defined instead of whether it is non-zero.
36449         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
36450         input constraint instead of both input and output constraint.  Use ecx
36451         clobber instead of %ecx.
36452         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
36453         mutex_unlock): Use a statement expression instead of an expression list.
36454         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
36455         type to vm_size_t instead of vm_address_t.
36456         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
36457         defined instead of whether it is non-zero.
36458         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
36459         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
36460         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
36461         comparisons with mapaddr.
36462         * nscd/nscd-client.h: Include <time.h>.
36463         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
36464         9th parameter to __vm_region instead of int.
36465         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
36466         * scripts/check-local-headers.sh (exclude): Add device/,
36467         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
36468         cthreads.h.
36469
36470 2015-03-19  Roland McGrath  <roland@hack.frob.com>
36471
36472         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
36473         to account for alignment padding.
36474         * sysdeps/arm/memmove.S: Likewise.
36475
36476 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
36477
36478         * sysdeps/unix/sysv/linux/generic/README: New file.
36479
36480 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
36481
36482         [BZ #18138]
36483         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
36484         (futex_abstimed_wait)
36485         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
36486         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
36487         of lll_futex_timed_wait.
36488
36489 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
36490
36491         [BZ #17542]
36492         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
36493
36494 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
36495
36496         [BZ #17090]
36497         [BZ #17620]
36498         [BZ #17621]
36499         [BZ #17628]
36500         * NEWS: Update.
36501         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
36502         entries with Static TLS too.  Skip entries past the end of the
36503         allocated DTV, from Alan Modra.
36504         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
36505         Static TLS DTV entry set up from...
36506         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
36507         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
36508         * nptl/allocatestack.c (init_one_static_tls): ... and here...
36509         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
36510         for Static TLS.
36511         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
36512         that the slot we find is associated with the given map before
36513         using its generation count.
36514         * nptl_db/db_info.c: Include ldsodefs.h.
36515         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
36516         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
36517         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
36518         (link_map::l_tls_offset): New struct field.
36519         (dtv_t::counter): Likewise.
36520         (rtld_global): New struct.
36521         (_rtld_global): New rtld variable.
36522         (dl_tls_dtv_slotinfo_list): New rtld global field.
36523         (dtv_slotinfo_list): New struct.
36524         (dtv_slotinfo): Likewise.
36525         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
36526         (td_lookup): Rename to...
36527         (td_mod_lookup): ... this.  Use new mod parameter instead of
36528         LIBPTHREAD_SO.
36529         * nptl_db/td_thr_tlsbase.c: Include link.h.
36530         (dtv_slotinfo_list, dtv_slotinfo): New functions.
36531         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
36532         addresses even if the DTV is out of date or missing them.
36533         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
36534         index zero-length arrays.
36535         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
36536         (td_lookup): Make it a macro implemented in terms of...
36537         (td_mod_lookup): ... this declaration.
36538         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
36539         (DB_MAIN_VARIABLE): Likewise.
36540
36541 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36542
36543         [BZ #18134]
36544         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
36545
36546 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
36547
36548         * stdlib/setenv.c (__add_to_environ): Revert previous change.
36549
36550 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
36551
36552         [BZ #18128]
36553         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
36554         (atomic_add, atomic_increment_and_test)
36555         (atomic_decrement_and_test): Fix 64-bit arithmetic.
36556
36557 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
36558
36559         * stdlib/setenv.c (__add_to_environ):
36560         Dump core quickly if setenv (..., NULL, ...) is called.
36561
36562 2015-03-13  Roland McGrath  <roland@hack.frob.com>
36563
36564         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
36565         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
36566         all the necessary asm magic in one place.
36567         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
36568         using those.
36569
36570 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
36571
36572         [BZ #14906]
36573         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
36574         traced file mtime. Use consistent log message.
36575         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
36576         (register_traced_file): Call install_watches. Always set mtime.
36577         (invalidate_cache): Iterate over all trace files. Call install_watches.
36578         (inotify_check_files): Don't inline. Handle watching parent
36579         directories and configuration file movement in and out.
36580         (handle_inotify_events): New function.
36581         (main_loop_poll): Call handle_inotify_events.
36582         (main_loop_epoll): Likewise.
36583         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
36584         (struct traced_file): Use array of inotify fds. Add parent directory,
36585         and basename.
36586         (struct database_dyn): Remove unused file_mtime.
36587         (init_traced_file): New inline function.
36588         (define_traced_file): New macro.
36589         * nss/nss_db/db-init.c: Use define_traced_file.
36590         (_nss_db_init): Use init_traced_file.
36591         * nss/nss_files/files-init.c: Use define_traced_file.
36592         (_nss_files_init): Use init_traced_file.
36593
36594 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
36595
36596         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
36597         [_LIBC]: Do not include <stdlib.h>.
36598         [!_LIBC] (abort): Remove declaration.
36599         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
36600         _FP_STATIC_ASSERT instead of conditionally calling abort.
36601         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
36602         (_FP_EXTEND_CNAN): Likewise.
36603         (FP_TRUNC): Likewise.
36604         (__FP_CLZ): Likewise.
36605         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
36606
36607 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
36608
36609         * manual/string.texi (XPG basename): Fix prototype.
36610
36611 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36612
36613         [BZ #18080]
36614         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
36615         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
36616         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
36617         (__setcontext): Likewise.
36618         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
36619         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
36620         Call rt_sigprocmask syscall one time to set new signal mask
36621         and retrieve the current signal mask instead of two calls.
36622         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
36623         (__swapcontext): Likewise.
36624         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
36625         * stdlib/tst-setcontext2.c: New file.
36626
36627 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36628
36629         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36630
36631 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
36632
36633         [BZ #18093]
36634         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
36635         the wrong size.
36636
36637 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
36638
36639         [BZ #18043]
36640         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
36641
36642 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
36643
36644         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
36645         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
36646         Remove define.
36647         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
36648         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
36649         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
36650         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
36651         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
36652         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
36653         define.
36654         * nptl_db/td_symbol_list.c (td_lookup): Remove
36655         HAVE_ASM_GLOBAL_DOT_NAME code.
36656         * sysdeps/powerpc/powerpc64/configure.ac: Remove
36657         HAVE_ASM_GLOBAL_DOT_NAME check.
36658         * sysdeps/powerpc/powerpc64/configure: Regenerate.
36659         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
36660         (DOT_LABEL): Remove define.
36661         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
36662         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
36663         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
36664         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
36665         (__TLS_GET_ADDR): Likewise.
36666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
36667         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
36668
36669 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
36670
36671         [BZ #18111]
36672         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
36673         (_FPU_SETCW): Initialize cw from fpsr before storing.
36674         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
36675         (fesetexceptflag): Rewrite using fpu_control.h.
36676         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
36677
36678 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
36679
36680         [BZ #18110]
36681         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
36682         asms.
36683         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
36684
36685 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
36686
36687         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
36688         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
36689         abort.
36690         (_FP_FMA): Likewise.
36691         (_FP_DIV): Likewise.
36692
36693 2015-03-10  Roland McGrath  <roland@hack.frob.com>
36694
36695         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
36696         with 0 in that case.
36697         * Makefile (summarize-tests): New canned sequence, factored out of
36698         commands for targets tests and xtests.  Display summary lines that
36699         don't start with PASS: or XFAIL: rather than ones that do start with
36700         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
36701         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
36702         do start with ERROR: or FAIL:.
36703         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
36704         (except for [$(build-shared) = yes]).
36705         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
36706         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
36707         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
36708         * nptl/Makefile: Revert 2015-03-04 changes.
36709         [$(CXX) empty] (tests-unsupported): New variable.
36710         * debug/Makefile: Likewise.
36711
36712         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
36713         gnulib file.  Replace __attribute with __attribute__ throughout.
36714
36715 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
36716
36717         * sysdeps/hppa/fpu/libm-test-ulps: Update.
36718
36719 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
36720
36721         [BZ #18104]
36722         * math/auto-libm-test-in: Add another test of pow.
36723         * math/auto-libm-test-out: Regenerated.
36724
36725 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36726
36727         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
36728         $(config-cflags-nofma).
36729
36730 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
36731
36732         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
36733         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
36734         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
36735         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
36736         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
36737         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
36738         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
36739         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
36740         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
36741         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
36742         Add comment on closing #endif.
36743
36744 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
36745
36746         * posix/wordexp.c (CHAR_IN_SET): New macro.
36747         (parse_param): Use it.
36748
36749 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36750
36751         * sysdeps/powerpc/fpu/libm-test-ulps: update.
36752
36753 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
36754
36755         [BZ #18043]
36756         * posix/wordexp.c (parse_param): Fix buffer overflow.
36757         * posix/wordexp-test.c (test_case): Add test case.
36758
36759 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
36760
36761         [BZ #18042]
36762         * posix/wordexp.c (parse_backtick): Fix off-by-one.
36763         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
36764
36765 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
36766
36767         [BZ #18043]
36768         * posix/wordexp-test.c (test_case): Add test for BZ #18043
36769         (do_bz18043): Delete.
36770         (at_page_end): New.
36771         (testit): Refactor to have words at the edge of unreadable page.
36772
36773 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
36774
36775         [BZ #16734]
36776         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
36777         Cleanup read-only streams as well.
36778         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
36779
36780 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36781
36782         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
36783         <bits/libc-lockP.h>
36784
36785 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
36786
36787         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
36788         on [__KERNEL__].
36789         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
36790         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
36791         * soft-fp/op-common.h (_FP_DECL): Likewise.
36792
36793 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
36794
36795         * elf/ifuncdep2.c (global): Replace
36796         __attribute__((visibility("protected"))) with
36797         asm (".protected global").
36798         * elf/ifuncmod1.c (global): Likewise.
36799         * elf/ifuncmod5.c (global): Likewise.
36800
36801 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
36802
36803         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
36804         <asm/sfp-machine.h> instead of <sfp-machine.h>.
36805
36806 2015-03-06  Roland McGrath  <roland@hack.frob.com>
36807
36808         * manual/install.texi (Configuring and compiling):
36809         Document test-wrapper-env-only.
36810         * INSTALL: Regenerated.
36811
36812 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36813
36814         [BZ #18043]
36815         * posix/wordexp.c (parse_param): Fix buffer overflow.
36816         * posix/wordexp-test.c (do_bz18043): Add test case.
36817
36818 2015-03-06  Vincent Bernat  <vincent@bernat.im>
36819
36820         * time/tst-strptime2.c (do_test): Ensure failing tests are
36821         reported correctly.
36822         * time/tst-strptime3.c (do_test): Likewise.
36823
36824 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
36825
36826         Fix aio_error thread-safety.
36827         * sysdeps/pthread/aio_error.c: New file
36828         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
36829         synchronization.
36830
36831 2015-03-06  Florian Weimer  <fweimer@redhat.com>
36832
36833         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
36834         (group_number, vfprintf): Use it.
36835         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
36836         (JUMP, REF): Use it.
36837         (WORK_BUFFER_SIZE): New enum constant.
36838         (process_arg, vfprintf): Use it.
36839
36840 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
36841
36842         * manual/errno.texi (Error Messages): Complete example function
36843         by adding missing #define.
36844         (program_invocation_name): Add statement indicating GNU
36845         extension and reference which header file declares the variable.
36846         (program_invocation_short_name): Likewise.
36847
36848 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
36849
36850         * manual/errno.texi (Error Messages): Delete strerror ISO C89
36851         compatibility note.
36852
36853 2015-03-05  Roland McGrath  <roland@hack.frob.com>
36854
36855         * Makeconfig (test-wrapper-env-only): New variable.
36856         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
36857         then use that with $(test-wrapper-env-only) rather than using
36858         $(test-wrapper-env) $(run-program-env) $($*-ENV).
36859
36860 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
36861
36862         [BZ #18082]
36863         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
36864         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
36865         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
36866         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
36867         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
36868         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
36869         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
36870         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
36871         Likewise.
36872         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
36873         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
36874         Likewise.
36875         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
36876         Likewise.
36877         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
36878         Likewise.
36879         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
36880         Likewise.
36881         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
36882         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
36883         Likewise.
36884         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
36885         Likewise.
36886         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
36887         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
36888
36889 2015-03-04  Roland McGrath  <roland@hack.frob.com>
36890
36891         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
36892         (ETH_ALEN): New macro.
36893         (struct ether_addr): Use it for length of ether_addr_octet.
36894
36895         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
36896         (setdb): Don't call __nss_configure_lookup for "rpc".
36897         (do_test): Don't call test_rpc.
36898         (output_rpcent, test_rpc): Functions moved ...
36899         * sunrpc/test-rpcent.c: ... to this new file.
36900         * sunrpc/Makefile (tests): Add it.
36901
36902         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
36903         __xpg_sigpause.
36904         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
36905         * nptl/tst-signal6.c: Likewise.
36906         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
36907         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
36908
36909         * configure.ac (libc_cv_cxx_link_ok): New check.
36910         Reset CXX to empty if it fails to link.
36911         * configure: Regenerated.
36912         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
36913         bug-atexit3-lib only if $(CXX) is nonempty.
36914         * nptl/Makefile (tests): Likewise for tst-cancel24.
36915         (tests, tests-static): Likewise for tst-cancel24-static.
36916         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
36917         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
36918         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
36919         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
36920
36921 2015-03-04  Andreas Schwab  <schwab@suse.de>
36922
36923         [BZ #17631]
36924         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
36925         for non-GCC compilers.
36926         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
36927         Likewise.
36928
36929 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
36930
36931         [BZ #17776]
36932         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
36933         integer before bitwise and assembly operations.
36934         (feclearexcept): Likewise.
36935         * math/test-fenvinline.c: New file.
36936         * math/Makefile: Add test-fenvinline test.
36937
36938 2015-03-03  Alan Modra  <amodra@gmail.com>
36939
36940         [BZ #16512]
36941         * scripts/localplt.awk: Strip off symbol version.
36942         * NEWS: Mention bug fix.
36943
36944 2015-03-02  Roland McGrath  <roland@hack.frob.com>
36945
36946         * sysdeps/pthread/timer_routines.c
36947         (timer_free_list, thread_free_list, thread_active_list): Make static.
36948
36949 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
36950
36951         [BZ #17779]
36952         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36953         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
36954         Undefine.
36955         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36956         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
36957         Likewise.
36958         * sysdeps/unix/sysv/linux/sh/kernel-features.h
36959         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
36960         Likewise.
36961
36962 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
36963
36964         [BZ #18036]
36965         * posix/fnmatch_loop.c (END): Detect invalid pattern.
36966         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
36967
36968 2015-03-02  Andreas Schwab  <schwab@suse.de>
36969
36970         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
36971         variable name.
36972
36973 2015-03-02  Florian Weimer  <fweimer@redhat.com>
36974
36975         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
36976         Return error status.
36977
36978 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
36979
36980         [BZ #15969]
36981         * locale/findlocale.c (_nl_find_locale): Introduce const
36982         version of loc_name and drop unsafe type casts.
36983
36984 2015-02-27  Roland McGrath  <roland@hack.frob.com>
36985
36986         * dlfcn/tststatic2.c (main): Converted to ...
36987         (do_test): ... this.
36988         (TEST_FUNCTION): New macro.
36989         Include test-skeleton.c.
36990
36991 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
36992
36993         [BZ #17711]
36994         * elf/Makefile (tests): Add vismain only if PIE is enabled.
36995         (tests-pie): Add vismain.
36996         (CFLAGS-vismain.c): New.
36997         * elf/vismain.c: Add comments for PIE requirement.
36998
36999 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
37000
37001         [BZ #18046]
37002         [BZ #18047]
37003         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
37004         0x1p-56L as threshold for just returning the argument.
37005         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
37006         0x1p-32L as threshold for just returning the argument.
37007         * math/auto-libm-test-in: Add more tests of atanh.
37008         * math/auto-libm-test-out: Regenerated.
37009         * sysdeps/i386/fpu/libm-test-ulps: Update.
37010         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
37011
37012 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
37013
37014         * string/bcopy.c (bcopy): Call memmove for performance.
37015
37016 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
37017
37018         * string/bzero.c (__bzero): Call memset for performance.
37019
37020 2015-02-27  John David Anglin  <dave.anglin@bell.net>
37021
37022         [BZ #18068]
37023         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
37024         to 00100000.
37025
37026 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
37027
37028         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
37029
37030 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
37031
37032         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
37033         (__kernel_standard): Use CSTR macro when setting exc.name.
37034         * sysdeps/ieee754/Makefile [$(subdir) = math]
37035         (CFLAGS-k_standard.c): Remove variable.
37036
37037         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
37038         setting p and q from "else if" to "else".
37039         (qzero): Likewise.
37040         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
37041         (qone): Likewise.
37042         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
37043         (qzerof): Likewise.
37044         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
37045         (qonef): Likewise.
37046         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
37047         (qzero): Likewise.
37048         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
37049         (qone): Likewise.
37050
37051         [BZ #18038]
37052         [BZ #18039]
37053         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
37054         return pi/2 for arguments below 0x1p-113L.
37055         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
37056         return pi/2 for arguments below 0x1p-106L.
37057         * math/auto-libm-test-in: Add more tests of acos.
37058         * math/auto-libm-test-out: Regenerated.
37059
37060         [BZ #16351]
37061         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
37062         (MO): New macro.
37063         (__ieee754_asin): Force underflow exception for results with small
37064         absolute value.
37065         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
37066         (MO): New macro.
37067         (__ieee754_asinf): Force underflow exception for results with
37068         small absolute value.
37069         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
37070         (__ieee754_asin): Force underflow exception for results with small
37071         absolute value.
37072         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
37073         (__ieee754_asinf): Force underflow exception for results with
37074         small absolute value.
37075         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
37076         (__ieee754_asinl): Force underflow exception for results with
37077         small absolute value.
37078         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
37079         (__ieee754_asinl): Force underflow exception for results with
37080         small absolute value.
37081         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
37082         (__ieee754_asinl): Force underflow exception for results with
37083         small absolute value.
37084         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
37085         Include <math.h>.
37086         * math/auto-libm-test-in: Do not mark underflow exceptions as
37087         possibly missing for bug 16351.
37088         * math/auto-libm-test-out: Regenerated.
37089
37090         [BZ #18030]
37091         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
37092         of power of 2 down when low part has opposite sign.
37093         * math/libm-test.inc (logb_test_data): Add more tests.
37094
37095 2015-02-26  Andreas Schwab  <schwab@suse.de>
37096
37097         [BZ #18032]
37098         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
37099         over collating symbol inside a bracket expression.  Minor cleanup.
37100         * posix/tst-fnmatch3.c (do_test): Add test case.
37101
37102 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
37103
37104         [BZ #18029]
37105         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
37106         Adjust exponent of power of 2 down when low part has opposite
37107         sign.
37108         * math/libm-test.inc (ilogb_test_data): Add more tests.
37109
37110 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
37111
37112         [BZ #15969]
37113         * locale/findlocale.c (_nl_find_locale): Fix constness error in
37114         the previous change.
37115
37116         [BZ #15969]
37117         * locale/findlocale.c (_nl_find_locale): Retry archive search
37118         after alias expansion.
37119
37120 2015-02-25  Roland McGrath  <roland@hack.frob.com>
37121
37122         * iconv/tst-iconv3.c (main): Converted to ...
37123         (do_test): ... this.
37124         (TEST_FUNCTION): New macro.
37125         Include test-skeleton.c.
37126
37127         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
37128         (convert): Make function static.
37129         (test_unalign): Likewise.  Add const to argument pointee types.
37130         (main): Replace with static function do_test.
37131         Print "Succeeded." only if RET is zero.
37132         (TEST_FUNCTION): New macro.
37133         Include test-skeleton.c.
37134
37135         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
37136         returns a null pointer.
37137
37138 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37139
37140         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
37141         to __memcpy_ppc only for static builds.
37142
37143 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
37144
37145         [BZ #18020]
37146         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
37147         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
37148         * math/auto-libm-test-in: Add more tests of asinh.
37149         * math/auto-libm-test-out: Regenerated.
37150         * sysdeps/i386/fpu/libm-test-ulps: Update.
37151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37152
37153 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
37154
37155         [BZ #15850]
37156         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
37157         and ip6_mtuinfo definitions here.
37158         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
37159         in this define too.  Update comment.
37160
37161 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
37162
37163         * elf/sprof.c (load_shobj): Tweak error message to match others.
37164
37165 2015-02-24  Kevin Easton  <kevin@guarana.org>
37166
37167         [BZ #16145] (partial fix)
37168         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
37169         to reduce lock contention.
37170
37171 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
37172
37173         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
37174         (struct timex): Update time comment.
37175         (ADJ_SETOFFSET): Define.
37176
37177 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
37178
37179         [BZ #18019]
37180         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
37181         2**56 not 2**28 as threshold for log (2x) formula.
37182         * math/auto-libm-test-in: Add more tests of acosh.
37183         * math/auto-libm-test-out: Regenerated.
37184         * sysdeps/i386/fpu/libm-test-ulps: Update.
37185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37186
37187 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
37188
37189         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
37190         parenthesis around the buf assignment.
37191         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
37192
37193 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
37194
37195         [BZ #16783]
37196         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
37197         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
37198         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
37199         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
37200         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
37201         * math/libm-test.inc (scalb_test_data): Add more tests.
37202
37203 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
37204
37205         [BZ #17916]
37206         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
37207         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
37208
37209 2015-02-24  Eric Rannaud  <e@nanocritical.com>
37210
37211         [BZ #17523]
37212         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
37213         * io/bits/fcntl2.h (open): Use it.
37214         (openat): Likewise.
37215         * io/open.c (__libc_open): Likewise.
37216         * io/open64.c (__libc_open64): Likewise.
37217         * io/open64_2.c (__open64_2): Likewise.
37218         * io/open_2.c (__open_2): Likewise.
37219         * io/openat.c (__openat): Likewise.
37220         * io/openat64.c (__openat64): Likewise.
37221         * io/openat64_2.c (__openat64_2): Likewise.
37222         * io/openat_2.c (__openat_2): Likewise.
37223         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
37224         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
37225         * sysdeps/posix/open64.c (__libc_open64): Likewise.
37226         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
37227         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
37228         (__open_nocancel): Likewise.
37229         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
37230         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
37231         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
37232
37233 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37234
37235         [BZ #14841]
37236         * resolv/gethnamaddr.c (getanswer): Skip logging if
37237         RES_USE_DNSSEC is set.
37238         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
37239
37240 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
37241
37242         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
37243
37244 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
37245
37246         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
37247         201304L, for Unicode 7.
37248
37249 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
37250
37251         [BZ #17836]
37252         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
37253         shared library.  Add gmon-start.os otherwise.
37254         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
37255         $(objpfx)gmon-start.os if builing shared library.
37256         ($(objpfx)g$(static-start-installed-name)): Likewise.
37257
37258 2015-02-23  Andreas Schwab  <schwab@suse.de>
37259
37260         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
37261
37262 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
37263
37264         [BZ #17269]
37265         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
37266         (enlarge_userbuf): Likewise.
37267
37268 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
37269
37270         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
37271         * math/atest-exp.c (TIMEOUT): Adjust to 200.
37272         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
37273         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
37274
37275 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
37276
37277         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
37278         expression inside statement expression.
37279
37280 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
37281
37282         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
37283         <sysdeps/nptl/lowlevellock.h> and remove macros and
37284         functions that are now defined there.
37285         (SYS_futex): Remove.
37286         (lll_compare_and_swap): Remove.
37287         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
37288
37289 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
37290
37291         [BZ #17999]
37292         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
37293         instead of scandirat.
37294         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
37295         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
37296         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
37297         __scandirat.
37298         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
37299         (__scandirat): Declare.  Use libc_hidden_proto.
37300         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
37301         Remove variable.
37302         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
37303
37304 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
37305
37306         [BZ #15319]
37307         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
37308         (MO): New macro.
37309         (__ieee754_atan2): For results with small absolute value, force
37310         underflow exception and remove excess range and precision from
37311         return value.
37312         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
37313         (MO): New macro.
37314         (__ieee754_atan2f): For results with small absolute value, force
37315         underflow exception and remove excess range and precision from
37316         return value.
37317         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
37318         (MO): New macro.
37319         (__atan): For results with small absolute value, force underflow
37320         exception and remove excess range and precision from return value.
37321         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
37322         (MO): New macro.
37323         (__atanf): For results with small absolute value, force underflow
37324         exception and remove excess range and precision from return value.
37325         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
37326         <math.h>.
37327         (__ieee754_atan2): Force underflow exception for results with
37328         small absolute value.
37329         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
37330         <math_private.h>.
37331         (atan): Force underflow exception for results with small absolute
37332         value.
37333         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
37334         (__atanf): Force underflow exception for results with small
37335         absolute value.
37336         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
37337         <math.h>.
37338         (__atanl): Force underflow exception for results with small
37339         absolute value.
37340         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
37341         (__atanl): Force underflow exception for results with small
37342         absolute value.
37343         * sysdeps/x86/fpu/bits/mathinline.h
37344         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
37345         (__ieee754_atan2): Only define inline for long double.
37346         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
37347         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
37348         * math/auto-libm-test-in: Do not mark underflow exceptions as
37349         possibly missing for bug 15319.  Add more tests of atan2.
37350         * math/auto-libm-test-out: Regenerated.
37351         * math/libm-test.inc (casin_test_data): Do not mark underflow
37352         exceptions as possibly missing for bug 15319.
37353         (casinh_test_data): Likewise.
37354         * sysdeps/i386/fpu/libm-test-ulps: Update.
37355
37356 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
37357
37358         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
37359         * sysdeps/mips/bits/endian.h: Fix comments.
37360
37361 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
37362
37363         [BZ #17996]
37364         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
37365         (hdestroy_r): Likewise.
37366         (hsearch_r): Likewise.
37367         (__hcreate_r): Declare and use libc_hidden_proto.
37368         (__hdestroy_r): Likewise.
37369         (__hsearch_r): Likewise.
37370         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
37371         (hcreate): Call __hcreate_r instead of hcreate_r.
37372         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
37373         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
37374         as weak alias of __hcreate_r.
37375         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
37376         __hdestroy_r.
37377         (hsearch_r): Rename to __hsearch_r and define as weak alias of
37378         __hsearch_r.
37379         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
37380         Remove variable.
37381         (test-xfail-XPG4/search.h/linknamespace): Likewise.
37382         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
37383         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
37384         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
37385
37386 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
37387
37388         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
37389         arena_lock into a single arena_get.
37390
37391 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
37392
37393         * dl-reloc.c: Inlucde libc-internal.h.
37394         (_dl_try_allocate_static_tls): Call ALIGN_UP.
37395         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
37396         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
37397         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
37398         (grow_heap): Likewise.
37399         * malloc/malloc.c: Include libc-internal.h.
37400         (do_check_malloc): Call powerof2.
37401         (sysmalloc): Use pagesize. Call ALIGN_UP.
37402         (systrim): Use pagesize.
37403         (mremap_chunk): Use pagesize. Call ALIGN_UP.
37404         (__libc_valloc): Use pagesize.
37405         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
37406
37407 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
37408
37409         [BZ #17991]
37410         * include/sys/resource.h (__getrlimit64): Declare.  Use
37411         libc_hidden_proto.
37412         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
37413         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
37414         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
37415         getrlimit64.
37416         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
37417         __getrlimit64.
37418         [!getrlimit64] (getrlimit64): Define as weak alias of
37419         __getrlimit64.  Use libc_hidden_weak.
37420         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
37421         using __getrlimit64 not __new_getrlimit64.
37422         (__GI_getrlimit64): Likewise.
37423         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
37424         Likewise.
37425         (__GI_getrlimit64): Likewise.
37426         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
37427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
37428         (getrlimit): Add __getrlimit64 alias.
37429         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
37430         Likewise.
37431         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
37432         Remove variable.
37433         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
37434         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
37435
37436 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
37437
37438         * libio/fileops.c: Add missing sys/mman.h
37439         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
37440
37441 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
37442
37443         * manual/math.texi (Errors in Math Functions): Clarify goals
37444         regarding inexact and underflow exceptions.
37445
37446 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
37447
37448         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
37449         * sysdeps/mips/memset.S: Ditto.
37450
37451 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
37452
37453         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
37454
37455 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
37456
37457         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
37458         (__v1longjmp): Remove versioned symbol.
37459         (__v1siglongjmp): Remove alias and versioned symbol.
37460         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
37461         (__v2siglongjmp): Likewise.
37462
37463 2015-02-16  Torvald Riegel  <triegel@redhat.com>
37464
37465         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
37466
37467 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
37468
37469         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
37470
37471 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
37472
37473         [BZ #17987]
37474         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
37475         zero result does not depend on the sign resulting from
37476         subtraction.
37477         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
37478         Likewise.
37479         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
37480         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
37481         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
37482         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
37483         * math/libm-test.inc (remquo_test_data): Add more tests.
37484
37485 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
37486
37487         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
37488         Problem reported by J William Piggott.
37489
37490 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
37491
37492         [BZ #17978]
37493         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
37494         products 4 * y and 2 * y where those would overflow.
37495         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
37496         Likewise.
37497         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
37498         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
37499         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
37500         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
37501         * math/libm-test.inc (remquo_test_data): Add more tests.
37502
37503         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
37504
37505         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
37506         [defined _COMPILING_NEWLIB].
37507         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
37508         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
37509
37510         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
37511         [!defined __mips_isa_rev || __mips_isa_rev < 6].
37512
37513 2015-02-16  Torvald Riegel  <triegel@redhat.com>
37514
37515         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
37516         acquired.
37517
37518 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
37519
37520         [BZ #17792]
37521         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
37522         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
37523         HOST_STACK_END_ADDR): Likewise.
37524
37525 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
37526
37527         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
37528         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
37529         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
37530
37531 2015-02-13  Roland McGrath  <roland@hack.frob.com>
37532
37533         * sysdeps/generic/c++-types.data: New file.
37534         * sysdeps/generic/ld.abilist: New file.
37535         * sysdeps/generic/libBrokenLocale.abilist: New file.
37536         * sysdeps/generic/libanl.abilist: New file.
37537         * sysdeps/generic/libc.abilist: New file.
37538         * sysdeps/generic/libcrypt.abilist: New file.
37539         * sysdeps/generic/libdl.abilist: New file.
37540         * sysdeps/generic/libm.abilist: New file.
37541         * sysdeps/generic/libpthread.abilist: New file.
37542         * sysdeps/generic/libresolv.abilist: New file.
37543         * sysdeps/generic/librt.abilist: New file.
37544
37545 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
37546
37547         [BZ #17569]
37548         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
37549         Compute absolute value of x as modified by fmod, not original
37550         value of x.
37551         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
37552         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
37553         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
37554         RUN_TEST_ffI_f1_mod8.
37555         (remquo_test_data): Add more tests.
37556
37557 2015-02-13  Roland McGrath  <roland@hack.frob.com>
37558
37559         * sysdeps/init_array/pt-crti.S: New file.
37560
37561 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
37562
37563         [BZ #17967]
37564         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
37565         __builtin_fmaf instead of relying on contraction of a * b + c.
37566
37567 2015-02-12  J William Piggott  <elseifthen@gmx.com>
37568
37569         [BZ #17969]
37570         * manual/time.texi: correct the zoneinfo path in the TZ Variable
37571         node.
37572
37573 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
37574
37575         [BZ #17964]
37576         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
37577         __builtin_fma instead of relying on contraction of a * b + c.
37578
37579 2015-02-12  Roland McGrath  <roland@hack.frob.com>
37580
37581         * Makeconfig (ASFLAGS): Add -Werror=undef.
37582         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
37583         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
37584         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
37585
37586         * Makeconfig (after-link): New variable.
37587         (+link-pie, +link-pie-tests): Use it.
37588         (+link-static, +link-static-tests): Likewise.
37589         (+link, +link-tests): Likewise.
37590         * Makerules (build-module, build-module-asneeded): Likewise.
37591         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
37592         Likewise.
37593         * elf/Makefile ($(objpfx)ld.so): Likewise.
37594
37595 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
37596
37597         [BZ #17965]
37598         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
37599         both struct timeval and struct timespec.
37600
37601 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
37602
37603         [BZ #16560]
37604         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
37605         and redefine.
37606         (__ieee754_exp2l): Do not multiply small fractional parts by
37607         M_LN2l.
37608         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
37609         small argument.
37610         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37611         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
37612         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
37613         * math/auto-libm-test-in: Add more tests of exp2.
37614         * math/auto-libm-test-out: Regenerated.
37615
37616 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37617
37618         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
37619         unaligned path.
37620
37621 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37622
37623         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
37624         little endian.
37625
37626 2015-02-12  Andreas Schwab  <schwab@suse.de>
37627
37628         [BZ #15790]
37629         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
37630         Filter out elision flags from value returned in kind.
37631         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
37632         * nptl/tst-pthread-mutexattr.c: New file.
37633
37634 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37635
37636         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
37637         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
37638         into gnu-gnu, and update comment to refer to abi-tags.
37639
37640 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
37641
37642         [BZ #15467]
37643         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
37644         (__sincos): Set errno to EDOM for infinite argument.
37645         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
37646         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
37647         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
37648         (__sincosl): Set errno to EDOM for infinite argument.
37649         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
37650         (__sincosl): Set errno to EDOM for infinite argument.
37651         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
37652         (__sincosl): Set errno to EDOM for infinite argument.
37653         * math/libm-test.inc (sincos_test_data): Test errno setting.
37654
37655 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
37656
37657         * string/strxfrm_l.c: Remove #define STRCMP.
37658         * string/strcoll_l.c: Remove #define STRLEN.
37659         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
37660         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
37661
37662 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
37663
37664         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
37665         * sysdeps/mips/mips32/sfp-machine.h: ... here.
37666         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
37667         * sysdeps/mips/mips64/Makefile: ... here.
37668         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
37669         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
37670         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
37671         * sysdeps/mips/mips64/sfp-machine.h: ... here.
37672         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
37673         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
37674         * sysdeps/mips/mips64/n64/Implies: Likewise.
37675
37676 2015-02-10  Roland McGrath  <roland@hack.frob.com>
37677
37678         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
37679         <sys/time.h>, <string.h>, and <errno.h>.
37680         (dest_offset, dest_address, value, zero): Remove unused variables.
37681         (ldouble): Remove typedef.
37682         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
37683         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
37684         1).  Fix code style.
37685         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
37686         (check): Function removed.
37687         (CHECK): New macro.
37688         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
37689         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
37690         Don't call set_sigaction_FP and remove_sigaction_FP here.
37691         (ldouble_test): Just use 'long double' as macro argument, no need for
37692         the 'ldouble' typedef.
37693         (do_test): Set up SIGFPE handler at start, using plain signal rather
37694         than sigaction.  Fix code style.
37695
37696 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
37697
37698         [BZ #17949]
37699         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
37700         jump label.
37701
37702 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
37703
37704         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
37705         * sysdeps/powerpc/powerpc32/configure: Regenerated.
37706
37707         * sysdeps/powerpc/configure.ac: Remove file.
37708         * sysdeps/powerpc/configure: Likewise.
37709
37710         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
37711         [sysdep_routines]: Remove wordcopy-power6 object.
37712         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
37713         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
37714         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
37715         (__memmove_ppc32): Likewise.
37716         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
37717         file.
37718         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
37719         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
37720         Remove preprocessor.
37721
37722         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
37723         [sysdep_routines]: Remove wide chars objects.
37724         [wcsmbs]: New rule for wide char objects.
37725
37726         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37727         Remove wordcopy-power6 obejct.
37728         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
37729         Use local call for wordcopy and memcpy symbols.
37730         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
37731         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
37732         implementation for loader.
37733         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
37734
37735         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37736         Remove wordcopy-power7 object.
37737         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
37738         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
37739         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
37740         (_wordcopy_fwd_dest_aligned): Likewise.
37741         (_wordcopy_bwd_aligned): Likewise.
37742         (_wordcopy_bwd_dest_aligned): Likewise.
37743
37744         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
37745         Rewrite to call __memmove_ppc instead of include default
37746         implementation.
37747
37748         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37749         Remove wide chars objects.
37750         [wcsmbs]: New rule for wide char objects.
37751
37752 2015-02-09  Andreas Schwab  <schwab@suse.de>
37753
37754         [BZ #17912]
37755         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
37756         in terms of __O_DIRECTORY.
37757
37758 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37759
37760         * time/getdate.c: Include <stdbool.h>.
37761         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
37762         call PTR_MANGLE.
37763         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
37764         PTR_DEMANGLE.
37765
37766 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37767
37768         Add ersatz _Static_assert on older C hosts
37769         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
37770         pre-C11 C platform that is not known to support _Static_assert.
37771
37772 2015-02-07  Richard Braun  <rbraun@sceen.net>
37773
37774         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
37775         sigstate.
37776         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
37777
37778 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37779
37780         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
37781         priority against unexistent AIO_PRIO_DELTA_MAX.
37782         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
37783         instead of int.
37784         * misc/fchflags.c (fchflags): Likewise.
37785         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
37786         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
37787         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
37788         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
37789         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
37790         Declare macros.
37791         [__USE_MISC] (chflags, fchflags): Declare functions.
37792         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
37793         EINVAL when nfds is greater than FD_SETSIZE.
37794         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
37795         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
37796         45.
37797         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
37798         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
37799         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
37800         MACH_RCV_TIMED_OUT.
37801         * hurd/hurd/signal.h (_hurd_self_sigstate,
37802         _hurd_critical_section_lock, _hurd_critical_section_unlock):
37803         Explicit casts from void *.
37804         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
37805         * abi-tags: Rename gnu-gnu os into gnu.
37806
37807         [BZ #4719]
37808         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
37809         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
37810         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
37811         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
37812         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
37813         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
37814
37815         [BZ #17944]
37816         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
37817         duplicates ADDR->sun_path with sockaddr LEN limitation.
37818         * sysdeps/mach/hurd/connect.c: Include <string.h>
37819         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
37820         * sysdeps/mach/hurd/sendmsg.c: Likewise.
37821         * sysdeps/mach/hurd/sendto.c: Likewise.
37822         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
37823         implementing it by hand.
37824
37825 2015-02-06  Roland McGrath  <roland@hack.frob.com>
37826
37827         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
37828         Use sfi_breg on ldr.
37829         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
37830         Likewise.
37831
37832         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
37833         it's defined.
37834         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
37835         Test SIGSETXID only if it's defined.
37836
37837         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
37838
37839         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
37840         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
37841
37842         * nptl/tst-align2.c: Moved ...
37843         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
37844         * nptl/Makefile (tests): Remove tst-align2.
37845         * sysdeps/unix/sysv/linux/Makefile
37846         [$(subdir) = nptl] (tests): Add tst-align-clone.
37847         * nptl/tst-getpid1.c: Moved ...
37848         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
37849         * nptl/tst-getpid2.c: Moved ...
37850         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
37851         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
37852         * sysdeps/unix/sysv/linux/Makefile
37853         [$(subdir) = nptl] (tests): ... here.
37854         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
37855         * sysdeps/unix/sysv/linux/Makefile
37856         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
37857
37858         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
37859         Drop trailing \n from perror argument.  Use return rather than exit.
37860
37861         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
37862         on [SA_SIGINFO].
37863         * nptl/tst-cancel21.c (do_test): Likewise.
37864         * debug/tst-backtrace6.c: Include <signal.h> first thing.
37865         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
37866         [!SA_SIGINFO]: Make it a stub test.
37867
37868         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
37869         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
37870
37871         * posix/tst-getlogin.c: Move to ...
37872         * login/tst-getlogin.c: ... here.
37873         * posix/Makefile (tests): Move tst-getlogin to ...
37874         * login/Makefile (tests): ... here.
37875
37876         * libio/tst-atime.c (do_test): Move local variables SV and E
37877         inside [ST_NOATIME] conditional.
37878
37879         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
37880
37881         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
37882
37883         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
37884         (wait_code): New function replaces macro.
37885         Call nanosleep rather than syscall.
37886
37887         * nptl/pt-system.c: Rewritten.  Put everything under
37888         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
37889         Use IFUNC to redirect when possible.
37890
37891         * nptl/pt-longjmp.c: Rewritten.  Put everything under
37892         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
37893         Use IFUNC to redirect when possible.
37894
37895         * nptl/pt-fork.c: Rewritten.  Put everything under
37896         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
37897         Use IFUNC to redirect when possible.
37898         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
37899
37900         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
37901         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
37902         unconditionally nowadays.  This included the only reference to
37903         __vdso_clock_gettime that appears outside libc proper.
37904         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
37905         Remove version set (containing only __vdso_clock_gettime).
37906         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
37907         Add attribute_hidden.
37908         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
37909         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
37910         libc_hidden_data_def.
37911         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
37912         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
37913
37914         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
37915         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
37916         setrpcent, and getrpcport to ...
37917         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
37918         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
37919         getrpcbynumber_r, and getrpcent_r to ...
37920         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
37921         * inet/getrpcbyname.c: Moved ...
37922         * sunrpc/getrpcbyname.c: ... here.
37923         * inet/getrpcbyname_r.c: Moved ...
37924         * sunrpc/getrpcbyname_r.c: ... here.
37925         * inet/getrpcbynumber.c: Moved ...
37926         * sunrpc/getrpcbynumber.c: ... here.
37927         * inet/getrpcbynumber_r.c: Moved ...
37928         * sunrpc/getrpcbynumber_r.c: ... here.
37929         * inet/getrpcent.c: Moved ...
37930         * sunrpc/getrpcent.c: ... here.
37931         * inet/getrpcent_r.c: Moved ...
37932         * sunrpc/getrpcent_r.c: ... here.
37933         * inet/Makefile (routines): Move those to ...
37934         * sunrpc/Makefile (routines): ... here.
37935         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
37936         the $(subdirs) list.
37937         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
37938         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
37939         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
37940         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
37941
37942         * elf/Makefile (routines): Include $(all-dl-routines), not just
37943         $(dl-routines).
37944         (rtld-routines): Likewise.  Use = rather than :=.
37945         * sysdeps/aarch64/Makefile [$(subdir) = elf]
37946         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
37947         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
37948         * sysdeps/arm/Makefile: Likewise.
37949         * sysdeps/i386/Makefile: Likewise.
37950         * sysdeps/x86_64/Makefile: Likewise.
37951         * sysdeps/hppa/Makefile [$(subdir) = elf]
37952         (sysdep_routines, sysdep-rtld-routines): Don't add
37953         $(sysdep-dl-routines) to these.
37954         * sysdeps/ia64/Makefile: Likewise.
37955         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
37956         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
37957         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
37958         Don't add dl-static to these; sysdep-dl-routines alone is enough.
37959         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
37960         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
37961         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
37962         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
37963         * sysdeps/powerpc/Makefile [$(subdir) = elf]
37964         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
37965         these; sysdep-dl-routines alone is enough.
37966
37967 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
37968
37969         [BZ #17932]
37970         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
37971         where multiplication results in zero and third argument is finite
37972         and nonzero.
37973         * math/auto-libm-test-in: Add more tests of fma.
37974         * math/auto-libm-test-out: Regenerated.
37975
37976         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
37977         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
37978         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
37979         (_FP_CMP_EQ): Likewise.
37980         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
37981
37982         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
37983         extra argument CHECK_NAN.  Redefine as wrapper around
37984         _FP_EXTEND_CNAN.
37985
37986 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
37987
37988         * version.h (RELEASE): Set to "stable".
37989         (VERSION): Set to "2.21"
37990         * include/features.h (__GLIBC_MINOR__): Set to 21.
37991
37992         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
37993
37994 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
37995             Paul Eggert  <eggert@cs.ucla.edu>
37996
37997         [BZ #16618]
37998         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
37999         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
38000         size in bytes. Store needed elements in wpmax. Use needed size
38001         in bytes for extend_alloca.
38002
38003 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
38004
38005         * manual/install.texi: Latest tested versions are GCC 4.9.2,
38006         binutls 2.25, and texinfo 5.2.
38007         * INSTALL: Regenerate.
38008         * sysdeps/nios2/configure: Regenerate.
38009         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
38010         * manual/contrib.texi: Update.
38011         * po/be.po: Update.
38012         * po/bg.po: Update.
38013         * po/ca.po: Update.
38014         * po/cs.po: Update.
38015         * po/da.po: Update.
38016         * po/de.po: Update.
38017         * po/el.po: Update.
38018         * po/eo.po: Update.
38019         * po/es.po: Update.
38020         * po/fi.po: Update.
38021         * po/fr.po: Update.
38022         * po/gl.po: Update.
38023         * po/hr.po: Update.
38024         * po/hu.po: Update.
38025         * po/ia.po: Update.
38026         * po/id.po: Update.
38027         * po/it.po: Update.
38028         * po/ja.po: Update.
38029         * po/ko.po: Update.
38030         * po/lt.po: Update.
38031         * po/nb.po: Update.
38032         * po/nl.po: Update.
38033         * po/pl.po: Update.
38034         * po/pt_BR.po: Update.
38035         * po/ru.po: Update.
38036         * po/rw.po: Update.
38037         * po/sk.po: Update.
38038         * po/sl.po: Update.
38039         * po/sv.po: Update.
38040         * po/tr.po: Update.
38041         * po/uk.po: Update.
38042         * po/vi.po: Update.
38043         * po/zh_CN.po: Update.
38044         * po/zh_TW.po: Update.
38045
38046         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
38047         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
38048         * sysdeps/hppa/dl-irel.h: Remove #warning.
38049         * sysdeps/hppa/entry.h: Provide prototype for
38050         __canonicalize_funcptr_for_compare and cast argument.
38051         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
38052         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
38053         * sysdeps/hppa/sotruss-lib.c: New file.
38054         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
38055         (atomic_compare_and_exchange_val_acq): Use __typeof__.
38056         (atomic_compare_and_exchange_bool_acq): Likewise.
38057         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
38058         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
38059
38060         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
38061         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
38062         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
38063
38064 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
38065
38066         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
38067         called function in non-PIC case.
38068
38069 2015-01-31  David S. Miller  <davem@davemloft.net>
38070
38071         * sysdeps/sparc/sparc32/bits/atomic.h
38072         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
38073         unlock not after it.
38074         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
38075         volatile register usage warnings from the compiler.
38076
38077         * sysdeps/sparc/nptl/sem_init.c: Delete.
38078         * sysdeps/sparc/nptl/sem_post.c: Delete.
38079         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
38080         * sysdeps/sparc/nptl/sem_wait.c: Delete.
38081         * sysdeps/sparc/sparc32/sem_init.c: New file.
38082         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
38083         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
38084         padding explicitly initialized.
38085         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
38086         padding for in-semaphore spinlock.
38087         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
38088         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
38089         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
38090         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
38091         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
38092         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
38093         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
38094         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
38095         version.
38096         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
38097         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
38098
38099 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
38100
38101         [BZ #17801]
38102         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38103         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
38104         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
38105         New.
38106         (index_AVX_Fast_Unaligned_Load): Likewise.
38107         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
38108         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
38109         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
38110         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
38111         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
38112         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
38113         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
38114         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
38115         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
38116
38117 2015-01-29  Andreas Schwab  <schwab@suse.de>
38118
38119         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
38120
38121 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
38122
38123         [BZ #17892]
38124         * nscd/nscd_stat.c (send_stats): Initialize DATA.
38125
38126 2015-01-28  Martin Sebor  <msebor@redhat.com>
38127
38128         * math/README.libm-test: Clarify. Add "How to read the test output."
38129
38130 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
38131
38132         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
38133         Define to 0.
38134
38135 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
38136
38137         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
38138         (__HAVE_64B_ATOMICS): Define to 0.
38139
38140 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
38141
38142         [BZ #17885]
38143         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
38144         value to set as new flag.
38145
38146         [BZ #16576]
38147         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
38148         and use _ARCH_PPCSQ instead.
38149         (__ieee754_sqrt): Likewise.
38150         (__ieee754_sqrtf): Likewise.
38151         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
38152         _ARCH_PPCSQ is defined.
38153         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
38154         fsqrt instruction.
38155         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
38156         _ARCH_PPCSQ is defined.
38157         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
38158         fsqrts instruction.
38159         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
38160
38161 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38162
38163         * iconv/loop.c: Suppress array out of bound warning caused by GCC
38164         bug (GCC BZ #64739).
38165
38166 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
38167
38168         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
38169         Mark _retval as used.
38170         (lll_futex_wake_unlock): Likewise.
38171         (lll_futex_timed_wait_requeue_pi): Likewise.
38172
38173         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
38174         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
38175         register variables.
38176
38177         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
38178         libm_hidden_def.
38179
38180         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
38181         (__bswap_64): Mark as __always_inline.
38182
38183 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
38184
38185         [BZ #15378]
38186         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
38187         when none of the search directories exist.
38188
38189 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
38190
38191         [BZ #17869]
38192         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
38193         power8 in .machine directive.
38194
38195         [BZ #17868]
38196         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
38197         set dependency from opd value.
38198
38199 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
38200
38201         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38202         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
38203         architecture.
38204
38205 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
38206
38207         [BZ #17870]
38208         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
38209         with uint64_t.
38210         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
38211         (uint64_t) 1.
38212         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
38213         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
38214         Replace 1UL with (uint64_t) 1.
38215         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
38216         int with uint64_t.
38217
38218 2015-01-23  Roland McGrath  <roland@hack.frob.com>
38219
38220         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
38221         (if_freenameindex): Likewise.
38222
38223         * resource/getrlimit64.c: Add missing libc_hidden_def.
38224
38225 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
38226
38227         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
38228         __label__.
38229         (_FP_FMA): Likewise.
38230         (_FP_TO_INT_ROUND): Likewise.
38231         (_FP_FROM_INT): Likewise.
38232
38233 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38234
38235         [BZ #16418]
38236         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
38237         Make code racy and cancel safe.
38238
38239 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
38240
38241         * sysdeps/arm/unwind-resume.h: Fix copyright year.
38242         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
38243         attribution.
38244
38245         * pwd/tst-getpw.c: Rewrite.
38246
38247         [BZ #17702]
38248         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
38249         (modules-names): Add moddummy1 and moddummy2.
38250         ($(objpfx)tst-rec-dlopen): Define.
38251         * dlfcn/moddummy1.c: New file.
38252         * dlfcn/moddummy2.c: New file.
38253         * dlfcn/tst-rec-dlopen.c: New file.
38254         * elf/dl-cache.c (_dl_load_cache_lookup):
38255         Return char*. Copy result with alloca/strcpy/strdup.
38256         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
38257         returns char*. Free cached. If not saving realname
38258         free cached.
38259         * elf/dl-open.c (dl_open_worker): Do not assert that
38260         _r_debug->r_state is RT_CONSISTENT.
38261         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
38262         returns char*.
38263
38264 2015-01-21  Torvald Riegel  <triegel@redhat.com>
38265             Carlos O'Donell  <carlos@redhat.com>
38266
38267         [BZ #12674]
38268         * nptl/sem_waitcommon.c: New file.
38269         * nptl/sem_wait.c: Include sem_waitcommon.c.
38270         (__sem_wait_cleanup, do_futex_wait): Remove.
38271         (__new_sem_wait): Adapt.
38272         (__new_sem_trywait): New function.
38273         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
38274         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
38275         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
38276         (sem_timedwait): Adapt.
38277         * nptl/sem_post.c (__new_sem_post): Adapt.
38278         (futex_wake): New function.
38279         (__old_sem_post): Add release MO fence.
38280         * nptl/sem_open.c (sem_open): Adapt.
38281         * nptl/sem_init.c (__new_sem_init): Adapt.
38282         (futex_private_if_supported): New function.
38283         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
38284         (__old_sem_getvalue): Add using previous code.
38285         * sysdeps/nptl/internaltypes.h: Adapt.
38286         * nptl/tst-sem13.c (do_test): Adapt.
38287         * nptl/tst-sem11.c (main): Adapt.
38288         * nptl/sem_trywait.c: Remove.
38289         * nptl/DESIGN-sem.txt: Remove.
38290         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
38291         (gen-as-const-headers): Remove structsem.sym.
38292         * nptl/structsem.sym: Remove.
38293         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
38294         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
38295         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
38296         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
38297         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
38298         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
38299         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
38300         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
38301         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
38302         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
38303         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
38304         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
38305         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
38306         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
38307         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
38308         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
38309         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
38310         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
38311         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
38312         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
38313         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
38314         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
38315
38316 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
38317
38318         * INSTALL: Regenerated.
38319
38320         * po/libc.pot: Regenerated.
38321
38322 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
38323             Sandra Loosemore  <sandra@codesourcery.com>
38324             Andrew Jenner  <andrew@codesourcery.com>
38325             Joseph Myers  <joseph@codesourcery.com>
38326             Nathan Sidwell  <nathan@codesourcery.com>
38327
38328         * NEWS: Mention new Nios II port.
38329         * sysdeps/nios2/Implies: New file.
38330         * sysdeps/nios2/Makefile: New file.
38331         * sysdeps/nios2/Subdirs: New file.
38332         * sysdeps/nios2/Versions: New file.
38333         * sysdeps/nios2/__longjmp.S: New file.
38334         * sysdeps/nios2/abort-instr.h: New file.
38335         * sysdeps/nios2/backtrace.c: New file.
38336         * sysdeps/nios2/bits/endian.h: New file.
38337         * sysdeps/nios2/bits/fenv.h: New file.
38338         * sysdeps/nios2/bits/link.h: New file.
38339         * sysdeps/nios2/bits/setjmp.h: New file.
38340         * sysdeps/nios2/bsd-_setjmp.S: New file.
38341         * sysdeps/nios2/bsd-setjmp.S: New file.
38342         * sysdeps/nios2/configure: New generated file.
38343         * sysdeps/nios2/configure.ac: New file.
38344         * sysdeps/nios2/crti.S: New file.
38345         * sysdeps/nios2/crtn.S: New file.
38346         * sysdeps/nios2/dl-init.c: New file.
38347         * sysdeps/nios2/dl-machine.h: New file.
38348         * sysdeps/nios2/dl-sysdep.h: New file.
38349         * sysdeps/nios2/dl-tls.h: New file.
38350         * sysdeps/nios2/dl-trampoline.S: New file.
38351         * sysdeps/nios2/gccframe.h: New file.
38352         * sysdeps/nios2/gmp-mparam.h: New file.
38353         * sysdeps/nios2/jmpbuf-offsets.h: New file.
38354         * sysdeps/nios2/jmpbuf-unwind.h: New file.
38355         * sysdeps/nios2/ldsodefs.h: New file.
38356         * sysdeps/nios2/libc-tls.c: New file.
38357         * sysdeps/nios2/libm-test-ulps: New file.
38358         * sysdeps/nios2/machine-gmon.h: New file.
38359         * sysdeps/nios2/math-tests.h: New file.
38360         * sysdeps/nios2/math_private.h: New file.
38361         * sysdeps/nios2/memusage.h: New file.
38362         * sysdeps/nios2/nptl/Makefile: New file.
38363         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
38364         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
38365         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
38366         * sysdeps/nios2/nptl/pthreaddef.h: New file.
38367         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
38368         * sysdeps/nios2/nptl/tls.h: New file.
38369         * sysdeps/nios2/preconfigure: New file.
38370         * sysdeps/nios2/s_fma.c: New file.
38371         * sysdeps/nios2/s_fmaf.c: New file.
38372         * sysdeps/nios2/setjmp.S: New file.
38373         * sysdeps/nios2/sfp-machine.h: New file.
38374         * sysdeps/nios2/sotruss-lib.c: New file.
38375         * sysdeps/nios2/stackguard-macros.h: New file.
38376         * sysdeps/nios2/stackinfo.h: New file.
38377         * sysdeps/nios2/start.S: New file.
38378         * sysdeps/nios2/sysdep.h: New file.
38379         * sysdeps/nios2/tls-macros.h: New file.
38380         * sysdeps/nios2/tst-audit.h: New file.
38381         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
38382         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
38383         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
38384         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
38385         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
38386         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
38387         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
38388         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
38389         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
38390         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
38391         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
38392         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
38393         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
38394         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
38395         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
38396         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
38397         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
38398         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
38399         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
38400         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
38401         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
38402         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
38403         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
38404         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
38405         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
38406         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
38407         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
38408         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
38409         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
38410         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
38411         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
38412         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
38413         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
38414         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
38415         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
38416         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
38417         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
38418         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
38419         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
38420         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
38421         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
38422         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
38423         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
38424         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
38425
38426 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
38427
38428         [BZ #17844]
38429         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
38430         (getutent): Use weak_alias in non SHARED case
38431         and default_symbol_version in SHARED case.
38432         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
38433         (getutent_r, pututline): Likewise.
38434         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
38435         (getutid): Likewise.
38436         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
38437         (getutid_r): Likewise.
38438         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
38439         (getutline): Likewise.
38440         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
38441         (getutline_r): Likewise.
38442         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
38443         (updwtmp): Likewise.
38444
38445 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
38446
38447         [BZ #17848]
38448         * sysdeps/s390/s390-32/memcmp.S
38449         (memcmp_g5): Rename to __memcmp_g5.
38450         * sysdeps/s390/s390-32/memcpy.S
38451         (memcpy_g5): Rename to __memcpy_g5.
38452         Jump to __memcpy_mvcle instead of memcpy_mvcle.
38453         (memcpy_mvcle) Rename to __memcpy_mvcle.
38454         * sysdeps/s390/s390-32/memset.S
38455         (memset_g5): Rename to __memset_g5.
38456         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
38457         (IFUNC_RESOLVE): Prefix ifunc-resolve function
38458         and use prefixed functions.
38459         * sysdeps/s390/s390-32/multiarch/memcmp.S
38460         (memcmp_z196): Rename to __memcmp_z196.
38461         (memcmp_z10): Rename to __memcmp_z10.
38462         (memcmp): Set alias to __memcmp_g5.
38463         (bcmp): Set alias to __memcmp_g5.
38464         * sysdeps/s390/s390-32/multiarch/memcpy.S
38465         (memcpy_z196): Rename to __memcpy_z196.
38466         Jump to __memcpy_mvcle instead of memcpy_mvcle.
38467         (memcpy_z10): Rename to __memcpy_z10.
38468         Jump to __memcpy_mvcle instead of memcpy_mvcle.
38469         (memcpy): Set alias to __memcpy_g5.
38470         * sysdeps/s390/s390-32/multiarch/memset.S
38471         (memset_z196): Rename to __memset_z196.
38472         Jump to __memset_mvcle instead of memset_mvcle.
38473         (memset_z10): Rename to __memset_z10.
38474         Jump to __memset_mvcle instead of memset_mvcle.
38475         (memset_mvcle) Rename to __memset_mvcle.
38476         (memset): Set alias to __memset_g5.
38477         * sysdeps/s390/s390-64/memcmp.S
38478         (memcmp_z900): Rename to __memcmp_z900.
38479         * sysdeps/s390/s390-64/memcpy.S
38480         (memcpy_z900): Rename to __memcpy_z900.
38481         Jump to __memcpy_mvcle instead of memcpy_mvcle.
38482         (memcpy_mvcle) Rename to __memcpy_mvcle.
38483         * sysdeps/s390/s390-64/memset.S
38484         (memset_z900): Rename to __memset_z900.
38485         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
38486         (IFUNC_RESOLVE): Prefix ifunc-resolve function
38487         and use prefixed functions.
38488         * sysdeps/s390/s390-64/multiarch/memcmp.S
38489         (memcmp_z196): Rename to __memcmp_z196.
38490         (memcmp_z10): Rename to __memcmp_z10.
38491         (memcmp): Set alias to __memcmp_z900.
38492         (bcmp): Set alias to __memcmp_z900.
38493         * sysdeps/s390/s390-64/multiarch/memcpy.S
38494         (memcpy_z196): Rename to __memcpy_z196.
38495         Jump to __memcpy_mvcle instead of memcpy_mvcle.
38496         (memcpy_z10): Rename to __memcpy_z10.
38497         Jump to __memcpy_mvcle instead of memcpy_mvcle.
38498         (memcpy): Set alias to __memcpy_z900.
38499         * sysdeps/s390/s390-64/multiarch/memset.S
38500         (memset_z196): Rename to __memset_z196.
38501         Jump to __memset_mvcle instead of memset_mvcle.
38502         (memset_z10): Rename to __memset_z10.
38503         Jump to __memset_mvcle instead of memset_mvcle.
38504         (memset_mvcle) Rename to __memset_mvcle.
38505         (memset): Set alias to __memset_z900.
38506
38507 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
38508
38509         [BZ #17748]
38510         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
38511         __fesetenv instead of fesetenv.
38512
38513 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
38514
38515         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
38516         macro.
38517
38518 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38519
38520         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
38521         regression on LE.
38522
38523         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
38524         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
38525         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
38526         strncmp-power8 object.
38527         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38528         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
38529         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
38530         * NEWS: Update.
38531
38532 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
38533             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38534
38535         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
38536         trailing byte check.
38537
38538 2015-01-13  David S. Miller  <davem@davemloft.net>
38539
38540         * include/signal.h (__sigreturn): Guard with __USE_MISC.
38541
38542 2015-01-13  Roland McGrath  <roland@hack.frob.com>
38543
38544         * login/logout.c (logout): Use memset rather than bzero.
38545         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
38546         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
38547         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
38548         (_gethtbyaddr): Likewise.
38549         * locale/programs/simple-hash.c (bcopy): Macro removed.
38550
38551 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38552
38553         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
38554         Add strcmp-power8 object.
38555         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38556         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
38557         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
38558         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
38559         __strcmp_power8 implementation.
38560         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
38561         * NEWS: Update.
38562
38563         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
38564         Add strncpy-power8 and stpncpy-power8 objects.
38565         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38566         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
38567         implementations.
38568         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
38569         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
38570         __stpncpy_power8 implementation.
38571         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
38572         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
38573         __strncpy_power8 implementation.
38574         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
38575         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
38576         * NEWS: Update.
38577
38578         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
38579         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
38580         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
38581
38582         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
38583         strncat-power8 object.
38584         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
38585         __strcat_power8 implementation.
38586         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38587         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
38588         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
38589         optimized strcat for power8.
38590
38591         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
38592         strcpy-power8 and stpcpy-power8 objects.
38593         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38594         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
38595         implementations.
38596         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
38597         multiarch stpcpy implementation for POWER8.
38598         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
38599         multiarch strcpy implementation for POWER8.
38600         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
38601         __strcpy_power8 function.
38602         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
38603         stpcpy for POWER8.
38604         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
38605         strcpy for POWER8.
38606         * NEWS: Update.
38607
38608 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
38609
38610         [BZ #16009]
38611         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
38612         weights and rules. Use do_xfrm_cached if data fits in cache,
38613         do_xfrm otherwise.  Moved former main loop to...
38614         * (do_xfrm_cached): New function.
38615         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
38616         find_idx, find_position and stack_push.
38617         * (find_idx): New function.
38618         * (find_position): Likewise.
38619         * localedata/sort-test.sh: Added test run for do_xfrm.
38620         * localedata/xfrm-test.c (main): Added command line option
38621         -nocache to run the test with strings that are too large for
38622         the STRXFRM cache.
38623
38624 2015-01-13  Torvald Riegel  <triegel@redhat.com>
38625
38626         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
38627         variable to lll_futex_wake call, not the value itself.
38628
38629 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
38630
38631         [BZ #17803]
38632         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
38633         twom64.  Adjust value to 0x1p-64L.
38634         (__scalblnl): Only return standard underflowing result for K <=
38635         -64 not K <= -63; adjust exponent for underflowing result by 64
38636         not 63.
38637         * math/libm-test.inc (scalbn_test_data): Add more tests.
38638         (scalbln_test_data): Likewise.
38639
38640         [BZ #17834]
38641         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
38642         0x1p63L.
38643         (__scalblnl): Get new exponent of adjusted subnormal value from ES
38644         not HX.
38645         * math/libm-test.inc (scalbn_test_data): Add more tests.
38646         (scalbln_test_data): Likewise.
38647
38648 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38649             Stefani Seibold  <stefani@seibold.net>
38650
38651         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
38652         (sysdep_routines): Add dl-vdso here, ...
38653         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
38654         (sysdep_routines): ... not here.
38655         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
38656         fallback when vDSO is not presented.
38657         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
38658         Define with libc_hidden_proto/libc_hidden_data_def definitions.
38659         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
38660         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
38661         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
38662         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
38663         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
38664         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
38665         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
38666         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
38667         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
38668         fallback configurable symbol when vDSO is not available.
38669         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
38670         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
38671         be able to redefine fallback symbol when vDSO is not available.
38672         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
38673         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
38674
38675 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38676
38677         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
38678         (TLS_INIT_TP): Add tm_capable initialization.
38679         (TLS_DEFINE_INIT_TP): Likewise.
38680         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
38681         TCB.
38682         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
38683         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
38684         calculation.
38685         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
38686         transactoion is lock elision is built and TCB tm_capable is set.
38687         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
38688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
38689         (INTERNAL_SYSCALL_NCS): Likewise.
38690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
38691         (INTERNAL_SYSCALL_NCS): Likewise.
38692         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
38693
38694         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
38695         for powerpc.
38696         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
38697         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
38698         and remove it for 32 bits case.
38699         [pthread_rwlock_t] (__rwelision): New field for lock elision.
38700         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
38701         initialization.
38702         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
38703         Disable lock elision with rdlocks if elision is not available.
38704
38705         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
38706         (sysdep_routines): Add lock elision objects.
38707         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
38708         [pthread_mutex_t] (__spins): Rework to add lock elision field.
38709         [pthread_mutex_t] (__elision): Add field.
38710         [__PTHREAD_SPINS]: Adjust to init lock elision field.
38711         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
38712         elision definitions for powerpc.
38713         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
38714         implementation of lock elision for powerpc.
38715         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
38716         implementation of timed lock elision for powerpc.
38717         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
38718         implementation of trylock with lock elision for powerpc.
38719         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
38720         implementaion of unlock for lock elision for powerpc.
38721         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
38722         automatic enable lock elision for mutexes.
38723         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
38724         transaction execution definitions for powerpc.
38725         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
38726         definitions.
38727         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
38728         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
38729         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
38730         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
38731         * NEWS: Update.
38732
38733 2015-01-09  Roland McGrath  <roland@hack.frob.com>
38734
38735         * sysdeps/posix/shm-directory.c: Use <> rather than ""
38736         for #include of <shm-directory.h>.
38737
38738 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
38739
38740         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
38741         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
38742
38743 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
38744
38745         [BZ #17791]
38746         * NEWS: Mention bug fix.
38747         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
38748         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
38749         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
38750
38751 2015-01-09  Torvald Riegel <triegel@redhat.com>
38752
38753         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
38754
38755 2015-01-09  Torvald Riegel <triegel@redhat.com>
38756
38757         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
38758
38759 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
38760
38761         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
38762         pointer and cast to uintptr_t.
38763
38764 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
38765
38766         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
38767         removed.
38768         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
38769
38770 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
38771
38772         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
38773         of 0.
38774
38775 2015-01-08  Roland McGrath  <roland@hack.frob.com>
38776
38777         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
38778         <nptl/pthreadP.h> instead.
38779         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
38780
38781         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
38782         already defined.
38783         [__SIGRTMIN] (init): Function removed.
38784         [__SIGRTMIN] (initialized): Variable removed.
38785         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
38786         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
38787         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
38788         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
38789         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
38790         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
38791         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
38792         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
38793         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
38794         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
38795         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
38796         * sysdeps/nptl/allocrtsig.c: New file.
38797         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
38798         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
38799         * sysdeps/generic/testrtsig.h: File removed.
38800
38801         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
38802         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
38803
38804         * nptl/nptl-init.c (pthread_functions): Conditionalize
38805         .ptr__nptl_setxid initialization on [SIGSETXID].
38806
38807         * sysdeps/nptl/sys/procfs.h: New file.
38808         * nptl_db/Makefile (headers): Add it.
38809         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
38810
38811         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
38812         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
38813         * nptl/pthread_attr_setaffinity.c: Include it.
38814         * nptl/pthread_setattr_default_np.c: Likewise.
38815         * nptl/check-cpuset.h: New file.
38816
38817 2015-01-08  Richard Henderson  <rth@redhat.com>
38818
38819         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
38820         (CFLAGS-tst-execstack-prog.c): Likewise.
38821         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
38822
38823 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
38824             Sandra Loosemore  <sandra@codesourcery.com>
38825             Andrew Jenner  <andrew@codesourcery.com>
38826             Joseph Myers  <joseph@codesourcery.com>
38827             Nathan Sidwell  <nathan@codesourcery.com>
38828
38829         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
38830         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
38831         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
38832         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
38833         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
38834         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
38835         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
38836         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
38837         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
38838         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
38839         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
38840         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
38841         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
38842         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
38843         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
38844         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
38845         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
38846
38847 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38848
38849         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
38850         timespec struct member in syscall macro.
38851         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
38852         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
38853         first timeval struct member in syscall macro.
38854         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
38855
38856 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
38857
38858         [BZ #17748]
38859         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
38860         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
38861         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
38862         __feupdateenv and define as weak alias of __feupdateenv.  Use
38863         libm_hidden_weak.
38864         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
38865         libm_hidden_def.
38866         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
38867         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
38868         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
38869         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
38870         libm_hidden_def.
38871         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
38872         __feupdateenv and define as weak alias of __feupdateenv.  Use
38873         libm_hidden_weak.
38874         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
38875         libm_hidden_def.
38876         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
38877         __feupdateenv and define as weak alias of __feupdateenv.  Use
38878         libm_hidden_weak.
38879         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
38880         libm_hidden_def.
38881         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
38882         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
38883         (__feupdateenv): Likewise.
38884         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
38885         __feupdateenv and define as weak alias of __feupdateenv.  Use
38886         libm_hidden_weak.
38887         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
38888         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
38889         libm_hidden_def.
38890         * sysdeps/tile/math_private.h (__feupdateenv): New inline
38891         function.
38892         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
38893         libm_hidden_def.
38894         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
38895         __feupdateenv instead of feupdateenv.
38896         (default_libc_feupdateenv_test): Likewise.
38897         (libc_feresetround_ctx): Likewise.
38898
38899 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38900
38901         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
38902         prototype.
38903
38904 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
38905
38906         * posix/regcomp.c (parse_bracket_exp): Initialize type to
38907         COLL_SYM in a couple of places to avoid uninitialized variable
38908         wanings on tilegx gcc 4.8.2.
38909
38910 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
38911
38912         * sysdeps/aarch64/strcpy.S: New file.
38913         * sysdeps/aarch64/stpcpy.S: New file.
38914         * NEWS: Updated.
38915
38916 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
38917
38918         * sysdeps/aarch64/strrchr.S: New file.
38919         * NEWS: Updated.
38920
38921 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
38922
38923         [BZ #17658]
38924         * stdlib/setenv.c: Fix memory leak when setting large,
38925         duplicate string.
38926
38927 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
38928
38929         [BZ #17273]
38930         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
38931         and tabs from buffer before parsing fstab entry.
38932         * misc/tst-mntent.c (main): Add test for mount entry with
38933         trailing spaces and tabs.
38934
38935 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
38936
38937         [BZ #17748]
38938         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
38939         * math/fesetround.c (fesetround): Rename to __fesetround and
38940         define as weak alias of __fesetround.  Use libm_hidden_weak.
38941         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
38942         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
38943         * sysdeps/arm/fesetround.c (fesetround): Likewise.
38944         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
38945         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
38946         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
38947         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
38948         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
38949         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
38950         __fesetround_inline.
38951         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
38952         __fesetround_inline instead of __fesetround.
38953         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
38954         __fesetround and define as weak alias of __fesetround.  Use
38955         libm_hidden_weak.  Call __fesetround_inline instead of
38956         __fesetround.
38957         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
38958         __fesetround and define as weak alias of __fesetround.  Use
38959         libm_hidden_weak.
38960         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
38961         Likewise.
38962         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
38963         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
38964         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
38965         * sysdeps/tile/math_private.h (__fesetround): New inline function.
38966         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
38967         __fesetround and define as weak alias of __fesetround.  Use
38968         libm_hidden_weak.
38969         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
38970         __fesetround instead of fesetround.
38971         (default_libc_feholdexcept_setround): Likewise.
38972         (libc_feholdsetround_ctx): Likewise.
38973         (libc_feholdsetround_noex_ctx): Likewise.
38974
38975         [BZ #17748]
38976         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
38977         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
38978         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
38979         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
38980         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
38981         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
38982         define as weak alias of __fesetenv.  Use libm_hidden_weak.
38983         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
38984         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
38985         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
38986         define as weak alias of __fesetenv.  Use libm_hidden_weak.
38987         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
38988         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
38989         define as weak alias of __fesetenv.  Use libm_hidden_weak.
38990         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
38991         libm_hidden_def.
38992         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
38993         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
38994         Likewise.
38995         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
38996         define as weak alias of __fesetenv.  Use libm_hidden_weak.
38997         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
38998         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
38999         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
39000         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
39001         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
39002         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
39003         __fesetenv instead of fesetenv.
39004         (libc_feresetround_noex_ctx): Likewise.
39005         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
39006         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
39007         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
39008         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
39009         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
39010         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
39011         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
39012         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
39013         (__feupdateenv): Likewise.
39014         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
39015         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
39016         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
39017         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
39018
39019 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
39020
39021         [BZ #17806]
39022         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
39023         addresses have been freed.
39024
39025 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
39026
39027         * resolv/res_init.c (__res_vinit): Improve comments about nserv
39028         and nservall.
39029
39030 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
39031
39032         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
39033         Clean up check_pf allocation pattern. addresses
39034
39035 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39036
39037         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
39038         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
39039         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
39040         * nptl/pthread_exit.c (__pthread_exit): Likewise.
39041         * nptl/pthread_join.c (pthread_join): Likewise.
39042         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
39043         * sysdeps/posix/waitid.c (__waitid): Likewise.
39044         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
39045         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
39046         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
39047         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
39048         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
39049         Likewise.
39050         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
39051         (__libc_pread64): Likewise.
39052         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
39053         (__libc_pwrite): Likewise.
39054         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
39055         (__libc_pwrite64): Likewsie.
39056         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
39057         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
39058         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
39059         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
39060         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
39061         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
39062         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
39063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
39064         Likewise.
39065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
39066         (__libc_pread64): Likewise.
39067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
39068         Likewise.
39069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
39070         (__libc_pwrite64): Likewise.
39071         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
39072         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
39073         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
39074         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
39075         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
39076         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
39077         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
39078         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
39079         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
39080         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
39081         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
39082         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
39083         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
39084         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
39085         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
39086         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
39087         Likewise.
39088
39089 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
39090
39091         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
39092         (CFLAGS-test-double.c): Likewise.
39093         (CFLAGS-test-ldouble.c): Likewise.
39094         (CPPFLAGS-test-ifloat.c): Likewise.
39095         (CPPFLAGS-test-idouble.c): Likewise.
39096         (CPPFLAGS-test-ildoubl.c): Likewise.
39097         (CFLAGS-test-test-fenv.c): Remove variable.
39098         (CFLAGS-test-misc.c): Likewise.
39099
39100 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
39101
39102         [BZ #17797]
39103         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
39104         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
39105         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
39106         CLOCKS_PER_SEC == 1000000.
39107         * time/clocktest.c (main): Replace %ld with %jd and cast to
39108         intmax_t.
39109
39110 2015-01-05  Roland McGrath  <roland@hack.frob.com>
39111
39112         * sysdeps/generic/unwind-resume.h: New file.
39113         * sysdeps/gnu/unwind-resume.c: Include it.
39114         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
39115         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
39116         argument list.
39117         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
39118         global rather than static.
39119         (_Unwind_Resume): Update user.
39120         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
39121         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
39122         rather than static.  Add __attribute__ ((cold)).
39123         (_Unwind_Resume, __gcc_personality_v0): Update callers.
39124         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
39125         * sysdeps/arm/arm-unwind-resume.S: New file.
39126         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
39127         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
39128         * sysdeps/arm/Makefile [$(subdir) = csu]
39129         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
39130         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
39131         Add rt-arm-unwind-resume.
39132         [$(subdir) = nptl]
39133         (libpthread-sysdep_routines, libpthread-shared-only-routines):
39134         Add pt-arm-unwind-resume.
39135         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
39136         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
39137
39138 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
39139
39140         [BZ #17748]
39141         * include/fenv.h (__feholdexcept): Declare.  Use
39142         libm_hidden_proto.
39143         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
39144         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
39145         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
39146         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
39147         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
39148         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
39149         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
39150         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
39151         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
39152         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
39153         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
39154         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
39155         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
39156         (feholdexcept): Likewise.
39157         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
39158         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
39159         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
39160         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
39161         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
39162         __feholdexcept instead of feholdexcept.
39163         (default_libc_feholdexcept_setround): Likewise.
39164
39165 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
39166
39167         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
39168         to avoid using stl/str to align destination.
39169
39170 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
39171
39172         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
39173
39174 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
39175
39176         [BZ #17796]
39177         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
39178         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
39179         Define as weak alias not strong alias.
39180
39181 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
39182
39183         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
39184         bltzal with addiupc.
39185         (RTLD_START): Ditto.
39186
39187 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
39188
39189         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
39190         for __vdso_* functions in declarations.
39191         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
39192         definitions.
39193         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
39194         INTERNAL_VSYSCALL): Use struct return types to check for error.
39195
39196         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
39197         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
39198         function with cast from llround().
39199         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
39200         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
39201         Define.
39202
39203 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
39204
39205         [BZ #17793]
39206         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
39207         Define as weak alias not strong alias.
39208
39209         [BZ #17635]
39210         * ctype/ctype-c99.c: New file.  isblank implementation moved from
39211         ...
39212         * ctype/ctype-extn.c: ... here.
39213         (__isblank_l): Move to ...
39214         * ctype/ctype-c99_l.c: ... here.  New file.
39215         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
39216         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
39217         Remove variable.
39218         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
39219         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
39220         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
39221         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
39222         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
39223
39224         [BZ #17777]
39225         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
39226         (posix_fadvise64): Define as weak alias not strong alias.
39227         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
39228         (posix_fallocate64): Likewise.
39229         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
39230         Remove variable.
39231         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
39232         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
39233         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
39234         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
39235         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
39236
39237 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
39238
39239         [BZ #16191]
39240         * NEWS: Mention bug fix.
39241         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
39242         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
39243         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
39244         (HOST_STACK_END_ADDR): Likewise.
39245
39246 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
39247
39248         [BZ #17748]
39249         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
39250         * math/fegetround.c (fegetround): Rename to __fegetround and
39251         define as weak alias of __fegetround.  Use libm_hidden_weak.
39252         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
39253         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
39254         * sysdeps/arm/fegetround.c (fegetround): Likewise.
39255         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
39256         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
39257         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
39258         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
39259         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
39260         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
39261         Undefine after rather than before function definition; use
39262         parentheses around function name in definition.
39263         (__fegetround): Also undefine macro after function definition.
39264         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
39265         __fegetround and define as weak alias of __fegetround.  Use
39266         libm_hidden_weak.  Do not undefine as macro.
39267         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
39268         Likewise.
39269         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
39270         __fegetround and define as weak alias of __fegetround.  Use
39271         libm_hidden_weak.
39272         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
39273         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
39274         * sysdeps/tile/math_private.h (__fegetround): New inline function.
39275         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
39276         __fegetround and define as weak alias of __fegetround.  Use
39277         libm_hidden_weak.
39278         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
39279         __fegetround instead of fegetround.
39280
39281         [BZ #17782]
39282         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
39283         Condition macro definition on [__USE_MISC].
39284
39285         [BZ #17781]
39286         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
39287         (struct sigaction): Change type of sa_flags field to int.
39288
39289         [BZ #17780]
39290         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
39291         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
39292         __glibc_reserved0.
39293
39294         * nptl/version.c (banner): Use single year in copyright notice.
39295
39296         * NEWS: Update copyright dates.
39297         * catgets/gencat.c (print_version): Likewise.
39298         * csu/version.c (banner): Likewise.
39299         * debug/catchsegv.sh: Likewise.
39300         * debug/pcprofiledump.c (print_version): Likewise.
39301         * debug/xtrace.sh (do_version): Likewise.
39302         * elf/ldconfig.c (print_version): Likewise.
39303         * elf/ldd.bash.in: Likewise.
39304         * elf/pldd.c (print_version): Likewise.
39305         * elf/sotruss.sh: Likewise.
39306         * elf/sprof.c (print_version): Likewise.
39307         * iconv/iconv_prog.c (print_version): Likewise.
39308         * iconv/iconvconfig.c (print_version): Likewise.
39309         * locale/programs/locale.c (print_version): Likewise.
39310         * locale/programs/localedef.c (print_version): Likewise.
39311         * login/programs/pt_chown.c (print_version): Likewise.
39312         * malloc/memusage.sh (do_version): Likewise.
39313         * malloc/memusagestat.c (print_version): Likewise.
39314         * malloc/mtrace.pl: Likewise.
39315         * manual/libc.texinfo: Likewise.
39316         * nptl/version.c (banner): Likewise.
39317         * nscd/nscd.c (print_version): Likewise.
39318         * nss/getent.c (print_version): Likewise.
39319         * nss/makedb.c (print_version): Likewise.
39320         * posix/getconf.c (main): Likewise.
39321         * scripts/test-installation.pl: Likewise.
39322         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
39323
39324 2015-01-02  Will Newton  <will.newton@linaro.org>
39325
39326         * sysdeps/arm/armv7/configure: Removed.
39327         * sysdeps/arm/armv7/configure.ac: Likewise.
39328
39329 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
39330
39331         * All files with FSF copyright notices: Update copyright dates
39332         using scripts/update-copyrights.
39333         * intl/plural.c: Regenerated.
39334         * locale/programs/charmap-kw.h: Likewise.
39335         * locale/programs/locfile-kw.h: Likewise.
39336
39337 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39338
39339         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
39340
39341 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
39342
39343         [BZ #17748]
39344         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
39345         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
39346         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
39347         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
39348         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
39349         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
39350         define as weak alias of __fegetenv.  Use libm_hidden_weak.
39351         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
39352         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
39353         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
39354         define as weak alias of __fegetenv.  Use libm_hidden_weak.
39355         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
39356         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
39357         define as weak alias of __fegetenv.  Use libm_hidden_weak.
39358         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
39359         libm_hidden_def.
39360         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
39361         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
39362         Likewise.
39363         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
39364         define as weak alias of __fegetenv.  Use libm_hidden_weak.
39365         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
39366         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
39367         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
39368         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
39369         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
39370         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
39371         __fegetenv instead of fegetenv.
39372         (libc_feholdsetround_noex_ctx): Likewise.
39373
39374 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
39375
39376         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
39377         (Elf_MIPS_ABIFlags_v0): New structure.
39378         (EF_MIPS_FP64): Define.
39379         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
39380         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
39381         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
39382         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
39383         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
39384         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
39385         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
39386         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
39387         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
39388         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
39389         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
39390         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
39391         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
39392         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
39393         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
39394         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
39395         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
39396         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
39397         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
39398         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
39399         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
39400         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
39401         field.
39402         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
39403         EF_MIPS_FP64.
39404         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
39405         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
39406         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
39407         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
39408         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
39409         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
39410         * sysdeps/mips/tst-abi-interlink.c: Likewise.
39411         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
39412         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
39413         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
39414         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
39415         record the current FP ABI extension.
39416         (mips-mode-switch): Define to show if kernel headers support mode
39417         switching.
39418         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
39419         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
39420         supported SYSV ABI version to 3.
39421         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
39422         feature.
39423
39424 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39425             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39426
39427         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
39428         path.
39429         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
39430
39431 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
39432
39433         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
39434         __fegetround and redefine to call __fegetround.  Remove condition
39435         on [!__NO_MATH_INLINES].
39436         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
39437         function.
39438         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
39439         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
39440         Remove macro.
39441         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
39442         instead of <fenv_libc.h>.
39443         (__llrintl): Call fegetround instead of __fegetround.
39444         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
39445         instead of <fenv_libc.h>.
39446         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39447         (__lrintl): Call fegetround instead of __fegetround.
39448         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
39449         instead of <fenv_libc.h>.
39450         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39451         (__rintl): Call fegetround instead of __fegetround.
39452
39453 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39454
39455         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
39456         arrays.
39457
39458 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
39459
39460         [BZ #17775]
39461         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
39462         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
39463         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
39464
39465 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
39466
39467         * sysdeps/i386/tls-macros.h: Include <features.h>.
39468         (TLS_LE): Use non-PIC version for GCC >= 5.0.
39469         (TLS_IE): Likewise.
39470         (TLS_LD): Likewise.
39471         (TLS_GD): Likewise.
39472         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
39473         define for GCC >= 5.0.
39474
39475 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
39476
39477         * math/test-fenv.c (test_single_exception, set_single_exc,
39478         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
39479         feexcp_mask_test, feenable_test, fe_single_test): Add
39480         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
39481         case where they are not used.
39482         * math/libm-test.inc: Likewise.
39483         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
39484         unused in the absence of FP rounding/exception support.
39485         * stdio-common/tst-printf-round.c: Likewise.
39486         * stdlib/tst-strtod-round.c: Likewise.
39487         * stdlib/tst-strtod-underflow.c: Likewise.
39488
39489 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
39490
39491         [BZ #17723]
39492         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
39493         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
39494         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
39495         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
39496         libm_hidden_weak.
39497         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
39498         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
39499         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
39500         libm_hidden_def.
39501         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
39502         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
39503         libm_hidden_weak.
39504         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
39505         Likewise.
39506         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
39507         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
39508         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
39509         libm_hidden_weak.
39510         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
39511         libm_hidden_def.
39512         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
39513         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
39514         (__feraiseexcept): Likewise.
39515         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
39516         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
39517         libm_hidden_weak.
39518         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
39519         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
39520         libm_hidden_def.
39521         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
39522         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
39523         Use libm_hidden_def.
39524         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
39525         libm_hidden_def.
39526         (feraiseexcept): Define as weak not strong alias.  Use
39527         libm_hidden_weak.
39528         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
39529         New inline function.  Factored out of ...
39530         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
39531         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
39532         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
39533         feraiseexcept.
39534         * math/w_acos.c (__acos): Likewise.
39535         * math/w_asin.c (__asin): Likewise.
39536         * math/w_ilogb.c (__ilogb): Likewise.
39537         * math/w_j0.c (y0): Likewise.
39538         * math/w_j1.c (y1): Likewise.
39539         * math/w_jn.c (yn): Likewise.
39540         * math/w_log.c (__log): Likewise.
39541         * math/w_log10.c (__log10): Likewise.
39542         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
39543         * sysdeps/aarch64/fpu/math_private.h
39544         (libc_feupdateenv_test_aarch64): Likewise.
39545         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
39546         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
39547         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
39548         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
39549         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
39550         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
39551         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
39552         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
39553         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
39554         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
39555
39556 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
39557
39558         [BZ #17732]
39559         * io/test-utime.c (main): Replace %ld with %jd and cast to
39560         intmax_t.
39561         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
39562         * nptl/tst-mutex5.c: Include <stdint.h>.
39563         (do_test): Replace %ld with %jd and cast to intmax_t.
39564         * posix/tst-regex.c (run_test): Likewise.
39565         (run_test_backwards): Likewise.
39566         * rt/tst-clock.c: Include <stdint.h>.
39567         (clock_test): Replace %ld with %jd and cast to intmax_t.
39568         * rt/tst-cpuclock1.c: Include <stdint.h>.
39569         (do_test): Replace %lu with %ju and cast to uintmax_t.
39570         * rt/tst-cpuclock2.c: Include <stdint.h>.
39571         (do_test): Replace %lu with %ju and cast to uintmax_t.
39572         * rt/tst-mqueue1.c: Include <stdint.h>.
39573         (check_attrs): Replace %ld with %jd and cast to intmax_t.
39574         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
39575         intmax_t.
39576         * rt/tst-mqueue4.c (do_test): Likewise.
39577         * rt/tst-timer4.c: Include <stdint.h>.
39578         (check_ts): Replace %ld with %jd and cast to intmax_t.
39579         (do_test): Likewise.
39580         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
39581         and cast to intmax_t.
39582         * sysdeps/pthread/tst-timer.c (main): Likewise.
39583         * time/clocktest.c (main): Likewise.
39584         * time/tst-posixtz.c (do_test): Likewise.
39585         * timezone/tst-timezone.c (main): Likewise.
39586
39587 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
39588             H.J. Lu  <hongjiu.lu@intel.com>
39589
39590         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
39591         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
39592         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
39593         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
39594         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
39595         version if bit_Fast_Unaligned_Load is set.
39596         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39597         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39598         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39599         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39600         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39601         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39602         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
39603         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
39604         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
39605         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
39606         to 4.
39607         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
39608         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
39609         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
39610         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
39611
39612 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
39613
39614         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
39615         instead of #if to avoid a Wundef warning.
39616         * stdlib/tst-limits.c (do_test): Likewise.
39617
39618         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
39619         parallel other exception macros.
39620         (fegetenv): Convert from macro to extern inline so that it applies
39621         retroactively to inline functions already seen by the compiler.
39622         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
39623
39624         * posix/Makefile (before-compile): Use $(objpfx) for
39625         posix-conf-vars-def.h.
39626
39627 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
39628
39629         * posix/getconf.c (main): Use size_t for type of I.
39630         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
39631         NSPEC.
39632
39633         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
39634         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
39635         * posix/posix-envs.def: Likewise.
39636         * sysdeps/posix/sysconf.c: Likewise.
39637         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
39638         (specs): Remove array.
39639         * scripts/gen-posix-conf-vars.awk: Support generation of specs
39640         array.
39641
39642         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
39643         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
39644         (__sysconf): Use CONF_IS_* macros.
39645
39646         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
39647         ($(objpfx)posix-conf-vars-def.h): New target.
39648         * posix/posix-conf-vars.list: New file.
39649         * posix/posix-conf-vars.h: New file.
39650         * posix/confstr.c: Include posix-conf-vars.h.
39651         (confstr): Use CONF_IS_* macros.
39652         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
39653         CONF_IS_* macros.
39654         * scripts/gen-posix-conf-vars.awk: New file.
39655
39656 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
39657
39658         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
39659         fegetround): Add no-op macros to avoid linknamespace issues.
39660
39661         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
39662         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
39663
39664         * sysdeps/unix/sysv/linux/tile/sysdep.h
39665         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
39666         assembly-specific section to avoid a redefinition warning.
39667
39668         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
39669         long before casting to pointer to avoid a cast warning.
39670
39671 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
39672
39673         * sysdeps/tile/tilegx/Implies: New file.
39674
39675 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
39676
39677         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
39678
39679 2014-12-23  Florian Weimer  <fweimer@redhat.com>
39680
39681         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
39682
39683 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
39684
39685         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
39686         not define.
39687         * sysdeps/unix/sysv/linux/utimes.c: Do not include
39688         <kernel-features.h>.
39689         (__utimes) [__NR_utimes]: Make code unconditional.
39690         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
39691         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39692         (__ASSUME_UTIMES): Do not undefine.
39693         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39694         (__ASSUME_UTIMES): Likewise.
39695         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
39696         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
39697         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
39698         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
39699
39700 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
39701
39702         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
39703
39704 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
39705
39706         [BZ #17747]
39707         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
39708         alias to weak alias for j0l, y0l.
39709         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
39710         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
39711
39712         [BZ #17746]
39713         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
39714         conversion.
39715
39716 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
39717
39718         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
39719         to zero if not already defined.
39720
39721 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
39722
39723         [BZ #17724]
39724         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
39725         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
39726         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
39727         (char *) casts added.
39728         * sysdeps/ieee754/k_standardf.c: New file.
39729         * sysdeps/ieee754/k_standardl.c: Likewise.
39730         * math/Makefile (libm-support): Remove k_standard.
39731         (libm-calls): Add k_standard.
39732
39733 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
39734
39735         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
39736         Optimize to avoid an unnecessary FPCR read.
39737
39738 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
39739
39740         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
39741         Optimize to reduce FPCR/FPSR accesses.
39742
39743 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
39744
39745         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
39746         Call libc_fetestexcept_aarch64.
39747
39748 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
39749
39750         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
39751         Call libc_fesetround_aarch64.
39752
39753 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
39754
39755         [BZ #17733]
39756         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
39757         (__bind): Do not define as weak alias.
39758         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
39759         define.
39760         (__getsockname): Do not define as weak alias.
39761
39762 2014-12-22  Will Newton  <will.newton@linaro.org>
39763
39764         * manual/install.texi: Document that we require bison 2.7
39765         or above.
39766         * INSTALL: Regenerate.
39767         * configure.ac: Use AC_CHECK_PROG_VER instead of
39768         AC_PATH_PROG when checking for bison and check for
39769         version 2.7 or above.
39770         * configure: Regenerate.
39771
39772 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
39773
39774         [BZ #17745]
39775         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
39776         * sysdeps/tile/ffsll.c (ffsll): To here.
39777
39778         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
39779
39780 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
39781
39782         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
39783         if not defined.
39784         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
39785         definition.
39786         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
39787         hidden ___tls_get_addr.
39788         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
39789         hidden __tls_get_addr.
39790         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
39791         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
39792         Likewise.
39793
39794 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
39795
39796         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
39797         _dl_init call.
39798
39799 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
39800
39801         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
39802         from "call _dl_init@PLT".
39803         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
39804
39805 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
39806
39807         * manual/search.texi: (Array Sort Function): Clarify stable sorting
39808         guarantees.
39809
39810 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
39811
39812         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
39813
39814 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
39815
39816         [BZ #17744]
39817         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
39818         strnlen.
39819
39820 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
39821
39822         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
39823         of multu on MIPSr6.
39824         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
39825         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
39826         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
39827         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
39828         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
39829
39830 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
39831
39832         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
39833         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
39834         (PTR_SUBU): Use subu for mips32r6/mips64r6.
39835         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
39836         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
39837         mips32r6/mips64r6.
39838         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
39839
39840 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
39841
39842         * string/strncat.c (STRNCAT): Simplify implementation.
39843
39844 2014-12-19  David S. Miller  <davem@davemloft.net>
39845
39846         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
39847         access the quad as both a long double and as a series of 4 words.
39848
39849         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
39850         link_map->l_info array access.
39851
39852 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
39853
39854         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
39855
39856         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
39857         * math/atest-exp2.c (TIMEOUT): Likewise.
39858         * math/atest-sincos.c (TIMEOUT): Likewise.
39859
39860 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
39861
39862         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
39863         -Wno-error with -fno-builtin-lround.
39864
39865 2014-12-19  Torvald Riegel  <triegel@redhat.com>
39866
39867         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
39868         Contains futex constants and functions moved over from ...
39869         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
39870         <lowlevellock-futex.h>.
39871         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
39872         (lll_timedwait_tid): Add comments and parentheses around macro
39873         arguments.
39874
39875 2014-12-19  Torvald Riegel  <triegel@redhat.com>
39876
39877         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
39878         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
39879         (__lll_private_flag): Remove.
39880         (lll_futex_wait): Likewise.
39881         (lll_futex_timed_wait): Likewise.
39882         (lll_futex_wake): Likewise.
39883         (lll_futex_requeue): Likewise.
39884         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
39885         (__lll_timedwait_tid): Spell out argument names.
39886         (lll_timedwait_tid): Add comments and parentheses around macro
39887         arguments.
39888         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
39889         LLL_SHARED and LLL_PRIVATE usable from assembly code.
39890
39891 2014-12-19  Torvald Riegel  <triegel@redhat.com>
39892
39893         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
39894         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
39895         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
39896         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
39897         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
39898         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
39899         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
39900         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
39901         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
39902         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
39903         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
39904         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
39905         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
39906         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
39907         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
39908         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
39909         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
39910         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
39911         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
39912
39913 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
39914
39915         * sysdeps/x86_64/x32/Makefile: New file.
39916
39917 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
39918
39919         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
39920         1L with (mp_limb_t) 1.
39921
39922 2014-12-17  Roland McGrath  <roland@hack.frob.com>
39923
39924         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
39925         * nptl/libc_pthread_init.c: ... here.
39926         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
39927         * nptl/register-atfork.c: ... here.
39928
39929         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
39930         Use pthread_sigmask rather than INTERNAL_SYSCALL.
39931         Use assert_perror to check its return value.
39932         (__gai_create_helper_thread): Likewise.
39933
39934         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
39935
39936         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
39937
39938 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
39939
39940         [BZ #17725]
39941         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
39942         __profil_counter.
39943         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
39944         Likewise.
39945         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
39946         Likewise.
39947         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
39948         Likewise.
39949         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
39950         (profil_counter): Likewise.
39951         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
39952         (profil_counter): Likewise.
39953         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
39954         Likewise.
39955         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
39956         Likewise.
39957         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
39958         (profil_counter): Likewise.
39959         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
39960         Likewise.
39961         [!__profil_counter] (profil_counter): Define as weak alias of
39962         __profil_counter.
39963         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
39964         (profil_counter): Rename to __profil_counter.
39965         [!__profil_counter] (profil_counter): Define as weak alias of
39966         __profil_counter.
39967         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
39968         (profil_counter): Rename to __profil_counter.
39969         [!__profil_counter] (profil_counter): Define as weak alias of
39970         __profil_counter.
39971         * sysdeps/posix/profil.c: Update comment referring to
39972         profil_counter.
39973         (__profil): Use __profil_counter instead of profil_counter.
39974         * sysdeps/posix/sprofil.c (profil_counter): Rename to
39975         __profil_counter.  Use __profil_counter_ushort and
39976         __profil_counter_uint in definitions.
39977         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
39978         instead of profil_counter_uint and profil_counter_ushort.
39979
39980         [BZ #17722]
39981         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
39982         define as weak alias of __inet_makeaddr.
39983         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
39984         as weak alias of __inet_addr.
39985         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
39986         as weak alias of __inet_pton.  Use libc_hidden_weak.
39987         * include/arpa/inet.h (__inet_pton): Declare.  Use
39988         libc_hidden_proto.
39989         (inet_makeaddr): Don't use libc_hidden_proto.
39990         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
39991         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
39992         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
39993         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
39994         Remove variable.
39995         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
39996         (test-xfail-POSIX/time.h/linknamespace): Likewise.
39997
39998 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
39999
40000         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
40001
40002 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
40003
40004         * stdio-common/bug-vfprintf-nargs.c (do_test):
40005         Cast value to intptr_t to avoid format warning
40006         for usage with PRIdPTR printing macro.
40007
40008 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
40009
40010         * libio/tst-widetext.c (do_test):
40011         Use format type %td instead of %Zd for ptrdiff_t
40012         in order to avoid format warning.
40013
40014 2014-12-17  Andreas Schwab  <schwab@suse.de>
40015
40016         * nscd/mem.c (gc): Add size_t cast to match printf format.
40017
40018 2014-12-16  Roland McGrath  <roland@hack.frob.com>
40019
40020         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
40021         (init): Apply PTR_MANGLE to pointers before storing them.
40022         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
40023         before using them.
40024
40025 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
40026
40027         [BZ #17719]
40028         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
40029         define as weak alias of __memrchr.
40030         (__memrchr): Do not define as strong alias of memrchr.
40031         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
40032         Remove variable.
40033         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
40034         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
40035         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
40036
40037         [BZ #17717]
40038         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
40039         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
40040         (if_indextoname): Rename to __if_indextoname and define as weak
40041         alias of __if_indextoname.  Use libc_hidden_weak.
40042         (if_freenameindex): Rename to __if_freenameindex and define as
40043         weak alias of __if_freenameindex.
40044         (if_nameindex): Rename to __if_nameindex and define as weak alias
40045         of __if_nameindex.
40046         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
40047         __if_nametoindex and define as weak alias of __if_nametoindex.
40048         Use libc_hidden_weak.
40049         (if_freenameindex): Rename to __if_freenameindex and define as
40050         weak alias of __if_freenameindex.
40051         (if_nameindex): Rename to __if_nameindex and define as weak alias
40052         of __if_nameindex.
40053         (if_indextoname): Rename to __if_indextoname and define as weak
40054         alias of __if_indextoname.  Use libc_hidden_weak.
40055         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
40056         __if_nametoindex and define as weak alias of __if_nametoindex.
40057         Use libc_hidden_weak.
40058         (if_freenameindex): Rename to __if_freenameindex and define as
40059         weak alias of __if_freenameindex.  Use libc_hidden_weak.
40060         (if_nameindex_netlink): Use __if_freenameindex instead of
40061         if_freenameindex.
40062         (if_nameindex): Rename to __if_nameindex and define as weak alias
40063         of __if_nameindex.  Use libc_hidden_weak.
40064         (if_indextoname): Rename to __if_indextoname and define as weak
40065         alias of __if_indextoname.  Use libc_hidden_weak.
40066         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
40067         libc_hidden_proto.
40068         [!_ISOMAC] (__if_freenameindex): Likewise.
40069         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
40070         if_nametoindex.
40071         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
40072         variable.
40073         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
40074         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
40075         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
40076         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
40077         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
40078         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
40079         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
40080
40081         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
40082         Remove variable.
40083         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
40084         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
40085
40086 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40087
40088         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
40089         subscript above bounds'
40090
40091         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
40092         bounds.
40093
40094 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
40095
40096         * libio/tst-fopenloc.c: Use test-skeleton.c.
40097
40098         * stdlib/tst-bsearch.c: Use test-skeleton.c.
40099         (entry): Rename to ITEM.
40100         (do_test, comp): Adjust.
40101
40102         * stdio-common/tst-fseek.c: Use test-skeleton.c.
40103
40104 2014-12-16  Torvald Riegel  <triegel@redhat.com>
40105
40106         * string/tester.c: Include <libc-internal.h>.
40107         (test_memset): Ignore -Wmemset-transposed-args.
40108
40109 2014-12-16  Torvald Riegel  <triegel@redhat.com>
40110
40111         * misc/tst-mntent2.c (do_test): Fix warning.
40112
40113 2014-12-16  Torvald Riegel  <triegel@redhat.com>
40114
40115         * elf/tst-unique4lib.cc(a): Mark as used.
40116
40117 2014-12-16  Florian Weimer  <fweimer@redhat.com>
40118
40119         [BZ #17630]
40120         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
40121         names.
40122
40123 2014-12-16  Allan McRae  <allan@archlinux.org>
40124
40125         * stdio-common/Makefile (tests): Re-add bug26.
40126
40127 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
40128
40129         [BZ #17657]
40130         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
40131         static array.
40132
40133 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
40134
40135         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
40136         (__lll_lock_wait): Likewise.
40137         (__lll_timedlock_wait): Likewise.
40138         (__lll_timedwait_tid): Likewise.
40139         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
40140         (__lll_robust_timedlock_wait): Likewise.
40141         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
40142         (lll_cond_trylock): Likewise.
40143         (__lll_lock): Likewise.
40144         (__lll_robust_lock): Likewise.
40145         (__lll_cond_lock): Likewise.
40146         (lll_robust_cond_lock): Likewise.
40147         (__lll_timedlock): Likewise.
40148         (__lll_robust_timedlock): Likewise.
40149         (__lll_unlock): Likewise.
40150         (__lll_robust_unlock): Likewise.
40151         (lll_wait_tid): Likewise.
40152         (lll_timedwait_tid): Likewise.
40153
40154 2014-12-15  Torvald Riegel  <triegel@redhat.com>
40155
40156         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
40157
40158 2014-12-15  Torvald Riegel  <triegel@redhat.com>
40159
40160         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
40161
40162 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
40163
40164         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
40165         * stdio-common/tst-sprintf.c: Likewise.
40166
40167 2014-12-15  Torvald Riegel  <triegel@redhat.com>
40168
40169         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
40170
40171 2014-12-15  Jeff Law  <law@redhat.com>
40172
40173         [BZ #16617]
40174         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
40175         on the heap.  (CVE-2012-3406)
40176         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
40177         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
40178         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
40179
40180 2014-12-15  Will Newton  <will.newton@linaro.org>
40181
40182         * manual/install.texi: Bump required version of texinfo
40183         to 4.7 from 4.5.
40184         * INSTALL: Regenerated.
40185         * configure.ac: Check for makeinfo version 4.7 and above.
40186         * configure: Regenerated.
40187
40188 2014-12-12  Roland McGrath  <roland@hack.frob.com>
40189
40190         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
40191         PREFIX, string constant to insert between directory and name.
40192         * sysdeps/posix/shm_open.c: Update caller.
40193         * sysdeps/posix/shm_unlink.c: Likewise.
40194         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
40195         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
40196         (SEM_SHM_PREFIX): New macro.
40197         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
40198         [$(have-thread-library) = no].
40199         * nptl/Makefile (libpthread-routines): Add shm-directory.
40200         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
40201         * sysdeps/nptl/shm-directory.h: New file.
40202         * sysdeps/posix/shm-directory.c
40203         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
40204         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
40205         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
40206         INTERNAL_SYSCALL.
40207         (__where_is_shmfs): Function removed.
40208         (mountpoint, defaultmount, defaultdir, __namedsem_once):
40209         Variables removed.
40210         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
40211         Use SHM_GET_NAME.
40212         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
40213
40214         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
40215         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
40216         unconditional for use inside libpthread.
40217         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
40218
40219 2014-12-12  Roland McGrath  <roland@hack.frob.com>
40220
40221         * nptl/pthread_getaffinity.c: New file.
40222         * nptl/pthread_setaffinity.c: New file.
40223         * nptl/pthread_getname.c: New file.
40224         * nptl/pthread_setname.c: New file.
40225
40226         * nptl/pthread_create.c (START_THREAD_DEFN)
40227         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
40228
40229 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
40230             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40231
40232         * resolv/res_send.c (send_vc): Disable warning resplen may
40233         be used uninitialized.
40234
40235 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
40236
40237         * nptl/tst-mutex6.c
40238         (ATTR_NULL): New define checks ATTR against NULL.
40239         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
40240         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
40241
40242 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
40243
40244         [BZ #17581]
40245         * malloc/hooks.c
40246         (mem2mem_check): Revert my previous change.
40247         (malloc_check_get_size): Revert my previous change.
40248         (mem2chunk_check): Revert my previous change.
40249
40250 2014-12-11  Roland McGrath  <roland@hack.frob.com>
40251
40252         * sysdeps/posix/shm-directory.c: New file.
40253         * sysdeps/posix/shm-directory.h: New file.
40254         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
40255         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
40256         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
40257         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
40258         Transmute EPERM to EACCES.
40259         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
40260         from ...
40261         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
40262         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
40263
40264 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40265
40266         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
40267         pointer and cast to uintptr_t.
40268         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
40269         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
40270         Add cast to avoid warning.
40271         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
40272
40273 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
40274
40275         * nptl/semaphore.h: Move to ...
40276         * sysdeps/pthread/semaphore.h: ... here.
40277         * Makefile (installed-headers): Change nptl/semaphore.h to
40278         sysdeps/pthread/semaphore.h.
40279
40280 2014-12-11  Roland McGrath  <roland@hack.frob.com>
40281
40282         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
40283         generated error format strings.
40284
40285         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
40286         -Wformat-extra-args warnings for scanf formats.
40287         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
40288         test of zero-length format (duh).
40289         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
40290         corner-case scanf format test.
40291         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
40292         generated fprintf format string.
40293         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
40294         corner-case sprintf format tests.
40295         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
40296         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
40297         -Wformat-extra-args warnings throughout.
40298         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
40299         (CFLAGS-scanf4.c): Likewise.
40300         (CFLAGS-scanf7.c): Likewise.
40301         (CFLAGS-tst-sprintf.c): Likewise.
40302         (CFLAGS-tst-printf.c): Likewise.
40303         (CFLAGS-tst-printfsz.c): Likewise.
40304
40305 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
40306
40307         * include/cpio.h: New file.
40308         * include/fmtmsg.h: Likewise.
40309
40310         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
40311         corresponding format argument to size_t.
40312         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
40313         arguments.
40314         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
40315         corresponding format argument to size_t.
40316         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
40317         arguments.
40318         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
40319         corresponding format argument to size_t.
40320         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
40321         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
40322         (CFLAGS-tst-mbswcs2.c): Likewise.
40323         (CFLAGS-tst-mbswcs3.c): Likewise.
40324         (CFLAGS-tst-mbswcs4.c): Likewise.
40325         (CFLAGS-tst-mbswcs5.c): Likewise.
40326         (CFLAGS-tst-trans.c): Likewise.
40327
40328 2014-12-11  Roland McGrath  <roland@hack.frob.com>
40329
40330         * posix/regexbug1.c (main): Use "%s" format with regerror results,
40331         rather than assuming they won't contain any '%'s.
40332
40333 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
40334
40335         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
40336         inhibit_loop_to_libcall to avoid recursive calls.
40337         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
40338         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
40339
40340 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
40341
40342         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
40343         prototype.
40344
40345 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
40346
40347         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
40348         integer value instead of boolean.
40349
40350 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
40351
40352         * malloc/malloc.c: Fix powerof2 check.
40353
40354 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40355
40356         * locale/programs/locfile.h (maybe_swap_uint32):
40357         Remove inline and add unused attribute.
40358
40359 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40360
40361         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
40362         Truncating assembler expression to a .long expression.
40363
40364 2014-12-11  Andreas Schwab  <schwab@suse.de>
40365
40366         * elf/rtld.c (struct map_args): Constify str member.
40367         (do_preload): Constify fname argument.
40368
40369 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40370
40371         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
40372         constants definition.
40373
40374 2014-12-11  Andreas Schwab  <schwab@suse.de>
40375
40376         [BZ #16657]
40377         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
40378         FORCE_ELISION instead of DO_ELISION.
40379         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
40380         Remove.
40381         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
40382         Likewise.
40383
40384         * iconvdata/gconv-modules: Remove duplicate entry.
40385
40386 2014-12-11  Will Newton  <will.newton@linaro.org>
40387
40388         Merge gettext 0.19.3 into intl/.
40389
40390         This involves a number of cosmetic changes to comments
40391         and ANSI function definitions and prototypes throughout
40392         all the files. The gettext copyright header is used but
40393         with the date ranges taken from the glibc copy.
40394
40395         * NEWS: Add gettext merge to 2.21.
40396         * intl/bindtextdom.c: Switch to gettext copyright.
40397         Use ANSI definitions and prototypes.
40398         Use gl_* locking primitives rather than __libc_* ones.
40399         Use __builtin_expect rather than __glibc_likely/unlikely.
40400         * intl/dcgettext.c: Switch to gettext copyright.
40401         Use ANSI definitions and prototypes.
40402         * intl/dcigettext.c: Switch to gettext copyright.
40403         Use ANSI definitions and prototypes.
40404         (INTDIV0_RAISES_SIGFPE): New define.
40405         Use gl_* locking primitives rather than __libc_* ones.
40406         Include eval-plural.h instead of plural-eval.c.
40407         Use __builtin_expect rather than __glibc_likely/unlikely.
40408         * intl/dcngettext.c: Switch to gettext copyright.
40409         Use ANSI definitions and prototypes.
40410         * intl/dgettext.c: Likewise.
40411         * intl/dngettext.c: Likewise.
40412         * intl/plural-eval.c: Renamed to...
40413         * intl/eval-plural.h: ...this.
40414         * intl/explodename.c: Switch to gettext copyright.
40415         Use ANSI definitions and prototypes.
40416         (_nl_explode_name): Use strchr instead of __rawmemchr.
40417         * intl/finddomain.c: Switch to gettext copyright.
40418         Use ANSI definitions and prototypes.
40419         Use gl_* locking primitives rather than __libc_* ones.
40420         (_nl_find_domain): Use malloc rather than alloca for
40421         allocation of temporary locale name.
40422         * intl/gettext.c: Switch to gettext copyright.
40423         Use ANSI definitions and prototypes.
40424         * intl/gettextP.h: Switch to gettext copyright.
40425         Use ANSI definitions and prototypes.
40426         Use gl_* locking primitives rather than __libc_* ones.
40427         * intl/gmo.h: Switch to gettext copyright.
40428         (struct sysdep_string): Move struct segment_pair outside of
40429         struct definition.
40430         * intl/hash-string.c: Use ANSI definitions and prototypes.
40431         * intl/hash-string.h: Switch to gettext copyright.
40432         Use ANSI definitions and prototypes.
40433         * intl/l10nflist.c: Switch to gettext copyright.
40434         Use ANSI definitions and prototypes.
40435         (_nl_normalize_codeset): Avoid integer overflow.
40436         * intl/loadinfo.h: Switch to gettext copyright.
40437         Use ANSI definitions and prototypes.
40438         (LIBINTL_DLL_EXPORTED): New define.
40439         (PATH_SEPARATOR): New define.
40440         * intl/loadmsgcat.c: Switch to gettext copyright.
40441         * intl/localealias.c: Switch to gettext copyright.
40442         Use ANSI definitions and prototypes.
40443         (_nl_expand_alias): Use PATH_SEPARATOR.
40444         * intl/ngettext.c: Switch to gettext copyright.
40445         Use ANSI definitions and prototypes.
40446         * intl/plural-exp.c: Likewise.
40447         * intl/plural-exp.h: Switch to gettext copyright.
40448         Use ANSI definitions and prototypes.
40449         (struct expression): Move definition of enum operator outside
40450         of struct definition.
40451         * intl/plural.c: Regenerate.
40452         * intl/plural.y: Switch to gettext copyright.
40453         Use ANSI definitions and prototypes.
40454         Port to bison 3.0.
40455         * intl/textdomain.c: Switch to gettext copyright.
40456         Use ANSI definitions and prototypes.
40457         Use gl_* locking primitives rather than __libc_* ones.
40458
40459 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
40460
40461         * debug/warning-nop.c: Add used atrribute.
40462
40463 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
40464
40465         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
40466
40467         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
40468         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
40469         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
40470
40471 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
40472             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40473
40474         [BZ #17634]
40475         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
40476         Undefine after defining function.  Define as weak alias of
40477         __wcschr.  Use libc_hidden_weak.
40478         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
40479         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
40480         (libc_hidden_def): Also define __GI___wcschr alias.
40481         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
40482         __wcschr and define as weak alias of __wcschr.
40483         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
40484         __wcschr.
40485         [!WCSCHR] (DEFAULT_WCSCHR): Define.
40486         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
40487         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
40488         libc_hidden_weak.  Do not use libc_hidden_def.
40489         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
40490         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
40491         __GI___wcschr alias.
40492         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
40493         [IS_IN (libc)] (wcschr): Define as macro expanding to
40494         __redirect_wcschr.
40495         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
40496         [IS_IN (libc)] (__wcschr_power6): Likewise.
40497         [IS_IN (libc)] (__wcschr_power7): Likewise.
40498         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
40499         instead of wcschr.
40500         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
40501         __libc_wcschr.
40502         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
40503         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
40504         __wcschr and define as weak alias of __wcschr.  Use
40505         libc_hidden_builtin_def.
40506         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
40507         as weak alias of __wcschr.  Use libc_hidden_weak.
40508         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
40509         wcschr.
40510         * time/era.c (_nl_init_era_entries): Likewise.
40511         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
40512         variable.
40513         (test-xfail-XPG3/time.h/linknamespace): Likewise.
40514         (test-xfail-XPG4/time.h/linknamespace): Likewise.
40515
40516 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
40517
40518         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
40519         format for long int variable.
40520
40521 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
40522
40523         [BZ #10672]
40524         * manual/search.texi: (Array Sort Function): Remove claim how to make
40525         qsort stable.
40526
40527 2014-12-10  Andreas Schwab  <schwab@suse.de>
40528
40529         [BZ #12847]
40530         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
40531         user-controlled locks.
40532
40533 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
40534
40535         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
40536         register.
40537
40538 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
40539
40540         * configure.ac (--disable-werror): New configure option.
40541         (enable_werror): New AC_SUBST.
40542         * configure: Regenerated.
40543         * config.make.in (enable-werror): New variable.
40544         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
40545         -Wno-error=undef.
40546         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
40547         * manual/install.texi (Configuring and compiling): Document
40548         --disable-werror.
40549         * INSTALL: Regenerated.
40550         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
40551         (CFLAGS-tst-chk2.c): Likewise.
40552         (CFLAGS-tst-chk3.c): Likewise.
40553         (CFLAGS-tst-chk4.cc): Likewise.
40554         (CFLAGS-tst-chk5.cc): Likewise.
40555         (CFLAGS-tst-chk6.cc): Likewise.
40556         (CFLAGS-tst-lfschk1.c): Likewise.
40557         (CFLAGS-tst-lfschk2.c): Likewise.
40558         (CFLAGS-tst-lfschk3.c): Likewise.
40559         (CFLAGS-tst-lfschk4.cc): Likewise.
40560         (CFLAGS-tst-lfschk5.cc): Likewise.
40561         (CFLAGS-tst-lfschk6.cc): Likewise.
40562
40563         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
40564         (main): Disable -Wdeprecated-declarations around calls to
40565         register_printf_function.
40566
40567         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
40568         (do_test): Disable -Wdiv-by-zero around some calls to
40569         fwrite_unlocked and fread_unlocked.
40570
40571         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
40572         (DIAG_POP_NEEDS_COMMENT): Likewise.
40573         (_DIAG_STR1): Likewise.
40574         (_DIAG_STR): Likewise.
40575         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
40576         * stdio-common/bug21.c: Include <libc-internal.h>.
40577         (do_test): Disable -Wformat around call to sscanf.
40578         * stdio-common/scanf14.c: Include <libc-internal.h>.
40579         (main): Disable -Wformat around some calls to scanf functions.
40580
40581 2014-12-09  Torvald Riegel  <triegel@redhat.com>
40582
40583         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
40584
40585 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40586
40587         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
40588         stack variable alignment.
40589
40590 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
40591
40592         [BZ #17682]
40593         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
40594         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
40595         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
40596         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
40597         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
40598         __getrlimit instead of getrlimit.
40599         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
40600         __gettimeofday instead of gettimeofday.
40601         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
40602         Likewise.
40603         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
40604         Likewise.
40605         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
40606         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
40607         Remove variable.
40608         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
40609         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
40610
40611 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40612
40613         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
40614         for wide-character tests.
40615
40616 2014-12-04  Roland McGrath  <roland@hack.frob.com>
40617
40618         * io/openat64.c: #include <libc-internal.h>
40619         (__openat64): Prototypify.  Use ignore_value on MODE.
40620         * io/openat.c: Likewise.
40621         * misc/reboot.c: #include <libc-internal.h>
40622         (reboot): Prototypify.  Use ignore_value on HOWTO.
40623         * misc/ptrace.c: #include <libc-internal.h>
40624         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
40625
40626 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
40627
40628         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
40629         XPG4, UNIX98 and XOPEN2K.
40630         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
40631         Remove variable.
40632         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
40633
40634 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40635
40636         * libio/fileops.c: Use ISO C style for function definitions.
40637         * libio/iofopen.c: Likewise.
40638         * libio/wfileops.c: Likewise.
40639
40640         [BZ #17653]
40641         * libio/fileops.c (_IO_new_file_underflow): Unset cached
40642         offset on EOF.
40643         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
40644         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
40645         (fgets_func): Function pointer to fgets and fgetws.
40646         (do_ftell_test): Add test to verify ftell value after read
40647         EOF.
40648         (do_test): Set fgets_func.
40649
40650         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
40651         O_TRUNC flag for w and w+ modes.
40652         (do_rewind_test): Likewise.
40653         (do_ftell_test): Likewise.
40654         (do_write_test): Likewise.
40655
40656         [BZ #17647]
40657         * libio/fileops.c (do_ftell): Seek only when there are
40658         unflushed writes.
40659         * libio/wfileops.c (do_ftell_wide): Likewise.
40660         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
40661         test case.
40662         (do_one_test): Call it.
40663
40664 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
40665
40666         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
40667         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
40668         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
40669         Remove variable.
40670         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
40671         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
40672         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
40673
40674 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
40675
40676         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
40677         Remove variable.
40678         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
40679
40680         [BZ #17668]
40681         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
40682         as weak alias of __getifaddrs.  Use libc_hidden_weak.
40683         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
40684         __freeifaddrs.  Use libc_hidden_weak.
40685         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
40686         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
40687         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
40688         __freeifaddrs.  Use libc_hidden_weak.
40689         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
40690         __getifaddrs and define as weak alias of __getifaddrs.  Use
40691         libc_hidden_weak.
40692         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
40693         __freeifaddrs.  Use libc_hidden_weak.
40694         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
40695         Remove variable.
40696         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
40697         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
40698
40699 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
40700
40701         [BZ #17601]
40702         * sysdeps/mips/start.S (__start): Use indirect jump to call
40703         __libc_start_main.
40704
40705 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
40706
40707         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
40708
40709         * nptl/tst-mutex1.c: Include <stdbool.h>.
40710         [!ATTR] (ATTR_NULL): New macro.
40711         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
40712         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
40713         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
40714
40715         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
40716         to char *.
40717
40718         [BZ #17665]
40719         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
40720         Change conditional to [__USE_MISC].
40721
40722         [BZ #17664]
40723         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
40724         fgets_unlocked.
40725         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
40726         __fgets_unlocked.
40727         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
40728         fgets_unlocked.
40729         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
40730         Remove variable.
40731         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
40732         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
40733         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
40734         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
40735         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
40736         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
40737         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
40738         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
40739         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
40740
40741         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
40742
40743 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40744
40745         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40746         Remove strpbrk objects.
40747         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40748         (__libc_ifunc_impl_list): Remove strpbrk implementation.
40749         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
40750         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
40751         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
40752         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
40753
40754         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40755         Remove strcspn objects.
40756         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40757         (__libc_ifunc_impl_list): Remove strcspn implementation.
40758         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
40759         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
40760         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
40761         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
40762
40763         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40764         Remove strspn objetcs.
40765         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40766         (__libc_ifunc_impl_list): Remove strspn implementation.
40767         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
40768         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
40769         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
40770         * sysdeps/powerpc/powerpc64/strspn.S: New file.
40771
40772 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
40773
40774         [BZ #17581]
40775         * malloc/hooks.c
40776         (mem2mem_check): Add a terminator to the chain of checking blocks.
40777         (malloc_check_get_size): Use it here.
40778         (mem2chunk_check): Ditto.
40779
40780 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
40781
40782         * sysdeps/powerpc/powerpc64/strtok.S: New file.
40783         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
40784
40785 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
40786
40787         * bits/ioctl-types.h: Indent preprocessor directives correctly.
40788
40789         * nptl/nptl-init.c: Include libc-internal.h.
40790         (__pthread_initialize_minimal_internal): Use ROUND_UP.
40791
40792         * elf/ldconfig.c (search_dir): Expand comment.
40793
40794 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
40795
40796         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
40797         variable.
40798         (linknamespace-symlist-stdlibs-tests): Likewise.
40799         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
40800         instead of $(objpfx)symlist-stdlibs.
40801         (linknamespace-libs-isoc): New variable.
40802         (linknamespace-libs): Use $(linknamespace-libs-isoc).
40803         (linknamespace-libs-ISO): New variable.
40804         (linknamespace-libs-ISO99): Likewise.
40805         (linknamespace-libs-ISO11): Likewise.
40806         (linknamespace-libs-XPG3): Likewise.
40807         (linknamespace-libs-XPG4): Likewise.
40808         (linknamespace-libs-POSIX): Likewise.
40809         (linknamespace-libs-UNIX98): Likewise.
40810         (linknamespace-libs-XOPEN2K): Likewise.
40811         (linknamespace-libs-POSIX2008): Likewise.
40812         (linknamespace-libs-XOPEN2K8): Likewise.
40813         ($(objpfx)symlist-stdlibs): Replace by
40814         $(linknamespace-symlist-stdlibs-tests).  Use
40815         $(linknamespace-libs-$*) as set of libraries.
40816         ($(linknamespace-header-tests)): Update dependencies.  Use
40817         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
40818         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
40819         * conform/linknamespace.pl: Remove comment about considering
40820         definitions of symbols from irrelevant libraries.
40821
40822 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
40823
40824         [BZ #13862]
40825         * elf/dl-tls.c: Include <atomic.h>.
40826         (oom): Remove #ifdef SHARED/#endif.
40827         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
40828         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
40829         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
40830         big enough.
40831         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
40832         * nptl/Makefile (tests): Add tst-stack4.
40833         (modules-names): Add tst-stack4mod.
40834         ($(objpfx)tst-stack4): New.
40835         (tst-stack4mod.sos): Likewise.
40836         ($(objpfx)tst-stack4.out): Likewise.
40837         ($(tst-stack4mod.sos)): Likewise.
40838         (clean): Likewise.
40839         * nptl/tst-stack4.c: New file.
40840         * nptl/tst-stack4mod.c: Likewise.
40841
40842 2014-11-27  J. Brown  <jb999@gmx.de>
40843
40844         * sysdeps/x86/bits/string.h: Add recent CPUs.
40845
40846 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
40847
40848         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
40849         sigblock.
40850
40851         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
40852         feof.
40853
40854         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
40855         variable.
40856
40857 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
40858
40859         * nscd/connections.c: Include libc-internal.h because of macro
40860         usage ignore_value.
40861
40862 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40863
40864         * string/bits/string3.h (__warn_memset_zero_len): Don't
40865         declare for gcc newer than 5.0.
40866         (memset): Don't test for zero-length __LEN for gcc newer than
40867         5.0.
40868
40869 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
40870
40871         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
40872         size_t for %zu format.
40873
40874         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
40875         difference, not %ju.
40876
40877 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
40878
40879         * include/libc-internal.h (ignore_value): New macro.
40880         * nscd/connections.c (restart): Wrap calls to setuid and setgid
40881         with ignore_value.
40882
40883         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
40884         definition.
40885
40886         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
40887         pthread_cleanup_push to void *.
40888
40889         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
40890         Undefine.
40891
40892         [BZ #16619]
40893         [BZ #16740]
40894         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
40895         instead of 1L << 52.
40896
40897         * libio/bug-rewind.c (do_test): Check fwscanf return values.
40898         * libio/bug-rewind2.c (do_test): Likewise.
40899
40900         * debug/test-stpcpy_chk-ifunc.c: Remove file.
40901         * debug/test-strcpy_chk-ifunc.c: Likewise.
40902         * wcsmbs/test-wcschr-ifunc.c: Likewise.
40903         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
40904         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
40905         * wcsmbs/test-wcslen-ifunc.c: Likewise.
40906         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
40907         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
40908         * Rules [$(multi-arch) = no] (tests): Do not filter out
40909         $(tests-ifunc).
40910         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
40911         * debug/Makefile (tests-ifunc): Remove variable.
40912         (tests): Do not add $(tests-ifunc).
40913         * wcsmbs/Makefile (tests-ifunc): Remove variable.
40914         (tests): Do not add $(tests-ifunc).
40915         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
40916         [TEST_IFUNC]: Remove conditionals.
40917         * string/test-string.h (TEST_IFUNC): Remove macro.
40918         [TEST_IFUNC]: Remove conditionals.
40919
40920         * string/test-strchr.c [!WIDE] (L): New macro.
40921         [WIDE] (L): Likewise.
40922         (check1): Use CHAR instead of char.  Use L on string and character
40923         constants.
40924
40925 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
40926
40927         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
40928         tests.
40929         * sysdeps/powerpc/bits/atomic.h
40930         (__arch_atomic_exchange_and_add_32_acq): Add definition.
40931         (__arch_atomic_exchange_and_add_32_rel): Likewise.
40932         (atomic_exchange_and_add_acq): Likewise.
40933         (atomic_exchange_and_add_rel): Likewise.
40934         * sysdeps/powerpc/powerpc32/bits/atomic.h
40935         (__arch_atomic_exchange_and_add_64_acq): Add definition.
40936         (__arch_atomic_exchange_and_add_64_rel): Likewise.
40937         * sysdeps/powerpc/powerpc64/bits/atomic.h
40938         (__arch_atomic_exchange_and_add_64_acq): Add definition.
40939         (__arch_atomic_exchange_and_add_64_rel): Likewise.
40940
40941 2014-11-26  Torvald Riegel  <triegel@redhat.com>
40942
40943         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
40944         Change synchronization of __sched_fifo_min_prio and
40945         __sched_fifo_max_prio.
40946         * nptl/pthread_mutexattr_getprioceiling.c
40947         (pthread_mutexattr_getprioceiling): Likewise.
40948         * nptl/pthread_mutexattr_setprioceiling.c
40949         (pthread_mutexattr_setprioceiling): Likewise.
40950         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
40951         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
40952         Likewise.
40953
40954 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
40955
40956         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
40957         void.
40958
40959 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
40960
40961         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
40962         third argument const.
40963
40964 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
40965
40966         fnmatch: work around GCC compiler warning bug with uninit var
40967         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
40968         This works around a bug with x86-64 GCC 4.9.2 and earlier
40969         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
40970         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
40971         used uninitialized in this function [-Wmaybe-uninitialized]".
40972
40973 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
40974
40975         * posix/bug-regex31.c (main): Return RES not 0.
40976
40977 2014-11-25  Anton Blanchard <anton@samba.org>
40978
40979         * sysdeps/powerpc/bits/atomic.h
40980         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
40981
40982 2014-11-24  Sterling Augustine  <saugustine@google.com>
40983
40984         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
40985
40986 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
40987
40988         [BZ #17608]
40989         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
40990
40991 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
40992
40993         [BZ #17633]
40994         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
40995         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
40996         variable.
40997         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
40998         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
40999
41000 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
41001
41002         * string/strncpy.c (strncpy): Improve performance by using memset.
41003
41004 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
41005
41006         * string/strcpy.c (strcpy):
41007         Improve performance by using strlen and memcpy.
41008
41009 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
41010
41011         * string/strcoll_l.c (get_next_seq): __always_inline.
41012         * string/strcoll_l.c (do_compare): __always_inline.
41013
41014 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
41015
41016         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
41017         defined.
41018         * include/mqueue.h: Likewise.
41019         * include/stdlib.h: Likewise.
41020
41021         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
41022         (get_null_defines): Adjust.
41023         * sunrpc/Makefile: Adjust comment.
41024         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
41025         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
41026         (CFLAGS-interp.c): Likewise.
41027         (CFLAGS-ldconfig.c): Likewise.
41028         (CPPFLAGS-.os): Likewise.
41029         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
41030         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
41031         * extra-modules.mk (extra-modules.mk): Likewise.
41032         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
41033         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
41034         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
41035         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
41036         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
41037         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
41038         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
41039         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
41040         * iconvdata/Makefile (CPPFLAGS): Likewise.
41041         (cpp-srcs-left): Add libof for all iconvdata routines.
41042         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
41043         * include/assert.h: Likewise.
41044         * include/ctype.h: Likewise.
41045         * include/errno.h: Likewise.
41046         * include/libc-symbols.h: Likewise.
41047         * include/math.h: Likewise.
41048         * include/netdb.h: Likewise.
41049         * include/resolv.h: Likewise.
41050         * include/stdio.h: Likewise.
41051         * include/stdlib.h: Likewise.
41052         * include/string.h: Likewise.
41053         * include/sys/stat.h: Likewise.
41054         * include/wctype.h: Likewise.
41055         * intl/l10nflist.c: Likewise.
41056         * libidn/idn-stub.c: Likewise.
41057         * libio/libioP.h: Likewise.
41058         * nptl/libc_multiple_threads.c: Likewise.
41059         * nptl/pthreadP.h: Likewise.
41060         * posix/regex_internal.h: Likewise.
41061         * resolv/res_hconf.c: Likewise.
41062         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
41063         * sysdeps/arm/memmove.S: Likewise.
41064         * sysdeps/arm/sysdep.h: Likewise.
41065         * sysdeps/generic/_itoa.h: Likewise.
41066         * sysdeps/generic/symbol-hacks.h: Likewise.
41067         * sysdeps/gnu/errlist.awk: Likewise.
41068         * sysdeps/gnu/errlist.c: Likewise.
41069         * sysdeps/i386/i586/memcpy.S: Likewise.
41070         * sysdeps/i386/i586/memset.S: Likewise.
41071         * sysdeps/i386/i686/memcpy.S: Likewise.
41072         * sysdeps/i386/i686/memmove.S: Likewise.
41073         * sysdeps/i386/i686/mempcpy.S: Likewise.
41074         * sysdeps/i386/i686/memset.S: Likewise.
41075         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
41076         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
41077         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
41078         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
41079         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
41080         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
41081         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
41082         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
41083         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
41084         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
41085         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
41086         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
41087         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
41088         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
41089         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
41090         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
41091         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
41092         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
41093         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
41094         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
41095         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
41096         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
41097         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
41098         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
41099         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
41100         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
41101         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
41102         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
41103         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
41104         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
41105         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
41106         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
41107         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
41108         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
41109         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
41110         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
41111         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
41112         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
41113         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
41114         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
41115         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
41116         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
41117         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
41118         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
41119         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
41120         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
41121         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
41122         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
41123         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
41124         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41125         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
41126         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
41127         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
41128         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
41129         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
41130         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
41131         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
41132         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
41133         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
41134         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
41135         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
41136         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
41137         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
41138         * sysdeps/nptl/bits/libc-lock.h: Likewise.
41139         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
41140         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
41141         * sysdeps/posix/closedir.c: Likewise.
41142         * sysdeps/posix/opendir.c: Likewise.
41143         * sysdeps/posix/readdir.c: Likewise.
41144         * sysdeps/posix/rewinddir.c: Likewise.
41145         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
41146         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
41147         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
41148         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41149         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
41150         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
41151         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
41152         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
41153         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
41154         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
41155         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
41156         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
41157         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
41158         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
41159         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
41160         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
41161         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
41162         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
41163         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
41164         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
41165         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
41166         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
41167         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
41168         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
41169         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
41170         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
41171         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
41172         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
41173         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
41174         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
41175         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
41176         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
41177         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
41178         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
41179         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
41180         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
41181         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
41182         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41183         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
41184         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
41185         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
41186         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
41187         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
41188         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
41189         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
41190         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
41191         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
41192         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
41193         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
41194         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
41195         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
41196         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
41197         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
41198         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
41199         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
41200         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
41201         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
41202         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
41203         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
41204         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
41205         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
41206         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
41207         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
41208         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
41209         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
41210         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
41211         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
41212         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
41213         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
41214         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
41215         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
41216         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
41217         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
41218         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
41219         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
41220         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
41221         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
41222         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
41223         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
41224         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
41225         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
41226         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
41227         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
41228         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
41229         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
41230         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
41231         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
41232         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
41233         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
41234         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
41235         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
41236         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
41237         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
41238         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
41239         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
41240         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
41241         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
41242         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
41243         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
41244         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
41245         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
41246         * sysdeps/unix/alpha/sysdep.S: Likewise.
41247         * sysdeps/unix/alpha/sysdep.h: Likewise.
41248         * sysdeps/unix/make-syscalls.sh: Likewise.
41249         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
41250         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
41251         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
41252         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
41253         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
41254         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
41255         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
41256         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41257         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
41258         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
41259         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41260         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
41261         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41262         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
41263         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
41264         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
41265         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
41266         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
41267         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
41268         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
41269         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
41270         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41271         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
41272         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
41273         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
41274         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
41275         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
41277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
41278         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
41279         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41280         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
41281         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
41282         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41283         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
41284         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
41285         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
41286         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41287         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
41288         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
41289         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41290         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
41291         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
41292         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
41293         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41294         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
41295         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
41296         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
41297         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
41298         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
41299         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41300         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
41301         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
41302         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
41303         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
41304         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41305         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
41306         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41307         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
41308         * sysdeps/x86_64/memcpy.S: Likewise.
41309         * sysdeps/x86_64/memmove.c: Likewise.
41310         * sysdeps/x86_64/memset.S: Likewise.
41311         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
41312         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
41313         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
41314         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
41315         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
41316         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
41317         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
41318         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
41319         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
41320         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
41321         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
41322         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
41323         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
41324         * sysdeps/x86_64/multiarch/memset.S: Likewise.
41325         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
41326         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
41327         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
41328         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
41329         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
41330         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
41331         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
41332         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
41333         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
41334         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
41335         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
41336         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
41337         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
41338         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
41339         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
41340         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
41341         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
41342         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
41343         * sysdeps/x86_64/strcmp.S: Likewise.
41344
41345         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
41346
41347         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
41348         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
41349         * elf/rtld-Rules: Likewise.
41350         * elf/setup-vdso.h: Likewise.
41351         * include/assert.h: Likewise.
41352         * include/bits/stdlib-float.h: Likewise.
41353         * include/errno.h: Likewise.
41354         * include/sys/stat.h: Likewise.
41355         * include/unistd.h: Likewise.
41356         * sysdeps/aarch64/setjmp.S: Likewise.
41357         * sysdeps/alpha/setjmp.S: Likewise.
41358         * sysdeps/arm/__longjmp.S: Likewise.
41359         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
41360         * sysdeps/arm/setjmp.S: Likewise.
41361         * sysdeps/arm/sysdep.h: Likewise.
41362         * sysdeps/generic/_itoa.h: Likewise.
41363         * sysdeps/generic/dl-sysdep.h: Likewise.
41364         * sysdeps/generic/ldsodefs.h: Likewise.
41365         * sysdeps/i386/dl-tls.h: Likewise.
41366         * sysdeps/i386/setjmp.S: Likewise.
41367         * sysdeps/m68k/setjmp.c: Likewise.
41368         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
41369         * sysdeps/mach/hurd/opendir.c: Likewise.
41370         * sysdeps/posix/getcwd.c: Likewise.
41371         * sysdeps/posix/opendir.c: Likewise.
41372         * sysdeps/posix/profil.c: Likewise.
41373         * sysdeps/powerpc/dl-procinfo.h: Likewise.
41374         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41375         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
41376         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41377         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41378         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
41379         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
41380         * sysdeps/s390/dl-tls.h: Likewise.
41381         * sysdeps/s390/s390-32/setjmp.S: Likewise.
41382         * sysdeps/s390/s390-64/setjmp.S: Likewise.
41383         * sysdeps/sh/sh3/setjmp.S: Likewise.
41384         * sysdeps/sh/sh4/setjmp.S: Likewise.
41385         * sysdeps/unix/alpha/sysdep.h: Likewise.
41386         * sysdeps/unix/arm/sysdep.S: Likewise.
41387         * sysdeps/unix/i386/sysdep.S: Likewise.
41388         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
41389         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
41390         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41391         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41392         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41393         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
41394         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
41395         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
41396         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
41397         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
41398         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
41399         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41400         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
41402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
41403         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41404         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41405         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41406         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41407         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
41408         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41409         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
41410         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
41411         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41412         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
41413         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41414         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41415         * sysdeps/unix/x86_64/sysdep.S: Likewise.
41416         * sysdeps/x86_64/setjmp.S: Likewise.
41417
41418         * include/math.h: Use IS_IN instead of IS_IN_libm.
41419         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
41420         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
41421         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
41422         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
41423         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
41424         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
41425         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
41426         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
41427         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
41428         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
41429         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
41430         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
41431         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
41432         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
41433         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
41434         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
41435         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
41436         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
41437         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
41438         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
41439         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
41440         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
41441         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
41442         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
41443         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
41444         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
41445         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
41446         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
41447         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
41448         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
41449         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
41450         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
41451         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
41452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
41453         Likewise.
41454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
41455         Likewise.
41456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
41457         Likewise.
41458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
41459         Likewise.
41460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
41461         Likewise.
41462         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
41463         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
41464         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
41465         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
41466         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
41467         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
41468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
41469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
41470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
41471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
41472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
41473         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
41474         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
41475         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
41476         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
41477         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
41478         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
41479         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
41480         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
41481         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
41482         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
41483         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
41484         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
41485         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
41486         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
41487         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
41488         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
41489
41490         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
41491         * nptl/pthreadP.h: Likewise.
41492         * nptl_db/structs.def: Likewise.
41493         * sysdeps/arm/sysdep.h: Likewise.
41494         * sysdeps/nptl/bits/libc-lock.h: Likewise.
41495         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
41496         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
41497         * sysdeps/unix/alpha/sysdep.h: Likewise.
41498         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
41499         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
41500         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
41501         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
41502         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
41503         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
41504         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41505         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
41506         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
41507         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
41508         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
41509         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
41510         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
41511         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
41512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
41513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
41514         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
41515         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
41516         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
41517         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
41518         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
41519         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
41520         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
41521         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
41522         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
41523         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
41524
41525         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
41526         * nptl/pthreadP.h: Likewise.
41527         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
41528         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
41529         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
41530         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
41531         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
41532         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
41533         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
41534         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
41535         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
41536         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
41537         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
41538         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
41539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
41540         Likewise.
41541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
41542         Likewise.
41543         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
41544         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
41545         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
41546         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
41547         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
41548         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
41549         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
41550         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
41551
41552         * dlfcn/dladdr.c: Use IS_IN.
41553         * dlfcn/dladdr1.c: Likewise.
41554         * dlfcn/dlclose.c: Likewise.
41555         * dlfcn/dlerror.c: Likewise.
41556         * dlfcn/dlinfo.c: Likewise.
41557         * dlfcn/dlmopen.c: Likewise.
41558         * dlfcn/dlopen.c: Likewise.
41559         * dlfcn/dlsym.c: Likewise.
41560         * dlfcn/dlvsym.c: Likewise.
41561
41562         * include/ifaddrs.h: Use IS_IN.
41563         * inet/check_pf.c: Likewise.
41564         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
41565         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
41566
41567         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
41568         IS_IN_ldconfig.
41569         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
41570         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
41571
41572         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
41573         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
41574         IS_IN (libc).
41575
41576         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
41577
41578         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
41579         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
41580         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
41581         * include/libc-symbols.h (IS_IN_LIB): New macro.
41582         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
41583         * include/netdb.h: Likewise.
41584         * include/stap-probe.h: Remove all uses of IN_LIB.
41585
41586         * Makeconfig (module-cppflags-real): Define MODULE_NAME
41587         instead of IN_MODULE.
41588         * include/libc-symbols.h (IN_MODULE): Define using
41589         MODULE_NAME.
41590         (PASTE_NAME, PASTE_NAME1): New macros.
41591         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
41592         of IN_LIB.
41593         (STAP_PROBE_ASM): Likewise.
41594
41595 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41596
41597         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
41598         __mach_init in dlopened libc.
41599
41600 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
41601
41602         * sysdeps/arm/preconfigure.ac: Delete EABI check.
41603         * sysdeps/arm/preconfigure: Regenerate.
41604
41605 2014-11-21  Roland McGrath  <roland@hack.frob.com>
41606
41607         * nptl/pthread_create.c (__pthread_create_2_1): Set
41608         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
41609         when copying values from IATTR into PD.
41610
41611 2014-11-21  Will Newton  <will.newton@linaro.org>
41612             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
41613
41614         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
41615         Refactor inline-asm.  Also add comment.
41616
41617         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
41618         ElfW macro instead of hardcoded Elf64 types.
41619         (la_aarch64_gnu_pltenter): Likewise.
41620         * sysdeps/aarch64/dl-machine.h
41621         (elf_machine_runtime_setup): Use ElfW(Addr).
41622
41623         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
41624         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
41625         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
41626         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
41627         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
41628         (R_AARCH64_TLS_DTPMOD64): Rename to ..
41629         (R_AARCH64_TLS_DTPMOD): This.
41630         (R_AARCH64_TLS_DTPREL64): Rename to ...
41631         (R_AARCH64_TLS_DTPREL): This.
41632         (R_AARCH64_TLS_TPREL64): Rename to ...
41633         (R_AARCH64_TLS_TPREL): This.
41634         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
41635         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
41636         R_AARCH64_TLS_TPREL64.
41637         (elf_machine_rela): Likewise.
41638
41639 2014-11-21  Torvald Riegel  <triegel@redhat.com>
41640
41641         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
41642         by setting it to 0.  64b atomics are not supported currently.
41643
41644 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
41645
41646         [BZ #16469]
41647         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
41648         search domain names.
41649
41650 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
41651
41652         [BZ #16469]
41653         * NEWS: Update.
41654         * resolv/res_query.c (__libc_res_nquerydomain): Retain
41655         trailing dot.
41656         * posix/tst-getaddrinfo5.c: New.
41657         * posix/Makefile (tests): Add it.
41658
41659 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
41660
41661         [BZ #14498]
41662         * NEWS: Fixed.
41663         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
41664         after parsing line but before break_if_match.
41665         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
41666         if there is a protocol mismatch.
41667
41668 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
41669
41670         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
41671         because the potential race is on the user-supplied stream.
41672
41673 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
41674
41675         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
41676         string literal if not passed a buffer.
41677         * manual/job.texi (ctermid): Update reasoning, note deviation
41678         from posix, suggest mtasurace when not passed a buffer, for
41679         future non-preliminary safety notes.
41680
41681 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
41682
41683         * manual/users.texi (cuserid): Fix MT-Safety note for the case
41684         of not passing it a buffer.
41685         Reported by Peng Haitao.
41686
41687 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
41688
41689         * manual/Makefile ($(objpfx)stamp-summary): Require
41690         check-safety.sh to pass.
41691         * manual/check-safety.sh: Wish for verification that every
41692         @deftypefn and @deftypefun is followed by a @safety remark.
41693
41694 2014-11-20  Roland McGrath  <roland@hack.frob.com>
41695
41696         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
41697
41698         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
41699         PTHREAD_CANCEL_ASYNCHRONOUS.
41700         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
41701         send SIGCANCEL.
41702
41703         * nptl/default-sched.h: New file.
41704         * sysdeps/unix/sysv/linux/default-sched.h: New file.
41705         * nptl/pthread_create.c: Include it.
41706         (__pthread_create_2_1): Use collect_default_sched instead of making
41707         Linux syscalls here directly.
41708
41709 2014-11-20  Torvald Riegel  <triegel@redhat.com>
41710
41711         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
41712         __pthread_once): Use C11 atomics.
41713
41714 2014-11-20  Torvald Riegel  <triegel@redhat.com>
41715
41716         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
41717
41718 2014-11-20  Torvald Riegel  <triegel@redhat.com>
41719
41720         * include/atomic.h (__atomic_link_error, __atomic_check_size,
41721         atomic_thread_fence_acquire, atomic_thread_fence_release,
41722         atomic_thread_fence_seq_cst, atomic_load_relaxed,
41723         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
41724         atomic_compare_exchange_weak_relaxed,
41725         atomic_compare_exchange_weak_acquire,
41726         atomic_compare_exchange_weak_release,
41727         atomic_exchange_acquire, atomic_exchange_release,
41728         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
41729         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
41730         atomic_fetch_and_acquire,
41731         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
41732
41733 2014-11-20  Torvald Riegel  <triegel@redhat.com>
41734
41735         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
41736         USE_ATOMIC_COMPILER_BUILTINS): Define.
41737         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
41738         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41739         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
41740         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41741         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
41742         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41743         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
41744         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41745         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
41746         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41747         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
41748         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41749         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
41750         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41751         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
41752         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41753         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
41754         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41755         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
41756         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41757         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
41758         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41759         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
41760         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41761         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
41762         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41763         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
41764         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41765         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
41766         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41767         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
41768         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41769         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
41770         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41771         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
41772         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41773         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
41774         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41775         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
41776         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
41777
41778 2014-11-19  Roland McGrath  <roland@hack.frob.com>
41779
41780         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
41781         the sched_priority value here.  It was already checked when the user
41782         called pthread_attr_setschedparam.
41783
41784         * nptl/tst-bad-schedattr.c: New file.
41785         * nptl/Makefile (tests): Add it.
41786
41787 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
41788             Florian Weimer  <fweimer@redhat.com>
41789             Joseph Myers  <joseph@codesourcery.com>
41790             Adam Conrad  <adconrad@0c3.net>
41791             Andreas Schwab  <schwab@suse.de>
41792             Brooks  <bmoses@google.com>
41793
41794         [BZ #17625]
41795         * wordexp-test.c (__dso_handle): Add prototype.
41796         (__register_atfork): Likewise.
41797         (__app_register_atfork): New function.
41798         (registered_forks): New global.
41799         (register_fork): New function.
41800         (test_case): Add 3 new tests for WRDE_CMDSUB.
41801         (main): Call __app_register_atfork.
41802         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
41803         fork count is non-zero fail the test.
41804         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
41805         is set.
41806         (parse_dollars): Remove check for WRDE_NOCMD.
41807         (parse_dquote): Likewise.
41808
41809 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
41810
41811         * Makeconfig (built-modules): List non-library modules to be
41812         built.
41813         (module-cppflags): Include libc-modules.h for
41814         everything except shlib-versions.v.i.
41815         (CPPFLAGS): Use it.
41816         (before-compile): Add libc-modules.h.
41817         ($(common-objpfx)libc-modules.h,
41818         $(common-objpfx)libc-modules.stmp): New targets.
41819         (common-generated): Add libc-modules.h and libc-modules.stmp.
41820         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
41821         * include/libc-symbols.h: Don't include libc-modules.h.
41822         * include/libc-modules.h: Remove file.
41823         * scripts/gen-libc-modules.awk: New script to generate
41824         libc-modules.h.
41825         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
41826         Depend on libc-modules.stmp.
41827
41828         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
41829
41830         * Makeconfig (in-module): Get value of libof set for the
41831         translation unit.
41832         (CPPFLAGS): Use $(in-module).
41833         * Makerules: Don't suffix routine names for nonlib.
41834         * include/libc-modules.h: New file.
41835         * include/libc-symbols.h: Include libc-modules.h
41836         (IS_IN): New macro to replace IS_IN_* macros.
41837         * elf/Makefile: Set libof-* for each routine.
41838         * elf/rtld-Rules: Likewise.
41839         * extra-modules.mk: Likewise.
41840         * iconv/Makefile: Likewise.
41841         * iconvdata/Makefile: Likewise.
41842         * locale/Makefile: Likewise.
41843         * malloc/Makefile: Likewise.
41844         * nss/Makefile: Likewise.
41845         * sysdeps/gnu/Makefile: Likewise.
41846         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
41847         * sysdeps/unix/sysv/linux/Makefile: Likewise.
41848         * sysdeps/s390/s390-64/Makefile: Likewise.
41849         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
41850         CPPFLAGS for nscd instead of nonlib.
41851
41852 2014-11-18  Roland McGrath  <roland@hack.frob.com>
41853
41854         * nptl/createthread.c: New file.
41855
41856         * nptl/createthread.c: Moved ...
41857         * sysdeps/unix/sysv/linux/createthread.c: ... here.
41858
41859         * nptl/createthread.c: Add proper top-line comment.
41860         (do_clone): Folded into ...
41861         (create_thread): ... here.  Take new arguments STOPPED_START and
41862         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
41863         increment __nptl_threads, do event-reporting logic, do
41864         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
41865         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
41866         resource cleanup if sched_setaffinity or sched_setscheduler fails,
41867         just send SIGCANCEL.
41868         * nptl/pthread_create.c: Forward-declare create_thread before
41869         including createthread.c.
41870         (start_thread): Use new macro START_THREAD_DEFN to replace defining
41871         declaration, and new macro START_THREAD_SELF to replace argument.
41872         Remove return statement.
41873         (report_thread_creation): New function.
41874         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
41875         synchronization logic, and __nptl_nthreads increment here, around
41876         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
41877         PD->parent_cancelhandling here, before create_thread.  When
41878         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
41879         __deallocate_stack, and ENOMEM translation here.
41880
41881 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
41882
41883         [BZ #17616]
41884         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
41885         (mptwo): Rename to __mptwo.
41886         (__inv): Use __mptwo instead of mptwo.
41887         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
41888         (mptwo): Rename to __mptwo.
41889         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
41890         of mpone and __mptwo instead of mptwo.
41891         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
41892         instead of mpone.
41893         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
41894         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
41895         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
41896         of mpone and __mptwo instead of mptwo.
41897         (__mpranred): Use __mpone instead of mpone.
41898         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
41899         variable.
41900         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
41901         (test-xfail-ISO99/math.h/linknamespace): Likewise.
41902         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
41903         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
41904         (test-xfail-ISO11/math.h/linknamespace): Likewise.
41905         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
41906         (test-xfail-XPG3/math.h/linknamespace): Likewise.
41907         (test-xfail-XPG4/math.h/linknamespace): Likewise.
41908         (test-xfail-POSIX/math.h/linknamespace): Likewise.
41909         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
41910         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
41911         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
41912         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
41913         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
41914         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
41915         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
41916         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
41917         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
41918         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
41919
41920 2014-11-18  Tom de Vries  <tom@codesoucery.com>
41921
41922         * manual/signal.texi (Primitives Interrupted by Signals): In section,
41923         replace BSD Handler xref with BSD Signal Handling.
41924
41925 2014-11-17  Richard Henderson  <rth@redhat.com>
41926
41927         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
41928         (_FP_PACK_RAW_2): Remove.
41929         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
41930         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
41931         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
41932         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
41933         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
41934         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
41935         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
41936         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
41937         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
41938         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
41939         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
41940         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
41941         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
41942         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
41943         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
41944         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
41945
41946 2014-11-14  Roland McGrath  <roland@hack.frob.com>
41947
41948         * signal/signal.h [__USE_MISC]
41949         (struct sigvec): Remove type.
41950         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
41951         (sigvec): Remove declaration.
41952         * sysdeps/posix/sigvec.c: Moved ...
41953         * signal/sigvec.c: ... here, replacing old file.
41954         (struct sigvec): New type, copied from old signal.h definition.
41955         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
41956         (__sigvec): Convert definition to prototype.
41957         (sigvec): Replace weak_alias with compat_symbol.
41958         * signal/Versions (libc: GLIBC_2.21): New version set.
41959         * include/signal.h: Remove __sigvec declaration.
41960         * sysdeps/unix/bsd/sigvec.c: Remove file.
41961         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
41962         * manual/signal.texi (BSD Handler): Remove subsection.
41963         Move siginterrupt up to ...
41964         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
41965         (Blocking in BSD): Fold subsection into its parent.
41966         * NEWS: Mention sigvec removal.
41967
41968 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
41969
41970         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
41971         (DLA_FMS): Make definition conditional only on [__FMA4__].
41972         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
41973         definition.
41974
41975         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
41976         Make definition conditional only on [PROF].
41977         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
41978         definition.
41979         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
41980         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
41981
41982         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
41983         !__GNUC__].
41984         * include/signal.h (__sigpause): Move declaration above call to
41985         libc_hidden_proto.
41986         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
41987         variable.
41988         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
41989         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
41990
41991 2014-11-14  David S. Miller  <davem@davemloft.net>
41992
41993         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
41994         Define before including <string/memcpy.c> and <string/mempcpy.c>.
41995
41996 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
41997
41998         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
41999         * configure: Regenerated.
42000         * manual/install.texi (Tools for Compilation): Document a
42001         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
42002         compiler verified to work.
42003         * INSTALL: Regenerated.
42004
42005         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
42006         redeclare with asm name.
42007         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
42008         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
42009         including <string.h>.
42010         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
42011         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
42012         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
42013         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
42014         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
42015         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
42016         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
42017
42018 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
42019
42020         * stdlib/strtol.c (__strtol): Use prototype definition.
42021
42022         [BZ #17594]
42023         * stdlib/strtol.c (SYM__): New macro.
42024         (SYM__1): Likewise.
42025         (__strtol): Likewise.
42026         (strtol): Rename to __strtol and define as weak alias of
42027         __strtol.  Use libc_hidden_weak.
42028
42029 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
42030
42031         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
42032         Use numbered labels in inline assembly.
42033
42034 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
42035
42036         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
42037         Add setjmp LIBC_PROBE.
42038         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
42039         Likewise.
42040         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
42041         Add longjmp, longjmp_target LIBC_PROBE.
42042         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
42043         Likewise.
42044
42045 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
42046
42047         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
42048         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
42049         to get rid of unused variable warning.
42050
42051 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
42052
42053         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
42054         Check for unwind_backtrace ==  NULL only in SHARED case.
42055         (__backchain_backtrace): Compile only in SHARED case.
42056         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
42057         Likewise.
42058         (__backchain_backtrace): Declare as static.
42059
42060 2014-11-12  Roland McGrath  <roland@hack.frob.com>
42061
42062         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
42063         (__libc_multiple_threads_ptr): Variable moved ...
42064         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
42065
42066 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
42067
42068         * conform/GlibcConform.pm: New file.
42069         * conform/conformtest.pl: Use GlibcConform module.
42070         * conform/linknamespace.pl: New file.
42071         * conform/list-header-symbols.pl: Likewise.
42072         * conform/Makefile (linknamespace-symlists-base): New variable.
42073         (linknamespace-symlists-tests): Likewise.
42074         (linknamespace-header-base): Likewise.
42075         (linknamespace-header-tests): Likewise.
42076         (tests-special): Add new tests.
42077         ($(linknamespace-symlists-tests)): New rule.
42078         (linknamespace-libs): New variable.
42079         ($(objpfx)symlist-stdlibs): New rule.
42080         ($(linknamespace-header-tests)): Likewise.
42081         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
42082         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
42083         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
42084         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
42085         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
42086         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
42087         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
42088         (test-xfail-ISO/math.h/linknamespace): Likewise.
42089         (test-xfail-ISO/signal.h/linknamespace): Likewise.
42090         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
42091         (test-xfail-ISO/time.h/linknamespace): Likewise.
42092         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
42093         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
42094         (test-xfail-ISO99/math.h/linknamespace): Likewise.
42095         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
42096         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
42097         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
42098         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
42099         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
42100         (test-xfail-ISO11/math.h/linknamespace): Likewise.
42101         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
42102         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
42103         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
42104         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
42105         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
42106         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
42107         (test-xfail-XPG3/math.h/linknamespace): Likewise.
42108         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
42109         (test-xfail-XPG3/search.h/linknamespace): Likewise.
42110         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
42111         (test-xfail-XPG3/time.h/linknamespace): Likewise.
42112         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
42113         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
42114         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
42115         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
42116         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
42117         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
42118         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
42119         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
42120         (test-xfail-XPG4/math.h/linknamespace): Likewise.
42121         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
42122         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
42123         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
42124         (test-xfail-XPG4/search.h/linknamespace): Likewise.
42125         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
42126         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
42127         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
42128         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
42129         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
42130         (test-xfail-XPG4/time.h/linknamespace): Likewise.
42131         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
42132         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
42133         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
42134         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
42135         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
42136         (test-xfail-POSIX/math.h/linknamespace): Likewise.
42137         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
42138         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
42139         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
42140         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
42141         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
42142         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
42143         (test-xfail-POSIX/time.h/linknamespace): Likewise.
42144         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
42145         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
42146         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
42147         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
42148         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
42149         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
42150         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
42151         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
42152         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
42153         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
42154         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
42155         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
42156         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
42157         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
42158         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
42159         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
42160         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
42161         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
42162         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
42163         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
42164         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
42165         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
42166         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
42167         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
42168         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
42169         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
42170         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
42171         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
42172         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
42173         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
42174         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
42175         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
42176         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
42177         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
42178         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
42179         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
42180         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
42181         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
42182         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
42183         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
42184         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
42185         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
42186         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
42187         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
42188         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
42189         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
42190         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
42191         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
42192         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
42193         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
42194         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
42195         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
42196         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
42197         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
42198         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
42199         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
42200         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
42201         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
42202         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
42203         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
42204         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
42205         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
42206         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
42207         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
42208         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
42209         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
42210         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
42211         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
42212         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
42213         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
42214         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
42215         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
42216         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
42217         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
42218         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
42219         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
42220         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
42221         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
42222         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
42223         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
42224         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
42225         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
42226         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
42227         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
42228         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
42229         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
42230         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
42231         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
42232         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
42233         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
42234         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
42235         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
42236         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
42237         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
42238         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
42239         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
42240         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
42241         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
42242
42243         [BZ #17589]
42244         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
42245         of fgets_unlocked.
42246
42247         [BZ #17585]
42248         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
42249         (memmem): Rename to __memmem and define as weak alias of
42250         __memmem.  Use libc_hidden_weak.
42251         (__memmem): Use libc_hidden_def.
42252         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
42253         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
42254         memmem.
42255
42256         [BZ #17582]
42257         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
42258         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
42259         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
42260         and define as weak alias of __fgets_unlocked.  Use
42261         libc_hidden_weak.
42262         (__fgets_unlocked): Use libc_hidden_def.
42263         * include/stdio.h (__fgets_unlocked): Declare.  Use
42264         libc_hidden_proto.
42265         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
42266         __fgets_unlocked instead of fgets_unlocked.
42267         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
42268         (GET_NPROCS_CONF_PARSER): Likewise.
42269         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
42270         (GET_NPROCS_CONF_PARSER): Likewise.
42271
42272         [BZ #17574]
42273         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
42274         weak alias of __wmemset.  Use libc_hidden_weak.
42275         (__wmemset): Use libc_hidden_def.
42276         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
42277         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
42278         of wmemset.
42279
42280         [BZ #17573]
42281         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
42282         with asm name __mempcpy.
42283         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
42284
42285         [BZ #17572]
42286         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
42287         and define as weak alias of __rawmemchr.
42288         (__rawmemchr): Do not define as strong alias of rawmemchr.
42289
42290         [BZ #17571]
42291         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
42292         alias of __qsort_r.
42293         (qsort): Call __qsort_r instead of qsort_r.
42294         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
42295         (__qsort_r): Declare.  Call libc_hidden_proto.
42296         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
42297         instead of qsort_r.
42298         * nscd/gai.c (__qsort_r): Define to qsort_r.
42299         * posix/tst-rfc3484.c (__qsort_r): Likewise.
42300         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
42301         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
42302
42303         [BZ #17570]
42304         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
42305         define as weak alias of __malloc_info.
42306
42307         [BZ #17584]
42308         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
42309         as weak alias of __rewinddir.  Don't use libc_hidden_def.
42310         (__rewinddir): Use libc_hidden_def.
42311         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
42312         as weak alias of __rewinddir.  Don't use libc_hidden_def.
42313         (__rewinddir): Use libc_hidden_def.
42314         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
42315         weak alias of __rewinddir.  Don't use libc_hidden_def.
42316         (__rewinddir): Use libc_hidden_def.
42317         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
42318         (__rewinddir): Use libc_hidden_proto.
42319         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
42320         rewinddir.
42321         (__getcwd): Use __rewinddir instead of rewinddir.
42322
42323         [BZ #17583]
42324         * libio/fileno.c (fileno): Rename to __fileno and define as weak
42325         alias of __fileno.  Use libc_hidden_weak.
42326         (__fileno): Use libc_hidden_def.
42327         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
42328         * libio/ftello.c (ftello): Rename to __ftello and define as weak
42329         alias of __ftello.
42330         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
42331         __ftello.
42332         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
42333         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
42334         libc_hidden_def.
42335         (fread_unlocked): Don't use libc_hidden_ver.
42336         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
42337         and define as weak alias of __fread_unlocked.  Don't use
42338         libc_hidden_def.
42339         (__fread_unlocked): Use libc_hidden_def.
42340         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
42341         (ftello): Don't use libc_hidden_proto.
42342         (__ftello): Declare.  Use libc_hidden_proto.
42343         (fread_unlocked): Don't use libc_hidden_proto.
42344         (__fread_unlocked): Declare.  Use libc_hidden_proto.
42345         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
42346         and __ftello instead of fileno, fread_unlocked and ftello.
42347
42348 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
42349
42350         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
42351         GOT12.
42352         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
42353         Likewise.
42354         (_dl_start_user): Likewise.
42355         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
42356
42357 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
42358             Siddhesh Poyarekar  <siddhesh@redhat.com>
42359
42360         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
42361         Move argv and envp down instead of moving argc up.
42362         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
42363
42364 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
42365
42366         [BZ #17506]
42367         * test-skeleton.c (main): Return successful if one of
42368         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
42369         * string/tst-strcoll-overflow.c: Define expected status.
42370
42371 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
42372
42373         [BZ #17475]
42374         * locale/iso-639.def: Define Bhili and Tulu language codes.
42375
42376 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
42377
42378         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
42379
42380 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
42381
42382         [BZ #17555]
42383         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
42384
42385 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
42386
42387         * configure.ac: Updated check of minimal required version to
42388         2.22.
42389         * manual/install.texi (Tools for Compilation): Updated version
42390         number.
42391         * configure: Regenerated.
42392         * INSTALL: Likewise.
42393
42394 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
42395
42396         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
42397         __tls_get_addr.
42398
42399 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
42400
42401         * include/sys/wait.h (__libc_waitpid): Remove declaration.
42402         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
42403         (__waitpid): Don't define as alias.  Use libc_hidden_def not
42404         libc_hidden_weak.
42405         (waitpid): Define as alias of __waitpid.
42406         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
42407         __waitpid.
42408         (__waitpid): Don't define as alias.  Use libc_hidden_def not
42409         libc_hidden_weak.
42410         (waitpid): Define as alias of __waitpid.
42411         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
42412         __libc_waitpid alias.
42413         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
42414         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
42415         Likewise.
42416         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
42417         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
42418         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
42419         alias.
42420         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
42421         __waitpid.
42422         (__waitpid): Don't define as alias.  Use libc_hidden_def not
42423         libc_hidden_weak.
42424         (waitpid): Define as alias of __waitpid.
42425
42426 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
42427
42428         * manual/llio.texi: Add comment that write safety has been
42429         fixed in Linux.
42430
42431         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
42432         (localplt-build-dso): Add elf/ld.so.
42433         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
42434         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
42435         and free for ld.so.
42436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
42437         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
42438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
42439         Likewise.
42440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
42441         Likewise.
42442         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
42443         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
42444         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
42445         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
42446         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
42447         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
42448         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
42449         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
42450         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
42451         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
42452         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
42453
42454 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
42455
42456         [BZ #14132]
42457         * include/libc-symbols.h (INTUSE): Remove macro.
42458         (INTDEF): Likewise.
42459         (INTVARDEF): Likewise.
42460         (_INTVARDEF): Likewise.
42461         (INTDEF2): Likewise.
42462         (INTVARDEF2): Likewise.
42463         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
42464         rtld_hidden_def instead of INTVARDEF.
42465         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
42466         (_dl_starting_up_internal): Remove declaration.
42467         (_dl_starting_up): Use rtld_hidden_proto.
42468         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
42469         declaration.
42470         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
42471         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
42472         _dl_starting_up.
42473         * elf/dl-writev.h (_dl_writev): Likewise.
42474         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
42475         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
42476         _dl_starting_up_internal.
42477
42478 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42479
42480         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
42481         test-skeleton.c.
42482
42483 2014-11-05  Will Newton  <will.newton@linaro.org>
42484
42485         * benchtests/Makefile: (bench-malloc): Add malloc thread
42486         scalability benchmark.
42487         * benchtests/bench-malloc-threads.c: New file.
42488
42489 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
42490
42491         * sysdeps/aarch64/strchrnul.S: New file.
42492
42493 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42494
42495         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
42496         definition.
42497         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
42498         Likewise.
42499         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
42500         Likewise.
42501         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
42502         Likewise.
42503         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
42504         Likewise.
42505         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
42506         Likewise.
42507
42508 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
42509
42510         * catgets/test-gencat.c: Use test-skeleton.c.
42511         * catgets/tst-catgets.c: Likewise.
42512         * csu/tst-empty.c: Likewise.
42513         * elf/tst-audit2.c: Likewise.
42514         * elf/tst-global1.c: Likewise.
42515         * elf/tst-pathopt.c: Likewise.
42516         * elf/tst-piemod1.c: Likewise.
42517         * elf/tst-tls10.c: Likewise.
42518         * elf/tst-tls11.c: Likewise.
42519         * elf/tst-tls12.c: Likewise.
42520         * gnulib/tst-gcc.c: Likewise.
42521         * iconvdata/tst-e2big.c: Likewise.
42522         * iconvdata/tst-loading.c: Likewise.
42523         * iconv/tst-iconv1.c: Likewise.
42524         * iconv/tst-iconv2.c: Likewise.
42525         * inet/test-inet6_opt.c: Likewise.
42526         * inet/tst-gethnm.c: Likewise.
42527         * inet/tst-network.c: Likewise.
42528         * inet/tst-ntoa.c: Likewise.
42529         * intl/tst-codeset.c: Likewise.
42530         * intl/tst-gettext2.c: Likewise.
42531         * intl/tst-gettext3.c: Likewise.
42532         * intl/tst-ngettext.c: Likewise.
42533         * intl/tst-translit.c: Likewise.
42534         * io/test-stat.c: Likewise.
42535         * libio/test-fmemopen.c: Likewise.
42536         * libio/tst-freopen.c: Likewise.
42537         * libio/tst-sscanf.c: Likewise.
42538         * libio/tst-ungetwc1.c: Likewise.
42539         * libio/tst-ungetwc2.c: Likewise.
42540         * libio/tst-widetext.c: Likewise.
42541         * localedata/tst-ctype.c: Likewise.
42542         * localedata/tst-digits.c: Likewise.
42543         * localedata/tst-leaks.c: Likewise.
42544         * localedata/tst-mbswcs1.c: Likewise.
42545         * localedata/tst-mbswcs2.c: Likewise.
42546         * localedata/tst-mbswcs3.c: Likewise.
42547         * localedata/tst-mbswcs4.c: Likewise.
42548         * localedata/tst-mbswcs5.c: Likewise.
42549         * localedata/tst-setlocale.c: Likewise.
42550         * localedata/tst-trans.c: Likewise.
42551         * localedata/tst-wctype.c: Likewise.
42552         * localedata/tst-xlocale1.c: Likewise.
42553         * login/tst-grantpt.c: Likewise.
42554         * malloc/tst-calloc.c: Likewise.
42555         * malloc/tst-malloc.c: Likewise.
42556         * malloc/tst-mallocstate.c: Likewise.
42557         * malloc/tst-mcheck.c: Likewise.
42558         * malloc/tst-mtrace.c: Likewise.
42559         * malloc/tst-obstack.c: Likewise.
42560         * math/atest-exp2.c: Likewise.
42561         * math/atest-exp.c: Likewise.
42562         * math/atest-sincos.c: Likewise.
42563         * math/test-matherr.c: Likewise.
42564         * math/test-misc.c: Likewise.
42565         * math/test-powl.c: Likewise.
42566         * math/tst-definitions.c: Likewise.
42567         * misc/tst-dirname.c: Likewise.
42568         * misc/tst-efgcvt.c: Likewise.
42569         * misc/tst-fdset.c: Likewise.
42570         * misc/tst-hsearch.c: Likewise.
42571         * misc/tst-mntent2.c: Likewise.
42572         * nptl/tst-sem7.c: Likewise.
42573         * nptl/tst-sem8.c: Likewise.
42574         * nptl/tst-sem9.c: Likewise.
42575         * nss/test-netdb.c: Likewise.
42576         * posix/tst-fnmatch.c: Likewise.
42577         * posix/tst-getlogin.c: Likewise.
42578         * posix/tst-gnuglob.c: Likewise.
42579         * posix/tst-mmap.c: Likewise.
42580         * pwd/tst-getpw.c: Likewise.
42581         * resolv/tst-inet_ntop.c: Likewise.
42582         * rt/tst-timer.c: Likewise.
42583         * stdio-common/test-fseek.c: Likewise.
42584         * stdio-common/test-popen.c: Likewise.
42585         * stdio-common/test-vfprintf.c: Likewise.
42586         * stdio-common/tst-cookie.c: Likewise.
42587         * stdio-common/tst-fileno.c: Likewise.
42588         * stdio-common/tst-gets.c: Likewise.
42589         * stdio-common/tst-obprintf.c: Likewise.
42590         * stdio-common/tst-perror.c: Likewise.
42591         * stdio-common/tst-sprintf2.c: Likewise.
42592         * stdio-common/tst-sprintf3.c: Likewise.
42593         * stdio-common/tst-sprintf.c: Likewise.
42594         * stdio-common/tst-swprintf.c: Likewise.
42595         * stdio-common/tst-tmpnam.c: Likewise.
42596         * stdio-common/tst-unbputc.c: Likewise.
42597         * stdio-common/tst-wc-printf.c: Likewise.
42598         * stdlib/tst-environ.c: Likewise.
42599         * stdlib/tst-fmtmsg.c: Likewise.
42600         * stdlib/tst-limits.c: Likewise.
42601         * stdlib/tst-rand48-2.c: Likewise.
42602         * stdlib/tst-rand48.c: Likewise.
42603         * stdlib/tst-random2.c: Likewise.
42604         * stdlib/tst-random.c: Likewise.
42605         * stdlib/tst-strtol.c: Likewise.
42606         * stdlib/tst-strtoll.c: Likewise.
42607         * stdlib/tst-tls-atexit.c: Likewise.
42608         * stdlib/tst-xpg-basename.c: Likewise.
42609         * string/test-ffs.c: Likewise.
42610         * string/tst-bswap.c: Likewise.
42611         * string/tst-inlcall.c: Likewise.
42612         * string/tst-strtok.c: Likewise.
42613         * string/tst-strxfrm.c: Likewise.
42614         * sysdeps/x86_64/tst-audit10.c: Likewise.
42615         * sysdeps/x86_64/tst-audit3.c: Likewise.
42616         * sysdeps/x86_64/tst-audit4.c: Likewise.
42617         * sysdeps/x86_64/tst-audit5.c: Likewise.
42618         * time/tst-ftime_l.c: Likewise.
42619         * time/tst-getdate.c: Likewise.
42620         * time/tst-mktime3.c: Likewise.
42621         * time/tst-mktime.c: Likewise.
42622         * time/tst-posixtz.c: Likewise.
42623         * time/tst-strptime2.c: Likewise.
42624         * time/tst-strptime3.c: Likewise.
42625         * wcsmbs/tst-btowc.c: Likewise.
42626         * wcsmbs/tst-mbrtowc.c: Likewise.
42627         * wcsmbs/tst-mbsrtowcs.c: Likewise.
42628         * wcsmbs/tst-wchar-h.c: Likewise.
42629         * wcsmbs/tst-wcpncpy.c: Likewise.
42630         * wcsmbs/tst-wcrtomb.c: Likewise.
42631         * wcsmbs/tst-wcsnlen.c: Likewise.
42632         * wcsmbs/tst-wcstof.c: Likewise.
42633
42634 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
42635
42636         [BZ #14132]
42637         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
42638         INTDEF.
42639         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
42640         declaration.
42641         (_dl_mcount): Use rtld_hidden_proto.
42642         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
42643         _dl_mcount.
42644         * elf/rtld.c (_rtld_global_ro): Likewise.
42645
42646         [BZ #14132]
42647         * elf/dl-init.c (_dl_init): Don't use INTDEF.
42648         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
42649         of _dl_init_internal.
42650         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
42651         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
42652         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
42653         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
42654         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
42655         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
42656         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
42657         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
42658         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
42659         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
42660         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
42661         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
42662         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
42663         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
42664         * sysdeps/tile/dl-start.S (_start): Likewise.
42665         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
42666         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
42667
42668         [BZ #14132]
42669         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
42670         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
42671         (rtld_progname): Make macro definition unconditional.
42672         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
42673         INTDEF.
42674         (dlmopen_doit): Do not use INTUSE with _dl_argv.
42675         (dl_main): Likewise.
42676         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
42677         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
42678         instead of _dl_argv_internal.
42679         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
42680         __GI__dl_argv instead of INTUSE(_dl_argv).
42681         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
42682         __GI__dl_argv instead of _dl_argv_internal.
42683
42684         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
42685         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
42686         macro.
42687         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
42688         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
42689         New macro.
42690         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
42691         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
42692         macro.
42693         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
42694         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
42695
42696 2014-11-04  Andreas Schwab  <schwab@suse.de>
42697
42698         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
42699
42700 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42701
42702         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
42703         mtvsrd instruction in binary form.
42704
42705 2014-11-03  Andreas Schwab  <schwab@suse.de>
42706
42707         [BZ #17522]
42708         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
42709         for less than MB_LEN_MAX use a local buffer of that size.
42710         * libio/tst-fputws.c: New file.
42711         * libio/Makefile (tests): Add tst-fputws.
42712
42713 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
42714
42715         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
42716         the size of the fpu_fr.fpu_dregs[] array.
42717
42718 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
42719
42720         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
42721         (__nanosleep): Do not define as alias.
42722         (nanosleep): Define as alias of __nanosleep.
42723         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
42724         __libc_nanosleep name.
42725
42726 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
42727
42728         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
42729         install.texi in comment.
42730
42731 2014-10-31  Torvald Riegel  <triegel@redhat.com>
42732
42733         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
42734         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
42735         ... add here and use lwsync or sync ...
42736         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
42737         ... and add here using lwsync.
42738
42739 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
42740
42741         * elf/dl-machine-reject-phdr.h: New file.
42742         * elf/dl-load.c: #include that.
42743         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
42744         if that returned true.
42745
42746 2014-10-31  Roland McGrath  <roland@hack.frob.com>
42747
42748         [BZ #17496]
42749         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
42750         gen-as-const-headers chunk.  Add a big scare comment after the last
42751         safe place to touch before-compile.
42752
42753 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
42754
42755         * manual/install.texi (Tools for Compilation): Update autoconf
42756         version requirements.
42757         * INSTALL: Regenerated.
42758
42759         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
42760         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
42761         (__libc_pselect): Likewise.
42762
42763         [BZ #14138]
42764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
42765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
42766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
42767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
42768
42769 2014-10-31  Torvald Riegel  <triegel@redhat.com>
42770
42771         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
42772         correct barrier instruction.
42773         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
42774         Likewise.
42775         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
42776         Likewise.
42777
42778 2014-10-30  Roland McGrath  <roland@hack.frob.com>
42779
42780         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
42781         after defining inlines.  Instead, just use parens to defeat macro
42782         expansion of __isctype in its declaration.
42783
42784 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
42785
42786         * include/sys/uio.h (__libc_readv): Remove declaration.
42787         (__libc_writev): Likewise.
42788         * misc/readv.c (__libc_readv): Rename to __readv.
42789         (__readv): Do not define as alias.
42790         (readv): Define as alias of __readv.
42791         * misc/writev.c (__libc_writev): Rename to __writev.
42792         (__writev): Do not define as alias.
42793         (writev): Define as alias of __writev.
42794         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
42795         (__readv): Do not define as alias.
42796         (readv): Define unconditionally as alias of __readv.
42797         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
42798         (__writev): Do not define as alias.
42799         (writev): Define unconditionally as alias of __writev.
42800         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
42801         name.
42802         (writev): Do not define __libc_writev name.
42803
42804 2014-10-30  Roland McGrath  <roland@hack.frob.com>
42805
42806         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
42807         (convert_charseq): New function, broken out of ...
42808         (use_from_charmap): ... here.  Call it.
42809         (use_to_charmap): Use convert_charseq and free instead of duplicating
42810         its code with a variable-length stack struct.
42811
42812 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
42813
42814         * include/fcntl.h (__libc_creat): Remove declaration.
42815         * io/creat.c (__libc_creat): Rename to creat.
42816         (creat): Do not define as alias.
42817         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
42818         of creat instead of __libc_creat.
42819         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
42820         to creat.
42821         (creat): Do not define as alias.
42822         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
42823         __libc_creat.
42824         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
42825         __libc_creat name.
42826         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
42827         Likewise.
42828
42829 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
42830
42831         * manual/llio.texi: Add comments discussing why write() may be
42832         considered MT-unsafe on Linux.
42833
42834 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
42835
42836         * dl-load.c (local_strdup): Remove.
42837         (expand_dynamic_string_token): Use __strdup.
42838         (decompose_rpath): Likewise.
42839         (_dl_map_object): Likewise.
42840
42841 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
42842
42843         [BZ #14132]
42844         * sysdeps/generic/unwind-dw2-fde.c
42845         (__register_frame_info_bases_internal): Do not declare.
42846         (__register_frame_info_table_bases_internal): Likewise.
42847         (__deregister_frame_info_bases_internal): Likewise.
42848         (__register_frame_info_bases): Declare and use hidden_proto before
42849         definition.  Use hidden_def instead of INTDEF.
42850         (__register_frame_info_table_bases): Likewise.
42851         (__deregister_frame_info_bases): Likewise.
42852         (__register_frame_info): Do not use INTUSE.
42853         (__register_frame): Likewise.
42854         (__register_frame_info_table): Likewise.
42855         (__register_frame_table): Likewise.
42856         (__deregister_frame_info): Likewise.
42857         (__deregister_frame): Likewise.
42858
42859 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
42860
42861         * sysdeps/unix/sysv/linux/arm/kernel-features.h
42862         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
42863         not undefine.
42864         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
42865         Likewise.
42866         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
42867         Likewise.
42868
42869 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
42870
42871         [BZ #14138]
42872         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
42873         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
42874         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
42875         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
42876         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
42877         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
42878         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
42879         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
42880         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
42881         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
42882         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
42883         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
42884         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
42885         syscall.
42886         (setfsuid): Likewise.
42887         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
42888         (setfsuid): Likewise.
42889         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
42890         (setfsuid): Likewise.
42891         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
42892         Likewise.
42893         (setfsuid): Likewise.
42894         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
42895         (setfsuid): Likewise.
42896         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
42897         Likewise.
42898         (setfsuid): Likewise.
42899
42900 2014-10-27  Andreas Schwab  <schwab@suse.de>
42901
42902         [BZ #17501]
42903         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
42904         check for Slow_SSE4_2 feature bit.
42905         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
42906         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
42907         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
42908         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
42909
42910 2014-10-24  Roland McGrath  <roland@hack.frob.com>
42911
42912         * configure.ac: Validate compiler version with a empirical test of
42913         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
42914         $CC -v output.
42915         * configure: Regenerated.
42916
42917         * inet/htons.c (htons): Prototypify.
42918         * inet/htonl.c (htonl): Likewise.
42919
42920 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
42921
42922         * string/strncat.c (strncat): Improve performance by using strlen.
42923
42924 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
42925
42926         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
42927
42928 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
42929
42930         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
42931         Call libc_fetestexcept_aarch64.
42932
42933 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
42934
42935         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
42936         Call libc_feholdexcept_aarch64.
42937
42938 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
42939
42940         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
42941         Call get_rounding_mode.
42942
42943 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
42944
42945         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
42946         Simplify logic.
42947
42948 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
42949
42950         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
42951         Simplify logic.
42952
42953 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
42954
42955         [BZ #14138]
42956         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
42957         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
42958         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
42959         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
42960         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
42961         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
42962         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
42963         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
42964         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
42965         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
42966         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
42967         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
42968         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
42969         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
42970         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
42971         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
42972         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
42973         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
42974         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
42975         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
42976         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
42977         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
42978         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
42979         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
42980         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
42981         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
42982         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
42983         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
42984         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
42985         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
42986         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
42987         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
42988         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
42989         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
42990         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
42991         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
42992         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
42993         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
42994         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
42995         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
42996         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
42997         syscall.
42998         (geteuid): Likewise.
42999         (getgid): Likewise.
43000         (getuid): Likewise.
43001         (getresgid): Likewise.
43002         (getresuid): Likewise.
43003         (getgroups): Likewise.
43004         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
43005         (geteuid): Likewise.
43006         (getgid): Likewise.
43007         (getuid): Likewise.
43008         (getresgid): Likewise.
43009         (getresuid): Likewise.
43010         (getgroups): Likewise.
43011         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
43012         (geteuid): Likewise.
43013         (getgid): Likewise.
43014         (getuid): Likewise.
43015         (getresgid): Likewise.
43016         (getresuid): Likewise.
43017         (getgroups): Likewise.
43018         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
43019         Likewise.
43020         (geteuid): Likewise.
43021         (getgid): Likewise.
43022         (getuid): Likewise.
43023         (getresgid): Likewise.
43024         (getresuid): Likewise.
43025         (getgroups): Likewise.
43026         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
43027         (geteuid): Likewise.
43028         (getgid): Likewise.
43029         (getuid): Likewise.
43030         (getresgid): Likewise.
43031         (getresuid): Likewise.
43032         (getgroups): Likewise.
43033         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
43034         Likewise.
43035         (geteuid): Likewise.
43036         (getgid): Likewise.
43037         (getuid): Likewise.
43038         (getgroups): Likewise.
43039
43040         [BZ #14138]
43041         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
43042         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
43043         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
43044         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
43045         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
43046         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
43047         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
43048         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
43049         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
43050         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
43051         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
43052         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
43053         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
43054         __chown.
43055         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
43056         (lchown): Likewise.
43057         (fchown): Likewise.
43058         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
43059         Likewise.
43060         (lchown): Likewise.
43061         (fchown): Likewise.
43062         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
43063         (lchown): Likewise.
43064         (fchown): Likewise.
43065         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
43066         Likewise.
43067         (lchown): Likewise.
43068         (fchown): Likewise.
43069
43070 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
43071
43072         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
43073         Simplify logic.
43074
43075 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
43076
43077         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
43078         Cleanup logic.
43079
43080 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
43081
43082         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
43083         Remove unused include.
43084
43085 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
43086
43087         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
43088         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
43089         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
43090         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
43091
43092 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
43093             Helge Deller <deller@gmx.de>
43094
43095         [BZ #17508]
43096         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
43097         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
43098         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
43099
43100 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
43101
43102         [BZ #14132]
43103         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
43104         Remove macro definition.
43105         (__ashrdi3_v_glibc20): Likewise.
43106         (__lshrdi3_v_glibc20): Likewise.
43107         (__cmpdi2_v_glibc20): Likewise.
43108         (__ucmpdi2_v_glibc20): Likewise.
43109         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
43110         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
43111         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
43112         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
43113         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
43114         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
43115
43116 2014-10-22  Roland McGrath  <roland@hack.frob.com>
43117
43118         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
43119         old GNU extension [0] syntax.
43120         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
43121         alloca rather than an array member with variable length.
43122         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
43123         * nscd/nscd.c (invalidate_db): New function, broken out of ...
43124         (parse_opt): ... here.  Likewise use alloca there.
43125         Validate the -i argument before checking for rootness.
43126         (send_shutdown): New function, broken out of ...
43127         (parse_opt): ... here.
43128
43129 2014-10-22  Roland McGrath  <roland@hack.frob.com>
43130
43131         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
43132         macro to get at the _rt_local_ro field.
43133         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
43134         ([PIC] case) or _dl_hwcap ([!PIC] case).
43135         * sysdeps/arm/setjmp.S: Likewise.
43136
43137         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
43138         * sysdeps/arm/configure.ac: New check to define it.
43139         * sysdeps/arm/configure: Regenerated.
43140         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
43141         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
43142         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
43143         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
43144         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
43145         Use move/movt pair instead of a load.
43146         (LDST_GLOBAL): Macro removed.
43147         (LDR_GLOBAL): New macro replaces it.
43148         (LDR_HIDDEN): New macro.
43149         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
43150         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
43151
43152         * setjmp/tst-setjmp-static.c: New file.
43153         * setjmp/Makefile (tests): Add it.
43154         (tests-static): New variable.
43155
43156 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
43157
43158         [BZ #17485]
43159         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
43160
43161 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
43162
43163         [BZ #14132]
43164         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
43165
43166 2014-10-21  Roland McGrath  <roland@hack.frob.com>
43167
43168         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
43169
43170 2014-10-20  Roland McGrath  <roland@hack.frob.com>
43171
43172         * io/fts.c (dirent_not_directory): New function.
43173         (fts_build): Call it.
43174
43175 2014-10-20  Roland McGrath  <roland@hack.frob.com>
43176
43177         * nptl/version.c (__nptl_main): Use normal __write rather than
43178         INTERNAL_SYSCALL.
43179         (banner): Update copyright years.
43180
43181         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
43182         gettimeofday.
43183         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
43184         * nptl/pthread_cond_timedwait.c: Likewise.
43185         * nptl/pthread_mutex_timedlock.c: Likewise.
43186         * nptl/sem_timedwait.c: Likewise.
43187
43188         * sysdeps/nptl/bits/libc-lock.h
43189         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
43190         (__libc_lock_init_recursive): Return void, not 0.
43191         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
43192         (__libc_rwlock_init): Likewise.
43193         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
43194
43195 2014-10-20  Torvald Riegel  <triegel@redhat.com>
43196
43197         [BZ #15215]
43198         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
43199         (__pthread_once_slow): ... here.
43200         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
43201         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
43202
43203 2014-10-20  Torvald Riegel  <triegel@redhat.com>
43204
43205         [BZ #15215]
43206         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
43207         __PTHREAD_ONCE_FORK_GEN_INCR): New.
43208         * sysdeps/nptl/fork.c (__libc_fork): Use them.
43209         * nptl/pthread_once.c (__pthread_once): Likewise.
43210         Update comments.
43211
43212 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
43213
43214         [BZ #14138]
43215         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
43216         name.
43217         (writev): Use __libc_writev as strong name.
43218         * sysdeps/unix/sysv/linux/readv.c: Remove file.
43219         * sysdeps/unix/sysv/linux/writev.c: Likewise.
43220
43221 2014-10-17  Roland McGrath  <roland@hack.frob.com>
43222
43223         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
43224
43225         * sysdeps/i386/nptl/tls.h
43226         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
43227         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
43228         New macros.
43229         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
43230         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
43231         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
43232         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
43233         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
43234         Call CHECK_THREAD_SYSINFO instead of doing an assert.
43235
43236         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
43237         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
43238         on [__NR_futex].
43239         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
43240         broken out of ...
43241         (__pthread_mutex_init): ... here.  Call it.
43242         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
43243         Conditionalize PI cases on [__NR_futex].
43244         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
43245         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
43246         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
43247
43248         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
43249         conditional on [SIGSETXID].
43250         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
43251         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
43252         is defined.  Likewise for SIGSETXID.
43253         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
43254         Conditionalize definitions on [SIGSETXID].
43255         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
43256         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
43257         unblocking on [SIGCANCEL].
43258
43259         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
43260         [__NR_set_robust_list].
43261
43262 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
43263
43264         * string/strcoll_l.c (get_next_seq): Fix up formatting.
43265         (do_compare): Likewise.
43266
43267 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
43268
43269         [BZ #15884]
43270         * string/strcoll_l.c: Don't include stdio.h.
43271         (coll_seq): Remove members idxarr and rulearr.
43272         (get_next_seq_cached): Remove function.
43273         (get_next_seq): Likewise.
43274         (get_next_seq_nocache): Rename to get_next_seq.
43275         (do_compare): Remove function.
43276         (do_compare_nocache): Rename to do_compare.
43277         (STRCOLL): Remove weight and rules cache.
43278
43279 2014-10-16  Roland McGrath  <roland@hack.frob.com>
43280
43281         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
43282         * sysdeps/arm/sfp-machine.h: ... to here.
43283         * sysdeps/arm/Implies: Remove arm/soft-fp.
43284
43285 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
43286
43287         * conform/data/sys/utsname.h-data (*_t): Allow.
43288         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
43289         [POSIX] (WEXITED): Do not expect constant.
43290         [POSIX] (WSTOPPED): Likewise.
43291         [POSIX] (WNOHANG): Likewise.
43292         [POSIX] (WNOWAIT): Likewise.
43293         [POSIX] (siginfo_t): Do not expect type or elements.
43294         [POSIX] (pid_t): Do not expect type.
43295         [POSIX] (signal.h): Do not allow header.
43296         [POSIX] (sys/resource.h): Likewise.
43297         [POSIX] (si_*): Do not allow pattern.
43298         [POSIX] (W*): Likewise.
43299         [POSIX] (P_*): Likewise.
43300         [POSIX] (BUS_*): Likewise.
43301         [POSIX] (CLD_*): Likewise.
43302         [POSIX] (FPE_*): Likewise.
43303         [POSIX] (ILL_*): Likewise.
43304         [POSIX] (POLL_*): Likewise.
43305         [POSIX] (SEGV_*): Likewise.
43306         [POSIX] (SI_*): Likewise.
43307         [POSIX] (TRAP_*): Likewise.
43308         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
43309         variable.
43310
43311 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
43312
43313         [BZ #12926]
43314         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
43315         infinite loop when __recvmsg returns 0.
43316
43317 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
43318
43319         * CANCEL-FCT-WAIVE: Remove file.
43320         * CANCEL-FILE-WAIVE: Likewise.
43321
43322         [BZ #14132]
43323         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
43324         instead of INTVARDEF.
43325         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
43326         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
43327         rtld_hidden_data_def instead of INTVARDEF.
43328         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
43329         * elf/dl-deps.c (expand_dst): Likewise.
43330         * elf/dl-load.c (_dl_dst_count): Likewise.
43331         (_dl_dst_substitute): Likewise.
43332         (decompose_rpath): Likewise.
43333         (_dl_init_paths): Likewise.
43334         (open_path): Likewise.
43335         (_dl_map_object): Likewise.
43336         * elf/rtld.c (dl_main): Likewise.
43337         (process_dl_audit): Likewise.
43338         (process_envvars): Likewise.
43339         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
43340         Remove declaration.
43341         (__libc_enable_secure): Use rtld_hidden_proto.
43342
43343 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
43344
43345         * elf/dl-load.c
43346         (add_path): New function broken out of _dl_rtld_di_serinfo.
43347         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
43348
43349 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
43350
43351         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
43352         parentheses around macro arguments.
43353         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
43354         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
43355         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
43356         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
43357         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
43358         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
43359         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
43360         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
43361         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
43362         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
43363         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
43364         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
43365         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
43366         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
43367         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
43368         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
43369         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
43370         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
43371         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
43372         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
43373         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
43374         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
43375         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
43376         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
43377         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
43378         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
43379         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
43380         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
43381         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
43382         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
43383         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
43384         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
43385         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
43386         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
43387         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
43388         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
43389         Likewise.
43390         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
43391         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
43392         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
43393         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
43394         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
43395         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
43396         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
43397         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
43398         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
43399         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
43400         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
43401         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
43402         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
43403         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
43404         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
43405         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
43406         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
43407         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
43408         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
43409         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
43410         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
43411         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
43412         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
43413         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
43414         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
43415         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
43416         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
43417         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
43418         (_FP_FRAC_SRS_1): Likewise.
43419         (_FP_FRAC_CLZ_1): Likewise.
43420         (_FP_MUL_MEAT_1_imm): Likewise.
43421         (_FP_MUL_MEAT_1_wide): Likewise.
43422         (_FP_MUL_MEAT_1_hard): Likewise.
43423         (_FP_SQRT_MEAT_1): Likewise.
43424         (_FP_FRAC_ASSEMBLE_1): Likewise.
43425         (_FP_FRAC_DISASSEMBLE_1): Likewise.
43426         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
43427         (__FP_CLZ_2): Likewise.
43428         (_FP_MUL_MEAT_2_wide): Likewise.
43429         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
43430         (_FP_MUL_MEAT_2_gmp): Likewise.
43431         (_FP_MUL_MEAT_2_120_240_double): Likewise.
43432         (_FP_SQRT_MEAT_2): Likewise.
43433         (_FP_FRAC_ASSEMBLE_2): Likewise.
43434         (_FP_FRAC_DISASSEMBLE_2): Likewise.
43435         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
43436         (_FP_FRAC_CLZ_4): Likewise.
43437         (_FP_MUL_MEAT_4_wide): Likewise.
43438         (_FP_MUL_MEAT_4_gmp): Likewise.
43439         (_FP_SQRT_MEAT_4): Likewise.
43440         (_FP_FRAC_ASSEMBLE_4): Likewise.
43441         (_FP_FRAC_DISASSEMBLE_4): Likewise.
43442         * soft-fp/op-common.h (_FP_CMP): Likewise.
43443         (_FP_CMP_EQ): Likewise.
43444         (_FP_CMP_UNORD): Likewise.
43445         (_FP_TO_INT): Likewise.
43446         (_FP_FROM_INT): Likewise.
43447         [!__FP_CLZ] (__FP_CLZ): Likewise.
43448         (_FP_DIV_HELP_imm): Likewise.
43449         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
43450         Likewise.
43451         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
43452         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
43453         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
43454         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
43455         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
43456         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
43457         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
43458         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
43459         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
43460         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
43461         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
43462         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
43463         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
43464         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
43465         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
43466         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
43467         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
43468         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
43469         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
43470         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
43471         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
43472         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
43473         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
43474         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
43475         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
43476         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
43477         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
43478         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
43479         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
43480         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
43481         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
43482         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
43483         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
43484         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
43485         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
43486         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
43487         (FP_UNPACK_RAW_SP): Likewise.
43488         (FP_PACK_RAW_S): Likewise.
43489         (FP_PACK_RAW_SP): Likewise.
43490         (FP_UNPACK_S): Likewise.
43491         (FP_UNPACK_SP): Likewise.
43492         (FP_UNPACK_SEMIRAW_S): Likewise.
43493         (FP_UNPACK_SEMIRAW_SP): Likewise.
43494         (FP_PACK_S): Likewise.
43495         (FP_PACK_SP): Likewise.
43496         (FP_PACK_SEMIRAW_S): Likewise.
43497         (FP_PACK_SEMIRAW_SP): Likewise.
43498         (_FP_SQRT_MEAT_S): Likewise.
43499         (FP_CMP_S): Likewise.
43500         (FP_CMP_EQ_S): Likewise.
43501         (FP_CMP_UNORD_S): Likewise.
43502         (FP_TO_INT_S): Likewise.
43503         (FP_FROM_INT_S): Likewise.
43504
43505         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
43506
43507         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
43508         (FP_EX_INVALID_IMZ): Likewise.
43509         (FP_EX_INVALID_IMZ_FMA): Likewise.
43510         (FP_EX_INVALID_ISI): Likewise.
43511         (FP_EX_INVALID_ZDZ): Likewise.
43512         (FP_EX_INVALID_IDI): Likewise.
43513         (FP_EX_INVALID_SQRT): Likewise.
43514         (FP_EX_INVALID_CVI): Likewise.
43515         (FP_EX_INVALID_VC): Likewise.
43516         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
43517         "invalid" exceptions.
43518         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
43519         (_FP_ADD_INTERNAL): Likewise.
43520         (_FP_MUL): Likewise.
43521         (_FP_FMA): Likewise.
43522         (_FP_DIV): Likewise.
43523         (_FP_CMP_CHECK_NAN): Likewise.
43524         (_FP_SQRT): Likewise.
43525         (_FP_TO_INT): Likewise.
43526         (FP_EXTEND): Likewise.
43527
43528 2014-10-09  Allan McRae  <allan@archlinux.org>
43529
43530         * po/fr.po: Update French translation from translation project.
43531
43532 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
43533
43534         [BZ #14132]
43535         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
43536         of INTDEF.
43537         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
43538         (__cxa_atexit): Use libc_hidden_proto.
43539         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
43540
43541         [BZ #14132]
43542         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
43543         declaration.
43544         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
43545         [!_ISOMAC] (__iswspace_l_internal): Likewise.
43546         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
43547         [!_ISOMAC] (__iswctype_internal): Likewise.
43548         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
43549         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
43550         alias.
43551         (fcntl): Remove __fcntl_internal alias.
43552         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
43553         __connect_internal alias.
43554         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
43555         Likewise.
43556
43557         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
43558         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
43559         FP_DENORM_ZERO.
43560         (_FP_CHECK_FLUSH_ZERO): New macro.
43561         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
43562         (_FP_CMP): Likewise.
43563         (_FP_CMP_EQ): Likewise.
43564         (_FP_TO_INT): Do not set inexact for subnormal arguments if
43565         FP_DENORM_ZERO.
43566         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
43567         (FP_TRUNC): Likewise.
43568
43569         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
43570         treated as invalid conversion, not as normal exponent.
43571
43572         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
43573         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
43574         (_FP_CMP_EQ): Likewise.
43575         (_FP_CMP_UNORD): Likewise.
43576         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
43577         (FP_CMP_EQ_D): Likewise.
43578         (FP_CMP_UNORD_D): Likewise.
43579         * soft-fp/extended.h (FP_CMP_E): Likewise.
43580         (FP_CMP_EQ_E): Likewise.
43581         (FP_CMP_UNORD_E): Likewise.
43582         * soft-fp/quad.h (FP_CMP_Q): Likewise.
43583         (FP_CMP_EQ_Q): Likewise.
43584         (FP_CMP_UNORD_Q): Likewise.
43585         * soft-fp/single.h (FP_CMP_S): Likewise.
43586         (FP_CMP_EQ_S): Likewise.
43587         (FP_CMP_UNORD_S): Likewise.
43588         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
43589         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
43590         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
43591         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
43592         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
43593         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
43594         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
43595         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
43596         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
43597         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
43598         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
43599         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
43600         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
43601         to FP_CMP_Q.
43602         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
43603         FP_CMP_Q.
43604         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
43605         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
43606         FP_CMP_EQ_Q.
43607         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
43608         FP_CMP_Q.
43609         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
43610         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
43611         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
43612         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
43613         FP_CMP_EQ_Q.
43614         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
43615         FP_CMP_Q.
43616         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
43617         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
43618         FP_CMP_EQ_Q.
43619         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
43620         FP_CMP_Q.
43621         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
43622         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
43623         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
43624         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
43625         FP_CMP_EQ_Q.
43626
43627         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
43628         a subnormal result, set the underflow exception if trapping on
43629         underflow is enabled.
43630         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
43631         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
43632         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
43633         redefine to 0.
43634         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
43635         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
43636         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
43637         * soft-fp/extendxftf2.c (__extendxftf2): Use
43638         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
43639
43640         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
43641         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
43642         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
43643         FP_HANDLE_EXCEPTIONS.
43644         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
43645         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
43646         FP_HANDLE_EXCEPTIONS.
43647         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
43648         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
43649         FP_HANDLE_EXCEPTIONS.
43650         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
43651         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
43652         FP_HANDLE_EXCEPTIONS.
43653
43654 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
43655
43656         [BZ #14132]
43657         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
43658         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
43659         use INTUSE.
43660         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
43661         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
43662         Remove alias.
43663         (__adjtimex): Define using libc_hidden_ver.
43664         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
43665         Remove declaration.
43666         (ntp_gettime): Call __adjtimex directly.
43667         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
43668         Remove declaration.
43669         (ntp_gettimex): Call __adjtimex directly.
43670         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
43671         __adjtimex_internal alias.
43672
43673 2014-10-08  Roland McGrath  <roland@hack.frob.com>
43674
43675         [BZ #17460]
43676         * nscd/nscd.c (more_help): Rewrite list of tables collection
43677         using xstrdup and asprintf.
43678
43679         * nscd/nscd_conf.c: Remove local xstrdup declaration.
43680
43681 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
43682             Roland McGrath  <roland@hack.frob.com>
43683
43684         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
43685         (do_lookup_unique): ... local function 'enter' here; update callers.
43686
43687 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
43688
43689         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
43690         compat_symbol calls on [SHARED].
43691         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
43692         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
43693         Remove.
43694         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
43695         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
43696         (oldsetrlimit): Remove.
43697         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
43698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
43699         (lchown): New syscall entry.
43700         (oldsetrlimit): Remove.
43701         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
43702         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
43703         (oldsetrlimit): Remove.
43704         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
43705
43706         [BZ #14138]
43707         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
43708         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
43709         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
43710         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
43711         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
43712         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
43713         (fchown): Likewise.
43714         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
43715         (fchown): Likewise.
43716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
43717         Likewise.
43718
43719 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43720
43721         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
43722         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
43723         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
43724         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
43725         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
43726         Likewise.
43727         (__old_sem_post): Likewise.
43728
43729 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
43730
43731         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
43732         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
43733         HAVE_CLOCK_GETTIME_VSYSCALL macros.
43734         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
43735         Use INLINE_VSYSCALL macro.
43736         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
43737         __vdso_clock_gettime.
43738         * sysdeps/unix/sysv/linux/tile/init-first.c
43739         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
43740         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
43741         __vdso_clock_gettime.
43742
43743         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
43744         to set up frame more cleanly.
43745
43746         * sysdeps/tile/memcmp.c: New file.
43747
43748         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
43749
43750         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
43751         * sysdeps/tile/tilegx/strcasestr.c: New file.
43752         * sysdeps/tile/tilegx/strnlen.c: New file.
43753         * sysdeps/tile/tilegx/strstr.c: New file.
43754
43755         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
43756
43757 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
43758
43759         * nptl/tst-setuid3.c: Write errors to stdout.
43760
43761 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
43762
43763         * elf/dl-deps.c
43764         (preload): New functions broken out of _dl_map_object_deps.
43765         (_dl_map_object_deps):  Remove a nested function. Update call sites.
43766
43767 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
43768
43769         [BZ #14138]
43770         * sysdeps/unix/sysv/linux/execve.c: Remove file.
43771         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
43772
43773 2014-10-01  Steve Ellcey  <sellcey@mips.com>
43774
43775         * sysdeps/mips/strcmp.S: New.
43776
43777 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
43778
43779         [BZ #14138]
43780         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
43781         (linkat): Likewise.
43782         (mkdirat): Likewise.
43783         (readlinkat): Likewise.
43784         (renameat): Likewise.
43785         (symlinkat): Likewise.
43786         (unlinkat): Likewise.
43787         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
43788         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
43789         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
43790         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
43791         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
43792         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
43793         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
43794
43795 2014-09-30  Will Newton  <will.newton@linaro.org>
43796
43797         * math/math.h: Define long double math functions if
43798         _LIBC_TEST is defined.
43799         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
43800
43801         * localedata/Makefile: Move assignment to tests-special
43802         into an ifdef testing run-built-tests.
43803         * timezone/Makefile: Likewise.
43804
43805 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
43806
43807         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
43808         with $(BASH) not $(SHELL).
43809
43810 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
43811             Matthew LeGendre  <legendre1@llnl.gov>
43812
43813         [BZ #17411]
43814         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
43815         l_reloc_result.
43816
43817 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
43818
43819         * stdio-common/printf_fp.c
43820         (hack_digit): New function, broken out of ...
43821         (__printf_fp): ... local function here.  Update call sites.
43822         hack_digit now takes an additional parameter that is a pointer
43823         to a struct of the referenced locals.  Those locals moved inside
43824         the struct and references updated.
43825
43826 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
43827
43828         * aclocal.m4: Require autoconf 2.69.
43829         * configure: Regenerated.
43830         * sysdeps/aarch64/configure: Likewise.
43831         * sysdeps/alpha/configure: Likewise.
43832         * sysdeps/arm/armv7/configure: Likewise.
43833         * sysdeps/arm/configure: Likewise.
43834         * sysdeps/ia64/configure: Likewise.
43835         * sysdeps/mach/configure: Likewise.
43836         * sysdeps/mips/configure: Likewise.
43837         * sysdeps/s390/configure: Likewise.
43838         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
43839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
43840
43841         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
43842         file.
43843         * sysdeps/ia64/configure.ac: Likewise.
43844
43845 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
43846
43847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
43848         specify symbol version for ld.so.  Do not include entry for
43849         libpthread.
43850         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
43851         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
43852         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
43853
43854         [BZ #14171]
43855         * Makeconfig [$(build-shared) = yes]
43856         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
43857         makefiles.
43858         [$(build-shared) = yes && $(soversions.mk-done) = t]
43859         ($(common-objpfx)gnu/lib-names.h): Remove rule.
43860         [$(build-shared) = yes && $(soversions.mk-done) = t]
43861         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
43862         to Makerules.
43863         [$(build-shared) = yes && $(soversions.mk-done) = t]
43864         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
43865         here.
43866         [$(build-shared) = yes && $(soversions.mk-done) = t]
43867         (common-generated): Don't append gnu/lib-names.h and
43868         gnu/lib-names.stmp here.
43869         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
43870         (lib-names-h-abi): New variable.
43871         [$(build-shared) = yes && $(soversions.mk-done) = t]
43872         (lib-names-stmp-abi): Likewise.
43873         [$(build-shared) = yes && $(soversions.mk-done) = t &&
43874         abi-variants] (before-compile): Append
43875         $(common-objpfx)$(lib-names-h-abi).
43876         [$(build-shared) = yes && $(soversions.mk-done) = t &&
43877         abi-variants] (common-generated): Append gnu/lib-names.h.
43878         [$(build-shared) = yes && $(soversions.mk-done) = t &&
43879         abi-variants] (install-others-nosubdir): Depend on
43880         $(inst_includedir)/$(lib-names-h-abi).
43881         [$(build-shared) = yes && $(soversions.mk-done) = t &&
43882         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
43883         [$(build-shared) = yes && $(soversions.mk-done) = t]
43884         ($(common-objpfx)$(lib-names-h-abi)): New rule.
43885         [$(build-shared) = yes && $(soversions.mk-done) = t]
43886         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
43887         [$(build-shared) = yes && $(soversions.mk-done) = t]
43888         (common-generated): Append $(lib-names-h-abi) and
43889         $(lib-names-stmp-abi).
43890         * scripts/lib-names.awk: Do not handle multi being set.
43891         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
43892         Remove variable.
43893         (abi-lp64_be-ld-soname): Likewise.
43894         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
43895         Likewise.
43896         (abi-hard-ld-soname): Likewise.
43897         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
43898         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
43899         Remove variable.
43900         (abi-o32_hard-ld-soname): Likewise.
43901         (abi-o32_soft_2008-ld-soname): Likewise.
43902         (abi-o32_hard_2008-ld-soname): Likewise.
43903         (abi-n32_soft-ld-soname): Likewise.
43904         (abi-n32_hard-ld-soname): Likewise.
43905         (abi-n32_soft_2008-ld-soname): Likewise.
43906         (abi-n32_hard_2008-ld-soname): Likewise.
43907         (abi-n64_soft-ld-soname): Likewise.
43908         (abi-n64_hard-ld-soname): Likewise.
43909         (abi-n64_soft_2008-ld-soname): Likewise.
43910         (abi-n64_hard_2008-ld-soname): Likewise.
43911         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
43912         Likewise.
43913         (abi-64-v2-ld-soname): Likewise.
43914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
43915         ld.so entries.
43916         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
43917         variable.
43918         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
43919         entry.
43920         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
43921         variable.
43922         (abi-64-ld-soname): Likewise.
43923         (abi-x32-ld-soname): Likewise.
43924         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
43925         entry.
43926         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
43927
43928 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
43929
43930         [BZ #14138]
43931         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
43932         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
43933         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
43934         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
43935         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
43936         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
43937         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
43938         syscall entry for GLIBC_2.2 symbol version.
43939         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
43940         Likewise.
43941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
43942         (setrlimit): Likewise.
43943         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
43944         Likewise.
43945
43946 2014-09-23  Will Newton  <will.newton@linaro.org>
43947
43948         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
43949         _LINUX_ARM_SYSDEP_H include guard too.
43950         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
43951         define.
43952
43953 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
43954
43955         * sysdeps/unix/sysv/linux/eventfd.c:
43956         Make first argument unsigned.
43957         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
43958         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
43959
43960 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
43961
43962         [BZ #16852]
43963         * socket/recvmmsg.c (recvmmsg): Drop const argument.
43964         * socket/sys/socket.h: Likewise.
43965         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
43966
43967 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43968
43969         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
43970
43971 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
43972
43973         * time/tst-ftime.c: New test.
43974         * time/Makefile (tests): Add tst-ftime.
43975
43976 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
43977
43978         * soft-fp/extended.h: Fix comment formatting.
43979         * soft-fp/op-1.h: Likewise.
43980         * soft-fp/op-2.h: Likewise.
43981         * soft-fp/op-4.h: Likewise.
43982         * soft-fp/op-8.h: Likewise.
43983         * soft-fp/op-common.h: Likewise.
43984         * soft-fp/soft-fp.h: Likewise.
43985
43986         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
43987
43988 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
43989
43990         [BZ #6652]
43991         * Makeconfig (soversions-default-setname): Remove variable.
43992         ($(common-objpfx)soversions.i): Don't pass default_setname to
43993         soversions.awk.
43994         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
43995         oldest_abi to abi-versions.awk.
43996         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
43997         * config.make.in (oldest-abi): Remove variable.
43998         * configure.ac (--enable-oldest-abi): Remove configure option.
43999         * configure: Regenerated.
44000         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
44001         text.
44002         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
44003         * scripts/soversions.awk: Do not handle default_setname variable.
44004         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
44005         variable.
44006         * sysdeps/mach/hurd/configure: Regenerated.
44007         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
44008         variable.
44009         * sysdeps/unix/sysv/linux/configure: Regenerated.
44010
44011 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
44012
44013         * elf/Makefile (CFLAGS-interp.c): Remove.
44014         ($(elf-objpfx)runtime-linker.h): Generate header with linker
44015         path string.
44016         * elf/interp.c: Include generated runtime-linker.h
44017
44018         * Makerules (lib%.so): Don't include $(+interp) in
44019         prerequisites.
44020         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
44021         * dlfcn/eval.c: Remove file.
44022
44023         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
44024         macros.
44025
44026         [BZ #17266]
44027         * misc/sys/cdefs.h: Define __extern_always_inline for clang
44028         4.2 and newer.
44029
44030         [BZ #17370]
44031         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
44032
44033 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
44034             Jakub Jelinek  <jakub@redhat.com>
44035
44036         [BZ #17266]
44037         * libio/stdio.h: Check definition of __fortify_function
44038         instead of __extern_always_inline to include bits/stdio2.h.
44039         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
44040         check if __extern_always_inline is defined.
44041         [__USE_MISC || __USE_XOPEN]: Likewise.
44042         [__USE_ISOC99] Likewise.
44043         * misc/sys/cdefs.h (__fortify_function): Define only if
44044         __extern_always_inline is defined.
44045         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
44046         __extern_always_inline and __extern_inline only for g++-4.3
44047         and newer or a compatible gcc.
44048
44049 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
44050
44051         [BZ #17371]
44052         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
44053         last change to handle zero prefix length.
44054
44055 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
44056
44057         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
44058         _SC_REGEX_VERSION.
44059
44060         * posix/getconf.c (vars): Add _POSIX_IPV6 and
44061         _POSIX_RAW_SOCKETS.
44062
44063 2014-09-13  Allan McRae  <allan@archlinux.org>
44064
44065         * po/ru.po: Update Russian translation from translation project.
44066
44067 2014-09-12  Roland McGrath  <roland@hack.frob.com>
44068
44069         * locale/programs/locale.c (show_locale_vars): Inline local function
44070         into its sole call site.  Clean up some style nits.
44071         (print_item): New function, broken out of ...
44072         (show_info): ... local function here.  Clean up style nits.
44073
44074         * locale/programs/ld-ctype.c (set_one_default): New function, broken
44075         out of ...
44076         (set_class_defaults): ... local function set_default here.
44077         Define set_default as a macro locally to pass constant parameters.
44078         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
44079         rather than a shared local.
44080
44081         * stdlib/rpmatch.c (try): New function, broken out of ...
44082         (rpmatch): ... local function here.  Also, prototypify definition.
44083
44084 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
44085
44086         * scripts/soversions.awk: Do not handle configuration names.
44087         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
44088         vendor and os variables to soversions.awk.
44089         * configure.ac: Do not modify gnu-* host_os.
44090         * configure: Regenerated
44091         * shlib-versions: Remove first column with configuration names.
44092         * nptl/shlib-versions: Likewise.
44093         * nptl_db/shlib-versions: Likewise.
44094         * sysdeps/hppa/shlib-versions: Likewise.
44095         * sysdeps/m68k/shlib-versions: Likewise.
44096         * sysdeps/mach/hurd/shlib-versions: Likewise.
44097         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
44098         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
44099         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
44100         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
44101         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
44102         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
44103         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
44104         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
44105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
44106         Likewise.
44107         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
44108         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
44109         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
44110         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
44111         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
44112         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
44113         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
44114         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
44115
44116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
44117         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
44118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
44119         Regenerated.
44120         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
44121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
44122         Condition symbol version definitions on [HAVE_ELFV2_ABI].
44123
44124         * shlib-versions: Remove OS-specific entries.  Moved to files in
44125         sysdeps.
44126         * sysdeps/mach/hurd/shlib-versions: New file.
44127         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
44128
44129         * nptl/shlib-versions: Remove architecture-specific entries.
44130         Moved to files in sysdeps.
44131         * shlib-versions: Likewise.
44132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
44133         file.
44134         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
44135         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
44136         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
44137         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
44138
44139         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
44140         (UDP_NO_CHECK6_RX): Likewise.
44141
44142 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
44143
44144         * sysdeps/posix/sysconf.c (__sysconf): Spell
44145         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
44146
44147 2014-08-12  Florian Weimer  <fweimer@redhat.com>
44148
44149         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
44150         loading.
44151         * iconv/Versions (__gconv_transliterate): Export for use from
44152         gconv modules.
44153         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
44154         (struct __gconv_trans_data, __gconv_trans_fct,
44155         __gconv_trans_context_fct, __gconv_trans_query_fct,
44156         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
44157         definitions.
44158         (struct __gconv_step_data): Remove __trans member.
44159         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
44160         longer hidden.  Remove unused trans_data argument.
44161         * iconv/gconv_int.h (struct trans_struct): Remove definition.
44162         (__gconv_translit_find): Remove declaration.
44163         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
44164         prototype.
44165         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
44166         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
44167         trans_data argument.  Add hidden definition.
44168         (__gconv_translit_find): Remove.
44169         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
44170         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
44171         * iconv/skeleton.c: Remove transliteration initialization.
44172         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
44173         __gconv_step_data initialization.
44174         * libio/iofwide.c (__libio_translit_): Remove.
44175         (_IO_fwide): Adjust struct __gconv_step_data initialization.
44176         * wcsmbs/btowc.c (__btowc): Likewise.
44177         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
44178         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
44179         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
44180         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
44181         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
44182         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
44183         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
44184         * wcsmbs/wctob.c (wctob): Likewise.
44185
44186 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
44187
44188         [BZ #16194]
44189         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
44190         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
44191         register usage.
44192         * sysdeps/x86/Makefile: Adjust.
44193
44194 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
44195             Roland McGrath  <roland@hack.frob.com>
44196
44197         * locale/weight.h: Add include guard.
44198         (findidx): Make static rather than auto; take new parameters
44199         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
44200         * locale/weightwc.h: Likewise.
44201         * posix/fnmatch_loop.c
44202         (FCT): Change type of EXTRA from int32_t to wint_t.
44203         Don't include either header inside the function.
44204         Call FINDIDX rather than findidx, and pass new arguments.
44205         #undef FINDIDX at the end of the file.
44206         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
44207         FINDIDX before including fnmatch_loop.c for the non-wide version.
44208         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
44209         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
44210         for the wide version.
44211         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
44212         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
44213         Pass new arguments to findidx.
44214         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
44215         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
44216         Don't #include it inside the function.  Pass new arguments to findidx.
44217         * posix/regex_internal.h
44218         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
44219         (re_string_elem_size_at): Don't #include it inside the function.
44220         Pass new arguments to findidx.
44221         * string/strcoll_l.c: #include WEIGHT_H at top level.
44222         (get_next_seq): Don't #include it inside the function.
44223         Pass new arguments to findidx.
44224         (get_next_seq_nocache): Likewise.
44225         * string/strxfrm_l.c: #include WEIGHT_H at top level.
44226         (STRXFRM): Don't #include it inside the function.
44227         Pass new arguments to findidx.
44228
44229 2014-09-11  Florian Weimer  <fweimer@redhat.com>
44230
44231         [BZ #17344]
44232         * malloc/malloc.c (unlink): Turn asserts into a call to
44233         malloc_printerr.
44234
44235 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
44236
44237         [BZ #17370]
44238         * libio/wfileops (do_ftell_wide): Free OUT.
44239
44240 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
44241
44242         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
44243
44244 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
44245
44246         [BZ #17363]
44247         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
44248         group if the current group is empty.
44249
44250 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44251
44252         * benchtests/bench-memset.c (test_main): Add more test from size
44253         from 32 to 512 bytes.
44254         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
44255         Add POWER8 memset object.
44256         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
44257         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
44258         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
44259         implementation.
44260         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
44261         Likewise.
44262         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
44263         multiarch POWER8 memset optimization.
44264         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
44265         POWER8 memset optimization.
44266
44267         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
44268         Remove bzero multiarch objects.
44269         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
44270         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
44271         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
44272         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
44273         Remove define.
44274         [__bzero]: Redefine to specific name.
44275         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
44276         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
44277         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
44278         define.
44279         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44280         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
44281
44282 2014-09-10  Florian Weimer  <fweimer@redhat.com>
44283
44284         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
44285         warnings into errors.
44286
44287         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
44288         __cxa_thread_atexit_impl prototype.
44289
44290 2014-09-09  Steve Ellcey  <sellcey@mips.com>
44291
44292         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
44293         Fix capitalization of error message.
44294
44295 2014-09-09  Steve Ellcey  <sellcey@mips.com>
44296
44297         * sysdeps/mips/preconfigure: Modify ABI tests.
44298
44299 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
44300
44301         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
44302
44303 2014-09-07  Roland McGrath  <roland@hack.frob.com>
44304             Carlos O'Donell  <carlos@systemhalted.org>
44305
44306         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
44307         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
44308         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
44309         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
44310         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
44311         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
44312         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
44313         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
44314         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
44315         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
44316         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
44317         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
44318         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
44319         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
44320         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
44321         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
44322         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
44323         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
44324         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
44325         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
44326         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
44327         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
44328         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
44329         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
44330         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
44331         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
44332         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
44333         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
44334         Deconditionalize the code that was previously under [RESET_PID].
44335         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
44336         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
44337         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
44338         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
44339         include sysdep.h.
44340
44341 2014-09-08  Allan McRae  <allan@archlinux.org>
44342
44343         * version.h (RELEASE): Set to "development".
44344         (VERSION): Set to "2.20.90"
44345
44346 2014-09-07  Allan McRae  <allan@archlinux.org
44347
44348         * version.h (RELEASE): Set to "stable".
44349         (VERSION): Set to "2.20"
44350         * include/features.h (__GLIBC_MINOR__): Set to 20.
44351
44352         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
44353         Liebler.
44354
44355         * po/ko.po: Update Korean translation from translation project.
44356
44357 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
44358
44359         [BZ #17354]
44360         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
44361         macro for handling signed relocations.
44362
44363 2014-09-03  Florian Weimer  <fweimer@redhat.com>
44364
44365         [BZ #17325]
44366         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
44367         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
44368         assert.
44369         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
44370         * iconvdata/ibm935.c (BODY): Likewise.
44371         * iconvdata/ibm937.c (BODY): Likewise.
44372         * iconvdata/ibm939.c (BODY): Likewise.
44373         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
44374         assert.
44375         * iconvdata/Makefile (iconv-test.out): Pass module list to test
44376         script.
44377         * iconvdata/run-iconv-test.sh: New test loop for checking for
44378         decoder crashers.
44379
44380 2014-09-02  Khem Raj  <raj.khem@gmail.com>
44381
44382         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
44383         libm_hidden_ver.
44384
44385 2014-09-01  Allan McRae  <allan@archlinux.org>
44386
44387         * po/eo.po: Update Esperanto translation from translation project.
44388
44389         * po/ca.po: Update Catalan translation from translation project.
44390
44391 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44392
44393         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
44394         __proc_dostop call.
44395
44396 2014-08-27  Mark Wielaard  <mjw@redhat.com>
44397
44398         [BZ #17319]
44399         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
44400         to call set_thread_area instead of hand written asm.
44401         (__NR_set_thread_area): Removed define.
44402         (TLS_FLAG_WRITABLE): Likewise.
44403         (__ASSUME_SET_THREAD_AREA): Remove check.
44404         (TLS_EBX_ARG): Remove define.
44405         (TLS_LOAD_EBX): Likewise.
44406
44407 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44408
44409         Simplify atomicity of socket creation in bind.
44410
44411         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
44412         looking up the name after linking the file.
44413
44414 2014-08-27  Allan McRae  <allan@archlinux.org>
44415
44416         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
44417
44418 2014-08-26  Florian Weimer  <fweimer@redhat.com>
44419
44420         [BZ #17187]
44421         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
44422         trans_compare, open_translit, __gconv_translit_find):
44423         Remove module loading code.
44424
44425 2014-08-26  Allan McRae  <allan@archlinux.org>
44426
44427         * po/vi.po: Update Vietnamese translation from translation project.
44428
44429         * po/uk.po: Update Ukrainian translation from translation project.
44430
44431         * po/fr.po: Update French translation from translation project.
44432
44433         * po/ru.po: Update Russian translation from translation project.
44434
44435         * po/pl.po: Update Polish translation from translation project.
44436
44437         * po/cs.po: Update Czech translation from translation project.
44438
44439         * po/de.po: Update German translation from translation project.
44440
44441         * po/bg.po: Update Bulgarian translation from translation project.
44442
44443         * po/sv.po: Update Sweedish translation from translation project.
44444
44445         * po/nl.po: Update Dutch translation from translation project.
44446
44447         * po/es.po: Update Spanish translation from translation project.
44448
44449 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44450
44451         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
44452
44453         * catgets/Makefile (CPPFLAGS-gencat): Remove.
44454         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
44455         (CPPFLAGS-iconvconfig): Likewise.
44456         * timezone/Makefile (CPPFLAGS-zic): Likewise.
44457
44458         * include/libc-symbols.h: Remove unnecessary check for
44459         NOT_IN_libc.
44460         * nptl/pthreadP.h: Likewise.
44461         * sysdeps/aarch64/setjmp.S: Likewise.
44462         * sysdeps/alpha/setjmp.S: Likewise.
44463         * sysdeps/arm/sysdep.h: Likewise.
44464         * sysdeps/i386/setjmp.S: Likewise.
44465         * sysdeps/m68k/setjmp.c: Likewise.
44466         * sysdeps/posix/getcwd.c: Likewise.
44467         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
44468         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
44469         * sysdeps/s390/s390-32/setjmp.S: Likewise.
44470         * sysdeps/s390/s390-64/setjmp.S: Likewise.
44471         * sysdeps/sh/sh3/setjmp.S: Likewise.
44472         * sysdeps/sh/sh4/setjmp.S: Likewise.
44473         * sysdeps/unix/alpha/sysdep.h: Likewise.
44474         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
44475         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44476         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
44477         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
44478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
44479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
44480         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44481         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44482         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
44483         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
44484         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
44485         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
44486         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44487         * sysdeps/x86_64/setjmp.S: Likewise.
44488
44489 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
44490
44491         [BZ #17263]
44492         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
44493         <stdint.h>.
44494         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
44495         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
44496
44497 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
44498
44499         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
44500
44501         [BZ #17262]
44502         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
44503         and __x86_64__ when disabling x87 inline functions.
44504
44505 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
44506
44507         [BZ #17259]
44508         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
44509         asm statement with __cpuid_count.
44510
44511 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
44512
44513         * configure.ac: Change __ehdr_start code to dereference the struct.
44514         Run readelf on the output to look for relocations.
44515         * configure: Regenerated.
44516
44517 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
44518
44519         [BZ #17261]
44520         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
44521         value to 0.
44522         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
44523
44524 2014-08-12  Roland McGrath  <roland@hack.frob.com>
44525
44526         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
44527
44528 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
44529
44530         [BZ #16892]
44531         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
44532         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
44533
44534 2014-08-12  Sean Anderson  <seanga2@gmail.com>
44535
44536         * malloc/malloc.c: Fix typo in comment.
44537
44538 2014-08-09  Allan McRae  <allan@archlinux.org>
44539
44540         * Regenerate libc.po.
44541
44542 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
44543
44544         * intl/tst-gettext2.sh: Check every lang file for creation.
44545
44546 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
44547
44548         * sysdeps/aarch64/fpu/math_private.h
44549         (libc_feholdsetround_noex_aarch64_ctx): New function.
44550
44551 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
44552
44553         * sysdeps/arm/armv6/strcpy.S (strcpy):
44554         Fix performance issue in misaligned cases.
44555
44556 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44557
44558         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
44559         Move definition from termios.h.
44560         (struct termio): Likewise.
44561         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
44562         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
44563         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
44564         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
44565         Likewise.
44566         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
44567         Move definition to ioctl-types.h
44568         (struct termio): Likewise.
44569         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
44570         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
44571         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
44572         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
44573         Likewise.
44574
44575 2014-08-05  Richard Henderson  <rth@redhat.com>
44576
44577         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
44578         exceptions.
44579         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
44580         Add fraiseexcpt.
44581         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
44582         Use __feraiseexcept.
44583         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
44584         Protect libm symbols with IS_IN_libm.
44585
44586         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
44587
44588 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
44589
44590         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
44591
44592 2014-08-04  Will Newton  <will.newton@linaro.org>
44593
44594         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
44595         file.
44596
44597 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
44598
44599         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
44600         variants for each function.
44601
44602 2014-08-04  Roland McGrath  <roland@hack.frob.com>
44603
44604         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
44605         appended ...
44606         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
44607         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
44608         appended ...
44609         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
44610         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
44611         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
44612         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
44613         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
44614         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
44615         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
44616         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
44617         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
44618         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
44619         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
44620         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
44621         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
44622         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
44623         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
44624         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
44625         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
44626         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
44627         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
44628         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
44629         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
44630         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
44631         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
44632         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
44633         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
44634         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
44635         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
44636         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
44637         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
44638         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
44639         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
44640         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
44641         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
44642         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
44643         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
44644         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
44645         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
44646         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
44647         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
44648         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
44649         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
44650         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
44651         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
44652         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
44653         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
44654         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
44655         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
44656         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
44657         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
44658         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
44659         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
44660         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
44661         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
44662         Update #include.
44663         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
44664         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
44665
44666 2014-08-04  Roland McGrath  <roland@hack.frob.com>
44667
44668         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
44669         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
44670         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
44671         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
44672         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
44673         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
44674
44675 2014-08-04  Roland McGrath  <roland@hack.frob.com>
44676
44677         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
44678         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
44679         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44680         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
44681
44682 2014-08-04  Roland McGrath  <roland@hack.frob.com>
44683
44684         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
44685         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
44686         (__libc_vfork): Define function under this name.
44687         (__vfork): Define as an alias.
44688         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
44689         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
44690
44691 2014-08-04  Roland McGrath  <roland@hack.frob.com>
44692
44693         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
44694         that was previously under [RESET_PID].
44695         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
44696
44697 2014-08-04  Andreas Schwab  <schwab@suse.de>
44698
44699         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
44700
44701 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
44702
44703         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
44704         (main): Likewise.
44705
44706 2014-08-01  Roland McGrath  <roland@hack.frob.com>
44707
44708         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
44709
44710 2014-08-01  Richard Henderon  <rth@redhat.com>
44711
44712         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
44713         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
44714         typo in exact zero test.
44715         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44716         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
44717         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44718
44719 2014-08-01  Roland McGrath  <roland@hack.frob.com>
44720
44721         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
44722         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
44723         * sysdeps/arm/sysdep.h: ... here.
44724         [!__ASSEMBLER__]: Include <stdint.h>.
44725
44726 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
44727
44728         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
44729         (HAVE_WCTYPE_H): Likewise.
44730         (HAVE_ISWCTYPE): Likewise.
44731         (ENABLE_NLS): Likewise.
44732         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
44733         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
44734
44735         * posix/regex_internal.c: Check if DEBUG is defined and is
44736         set.
44737
44738         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
44739         (HAVE_MBSRTOWCS): Likewise.
44740         * posix/fnmatch.c: Include string.h unconditionally.
44741
44742 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
44743
44744         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
44745         reversal.
44746
44747 2014-07-31  Roland McGrath  <roland@hack.frob.com>
44748
44749         * sysdeps/generic/safe-fatal.h: New file.
44750         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
44751         * nptl/forward.c: Include it.
44752         (__pthread_unwind): Use __safe_fatal as default action, rather
44753         than a bogus use of INTERNAL_SYSCALL that could never work.
44754
44755         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
44756         * configure.ac (libc_cv_builtin_trap): New test.
44757         * configure: Regenerated.
44758         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
44759         (ABORT_INSTRUCTION): Define using __builtin_trap.
44760
44761         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
44762         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
44763         * sysdeps/nptl/nptl-signals.h: New file.
44764         * nptl/pthreadP.h: Include <nptl-signals.h>.
44765
44766 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
44767
44768         * sysdeps/s390/s390-64/utf16-utf32-z9.c
44769         (ONE_DIRECTION): Define.
44770         * sysdeps/s390/s390-64/utf8-utf16-z9.c
44771         (ONE_DIRECTION): Define.
44772         * sysdeps/s390/s390-64/utf8-utf32-z9.c
44773         (ONE_DIRECTION): Define.
44774
44775 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
44776
44777         * sysdeps/s390/Makefile: Delete file.
44778         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
44779         * sysdeps/s390/__longjmp.c: Delete file.
44780         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
44781         Remove fields __flags and __reserved.
44782         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
44783         and add versioning.
44784         * sysdeps/s390/rtld-__longjmp.c: Delete file.
44785         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
44786         * sysdeps/s390/rtld-setjmp.S: Likewise.
44787         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
44788         * sysdeps/s390/s390-32/__longjmp.c: ... here.
44789         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
44790         * sysdeps/s390/s390-32/setjmp.S: ... here.
44791         Add versioning.
44792         (__sigsetjmp): Remove setting __flags field.
44793         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
44794         * sysdeps/s390/s390-64/__longjmp.c: ... here.
44795         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
44796         * sysdeps/s390/s390-64/setjmp.S: ... here.
44797         Add versioning.
44798         (__sigsetjmp): Remove setting __flags field.
44799         * sysdeps/s390/setjmp.S: Delete file.
44800         * sysdeps/s390/sigjmp.c: Likewise.
44801         * sysdeps/s390/v1-longjmp.c: Likewise.
44802         * sysdeps/s390/v1-setjmp.h: Likewise.
44803         * sysdeps/s390/v1-sigjmp.c: Likewise.
44804         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
44805         Remove v1-longjmp_chk.
44806         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
44807         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
44808         Include debug/longjmp_chk.c and add versioning.
44809         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
44810         Include nptl/pt-longjmp.c and add versioning.
44811         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
44812         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
44813         Include __longjmp.c.
44814         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
44815         Move to ...
44816         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
44817         (__getcontext): Remove setting __flags field.
44818         Add versioning.
44819         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
44820         Don't restore upper high grps.
44821         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
44822         Likewise.
44823         (__swapcontext): Remove setting uc_flags field.
44824         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
44825         Delete file.
44826         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
44827         Include __longjmp.c.
44828         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
44829         Move to ...
44830         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
44831         (__getcontext): Remove setting __flags field.
44832         Add versioning.
44833         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
44834         (__swapcontext): Remove setting uc_flags field.
44835         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
44836         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
44837         Remove fields uc_high_gprs and __reserved.
44838         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
44839         New file with reverted content.
44840         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
44841         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
44842         Regenerated.
44843         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
44844         Regenerated.
44845
44846 2014-07-31  Andreas Schwab  <schwab@suse.de>
44847
44848         * config.h.in (HAVE_IFUNC): Define to 0.
44849         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
44850         definedness.
44851
44852 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
44853
44854         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44855         memmove-avx-unaligned, memcpy-avx-unaligned and
44856         mempcpy-avx-unaligned.
44857         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44858         Add tests for AVX memcpy functions.
44859         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
44860         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
44861         memcpy_chk.
44862         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
44863         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
44864         memmove_chk.
44865         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
44866         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
44867         mempcpy_chk.
44868         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
44869         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
44870         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
44871
44872 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44873
44874         [BZ #17213]
44875         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
44876         powerpc64le.
44877
44878 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
44879
44880         [BZ #16839]
44881         * manual/llio.texi: Add section about open file description locks.
44882         * manual/examples/ofdlocks.c: Example of open file description
44883         lock usage.
44884         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
44885         F_OFD_SETLK, and F_OFD_SETLKW.
44886
44887 2014-07-23  Allan McRae  <allan@archlinux.org>
44888
44889         * po/es.po: Update Spanish translation from translation project.
44890
44891 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
44892
44893         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
44894
44895 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
44896
44897         [BZ #17078]
44898         * sysdeps/arm/dl-machine.h (elf_machine_rela)
44899         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
44900         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
44901
44902 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
44903
44904         [BZ #17088]
44905         * math/fesetenv.c (__fesetenv)
44906         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
44907         * math/feupdateenv.c (__feupdateenv)
44908         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
44909
44910         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
44911         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
44912         (__ASSUME_SOCKETCALL): Do not define.
44913
44914         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
44915         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
44916         (__ASSUME_SOCKETCALL): Do not define.
44917         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
44918         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
44919         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
44920         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
44921         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
44922         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
44923         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
44924         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44925
44926         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
44927         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
44928         (__ASSUME_SOCKETCALL): Do not define.
44929         (__ASSUME_IPC64): Define unconditionally.
44930         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
44931         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
44932         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
44933         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
44934         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
44935         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
44936         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
44937         Likewise.
44938
44939         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
44940         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
44941         (__ASSUME_SOCKETCALL): Do not define.
44942         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
44943         (__ASSUME_FUTEX_LOCK_PI): Likewise.
44944         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
44945         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
44946         (__ASSUME_REQUEUE_PI): Define unconditionally.
44947         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
44948         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
44949         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44950         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
44951         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
44952         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44953
44954         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
44955         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
44956         (__ASSUME_SOCKETCALL): Do not define.
44957         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
44958         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
44959         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44960         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
44961         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
44962         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44963
44964         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
44965         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
44966         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
44967         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
44968         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
44969         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
44970         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
44971         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
44972         (__ASSUME_GETCPU_SYSCALL): Likewise.
44973
44974         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
44975         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
44976         cases for individual architectures.
44977         * sysdeps/gnu/configure: Regenerated.
44978         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
44979         LIBC_SLIBDIR_RTLDDIR.
44980         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
44981         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
44982         LIBC_SLIBDIR_RTLDDIR.
44983         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
44984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
44985         LIBC_SLIBDIR_RTLDDIR.
44986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
44987         Regenerated.
44988         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
44989         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
44990         file.
44991         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
44992         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
44993         file.
44994         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
44995         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
44996         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
44997         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
44998
44999         * sysdeps/aarch64/shlib-versions: Move to ...
45000         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
45001         * sysdeps/alpha/shlib-versions: Move to ...
45002         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
45003         * sysdeps/arm/shlib-versions: Move to ...
45004         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
45005         * sysdeps/hppa/shlib-versions: Move all contents except for
45006         libgcc_s entry to ...
45007         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
45008         entry from ...
45009         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
45010         * sysdeps/ia64/shlib-versions: Move to ...
45011         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
45012         entry from ...
45013         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
45014         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
45015         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
45016         * sysdeps/microblaze/shlib-versions: Move to ...
45017         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
45018         * sysdeps/mips/shlib-versions: Move to ...
45019         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
45020         entry from ...
45021         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
45022         * sysdeps/tile/shlib-versions: Move to ...
45023         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
45024         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
45025         from ...
45026         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
45027         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
45028         entry from ...
45029         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
45030
45031 2014-07-17  Will Newton  <will.newton@linaro.org>
45032
45033         * sysdeps/arm/bits/atomic.h
45034         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
45035         (__arch_compare_and_exchange_bool_16_int): Likewise.
45036         (__arch_compare_and_exchange_bool_64_int): Likewise.
45037
45038         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
45039         into an #else block.
45040
45041 2014-07-16  Roland McGrath  <roland@hack.frob.com>
45042
45043         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
45044         just Linux configurations.  Test empirically that the compiler sets
45045         __ARM_EABI__, rather than using the tuple to decide.
45046         * sysdeps/arm/preconfigure: Regenerated.
45047         * sysdeps/unix/sysv/linux/arm/configure: File removed.
45048         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
45049         contents appended ...
45050         * sysdeps/arm/configure.ac: ... here.
45051         * sysdeps/arm/configure: Regenerated.
45052
45053 2014-07-15  Roland McGrath  <roland@hack.frob.com>
45054
45055         * nptl/pthread_kill.c: New file.
45056         * nptl/pthread_sigmask.c: New file.
45057         * nptl/pthread_sigqueue.c: New file.
45058
45059         * sysdeps/nptl/lowlevellock.h: New file.
45060         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
45061         * sysdeps/nptl/lowlevellock-futex.h: New file.
45062
45063         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
45064         Remove dead declarations.
45065
45066 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
45067
45068         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
45069         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
45070         config-cflags-avx2.
45071         * sysdeps/x86_64/configure.ac: Likewise.
45072         * sysdeps/i386/configure: Regenerated.
45073         * sysdeps/x86_64/configure: Likewise.
45074         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45075         memset-avx2 only if config-cflags-avx2 is yes.
45076         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
45077         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
45078         defined.
45079         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
45080         only if HAVE_AVX2_SUPPORT is defined.
45081         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
45082
45083 2014-07-14  Alan Modra  <amodra@gmail.com>
45084
45085         [BZ #17153]
45086         * elf/elf.h (DT_PPC64_NUM): Correct value.
45087         * NEWS: Add to fixed bug list.
45088
45089 2014-07-13  Jim Meyering  <meyering@fb.com>
45090
45091         [BZ 17150]
45092         regex: don't deref NULL upon heap allocation failure
45093         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
45094         failure in one more place.
45095         To trigger the segfault, configure grep -with-included-regex,
45096         build it, and run these commands:
45097         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
45098
45099 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
45100
45101         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
45102
45103 2014-07-11  Richard Henderson  <rth@redhat.com>
45104
45105         * sysdeps/aarch64/libm-test-ulps: Update.
45106
45107 2014-07-10  Florian Weimer  <fweimer@redhat.com>
45108
45109         [BZ #17135]
45110         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
45111         * nptl/allocatestack.c (__nptl_setxid_error): New function.
45112         (__nptl_setxid): Initialize error member.  Call
45113         __nptl_setxid_error.
45114         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
45115         * nptl/descr.h (struct xid_command): Add error member.
45116         * nptl/tst-setuid3.c: New file.
45117         * nptl/Makefile (tests): Add it.
45118
45119 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45120
45121         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
45122         New define.
45123         (__lll_trylock): Use __lll_base_trylock.
45124         (__lll_cond_trylock): Likewise.
45125
45126 2014-07-10  Roland McGrath  <roland@hack.frob.com>
45127
45128         * nptl/pthread_create.c (start_thread): Use atomic_or and
45129         lll_futex_wake directly rather than lll_robust_dead.
45130         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
45131         (lll_robust_dead): Macro removed.
45132         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
45133         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
45134         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
45135         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
45136         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
45137         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
45138         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
45139         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
45140         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
45141         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
45142         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
45143         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
45144         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
45145         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
45146         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
45147
45148         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
45149         Use atomic_compare_and_exchange_val_acq directly rather than
45150         lll_robust_trylock.
45151         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
45152         (__lll_robust_trylock, lll_robust_trylock): Removed.
45153         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
45154         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
45155         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
45156         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
45157         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
45158         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
45159         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
45160         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
45161         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
45162         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
45163         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
45164         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
45165         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
45166         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
45167
45168 2014-07-02  Florian Weimer  <fweimer@redhat.com>
45169
45170         * manual/locale.texi (Locale Names): New section documenting
45171         locale name syntax.  Adjust menu and node chaining accordingly.
45172         (Choosing Locale): Reference Locale Names, Locale Categories.
45173         Mention setting LC_ALL=C.  Reflect that name syntax is now
45174         documented.
45175         (Locale Categories): New section title.  Reference Locale Names.
45176         LC_ALL is an environment variable, but not a category.
45177         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
45178         description, now in Locale Name.  Reference that section.  Locale
45179         name syntax is now documented.
45180
45181 2014-07-02  Florian Weimer  <fweimer@redhat.com>
45182
45183         [BZ #17137]
45184         * locale/findlocale.c (name_present, valid_locale_name): New
45185         functions.
45186         (_nl_find_locale): Use the loc_name variable to store name
45187         candidates.  Call name_present and valid_locale_name to check and
45188         validate locale names.  Return an error if the locale is invalid.
45189
45190 2014-07-02  Florian Weimer  <fweimer@redhat.com>
45191
45192         * locale/setlocale.c (setlocale): Use strdup for allocating
45193         composite name copy.
45194
45195 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45196
45197         Sync up with gnulib.
45198         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
45199         [!_LIBC && ENABLE_NLS]: Include gettext.h.
45200         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
45201         and _GL_ARG_NONNULL.
45202         [USE_UNLOCKED_IO]: Include unlocked-io.h.
45203         [!_LIBC]: Include code for Windows and Cygwin.
45204         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
45205         Include prototype for int strerror_r.
45206         [!_LIBC] (is_open): New function.
45207         (flush_stdout): New function.
45208         (print_errno_message): Use it.
45209         (error): Likewise.
45210         (error_at_line): Likewise.
45211         (error_tail) Add function attribute macros.  Use
45212         __builtin_expect.
45213
45214         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
45215
45216         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
45217
45218         * io/ftw.c: Include sys/param.h unconditionally.
45219
45220         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
45221
45222         [BZ #17125]
45223         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
45224         libc_freeres_ptr.
45225         (freecache): New function to free CACHE on exit.
45226
45227         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
45228         initialization.
45229
45230 2014-07-09  David S. Miller  <davem@davemloft.net>
45231
45232         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45233
45234         * sysdeps/sparc/nptl/internaltypes.h: Delete.
45235         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
45236         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
45237         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
45238         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
45239         * sysdeps/sparc/nptl/sem_init.c: Likewise.
45240         * sysdeps/sparc/nptl/sem_post.c: Likewise.
45241         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
45242         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
45243         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
45244         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
45245         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
45246         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
45247
45248 2014-07-09  Andreas Schwab  <schwab@suse.de>
45249
45250         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
45251         output.
45252         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
45253         (do_test): Likewise.
45254
45255         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
45256
45257 2014-07-09  Will Newton  <will.newton@linaro.org>
45258
45259         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
45260         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
45261         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
45262         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
45263         * sysdeps/hppa/start.S (_start): Likewise.
45264
45265 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
45266
45267         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
45268
45269         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
45270         defined.
45271
45272 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
45273
45274         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
45275         after checking that it is non-NULL.
45276
45277         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
45278
45279 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45280
45281         * sysdeps/powerpc/memmove.c: Remove file.
45282         * sysdeps/powerpc/powerpc32/power4/memcopy.h
45283         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
45284         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
45285         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
45286         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
45287         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
45288         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
45289         string memmove instead of removed powerpc one.
45290
45291         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
45292         [weak_alias]: Fix compiler warning due trailing data.
45293         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
45294         [weak_alias]: Likewise.
45295         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
45296         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
45297
45298         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
45299         (__libc_ifunc_impl_list): Add memmove functions.
45300
45301 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
45302
45303         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
45304         Remove code.
45305         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
45306         Likewise.
45307         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
45308         Likewise.
45309         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
45310         Likewise.
45311         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
45312         Likewise.
45313         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
45314         Likewise.
45315         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
45316         Likewise.
45317         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
45318         Likewise.
45319         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
45320         Likewise.
45321         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
45322         Likewise.
45323         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
45324         Likewise.
45325         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
45326         Likewise.
45327         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
45328         Likewise.
45329         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
45330         Likewise.
45331         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
45332         Likewise.
45333         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
45334         Likewise.
45335         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
45336         Likewise.
45337
45338 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45339
45340         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
45341         to avoid alignment traps in non-cacheable memory.
45342         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
45343
45344         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
45345         multiarch objects.
45346         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
45347         file: multiarch power7 memmove.
45348         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
45349         multiarch default memmove.
45350         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
45351         multiarch memove for powerpc32/power4.
45352
45353         * string/bcopy.c: Use full path to include memmove.c.
45354         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
45355         multiarch objects.
45356         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
45357         bcopy for powerpc64.
45358         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
45359         bcopy for powerpc64.
45360         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
45361         and memmove implementations.
45362         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
45363         optimized multiarch memmove for POWER7/powerpc64.
45364         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
45365         default multiarch memmove for powerpc64.
45366         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
45367         multiarch for powerpc64.
45368         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
45369         for POWER7/powerpc64.
45370         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
45371         memmove for POWER7/powerpc64.
45372
45373         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
45374         glibc default one.
45375
45376         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
45377         __ELF_NATIVE_CLASS equal to 64.
45378
45379 2014-07-07  Roland McGrath  <roland@hack.frob.com>
45380
45381         * sysdeps/nptl/lowlevellock.h: File removed.
45382
45383         * NEWS: NPTL is no longer an add-on!
45384         * nptl/internaltypes.h: Moved ...
45385         * sysdeps/nptl/internaltypes.h: ... here.
45386         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
45387         * sysdeps/nptl/fork.c: Likewise.
45388         * sysdeps/nptl/gai_misc.h: Likewise.
45389         * sysdeps/nptl/librt-cancellation.c: Likewise.
45390         * sysdeps/nptl/jmp-unwind.c: Likewise.
45391         * sysdeps/nptl/setxid.h: Likewise.
45392         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
45393         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
45394         * sysdeps/unix/sysv/linux/arm/Implies: New file.
45395         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
45396         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
45397         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
45398         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
45399         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
45400         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
45401         * sysdeps/unix/sysv/linux/mips/Implies: New file.
45402         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
45403         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
45404         * sysdeps/unix/sysv/linux/sh/Implies: New file.
45405         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
45406         * sysdeps/unix/sysv/linux/tile/Implies: New file.
45407         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
45408         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
45409         * nptl/Makeconfig: Moved ...
45410         * sysdeps/nptl/Makeconfig: ... here.
45411         * nptl/configure: File removed.
45412         * nptl/ANNOUNCE: File removed.
45413         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
45414         * sysdeps/unix/sysv/linux/configure: Regenerated.
45415
45416         * nptl/Makefile (routines): Add libc_pthread_init,
45417         libc_multiple_threads, register-atfork and unregister-atfork.
45418         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
45419         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
45420         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
45421         pthread-pi-defines.sym, structsem.sym.
45422         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
45423         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
45424         [$(subdir) = nptl] (tests): Add tst-setgetname.
45425         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
45426         * sysdeps/unix/sysv/linux/sigaction.c: Just include
45427         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
45428         [!LIBC_SIGACTION]: Remove aliases.
45429         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
45430         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
45431         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
45432         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
45433         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
45434         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
45435         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
45436         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
45437         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
45438         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
45439         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
45440         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
45441         __libc_allocate_rtsig_private.
45442         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
45443         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
45444         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
45445         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
45446         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
45447         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
45448         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
45449         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
45450         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
45451         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
45452         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
45453         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
45454         * nptl/internaltypes.h: ... here.
45455         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
45456         * sysdeps/nptl/jmp-unwind.c: ... here.
45457         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
45458         * nptl/libc-lowlevellock.c: ... here.
45459         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
45460         * nptl/libc_multiple_threads.c: ... here.
45461         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
45462         * nptl/libc_pthread_init.c: ... here.
45463         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
45464         * nptl/lowlevelbarrier.sym: ... here.
45465         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
45466         * nptl/lowlevelcond.sym: ... here.
45467         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
45468         * nptl/lowlevellock.c: ... here.
45469         * nptl/lowlevellock.h: Moved ...
45470         * sysdeps/nptl/lowlevellock.h: ... here.
45471         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
45472         * nptl/lowlevelrobustlock.c: ... here.
45473         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
45474         * nptl/lowlevelrobustlock.sym: ... here.
45475         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
45476         * nptl/lowlevelrwlock.sym: ... here.
45477         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
45478         * nptl/pt-fork.c: ... here.
45479         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
45480         * nptl/pthread-pi-defines.sym: ... here.
45481         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
45482         * nptl/pthread_attr_getaffinity.c: ... here.
45483         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
45484         * nptl/pthread_attr_setaffinity.c: ... here.
45485         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
45486         * nptl/pthread_mutex_cond_lock.c: ... here.
45487         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
45488         Update #include.
45489         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
45490         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
45491         * nptl/pthread_once.c: ... here, replacing old file.
45492         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
45493         * nptl/pthread_yield.c: ... here.
45494         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
45495         * nptl/register-atfork.c: ... here.
45496         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
45497         * nptl/sem_post.c: ... here.
45498         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
45499         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
45500         * nptl/sem_timedwait.c: ... here.
45501         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
45502         * nptl/sem_trywait.c: ... here.
45503         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
45504         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
45505         * nptl/sem_wait.c: ... here.
45506         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
45507         * nptl/structsem.sym: ... here.
45508         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
45509         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
45510         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
45511         * nptl/unregister-atfork.c: ... here.
45512         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
45513         * nptl/unwindbuf.sym: ... here.
45514         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
45515         * sysdeps/nptl/fork.c: ... here.
45516         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
45517         * sysdeps/nptl/fork.h: ... here.
45518         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
45519         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
45520         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
45521         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
45522         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
45523         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
45524         * sysdeps/unix/sysv/linux/getpid.c: ... here.
45525         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
45526         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
45527         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
45528         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
45529         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
45530         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
45531         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
45532         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
45533         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
45534         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
45535         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
45536         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
45537         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
45538         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
45539         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
45540         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
45541         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
45542         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
45543         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
45544         * sysdeps/unix/sysv/linux/raise.c: ... here.
45545         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
45546         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
45547         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
45548         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
45549         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
45550         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
45551         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
45552         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
45553         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
45554         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
45555         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
45556         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
45557         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
45558         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
45559         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
45560
45561 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45562
45563         * sysdeps/generic/memcopy.h: Add comment for
45564         MEMCPY_OK_FOR_FWD_MEMMOVE.
45565
45566 2014-07-04  Will Newton  <will.newton@linaro.org>
45567
45568         * string/memchr.c: Merge from gnulib.
45569         [_LIBC]: Remove conditionals.
45570         (__ptr_t): Remove define.
45571         (LONG_MAX_32_BITS): Likewise.
45572         (LONG_MAX): Likewise.
45573         (MEMCHR): Use ANSI prototype and optimize algorithm.
45574
45575         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
45576
45577 2014-07-03  Roland McGrath  <roland@hack.frob.com>
45578
45579         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
45580         (lll_futex_timed_wait_bitset): Fix syscall argument count.
45581
45582         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
45583         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
45584         in a bare environment with no <stdlib.h> installed.
45585         * sysdeps/nptl/configure: Regenerated.
45586
45587         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
45588
45589         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
45590         AC_EGREP_CPP for kernel header checks, so they only succeed if
45591         including <linux/version.h> actually works right.
45592         * sysdeps/unix/sysv/linux/configure: Regenerated.
45593
45594         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
45595         value so it's not diagnosed as unused.
45596
45597         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
45598         thing) with "ifeq ($(subdir),rt)".
45599
45600 2014-07-03  Richard Henderson  <rth@redhat.com>
45601
45602         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
45603         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
45604         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
45605
45606         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
45607         (math_force_eval): New.
45608
45609         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
45610         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
45611
45612         * sysdeps/alpha/fpu/s_round.c: Remove file.
45613         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
45614
45615         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
45616         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
45617         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
45618         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
45619         (_dl_start, print_statistics): Likewise.
45620         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
45621         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
45622
45623         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
45624         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
45625         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
45626         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
45627         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
45628         (HP_SMALL_TIMING_AVAIL): Define.
45629         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
45630         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
45631         (HP_SMALL_TIMING_AVAIL): Define.
45632         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
45633         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
45634
45635         * sysdeps/aarch64/hp-timing.h: New file.
45636
45637         * sysdeps/generic/hp-timing.h: Remove dead comment.
45638         * sysdeps/generic/hp-timing-common.h: New file.
45639         * sysdeps/alpha/hp-timing.h: Include it.
45640         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
45641         * sysdeps/i386/i686/hp-timing.h: Likewise.
45642         * sysdeps/ia64/hp-timing.h: Likewise.
45643         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
45644         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
45645         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
45646         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
45647         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
45648         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
45649         (hp_timing_t): New.
45650
45651         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
45652         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
45653         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
45654         * elf/rtld.c (_dl_start_final): Likewise.
45655         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
45656         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
45657         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
45658         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
45659         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
45660         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
45661         (HP_TIMING_DIFF_INIT): Remove.
45662         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
45663         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
45664         (HP_TIMING_DIFF_INIT): Remove.
45665         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
45666         * sysdeps/i386/i686/hp-timing.c: Remove file.
45667         * sysdeps/x86_64/hp-timing.c: Remove file.
45668         * sysdeps/ia64/hp-timing.c: Remove file.
45669         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
45670         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
45671         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
45672         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
45673
45674         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
45675         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
45676         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
45677         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
45678         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
45679         (HP_TIMING_ACCUM): Remove.
45680         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
45681         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
45682         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
45683
45684         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
45685         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
45686         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
45687         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
45688         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
45689         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
45690         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
45691         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
45692
45693         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
45694
45695 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
45696
45697         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
45698
45699 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45700
45701         Sync up with gettext.
45702         * intl/loadmsgcat.c: Define O_BINARY if not defined.
45703         [_MSC_VER]: Include malloc.h
45704         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
45705         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
45706         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
45707         TEMP_FAILURE_RETRY.  Cast return of alloca.
45708         [!_LIBC] Call gl_rwlock_init.
45709         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
45710
45711 2014-07-02  Roland McGrath  <roland@hack.frob.com>
45712
45713         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
45714         before checking its value.
45715
45716 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45717
45718         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
45719
45720         * debug/memcpy_chk.c: Don't include pagecopy.h.
45721         * debug/mempcpy_chk.c: Likewise.
45722         * string/memcpy.c: Likewise.
45723         * string/memmove.c: Likewise.
45724         * sysdeps/powerpc/memmove.c: Likewise.
45725         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
45726         definition of PAGE_COPY_FWD_MAYBE here...
45727         * sysdeps/generic/pagecopy.h: ... from here.
45728         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
45729
45730 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
45731             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45732
45733         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
45734         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
45735         optimizations.
45736         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
45737         (__libc_ifunc_impl_list): Likewise.
45738         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
45739         multiarch strcat for PPC64.
45740         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
45741         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
45742
45743 2014-07-02  Roland McGrath  <roland@hack.frob.com>
45744
45745         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
45746
45747 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45748
45749         * intl/loadmsgcat.c: Remove declaration of
45750         get_sysdep_segment_value.
45751         (get_sysdep_segment_value): Use ISO C style.
45752         (_nl_load_domain): Use ISO C style.  Get rid of redundant
45753         semicolon.  Fix typo and formatting in comment.
45754         (_nl_unload_domain): Use ISO C style.
45755
45756         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
45757
45758 2014-07-02  Will Newton  <will.newton@linaro.org>
45759
45760         * malloc/obstack.c: Merge from gnulib master.
45761         [HAVE_CONFIG_H]: Remove conditional code.
45762         [!_LIBC]: Include config.h.
45763         [!ELIDE_CODE]: Don't include inttypes.h, include
45764         stdint.h unconditionally.
45765         (print_and_abort): Mark as _Noreturn.
45766         (_obstack_allocated_p): Mark as __attribute_pure__.
45767         (obstack_free): Rename to __obstack_free.
45768         [!__attribute__]: Remove conditional code.
45769         * malloc/obstack.h: Merge from gnulib master.
45770         [__cplusplus]: Move conditional down.
45771         [!__attribute_pure__]: Define __attribute_pure__ here
45772         if it is not already defined.
45773         (_obstack_memory_used): Mark as __attribute_pure__.
45774         [!__obstack_free]: Define as obstack_free.
45775         [__GNUC__]: Remove check for ancient NeXT gcc.
45776
45777 2014-07-02  Will Newton  <will.newton@linaro.org>
45778             Paul Eggert  <eggert@cs.ucla.edu>
45779
45780         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
45781
45782 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45783
45784         * resolv/gethnamaddr.c: Add comment warning that the file is
45785         not maintained.
45786
45787 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
45788
45789         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
45790         entries.
45791
45792         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
45793         entry for aio_cancel and aio_cancel64.
45794         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
45795         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
45796         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
45797         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
45798         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
45799         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
45800         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
45801         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
45802         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
45803         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
45804         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
45805         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
45806         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
45807
45808 2014-07-01  Roland McGrath  <roland@hack.frob.com>
45809
45810         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
45811         * nptl/pthread_mutex_lock.c: Likewise.
45812         * nptl/pthread_mutex_timedlock.c: Likewise.
45813         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
45814
45815 2014-07-01  Richard henderson  <rth@redhat.com>
45816
45817         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
45818         (__isnan, __isnanl): Remove.
45819         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
45820
45821         * sysdeps/alpha/fpu/libm-test-ulps: Update.
45822
45823 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
45824
45825         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45826
45827 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
45828
45829         * resolv/nss_dns/dns-host.c (getanswer_r)
45830         [MULTI_PTRS_ARE_ALIASES]: Remove code.
45831
45832 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
45833
45834         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
45835         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
45836         undefine.
45837         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
45838         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
45839
45840 2014-07-01  Roland McGrath <roland@hack.frob.com>
45841
45842         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
45843         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
45844
45845         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
45846         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
45847
45848         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
45849         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
45850         ... here.
45851         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
45852         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
45853
45854         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
45855         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
45856         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
45857         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
45858
45859         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
45860         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
45861         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
45862         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
45863         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
45864         Moved ...
45865         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
45866         ... here.
45867         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
45868         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
45869         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
45870         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
45871         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
45872         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
45873         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
45874         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
45875         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
45876         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
45877         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
45878         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
45879         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
45880         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
45881         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
45882         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
45883         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
45884         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
45885         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
45886         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
45887         ... here.
45888         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
45889         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
45890         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
45891         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
45892         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
45893         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
45894         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
45895         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
45896
45897 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
45898
45899         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
45900         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
45901         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
45902         Add sysdep.
45903
45904 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45905
45906         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45907
45908 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
45909
45910         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
45911         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
45912
45913         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45914
45915         * sysdeps/arm/libm-test-ulps: Regenerated.
45916
45917 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
45918             Roland McGrath <roland@hack.frob.com>
45919
45920         * test-skeleton.c (signal_handler): Kill the whole process group
45921         before killing the child individually.
45922         (main): Report any failure on `setpgid'.
45923
45924 2014-06-30  Roland McGrath  <roland@hack.frob.com>
45925
45926         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
45927         from _TLS_H to _ARM_NPTL_TLS_H.
45928         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
45929         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
45930
45931 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
45932
45933         [BZ #16539]
45934         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
45935         (__expm1l): Return argument unchanged when small but not
45936         subnormal.
45937
45938         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
45939         include macro name.
45940         (_FP_UNPACK_RAW_1_P): Likewise.
45941         (_FP_PACK_RAW_1): Likewise.
45942         (_FP_PACK_RAW_1_P): Likewise.
45943         (_FP_MUL_MEAT_1_wide): Likewise.
45944         (_FP_MUL_MEAT_DW_1_hard): Likewise.
45945         (_FP_MUL_MEAT_1_hard): Likewise.
45946         (_FP_DIV_MEAT_1_imm): Likewise.
45947         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
45948         (_FP_DIV_MEAT_1_udiv): Likewise.
45949         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
45950         (_FP_UNPACK_RAW_2): Likewise.
45951         (_FP_UNPACK_RAW_2_P): Likewise.
45952         (_FP_PACK_RAW_2): Likewise.
45953         (_FP_PACK_RAW_2_P): Likewise.
45954         (_FP_MUL_MEAT_DW_2_wide): Likewise.
45955         (_FP_MUL_MEAT_2_wide): Likewise.
45956         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
45957         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
45958         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
45959         (_FP_MUL_MEAT_2_gmp): Likewise.
45960         (_FP_DIV_MEAT_2_udiv): Likewise.
45961         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
45962         (_FP_FRAC_SRL_4): Likewise.
45963         (_FP_FRAC_SRST_4): Likewise.
45964         (_FP_FRAC_SRS_4): Likewise.
45965         (_FP_UNPACK_RAW_4): Likewise.
45966         (_FP_UNPACK_RAW_4_P): Likewise.
45967         (_FP_PACK_RAW_4): Likewise.
45968         (_FP_PACK_RAW_4_P): Likewise.
45969         (_FP_MUL_MEAT_DW_4_wide): Likewise.
45970         (_FP_MUL_MEAT_4_wide): Likewise.
45971         (_FP_MUL_MEAT_4_gmp): Likewise.
45972         (umul_ppppmnnn): Likewise.
45973         (_FP_DIV_MEAT_4_udiv): Likewise.
45974         (__FP_FRAC_ADD_4): Likewise.
45975         (__FP_FRAC_SUB_3): Likewise.
45976         (__FP_FRAC_SUB_4): Likewise.
45977         (__FP_FRAC_DEC_3): Likewise.
45978         (__FP_FRAC_DEC_4): Likewise.
45979         (__FP_FRAC_ADDI_4): Likewise.
45980         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
45981         (_FP_FRAC_SRL_8): Likewise.
45982         (_FP_FRAC_SRS_8): Likewise.
45983
45984         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
45985         include macro name.
45986         (FP_UNPACK_RAW_EP): Likewise.
45987         (FP_PACK_RAW_E): Likewise.
45988         (FP_PACK_RAW_EP): Likewise.
45989         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
45990         (_FP_ISSIGNAN): Likewise.
45991         (_FP_ADD_INTERNAL): Likewise.
45992         (_FP_FMA): Likewise.
45993         (_FP_CMP): Likewise.
45994         (_FP_SQRT): Likewise.
45995         (_FP_TO_INT): Likewise.
45996         (_FP_FROM_INT): Likewise.
45997         (FP_EXTEND): Likewise.
45998         (_FP_DIV_MEAT_N_loop): Likewise.
45999
46000 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
46001
46002         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
46003         throughout.
46004
46005 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
46006
46007         [BZ #17097]
46008         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
46009         result with correct sign in case of exponents that produce
46010         overflow except for X very close to 1.
46011
46012 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
46013
46014         mktime: merge #if/#ifdef usage from glibc
46015         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
46016         as that works with both Glibc's and Gnulib's style.
46017         See thread starting at Siddhesh Poyarekar's bug report at:
46018         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
46019
46020 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
46021
46022         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
46023         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
46024         * sysdeps/tile/tilegx/memmove.c: Remove file.
46025
46026 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
46027
46028         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
46029         abi-name definition.
46030         * scripts/soversions.awk: Do not handle or generate ABI lines.
46031         * shlib-versions: Remove ABI entries.
46032         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
46033         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
46034
46035 2014-06-27  Roland McGrath  <roland@hack.frob.com>
46036
46037         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
46038         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
46039         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
46040         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
46041         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
46042         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
46043         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
46044         Moved ...
46045         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
46046         ... here.
46047         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
46048         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
46049         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
46050         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
46051         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
46052         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
46053         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
46054         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
46055         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
46056         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
46057         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
46058         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
46059         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
46060         Moved ...
46061         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
46062         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
46063         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
46064         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
46065         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
46066         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
46067         Moved ...
46068         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
46069         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
46070         Moved ...
46071         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
46072         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
46073         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
46074         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
46075         Moved ...
46076         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
46077         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
46078         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
46079         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
46080         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
46081         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
46082         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
46083         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
46084         Moved ...
46085         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
46086         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
46087         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
46088         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
46089         Moved ...
46090         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
46091         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
46092         Moved ...
46093         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
46094         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
46095         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
46096         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
46097         Moved ...
46098         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
46099         ... here.
46100         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
46101         Identical file removed.
46102         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
46103         Moved ...
46104         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
46105         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
46106         Identical file removed.
46107         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
46108         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
46109         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
46110         Moved ...
46111         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
46112         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
46113         Identical file removed.
46114         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
46115         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
46116         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
46117         Identical file removed.
46118         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
46119         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
46120         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
46121         Identical file removed.
46122         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
46123         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
46124         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
46125         Identical file removed.
46126         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
46127         Moved ...
46128         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
46129         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
46130         Identical file removed.
46131         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
46132         Moved ...
46133         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
46134         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
46135         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
46136         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
46137         Identical file removed.
46138         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
46139         Moved ...
46140         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
46141         ... here.
46142         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
46143         Identical file removed.
46144         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
46145         Moved ...
46146         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
46147         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
46148         Identical file removed.
46149         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
46150         Moved ...
46151         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
46152         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
46153         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
46154         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
46155         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
46156         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
46157         Moved ...
46158         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
46159         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
46160         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
46161
46162         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
46163         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
46164         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
46165         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
46166         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
46167
46168 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
46169
46170         [BZ #17092]
46171         * nscd/nscd.c (monitor_child): Return exit status of child
46172         instead of return value from wait syscall.
46173
46174 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
46175
46176         * configure.ac (libc_commonpagesize): Remove variable.
46177         (libc_relro_required): Likewise.
46178         (libc_cv_z_relro): Remove configure test.
46179         * configure: Regenerated.
46180         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
46181         variable.
46182         (libc_relro_required): Likewise.
46183         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
46184         (libc_relro_required): Likewise.
46185         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
46186         (libc_relro_required): Likewise.
46187         * sysdeps/arm/preconfigure: Regenerated.
46188         * sysdeps/ia64/preconfigure: Remove file.
46189         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
46190         variable.
46191         (libc_relro_required): Likewise.
46192
46193         [BZ #16561]
46194         [BZ #16562]
46195         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
46196         (__ieee754_yn): Set FE_TONEAREST mode internally and then
46197         recompute overflowing results in original rounding mode.
46198         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
46199         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
46200         recompute overflowing results in original rounding mode.
46201         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
46202         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
46203         recompute overflowing results in original rounding mode.
46204         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
46205         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
46206         recompute overflowing results in original rounding mode.
46207         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
46208         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
46209         recompute overflowing results in original rounding mode.
46210         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
46211         (libc_feholdsetround_ctx): New macro.
46212         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
46213         * sysdeps/i386/fpu/libm-test-ulps: Update.
46214         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
46215
46216 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
46217
46218         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
46219         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
46220         corresponding .cpsetup call.
46221
46222 2014-06-26  Roland McGrath  <roland@hack.frob.com>
46223
46224         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
46225         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
46226         * sysdeps/arm/Makefile [$(subdir) = csu]
46227         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
46228         (static-only-routines): Add aeabi_read_tp here.
46229         (shared-only-routines): Add libc-aeabi_read_tp here.
46230         (CFLAGS-libc-start.c): Add -fexceptions here.
46231         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
46232         (sysdep_routines, static-only-routines, shared-only-routines):
46233         Don't add to these here.
46234         (CFLAGS-libc-start.c): Likewise.
46235
46236         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
46237         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
46238         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
46239         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
46240         * sysdeps/arm/Makefile [$(subdir) = rt]
46241         (librt-sysdep_routines, librt-shared-only-routines):
46242         Append rt-aeabi_unwind_cpp_pr1 here.
46243         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
46244         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
46245         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
46246         (libpthread-sysdep_routines, libpthread-shared-only-routines):
46247         Append nptl-aeabi_unwind_cpp_pr1 here.
46248         (tests): Filter out tst-cleanupx4 here.
46249         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
46250         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
46251         Don't do those here.
46252
46253 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
46254
46255         * scripts/list-sources.sh: Do not handle ports specially.
46256
46257 2014-06-26  Roland McGrath  <roland@hack.frob.com>
46258
46259         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
46260         * sysdeps/arm/feupdateenv.c: Likewise.
46261
46262         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
46263
46264 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
46265
46266         * manual/texinfo.tex: Update to version 2014-05-05.10 with
46267         trailing whitespace removed.
46268         * scripts/config.guess: Update to version 2014-03-23.
46269         * scripts/config.sub: Update to version 2014-05-01
46270         * scripts/install-sh: Update to version 2013-12-25.23.
46271         * scripts/move-if-change: Update from gnulib.
46272
46273 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
46274
46275         * debug/memmove_chk.c: Remove pagecopy.h include.
46276
46277 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46278
46279         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
46280         identical to gnulib mktime.
46281
46282 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
46283
46284         * configure.ac: Do not test for machine being rs6000.  Do not test
46285         for powerpc*-*soft.
46286         * configure: Regenerated.
46287
46288         [BZ #11505]
46289         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
46290         test.
46291         * configure: Regenerated.
46292         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
46293         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
46294         Remove configure test.
46295         * sysdeps/arm/configure: Regenerated.
46296         * sysdeps/nptl/configure.ac: Do not check
46297         libc_cv_asm_cfi_directives.
46298         * sysdeps/nptl/configure: Regenerated.
46299         * sysdeps/x86_64/nptl/configure.ac: Remove file.
46300         * sysdeps/x86_64/nptl/configure: Remove generated file.
46301         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
46302         unconditional.
46303         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
46304
46305 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
46306
46307         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
46308         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
46309         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
46310         it is defined.
46311
46312         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
46313         instead of whether it is defined.
46314         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
46315         * sysdeps/hppa/dl-machine.h: Likewise.
46316         * sysdeps/ia64/dl-machine.h: Likewise.
46317         * sysdeps/m68k/dl-machine.h: Likewise.
46318         * sysdeps/microblaze/dl-machine.h: Likewise.
46319         * sysdeps/mips/dl-machine.: Likewise.
46320         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
46321         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
46322         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
46323         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
46324         * sysdeps/sh/dl-machine.h: Likewise.
46325         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
46326         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
46327         * sysdeps/tile/dl-machine.h: Likewise.
46328         * sysdeps/x86_64/dl-machine.h: Likewise.
46329
46330         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
46331         code.
46332         (verify_persistent_db): Likewise.
46333
46334 2014-06-26  Roland McGrath  <roland@hack.frob.com>
46335
46336         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
46337         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
46338         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
46339         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
46340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
46341         Moved ...
46342         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
46343         ... here.
46344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
46345         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
46346         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
46347         Identical file removed.
46348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
46349         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
46350         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
46351         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
46352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
46353         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
46354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
46355         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
46356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
46357         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
46358         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
46359         Moved ...
46360         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
46361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
46362         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
46363         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
46364         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
46365         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
46366         Moved ...
46367         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
46368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
46369         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
46370         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
46371         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
46372         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
46373         Identical file removed.
46374         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
46375         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
46376         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
46377         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
46378         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
46379         Moved ...
46380         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
46381         ... here.
46382         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
46383         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
46384         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
46385         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
46386         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
46387         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
46388         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
46389         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
46390         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
46391         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
46392         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
46393         Moved ...
46394         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
46395         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
46396         Moved ...
46397         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
46398         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
46399         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
46400         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
46401         Moved ...
46402         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
46403         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
46404         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
46405
46406         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
46407         folded into ...
46408         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
46409         * sysdeps/unix/sysv/linux/s390/Versions
46410         (libpthread: GLIBC_2.19): New version set.
46411         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
46412         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
46413         (librt: GLIBC_2.3.3): New version set.
46414         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
46415         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
46416         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
46417         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
46418         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
46419         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
46420         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
46421         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
46422         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
46423         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
46424         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
46425         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
46426         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
46427         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
46428         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
46429         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
46430         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
46431         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
46432         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
46433         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
46434         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
46435         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
46436         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
46437         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
46438         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
46439         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
46440         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
46441         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
46442         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
46443         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
46444         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
46445         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
46446         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
46447         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
46448         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
46449         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
46450         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
46451         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
46452         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
46453         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
46454         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
46455         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
46456         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
46457         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
46458         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
46459
46460         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
46461         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
46462         (__libc_vfork): Define the function under this name.
46463         [!NOT_IN_libc] (__vfork): Make this an alias.
46464         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
46465         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
46466         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
46467         (__libc_vfork): Define the function under this name.
46468         [!NOT_IN_libc] (__vfork): Make this an alias.
46469         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
46470         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
46471         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
46472         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
46473         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
46474         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
46475
46476         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
46477         code that was previously under [RESET_PID].
46478         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
46479         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
46480         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
46481
46482         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
46483         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
46484         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
46485         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
46486         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
46487         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
46488         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
46489         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
46490         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
46491         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
46492         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
46493         Moved ...
46494         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
46495         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
46496         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
46497         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
46498         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
46499         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
46500         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
46501         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
46502         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
46503         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
46504         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
46505         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
46506         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
46507         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
46508         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
46509         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
46510         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
46511         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
46512         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
46513         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
46514         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
46515         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
46516         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
46517         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
46518         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
46519         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
46520         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
46521         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
46522         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
46523
46524 2014-06-25  Roland McGrath  <roland@hack.frob.com>
46525
46526         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
46527         that was previously under [RESET_PID].
46528         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
46529
46530 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
46531
46532         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
46533         not undefine and redefine.
46534         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
46535         [O_CLOEXEC]: Make code unconditional.
46536         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
46537         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
46538         <kernel-features.h>.
46539         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
46540         conditional variable definition.
46541         (shm_open) [O_CLOEXEC]: Make code unconditional.
46542         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
46543         code.
46544
46545         * configure.ac (USE_REGPARMS): Don't define here.
46546         * configure: Regenerated.
46547         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
46548         * sysdeps/i386/configure: Regenerated.
46549
46550         * nptl/createthread.c: Don't include kernel-features.h.
46551         * nptl/pthread_cancel.c: Likewise.
46552         * nptl/pthread_condattr_setclock.c: Likewise.
46553         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
46554         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
46555         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
46556         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
46557         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
46558         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
46559         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
46560         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
46561         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
46562         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
46563         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
46564         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
46565         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
46566         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
46567         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
46568         * nscd/gai.c: Likewise.
46569         * nss/nss_db/db-open.c: Likewise.
46570         * sysdeps/generic/ldsodefs.h: Likewise.
46571         * sysdeps/sh/nptl/tls.h: Likewise.
46572         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
46573         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
46574         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
46575         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
46576         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
46577         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
46578         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
46579         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
46580         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
46581         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
46582         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
46583         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
46584         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
46585         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
46586         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
46587         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
46588         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
46589         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
46590         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
46591         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
46592         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
46593         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
46594         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
46595         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
46596         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
46597         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
46598         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
46599         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
46600         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
46601         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
46602         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
46603         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
46604         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
46605         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
46606         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
46607         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
46608         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
46609         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
46610         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
46611         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
46612         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
46613         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
46614         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
46615         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46616         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
46617         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
46618         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
46619         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
46620         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
46621         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
46622         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
46623         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
46624         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
46625         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
46626         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
46627         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
46628         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
46629         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
46630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
46632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
46633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
46634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
46635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
46636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
46637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
46638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
46641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
46642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
46643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
46644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
46645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
46646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
46647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
46648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
46649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
46650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
46651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
46652         * sysdeps/unix/sysv/linux/pread.c: Likewise.
46653         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
46654         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
46655         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
46656         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
46657         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
46658         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
46659         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
46660         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
46661         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
46662         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
46663         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
46664         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
46665         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
46666         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
46667         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
46668         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
46669         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
46670         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
46671         * sysdeps/unix/sysv/linux/system.c: Likewise.
46672         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
46673         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
46674         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
46675         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
46676         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
46677         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
46678         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
46679
46680         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
46681         * configure: Regenerated.
46682         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
46683
46684         * configure.ac (base_machine): Do not set specially for particular
46685         machines here.
46686         * configure: Regenerated.
46687         * sysdeps/powerpc/preconfigure: Move machine and base_machine
46688         settings from configure.ac.
46689         * sysdeps/i386/preconfigure: New file.
46690         * sysdeps/s390/preconfigure: Likewise.
46691         * sysdeps/sh/preconfigure: Likewise.
46692         * sysdeps/sparc/preconfigure: Likewise.
46693
46694 2014-06-25  Roland McGrath  <roland@hack.frob.com>
46695
46696         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
46697         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
46698         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
46699         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
46700         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
46701         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
46702         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
46703         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
46704         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
46705         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
46706         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
46707         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
46708         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
46709         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
46710         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
46711         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
46712         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
46713         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
46714         * sysdeps/sparc/sparc64/Makefile: ... appended here.
46715
46716         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
46717         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
46718         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
46719         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
46720         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
46721         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
46722         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
46723         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
46724         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
46725         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
46726         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
46727         * sysdeps/sparc/sparc32/sem_post.c: ... here.
46728         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
46729         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
46730         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
46731         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
46732         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
46733         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
46734         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
46735         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
46736         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
46737         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
46738         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
46739         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
46740         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
46741         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
46742         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
46743         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
46744         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
46745         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
46746         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
46747         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
46748         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
46749         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
46750         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
46751         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
46752         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
46753         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
46754
46755         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
46756         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
46757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
46758         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
46759         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
46760         Moved ...
46761         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
46762         ... here.
46763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
46764         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
46765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
46766         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
46767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
46768         Moved ...
46769         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
46770         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
46771         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
46772         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
46773         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
46774         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
46775         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
46776         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
46777         Moved ...
46778         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
46779         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
46780         Moved ...
46781         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
46782         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
46783         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
46784         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
46785         Moved ...
46786         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
46787         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
46788         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
46789         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
46790         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
46791         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
46792         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
46793         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
46794         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
46795         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
46796         Moved ...
46797         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
46798         ... here.
46799         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
46800         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
46801         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
46802         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
46803         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
46804         Moved ...
46805         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
46806         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
46807         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
46808         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
46809         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
46810         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
46811         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
46812         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
46813         Moved ...
46814         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
46815         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
46816         Moved ...
46817         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
46818         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
46819         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
46820         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
46821         Moved ...
46822         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
46823         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
46824         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
46825         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
46826         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
46827
46828 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
46829
46830         * timezone/checktab.awk: Update from tzcode 2014e.
46831         * timezone/private.h: Likewise.
46832         * timezone/tzfile.h: Likewise.
46833         * timezone/zdump.c: Likewise.
46834         * timezone/zic.c: Likewise.
46835
46836         * sysdeps/unix/sysv/linux/kernel-features.h
46837         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
46838         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
46839         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
46840         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
46841         Remove conditional code.
46842
46843 2014-06-25  Will Newton  <will.newton@linaro.org>
46844
46845         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
46846         (_dl_arm_cap_flags): Add HWCAP2 values.
46847         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
46848         (_DL_HWCAP_COUNT): Increase to 37.
46849         (_DL_HWCAP_LAST): New define.
46850         (_DL_HWCAP2_LAST): New define.
46851         (_dl_procinfo): Add support for printing
46852         AT_HWCAP2 entries.
46853         (_dl_string_hwcap): Use _dl_hwcap_string.
46854
46855 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46856
46857         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46858
46859 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
46860
46861         * README: Do not mention ports directory.
46862
46863         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
46864         Remove macro.
46865         * sysdeps/unix/sysv/linux/futimes.c: Do not include
46866         <kernel-features.h>.
46867         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
46868         conditional variable definition.
46869         (__futimes): Update comment.
46870         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
46871         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
46872
46873         [BZ #16560]
46874         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
46875         arguments close to 0.
46876         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
46877         Likewise.
46878         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
46879         Likewise.
46880         * math/auto-libm-test-in: Add more tests of exp10.
46881         * math/auto-libm-test-out: Regenerated.
46882         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46883
46884         * sysdeps/unix/sysv/linux/kernel-features.h
46885         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
46886         * sysdeps/unix/sysv/linux/readv.c: Do not include
46887         <kernel-features.h>.
46888         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
46889         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
46890         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
46891         unconditional.
46892         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
46893         conditional code.
46894         * sysdeps/unix/sysv/linux/writev.c: Do not include
46895         <kernel-features.h>.
46896         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
46897         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
46898         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
46899         unconditional.
46900         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
46901         conditional code.
46902
46903 2014-06-25  Will Newton  <will.newton@linaro.org>
46904
46905         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
46906         comment changes throughout the file.  Remove checks
46907         for HAVE_*_H definitions that are not required.
46908         (__gen_tempname): Call abort if an unknown kind value is
46909         passed.
46910
46911 2014-06-25  Andreas Schwab  <schwab@suse.de>
46912
46913         [BZ #17086]
46914         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
46915         scalbln, scalblnf, scalblnl in libc.
46916
46917 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
46918
46919         [BZ #17086]
46920         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
46921         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
46922         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
46923
46924 2014-06-24  Roland McGrath  <roland@hack.frob.com>
46925
46926         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
46927         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
46928         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
46929         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
46930         Update #include.
46931         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
46932         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
46933         Update #include.
46934         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
46935         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
46936         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
46937         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
46938         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
46939         * sysdeps/x86/bits/pthreadtypes.h: ... here.
46940         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
46941         * sysdeps/x86/bits/semaphore.h: ... here.
46942         * sysdeps/x86/nptl/elide.h: Moved ...
46943         * sysdeps/x86/elide.h: ... here.
46944         * sysdeps/x86_64/nptl/Implies: File removed.
46945         * sysdeps/i386/nptl/Implies: File removed.
46946
46947 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
46948
46949         [BZ #16539]
46950         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
46951         return the argument for normal arguments with exponent below -64.
46952         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
46953         Likewise.
46954         * math/auto-libm-test-in: Add another test of expm1.
46955         * math/auto-libm-test-out: Regenerated.
46956
46957         [BZ #16287]
46958         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
46959         calling __erfcl for arguments at least 16.
46960         * math/auto-libm-test-in: Add more tests of erf.
46961         * math/auto-libm-test-out: Regenerated.
46962
46963         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
46964         individual architectures.
46965         * sysdeps/unix/sysv/linux/configure: Regenerated.
46966         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
46967         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
46968         * sysdeps/unix/sysv/linux/powerpc/configure.ac
46969         (ldd_rewrite_script): Define variable.
46970         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
46971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
46972         file.
46973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
46974         generated file.
46975         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
46976         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
46977         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
46978         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
46979         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
46980         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
46981         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
46982         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
46983
46984 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
46985
46986         [BZ #17084]
46987         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
46988         Rename member __data.d to __data.__elision_data.
46989
46990 2014-06-24  Wilco  <wdijkstr@arm.com>
46991
46992         * NEWS: Add 16918 to fixed bug list.
46993
46994 2014-06-24  Wilco  <wdijkstr@arm.com>
46995
46996         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
46997
46998 2014-06-24  Wilco  <wdijkstr@arm.com>
46999
47000         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
47001         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
47002         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
47003         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
47004         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
47005         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
47006         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
47007         Use _FPU_MASK_RM.
47008
47009 2014-06-24  Wilco  <wdijkstr@arm.com>
47010
47011         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
47012
47013 2014-06-24  Wilco  <wdijkstr@arm.com>
47014
47015         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
47016         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
47017         * sysdeps/arm/fesetround.c (fesetround): Remove space.
47018         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
47019
47020 2014-06-24  Wilco  <wdijkstr@arm.com>
47021
47022         [BZ #16918]
47023         * sysdeps/arm/feupdateenv.c (feupdateenv):
47024         Rewrite to reduce FPSCR accesses and fix return value.
47025
47026 2014-06-24  Wilco  <wdijkstr@arm.com>
47027
47028         * sysdeps/arm/fclrexcpt.c (feclearexcept):
47029         Optimize to avoid unnecessary FPSCR writes.
47030         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
47031         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
47032         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
47033         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
47034
47035 2014-06-24  Wilco  <wdijkstr@arm.com>
47036
47037         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
47038         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
47039         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
47040         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
47041         Call libc_fetestexcept_vfp.
47042         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
47043         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
47044         __SOFTFP__ ifdef so that they can be built for softfp.
47045
47046 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
47047
47048         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
47049         argument type signed char.
47050
47051         * Makerules (check-abi): Dump diff of symlist if the test
47052         fails.
47053
47054 2014-06-23  Roland McGrath  <roland@hack.frob.com>
47055
47056         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
47057         using abort.
47058
47059         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
47060         Remove unused variable ST.
47061
47062 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
47063
47064         [BZ #16354]
47065         [BZ #17061]
47066         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
47067         small arguments before calling __expm1.
47068         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
47069         small arguments before calling __expm1f.
47070         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
47071         small arguments before calling __expm1l.
47072         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
47073         Likewise.
47074         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
47075         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
47076         spurious underflow for some cosh tests.
47077         * math/auto-libm-test-out: Regenerated.
47078         * sysdeps/i386/fpu/libm-test-ulps: Update.
47079
47080         [BZ #17050]
47081         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
47082         (__ieee754_y1): Set errno if return value overflows.
47083         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
47084         (__ieee754_y1f): Set errno if return value overflows.
47085         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
47086         (__ieee754_y1l): Set errno if return value overflows.
47087         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
47088         (__ieee754_y1l): Set errno if return value overflows.
47089         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
47090         * math/auto-libm-test-out: Regenerated.
47091
47092         * math/gen-auto-libm-tests.c: Document use of
47093         ignore-zero-inf-sign.
47094         (input_flag_type): Add value flag_ignore_zero_inf_sign.
47095         (input_flags): Add ignore-zero-inf-sign.
47096         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
47097         * math/gen-libm-test.pl (generate_testfile): Handle
47098         ignore-zero-inf-sign.
47099         * math/auto-libm-test-in: Mark some cpow tests with
47100         ignore-zero-inf-sign and some with xfail-rounding.
47101         * math/auto-libm-test-out: Regenerated.
47102         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
47103         * sysdeps/i386/fpu/libm-test-ulps: Update.
47104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47105
47106         [BZ #16315]
47107         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
47108         overflowing or underflowing operations take place with sign of
47109         result.
47110         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
47111         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
47112         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
47113         (__ieee754_pow): Recompute overflowing and underflowing results in
47114         original rounding mode.
47115         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
47116         (__powl_helper): Allow negative argument X and scale negated value
47117         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
47118         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
47119         overflowing or underflowing operations take place with sign of
47120         result.
47121         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
47122         Include <math.h>.
47123         * math/auto-libm-test-in: Add more tests of pow.
47124         * math/auto-libm-test-out: Regenerated.
47125         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
47126         (pow_tonearest_test_data): Remove.
47127         (pow_test_tonearest): Likewise.
47128         (pow_towardzero_test_data): Likewise.
47129         (pow_test_towardzero): Likewise.
47130         (pow_downward_test_data): Likewise.
47131         (pow_test_downward): Likewise.
47132         (pow_upward_test_data): Likewise.
47133         (pow_test_upward): Likewise.
47134         (main): Don't call removed functions.
47135         * sysdeps/i386/fpu/libm-test-ulps: Update.
47136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47137
47138 2014-06-23  Roland McGrath  <roland@hack.frob.com>
47139
47140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
47141         Moved ...
47142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
47143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
47144         Moved ...
47145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
47146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
47147         Moved ...
47148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
47149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
47150         Moved ...
47151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
47152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
47153         File removed.
47154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
47155         File removed.
47156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
47157         File removed.
47158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
47159         File removed.
47160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
47161         File removed.
47162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
47163         File removed.
47164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
47165         File removed.
47166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
47167         File removed.
47168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
47169         File removed.
47170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
47171         File removed.
47172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
47173         File removed.
47174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
47175         File removed.
47176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
47177         Moved ...
47178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
47179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
47180         Moved ...
47181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
47182         ... here.
47183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
47184         Moved ...
47185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
47186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
47187         Moved ...
47188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
47189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
47190         Moved ...
47191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
47192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
47193         Moved ...
47194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
47195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
47196         Moved ...
47197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
47198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
47199         Moved ...
47200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
47201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
47202         Moved ...
47203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
47204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
47205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
47206         ... here.
47207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
47208         Moved ...
47209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
47210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
47211         Moved ...
47212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
47213         ... here.
47214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
47215         Moved ...
47216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
47217         ... here.
47218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
47219         Moved ...
47220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
47221         ... here.
47222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
47223         Moved ...
47224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
47225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
47226         Moved ...
47227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
47228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
47229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
47230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
47231         Moved ...
47232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
47233         ... here.
47234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
47235         Moved ...
47236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
47237         ... here.
47238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
47239         Moved ...
47240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
47241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
47242         Moved ...
47243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
47244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
47245         Moved ...
47246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
47247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
47248         Moved ...
47249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
47250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
47251         Moved ...
47252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
47253         ... here.
47254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
47255         Moved ...
47256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
47257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
47258         Moved ...
47259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
47260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
47261         Moved ...
47262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
47263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
47264         Moved ...
47265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
47266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
47267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
47268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
47269         Moved ...
47270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
47271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
47272         Moved ...
47273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
47274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
47275         Moved ...
47276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
47277         ... here.
47278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
47279         Moved ...
47280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
47281         ... here.
47282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
47283         Moved ...
47284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
47285         ... here.
47286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
47287         Moved ...
47288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
47289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
47290         Moved ...
47291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
47292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
47293         Moved ...
47294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
47295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
47296         Moved ...
47297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
47298         ... here.
47299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
47300         Moved ...
47301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
47302         ... here.
47303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
47304         Moved ...
47305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
47306         ... here.
47307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
47308         Moved ...
47309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
47310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
47311         Moved ...
47312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
47313
47314 2014-06-23  Will Newton  <will.newton@linaro.org>
47315             Wilco  <wdijkstr@arm.com>
47316
47317         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
47318         implementation.  Include get-rounding-mode.h.
47319         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
47320         [!libc_feholdsetround_noex_ctx]: Define
47321         libc_feholdsetround_noex_ctx.
47322         [!libc_feholdsetround_noexf_ctx]: Define
47323         libc_feholdsetround_noexf_ctx.
47324         [!libc_feholdsetround_noexl_ctx]: Define
47325         libc_feholdsetround_noexl_ctx.
47326         (libc_feholdsetround_ctx): New function.
47327         (libc_feresetround_ctx): New function.
47328         (libc_feholdsetround_noex_ctx): New function.
47329         (libc_feresetround_noex_ctx): New function.
47330
47331 2014-06-23  Roland McGrath  <roland@hack.frob.com>
47332
47333         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
47334         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
47335         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
47336         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
47337         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
47338         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
47339
47340         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
47341         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
47342         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
47343         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
47344         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
47345         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
47346         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
47347         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
47348         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
47349         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
47350         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
47351         Moved ...
47352         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
47353         ... here.
47354         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
47355         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
47356         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
47357         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
47358         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
47359         Moved ...
47360         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
47361         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
47362         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
47363         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
47364         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
47365         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
47366         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
47367         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
47368         Moved ...
47369         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
47370         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
47371         Moved ...
47372         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
47373         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
47374         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
47375         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
47376         Moved ...
47377         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
47378         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
47379         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
47380         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
47381         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
47382         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
47383         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
47384         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
47385         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
47386         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
47387         Moved ...
47388         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
47389         ... here.
47390         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
47391         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
47392         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
47393         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
47394         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
47395         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
47396         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
47397         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
47398         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
47399         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
47400         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
47401         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
47402         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
47403         Moved ...
47404         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
47405         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
47406         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
47407         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
47408         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
47409         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
47410         Moved ...
47411         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
47412         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
47413         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
47414         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
47415         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
47416
47417         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
47418         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
47419         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
47420         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
47421         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
47422         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
47423         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
47424         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
47425         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
47426         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
47427         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
47428         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
47429         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
47430         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
47431         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
47432         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
47433         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
47434         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
47435         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
47436         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
47437         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
47438         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
47439         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
47440         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
47441         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
47442         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
47443         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
47444         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
47445
47446 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
47447
47448         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
47449         (FALLOC_FL_COLLAPSE_RANGE): New macro.
47450         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
47451         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
47452         (IPV6_PMTUDISC_INTERFACE): Likewise.
47453         (IPV6_PMTUDISC_OMIT): Likewise.
47454
47455 2014-06-23  Andreas Schwab  <schwab@suse.de>
47456
47457         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
47458         Remove unused errout label.
47459
47460 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47461
47462         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
47463         macro: hardware supports Vector Crypto instructions.
47464
47465 2014-06-23  Will Newton  <will.newton@linaro.org>
47466
47467         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
47468         rather than __builtin_expect.
47469
47470         * elf/dl-lookup.c (undefined_msg): Remove variable.
47471         (_dl_lookup_symbol_x): Replace undefined_msg with string
47472         literal.
47473
47474         * elf/dl-lookup.c (do_lookup_unique): New function.
47475         (do_lookup_x): Move STB_GNU_UNIQUE handling code
47476         to a separate function.
47477
47478 2014-06-23  Andreas Schwab  <schwab@suse.de>
47479
47480         [BZ #17079]
47481         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
47482         before reading the next line.
47483
47484 2014-06-23  Will Newton  <will.newton@linaro.org>
47485
47486         * test-skeleton.c (signal_handler): Use printf and %m
47487         rather than perror.  Use printf rather than fprintf to
47488         stderr.  Use puts rather than fputs to stderr.
47489         (main): Likewise.
47490
47491 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
47492
47493         * nscd/nscd.c (thread_info_t): Remove typedef.
47494         (thread_info): Remove variable.
47495
47496 2014-06-21  Allan McRae  <allan@archlinux.org>
47497
47498         * NEWS: Mention CVE-2014-4043.
47499
47500 2014-06-20  Roland McGrath  <roland@hack.frob.com>
47501
47502         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
47503         * nptl/smp.h: ... here.
47504
47505         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
47506
47507         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
47508         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
47509         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
47510         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
47511
47512         * nptl/allocatestack.c: Include <stack-aliasing.h>.
47513         * nptl/stack-aliasing.h: New file.
47514         * sysdeps/i386/i686/stack-aliasing.h: New file.
47515         * sysdeps/i386/i686/nptl/Makefile: File removed.
47516         * sysdeps/x86_64/stack-aliasing.h: New file.
47517         * sysdeps/x86_64/nptl/Makefile
47518         (CFLAGS-pthread_create.c): Variable removed.
47519
47520         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
47521         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
47522         old file.
47523         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
47524         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
47525         old file.
47526
47527 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
47528
47529         * sysdeps/unix/sysv/linux/arm/kernel-features.h
47530         (__ASSUME_SIGFRAME_V2): Remove macro.
47531         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
47532         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
47533         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
47534         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
47535         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
47536         Declare as function.  Remove conditional macro definitions.
47537         (__default_rt_sa_restorer): Likewise.
47538         (__default_sa_restorer_v1): Remove declaration.
47539         (__default_sa_restorer_v2): Likewise.
47540         (__default_rt_sa_restorer_v1): Likewise.
47541         (__default_rt_sa_restorer_v2): Likewise.
47542         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
47543         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
47544         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
47545
47546 2014-06-20  Roland McGrath  <roland@hack.frob.com>
47547
47548         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
47549         (libpthread-routines): Add sysdep.
47550         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
47551         * sysdeps/unix/sysv/linux/sparc/Versions
47552         (libpthread: GLIBC_2.3.3): New version set.
47553         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
47554         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
47555         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
47556         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
47557         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
47558         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
47559         Moved ...
47560         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
47561         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
47562         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
47563         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
47564         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
47565         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
47566         * sysdeps/sparc/nptl/sem_init.c: ... here.
47567         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
47568         * sysdeps/sparc/nptl/sem_post.c: ... here.
47569         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
47570         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
47571         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
47572         * sysdeps/sparc/nptl/sem_wait.c: ... here.
47573         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
47574         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
47575         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
47576         (libpthread-routines): Add cpu_relax.
47577         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
47578         File removed.
47579         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
47580         (librt: GLIBC_2.3.3): New version set.
47581         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
47582         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
47583         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
47584         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
47585         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
47586         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
47587         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
47588         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
47589         Moved ...
47590         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
47591         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
47592         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
47593         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
47594         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
47595         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
47596         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
47597         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
47598         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
47599         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
47600         Moved ...
47601         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
47602         Update #include.
47603         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
47604         Moved ...
47605         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
47606         Update #include.
47607         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
47608         Moved ...
47609         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
47610         Update #include.
47611         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
47612         Moved ...
47613         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
47614         Update #include.
47615         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
47616         Moved ...
47617         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
47618         Update #include.
47619         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
47620         Moved ...
47621         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
47622         Update #include.
47623         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
47624         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
47625         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
47626         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
47627         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
47628         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
47629         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
47630         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
47631         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
47632         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
47633         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
47634         Moved ...
47635         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
47636         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
47637         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
47638         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
47639         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
47640
47641 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
47642
47643         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
47644         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
47645         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
47646         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
47647         * nscd/nscd.c: Likewise.
47648         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
47649         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
47650         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
47651         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
47652
47653         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
47654         <kernel-features.h>.
47655         (init_mq_netlink): Remove conditional have_sock_cloexec
47656         definitions.  Remove code conditional on have_sock_cloexec < 0.
47657         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
47658         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
47659         * sysdeps/unix/sysv/linux/opensock.c: Do not include
47660         <kernel-features.h>.
47661         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
47662         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
47663
47664 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
47665
47666         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47667         Add tests for memset_chk and memset.
47668
47669         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
47670         with AVX2_Usable.
47671
47672 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
47673
47674         [BZ #16046]
47675         * elf/tst-dl-iter-static.c: New file.
47676         * elf/Makefile (tests-static): Add tst-dl-iter-static.
47677
47678         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
47679         error.
47680
47681 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
47682
47683         * sysdeps/unix/sysv/linux/kernel-features.h
47684         (__ASSUME_F_GETOWN_EX): Remove macro.
47685         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
47686         <kernel-features.h>.
47687         (miss_F_GETOWN_EX): Remove variable or macro.
47688         (do_fcntl): Do not check miss_F_GETOWN_EX.
47689         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
47690
47691         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
47692         Remove macro.
47693         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
47694         [!__ASSUME_AT_RANDOM]: Remove conditional code.
47695         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
47696
47697         * sysdeps/unix/sysv/linux/kernel-features.h
47698         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
47699         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
47700         [ADJ_OFFSET_SS_READ]: Make code unconditional.
47701         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
47702
47703 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
47704
47705         [BZ #17075]
47706         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
47707         Fix calculation of the symbol's value.
47708         * sysdeps/arm/tst-armtlsdescloc.c: New file.
47709         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
47710         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
47711         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
47712         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
47713         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
47714         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
47715         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
47716         (modules-names): Add `tst-armtlsdescmod',
47717         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
47718         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
47719         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
47720         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
47721         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
47722         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
47723         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
47724         ($(objpfx)tst-armtlsdescloc): New dependency.
47725         ($(objpfx)tst-armtlsdescextnow): Likewise.
47726         ($(objpfx)tst-armtlsdescextlazy): Likewise.
47727         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
47728         TLS scheme support.
47729         * sysdeps/arm/configure: Regenerate.
47730
47731 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
47732
47733         * include/fcntl.h (__atfct_seterrno): Remove prototype.
47734         (__atfct_seterrno_2): Likewise.
47735         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
47736         <kernel-features.h>.
47737         (__ASSUME_ATFCTS): Do not undefine and redefine.
47738         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
47739         (__have_atfcts): Remove conditional definition.
47740         (__fxstatat([__NR_fstatat64]: Make code unconditional.
47741         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
47742         unreachable if [__ASSUME_ATFCTS].
47743         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
47744         not undefine and redefine.
47745         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
47746         <kernel-features.h>.
47747         (faccessat) [__NR_faccessat]: Make code unconditional.
47748         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
47749         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
47750         <kernel-features.h>.
47751         (fchmodat) [__NR_fchmodat]: Make code unconditional.
47752         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
47753         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
47754         <kernel-features.h>.
47755         (fchownat) [__NR_fchownat]: Make code unconditional.
47756         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
47757         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
47758         <kernel-features.h>.
47759         (futimesat) [__NR_futimesat]: Make code unconditional.
47760         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
47761         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
47762         <kernel-features.h>.
47763         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
47764         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
47765         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
47766         <kernel-features.h>.
47767         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
47768         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
47769         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
47770         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
47771         <kernel-features.h>.
47772         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
47773         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
47774         * sysdeps/unix/sysv/linux/linkat.c: Do not include
47775         <kernel-features.h>.
47776         (linkat) [__NR_linkat]: Make code unconditional.
47777         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
47778         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
47779         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
47780         <kernel-features.h>.
47781         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
47782         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
47783         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
47784         <kernel-features.h>.
47785         (mkdirat) [__NR_mkdirat]: Make code unconditional.
47786         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
47787         * sysdeps/unix/sysv/linux/openat.c: Do not include
47788         <kernel-features.h>.
47789         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
47790         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
47791         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
47792         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
47793         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
47794         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
47795         <kernel-features.h>.
47796         (readlinkat) [__NR_readlinkat]: Make code unconditional.
47797         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
47798         result of INLINE_SYSCALL directly, not via int variable.
47799         * sysdeps/unix/sysv/linux/renameat.c: Do not include
47800         <kernel-features.h>.
47801         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
47802         (renameat) [__NR_renameat]: Make code unconditional.
47803         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
47804         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
47805         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
47806         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
47807         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
47808         (__ASSUME_ATFCTS): Do not undefine and redefine.
47809         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
47810         <kernel-features.h>.
47811         (symlinkat) [__NR_symlinkat]: Make code unconditional.
47812         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
47813         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
47814         <kernel-features.h>.
47815         (unlinkat) [__NR_unlinkat]: Make code unconditional.
47816         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
47817         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
47818         (__ASSUME_ATFCTS): Do not undefine and redefine.
47819         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
47820         <kernel-features.h>.
47821         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
47822         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
47823         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
47824         <kernel-features.h>.
47825         (__xmknodat) [__NR_mknodat]: Make code unconditional.
47826         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
47827
47828 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
47829
47830         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
47831
47832 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
47833
47834         [BZ #17069]
47835         * posix/regcomp.c (parse_reg_exp): Deallocate partially
47836         constructed tree before returning error.
47837         * posix/bug-regexp36.c: Expand test case.
47838
47839 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
47840
47841         [BZ #6803]
47842         * math/libm-test.inc (scalbln_test_date):
47843         Add errno expectations.
47844         * math/w_scalblnf.c: New File.
47845         Add wrapper which checks for setting errno to ERANGE.
47846         Add weak_alias for corresponding scalbln function.
47847         * math/w_scalbln.c: Likewise.
47848         * math/w_scalblnl.c: Likewise.
47849         * math/Makefile (libm-calls): Add w_scalbln.
47850         * sysdeps/ieee754/flt-32/s_scalblnf.c:
47851         Remove weak_alias for corresponding scalbln function.
47852         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
47853         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
47854         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
47855         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
47856         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
47857         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
47858         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
47859         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
47860         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
47861         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
47862         Remove long_double_symbol for scalblnl function in libm, libc.
47863         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
47864         Add wrapper which checks for setting errno to ERANGE.
47865         Add long_double_symbol for scalblnl function in libm, libc.
47866         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
47867         Remove long_double_symbol for scalblnl in libm.
47868         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
47869         Add wrapper which checks for setting errno to ERANGE.
47870         Add long_double_symbol for scalblnl function in libm.
47871         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
47872         Do not use wrapper because of own implementation.
47873
47874 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
47875
47876         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
47877         3 bytes for __pad1 for x32.
47878         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
47879
47880 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
47881             H.J. Lu  <hongjiu.lu@intel.com>
47882
47883         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
47884         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
47885         * sysdeps/x86_64/multiarch/memset.S: Likewise.
47886         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
47887         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
47888
47889 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
47890
47891         [BZ #17069]
47892         * posix/regcomp.c (parse_expression): Deallocate partially
47893         constructed tree before returning error.
47894         * posix/Makefile.c (tests): Add bug-regex36.
47895         (generated): Add bug-regex36.mtrace.
47896         (tests-special): Add $(objpfx)bug-regex36-mem.out
47897         (bug-regex36-ENV): New variable.
47898         ($(objpfx)bug-regex36-mem.out): New rule.
47899         * posix/bug-regex36.c: New file.
47900
47901 2014-06-19  Will Newton  <will.newton@linaro.org>
47902
47903         * malloc/malloc.c (systrim): If extra is zero then return
47904         early.
47905
47906 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
47907
47908         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
47909
47910 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
47911
47912         * sysdeps/aarch64/strchr.S: New file.
47913
47914 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
47915
47916         [BZ #17022]
47917         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
47918         from arguments -2 or below.
47919         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
47920         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
47921
47922 2014-06-18  Andreas Schwab  <schwab@suse.de>
47923
47924         [BZ #17062]
47925         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
47926         of a bracket expr not to run off the end of the string.
47927         * posix/Makefile (tests): Add tst-fnmatch3.
47928         * posix/tst-fnmatch3.c: New file.
47929
47930 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
47931
47932         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
47933         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
47934         [$(cross-compiling) = no]: Likewise.
47935         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
47936         [$(cross-compiling) = no]: Likewise.
47937
47938 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
47939
47940         [BZ #17031]
47941         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
47942         double, adjusted for any remainder from the high double.
47943         * math/libm-test.inc (nearbyint): Add tests.
47944         (rint): Likewise.
47945
47946 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47947
47948         * nptl/sysdeps/powerpc/Makefile: Moved ...
47949         * sysdeps/powerpc/nptl/Makefile: ... here.
47950         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
47951         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
47952         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
47953         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
47954         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
47955         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
47956         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
47957         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
47958         * nptl/sysdeps/powerpc/tls.h: Moved ...
47959         * sysdeps/powerpc/nptl/tls.h: ... here.
47960
47961 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
47962
47963         [BZ #16681]
47964         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
47965         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
47966         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
47967         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
47968         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
47969         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
47970         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
47971         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
47972         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
47973
47974 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
47975
47976         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
47977
47978 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
47979
47980         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
47981         defined operator.
47982
47983         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
47984         $TIMEOUTFACTOR.
47985
47986 2014-06-16  Florian Weimer  <fweimer@redhat.com>
47987
47988         [BZ #17058]
47989         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
47990         non-executed part of the test.
47991
47992 2014-06-16  Andreas Schwab  <schwab@suse.de>
47993
47994         * string/bits/string2.h (strdup, strndup): Update feature guard.
47995
47996 2014-06-14  David S. Miller  <davem@davemloft.net>
47997
47998         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47999
48000 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
48001
48002         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
48003         that was previously under [RESET_PID].
48004         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
48005
48006         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
48007         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
48008         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
48009         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
48010         (__libc_vfork): New strong alias.
48011         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
48012
48013 2014-06-14 Andi Kleen  <ak@linux.intel.com>
48014
48015         * sysdeps/generic/elide.h: New file.
48016
48017 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
48018
48019         * Makefile (installed-headers): Adjust path of pthread.h header.
48020
48021 2014-06-13  Roland McGrath  <roland@hack.frob.com>
48022
48023         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
48024         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
48025         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
48026         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
48027
48028         * nptl/sysdeps/s390/Makefile: Moved ...
48029         * sysdeps/s390/nptl/Makefile: ... here.
48030         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
48031         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
48032         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
48033         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
48034         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
48035         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
48036         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
48037         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
48038         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
48039         * sysdeps/s390/nptl/pthreaddef.h: ... here.
48040         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
48041         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
48042         * nptl/sysdeps/s390/tls.h: Moved ...
48043         * sysdeps/s390/nptl/tls.h: ... here.
48044
48045         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
48046         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
48047
48048 2014-06-13  David S. Miller  <davem@davemloft.net>
48049
48050         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
48051         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
48052         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
48053         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
48054         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
48055         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
48056         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
48057         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
48058         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
48059         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
48060         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
48061         Remove RESET_PID cpp guards.
48062         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
48063         Remove RESET_PID cpp guards.
48064         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
48065
48066 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
48067
48068         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
48069         __sp to uintptr_t.
48070
48071 2014-06-13  Andi Kleen  <ak@linux.intel.com>
48072
48073         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
48074         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
48075         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
48076         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
48077         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
48078         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
48079         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
48080         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
48081         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
48082         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
48083         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
48084         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
48085         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
48086         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
48087         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
48088         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
48089         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
48090         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
48091         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
48092         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
48093
48094         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
48095         (pthread_rwlock_rdlock): Add elision.
48096         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
48097         (pthread_rwlock_wrlock): Add elision.
48098         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
48099         (pthread_rwlock_trywrlock): Add elision.
48100         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
48101         (pthread_rwlock_tryrdlock): Add elision.
48102         * nptl/pthread_rwlock_unlock.c: Include elide.h.
48103         (pthread_rwlock_tryrdlock): Add elision unlock.
48104         * nptl/sysdeps/pthread/pthread.h:
48105         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
48106         (PTHREAD_RWLOCK_INITIALIZER,
48107         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
48108         Handle new elision field.
48109         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
48110         * sysdeps/arm/nptl/bits/pthreadtypes.h
48111         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48112         * sysdeps/sh/nptl/bits/pthreadtypes.h
48113         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48114         * sysdeps/tile/nptl/bits/pthreadtypes.h
48115         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48116         * sysdeps/a/nptl/bits/pthreadtypes.h
48117         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48118         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
48119         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48120         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
48121         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48122         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
48123         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48124         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
48125         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48126         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
48127         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48128         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
48129         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48130         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
48131         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48132         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
48133         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48134         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
48135         (elision_init): Set try_xbegin to zero when no RTM.
48136         * sysdeps/x86/nptl/bits/pthreadtypes.h
48137         (pthread_rwlock_t): Change __pad1 to __rwelision.
48138         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
48139
48140 2014-06-13  Andi Kleen  <ak@linux.intel.com>
48141
48142         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
48143         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
48144         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
48145         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
48146
48147 2014-06-13  Meador Inge  <meadori@codesourcery.com>
48148
48149         [BZ #16996]
48150         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
48151         that the cached result has been set before returning it.
48152
48153 2014-06-12  Roland McGrath  <roland@hack.frob.com>
48154
48155         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
48156         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
48157         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
48158         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
48159         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
48160         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
48161
48162         * nptl/sysdeps/sparc/Makefile: Moved ...
48163         * sysdeps/sparc/nptl/Makefile: ... here.
48164         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
48165         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
48166         * nptl/sysdeps/sparc/tls.h: Moved ...
48167         * sysdeps/sparc/nptl/tls.h: ... here.
48168         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
48169         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
48170         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
48171         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
48172         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
48173         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
48174         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
48175         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
48176         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
48177         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
48178         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
48179         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
48180         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
48181         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
48182         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
48183         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
48184         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
48185         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
48186         Update #include.
48187         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
48188         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
48189         Update #include.
48190         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
48191         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
48192         Update #include.
48193         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
48194         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
48195         Update #include.
48196
48197         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
48198
48199         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
48200         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
48201
48202         * sysdeps/pthread/posix-timer.h: Include <list.h>.
48203         (struct list_links): Type removed.
48204         (struct thread_node, struct timer_node): Replace struct list_links
48205         with struct list_head.
48206         (list_unlink_ip): Likewise.
48207         * sysdeps/pthread/timer_routines.c
48208         (timer_free_list, thread_free_list, thread_active_list): Likewise.
48209         (list_append, list_insbefore): Likewise.
48210         (list_init): Function removed.
48211         (thread_init, init_module): Use INIT_LIST_HEAD instead.
48212         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
48213         * sysdeps/pthread/Makefile: ... here, new file.
48214
48215         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
48216         * sysdeps/nptl/Implies: ... here.
48217         * sysdeps/unix/sysv/linux/Implies: Add nptl.
48218         * nptl/sysdeps/pthread/list.h: Moved ...
48219         * include/list.h: ... here.
48220         * nptl/sysdeps/pthread/createthread.c: Moved ...
48221         * nptl/createthread.c: ... here.
48222         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
48223         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
48224         * nptl/pt-longjmp.c: ... here.
48225         * nptl/sysdeps/pthread/Makefile: Moved ...
48226         * sysdeps/nptl/Makefile: ... here.
48227         * nptl/sysdeps/pthread/Subdirs: Moved ...
48228         * sysdeps/nptl/Subdirs: ... here.
48229         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
48230         * sysdeps/nptl/aio_misc.h: ... here.
48231         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
48232         * sysdeps/nptl/bits/libc-lock.h: ... here.
48233         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
48234         * sysdeps/nptl/bits/libc-lockP.h: ... here.
48235         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
48236         * sysdeps/nptl/bits/stdio-lock.h: ... here.
48237         * nptl/sysdeps/pthread/configure: Moved ...
48238         * sysdeps/nptl/configure: ... here.
48239         * nptl/sysdeps/pthread/configure.ac: Moved ...
48240         * sysdeps/nptl/configure.ac: ... here.
48241         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
48242         * sysdeps/nptl/gai_misc.h: ... here.
48243         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
48244         * sysdeps/nptl/librt-cancellation.c: ... here.
48245         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
48246         * sysdeps/nptl/malloc-machine.h: ... here.
48247         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
48248         * sysdeps/nptl/pthread-functions.h: ... here.
48249         * nptl/sysdeps/pthread/pthread.h: Moved ...
48250         * sysdeps/nptl/pthread.h: ... here.
48251         * nptl/sysdeps/pthread/setxid.h: Moved ...
48252         * sysdeps/nptl/setxid.h: ... here.
48253         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
48254         * sysdeps/nptl/sigfillset.c: ... here.
48255         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
48256         * sysdeps/nptl/tcb-offsets.h: ... here.
48257         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
48258         * sysdeps/nptl/tst-mqueue8x.c: ... here.
48259         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
48260         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
48261         * nptl/sysdeps/pthread/allocalim.h: Moved ...
48262         * sysdeps/pthread/allocalim.h: ... here.
48263         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
48264         * sysdeps/pthread/bits/sigthread.h: ... here.
48265         * nptl/sysdeps/pthread/flockfile.c: Moved ...
48266         * sysdeps/pthread/flockfile.c: ... here.
48267         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
48268         * sysdeps/pthread/ftrylockfile.c: ... here.
48269         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
48270         * sysdeps/pthread/funlockfile.c: ... here.
48271         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
48272         * sysdeps/pthread/posix-timer.h: ... here.
48273         * nptl/sysdeps/pthread/timer_create.c: Moved ...
48274         * sysdeps/pthread/timer_create.c: ... here.
48275         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
48276         * sysdeps/pthread/timer_delete.c: ... here.
48277         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
48278         * sysdeps/pthread/timer_getoverr.c: ... here.
48279         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
48280         * sysdeps/pthread/timer_gettime.c: ... here.
48281         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
48282         * sysdeps/pthread/timer_routines.c: ... here.
48283         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
48284         * sysdeps/pthread/timer_settime.c: ... here.
48285         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
48286         * sysdeps/pthread/tst-timer.c: ... here.
48287         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
48288         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
48289
48290         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
48291         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
48292
48293         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
48294         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
48295         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
48296         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
48297         Update #include target.
48298         * nptl/sysdeps/i386/i686/Makefile: Moved ...
48299         * sysdeps/i386/i686/nptl/Makefile: ... here.
48300         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
48301         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
48302         Update #include target.
48303         * nptl/sysdeps/i386/i686/tls.h: Moved ...
48304         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
48305         * nptl/sysdeps/i386/Makefile: Moved ...
48306         * sysdeps/i386/nptl/Makefile: ... here.
48307         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
48308         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
48309         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
48310         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
48311         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
48312         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
48313         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
48314         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
48315         * sysdeps/i386/nptl/pthreaddef.h: ... here.
48316         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
48317         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
48318         * nptl/sysdeps/i386/tls.h: Moved ...
48319         * sysdeps/i386/nptl/tls.h: ... here.
48320
48321         * sysdeps/sh/Makefile [$(subdir) = csu]
48322         (gen-as-const-headers): Add tcb-offsets.sym.
48323         * nptl/sysdeps/sh/Makefile: File removed.
48324         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
48325         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
48326         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
48327         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
48328         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
48329         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
48330         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
48331         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
48332         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
48333         * sysdeps/sh/nptl/pthreaddef.h: ... here.
48334         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
48335         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
48336         * nptl/sysdeps/sh/tls.h: Moved ...
48337         * sysdeps/sh/nptl/tls.h: ... here.
48338         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
48339         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
48340         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
48341         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
48342         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
48343         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
48344         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
48345         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
48346         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
48347         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
48348         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
48349         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
48350         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
48351         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
48352         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
48353         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
48354         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
48355         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
48356         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
48357         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
48358         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
48359         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
48360         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
48361         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
48362         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
48363         Moved ...
48364         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
48365         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
48366         Moved ...
48367         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
48368         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
48369         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
48370         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
48371         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
48372         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
48373         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
48374         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
48375         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
48376         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
48377         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
48378         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
48379         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
48380         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
48381         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
48382         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
48383         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
48384         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
48385         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
48386
48387 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
48388
48389         * posix/spawn_faction_addopen.c: Include string.h.
48390
48391 2014-06-11  Roland McGrath  <roland@hack.frob.com>
48392
48393         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
48394         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
48395         * nptl/sysdeps/x86_64/Makefile: Moved ...
48396         * sysdeps/x86_64/nptl/Makefile: ... here.
48397         * nptl/sysdeps/x86_64/configure: Moved ...
48398         * sysdeps/x86_64/nptl/configure: ... here.
48399         * nptl/sysdeps/x86_64/configure.ac: Moved ...
48400         * sysdeps/x86_64/nptl/configure.ac: ... here.
48401         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
48402         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
48403         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
48404         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
48405         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
48406         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
48407         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
48408         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
48409         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
48410         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
48411         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
48412         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
48413         * nptl/sysdeps/x86_64/tls.h: Moved ...
48414         * sysdeps/x86_64/nptl/tls.h: ... here.
48415         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
48416         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
48417         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
48418         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
48419
48420         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
48421
48422 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48423
48424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48425
48426 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
48427
48428         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
48429         type.
48430         [POSIX] (off_t): Likewise.
48431         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
48432         [POSIX] (S_ISBLK): Require macro.
48433         [POSIX] (S_ISCHR): Likewise.
48434         [POSIX] (S_ISDIR): Likewise.
48435         [POSIX] (S_ISFIFO): Likewise.
48436         [POSIX] (S_ISREG): Likewise.
48437         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
48438         optional-macro.
48439         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
48440         type.
48441         [POSIX] (time_t): Likewise.
48442         [POSIX] (timer_t): Likewise.
48443
48444 2014-06-11  Florian Weimer  <fweimer@redhat.com>
48445
48446         [BZ #17048]
48447         * posix/spawn_int.h (struct __spawn_action): Make the path string
48448         non-const to support deallocation.
48449         * posix/spawn_faction_addopen.c
48450         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
48451         * posix/spawn_faction_destroy.c
48452         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
48453         path in all spawn_do_open actions.
48454         * posix/tst-spawn.c (do_test): Exercise the copy operation in
48455         posix_spawn_file_actions_addopen.
48456
48457 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
48458
48459         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
48460         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
48461         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
48462         conditional code always true.
48463         (__libc_vfork): New alias.
48464
48465 2014-06-11  Roland McGrath  <roland@hack.frob.com>
48466
48467         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
48468         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
48469
48470         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
48471
48472         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
48473         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
48474
48475         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
48476         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
48477
48478         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
48479         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
48480
48481 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48482
48483         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
48484         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
48485         multiarch strcmp for PPC64.
48486         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
48487         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
48488         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
48489         multiarch optimizations.
48490         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
48491         (__libc_ifunc_impl_list): Likewise.
48492
48493 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48494
48495         * benchtests/scripts/validate_benchout.py: New script.
48496         * benchtests/Makefile (bench-func): Call it.
48497         * benchtests/scripts/benchout.schema.json: New file.
48498
48499 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
48500
48501         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
48502         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
48503         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
48504         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
48505         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
48506         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
48507         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
48508         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
48509         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
48510         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
48511         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
48512         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
48513         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
48514         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
48515         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
48516         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
48517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
48518         Moved ...
48519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
48520         ... here.
48521         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
48522         Moved ...
48523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
48524         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
48525         Moved ...
48526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
48527         ... here.
48528         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
48529         Moved ...
48530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
48531         ... here.
48532         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
48533         Moved ...
48534         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
48535         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
48536         Moved ...
48537         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
48538         ... here.
48539         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
48540         Moved ...
48541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
48542         ... here.
48543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
48544         Moved ...
48545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
48546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
48547         Moved ...
48548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
48549         ... here.
48550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
48551         Moved ...
48552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
48553         ... here.
48554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
48555         Moved ...
48556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
48557         ... here.
48558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
48559         Moved ...
48560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
48561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
48562         Moved ...
48563         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
48564         ... here.
48565         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
48566         Moved ...
48567         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
48568         ... here.
48569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
48570         Moved ...
48571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
48572         ... here.
48573         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
48574         Moved ...
48575         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
48576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
48577         Moved ...
48578         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
48579         ... here.
48580         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
48581         Moved ...
48582         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
48583         ... here.
48584         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
48585         Moved ...
48586         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
48587         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
48588         Moved ...
48589         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
48590         ... here.
48591         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
48592         Moved ...
48593         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
48594         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
48595         Moved ...
48596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
48597         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
48598         Moved ...
48599         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
48600         ... here.
48601         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
48602         Moved ...
48603         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
48604         ... here.
48605         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
48606         Moved ...
48607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
48608         ... here.
48609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
48610         Moved ...
48611         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
48612         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
48613         Moved ...
48614         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
48615         ... here.
48616         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
48617         Moved ...
48618         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
48619         ... here.
48620         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
48621         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
48622         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
48623         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
48624         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
48625         Moved ...
48626         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
48627         ... here.
48628         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
48629         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
48630         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
48631         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
48632         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
48633         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
48634         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
48635         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
48636         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
48637         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
48638         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
48639         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
48640         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
48641         Moved ...
48642         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
48643         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
48644         Moved ...
48645         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
48646         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
48647         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
48648         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
48649         Moved ...
48650         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
48651         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
48652         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
48653         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
48654         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
48655         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
48656         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
48657
48658 2014-06-10  Wilco  <wdijkstr@arm.com>
48659
48660         * math/test-fenv-return.c: New file.
48661         * math/Makefile: Add new test test-fenv-return.
48662
48663 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
48664
48665         [BZ #17042]
48666         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
48667         when x - 1 is zero.
48668         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
48669         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
48670         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
48671         0.0L for an argument of 1.0L.
48672         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
48673         Likewise.
48674         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
48675         value when x - 1 is zero.
48676         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
48677         * sysdeps/i386/fpu/libm-test-ulps: Update.
48678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48679
48680 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
48681
48682         [BZ #15119]
48683         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
48684
48685 2014-06-09  Roland McGrath  <roland@hack.frob.com>
48686
48687         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
48688         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
48689
48690 2014-06-09  Roland McGrath  <roland@hack.frob.com>
48691
48692         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
48693         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
48694
48695         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
48696         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
48697
48698         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
48699         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
48700
48701         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
48702         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
48703
48704         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
48705         if not already defined.
48706         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
48707         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
48708         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
48709         (TLS_INIT_TP): Use it.
48710         (TLS_DEFINE_INIT_TP): New macro.
48711         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
48712
48713 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
48714
48715         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
48716         constant.
48717         [POSIX] (IXANY): Likewise.
48718         [POSIX] (OLCUC): Likewise.
48719         [POSIX || POSIX2008] (CBAUD): Do not allow.
48720         [POSIX || POSIX2008] (DEFECHO): Likewise.
48721         [POSIX || POSIX2008] (ECHOCTL): Likewise.
48722         [POSIX || POSIX2008] (ECHOKE): Likewise.
48723         [POSIX || POSIX2008] (ECHOPRT): Likewise.
48724         [POSIX || POSIX2008] (EXTA): Likewise.
48725         [POSIX || POSIX2008] (EXTB): Likewise.
48726         [POSIX || POSIX2008] (FLUSHO): Likewise.
48727         [POSIX || POSIX2008] (LOBLK): Likewise.
48728         [POSIX || POSIX2008] (PENDIN): Likewise.
48729         [POSIX || POSIX2008] (SWTCH): Likewise.
48730         [POSIX || POSIX2008] (VDISCARD): Likewise.
48731         [POSIX || POSIX2008] (VDSUSP): Likewise.
48732         [POSIX || POSIX2008] (VLNEXT): Likewise.
48733         [POSIX || POSIX2008] (VREPRINT): Likewise.
48734         [POSIX || POSIX2008] (VSTATUS): Likewise.
48735         [POSIX || POSIX2008] (VWERASE): Likewise.
48736         (B*): Change to B[0123456789]*.
48737         * conform/data/time.h-data [POSIX || UNIX98]
48738         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
48739         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
48740         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
48741         [POSIX] (tm_*): Do not allow.
48742
48743 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
48744
48745         * Makefile (install): Don't set LANGUAGE.
48746         * Makefile.in (install): Likewise.
48747         * assert/Makefile (test-assert-ENV): Remove variable.
48748         (test-assert-perr-ENV): Likewise.
48749         * elf/Makefile (neededtest4-ENV): Likewise.
48750         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
48751         [$(cross-compiling) = no]: Don't set LANGUAGE.
48752         * io/ftwtest-sh (LANG): Remove variable.
48753         * libio/Makefile (tst-widetext-ENV): Likewise.
48754         * manual/install.texi (Running make install): Don't refer to
48755         environment settings for make install.
48756         * INSTALL: Regenerated.
48757         * nptl/tst-tls6.sh: Don't set LANG.
48758         * posix/globtest.sh (LANG): Remove variable.
48759         * string/Makefile (tester-ENV): Likewise.
48760         (inl-tester-ENV): Likewise.
48761         (noinl-tester-ENV): Likewise.
48762         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
48763         [$(cross-compiling) = no]: Don't set LANGUAGE.
48764         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
48765         without explicit environment settings.
48766
48767 2014-06-06  Roland McGrath  <roland@hack.frob.com>
48768
48769         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
48770         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
48771         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
48772         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
48773
48774 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
48775
48776         * crypt/crypt-private.h [DOS]: Add some includes taken from the
48777         other files in the crypt directory.
48778         * crypt/crypt.c: Remove duplicate includes.
48779         * crypt/crypt-entry.c: Likewise.
48780         * crypt/crypt_util.c: Likewise.
48781
48782 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
48783
48784         * Makeconfig (run-program-env): New variable.
48785         (run-program-prefix-before-env): Likewise.
48786         (run-program-prefix-after-env): Likewise.
48787         (run-program-prefix): Define in terms of new variables.
48788         (built-program-cmd-before-env): New variable.
48789         (built-program-cmd-after-env): Likewise.
48790         (built-program-cmd): Define in terms of new variables.
48791         (test-program-prefix-before-env): New variable.
48792         (test-program-prefix-after-env): Likewise.
48793         (test-program-prefix): Define in terms of new variables.
48794         (test-program-cmd-before-env): New variable.
48795         (test-program-cmd-after-env): Likewise.
48796         (test-program-cmd): Define in terms of new variables.
48797         * Rules (make-test-out): Use $(run-program-env).
48798         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
48799         (help): Do not mention environment variables.  Mention
48800         --timeoutfactor option.
48801         (timeoutfactor): New variable.
48802         (blacklist_exports): Remove function.
48803         (exports): Remove variable.
48804         (command): Do not include ${exports}.
48805         * manual/install.texi (Configuring and compiling): Do not mention
48806         test wrappers preserving environment variables.  Mention that last
48807         assignment to a variable must take precedence.
48808         * INSTALL: Regenerated.
48809         * benchtests/Makefile (run-bench): Use $(run-program-env).
48810         * catgets/Makefile ($(objpfx)test1.cat): Use
48811         $(built-program-cmd-before-env), $(run-program-env) and
48812         $(built-program-cmd-after-env).
48813         ($(objpfx)test2.cat): Do not specify environment variables
48814         explicitly.
48815         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
48816         $(run-program-env) and $(built-program-cmd-after-env).
48817         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
48818         $(run-program-env) and $(test-program-cmd-after-env).
48819         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
48820         explicitly.
48821         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
48822         run_program_env and test_program_cmd_after_env arguments.
48823         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
48824         * elf/tst-pathopt.sh: Use run_program_env argument.
48825         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
48826         $(test-wrapper-env) and $(run-program-env).
48827         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
48828         run_program_env arguments.
48829         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
48830         * intl/Makefile ($(objpfx)tst-gettext.out): Use
48831         $(test-program-prefix-before-env), $(run-program-env) and
48832         $(test-program-prefix-after-env).
48833         ($(objpfx)tst-gettext2.out): Likewise.
48834         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
48835         run_program_env and test_program_prefix_after_env arguments.
48836         * intl/tst-gettext2.sh: Likewise.
48837         * intl/tst-gettext4.sh: Do not set environment variables
48838         explicitly.
48839         * intl/tst-gettext6.sh: Likewise.
48840         * intl/tst-translit.sh: Likewise.
48841         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
48842         $(test-program-prefix-before-env), $(run-program-env) and
48843         $(test-program-prefix-after-env).
48844         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
48845         run_program_env and test_program_prefix_after_env arguments.
48846         * math/Makefile (run-regen-ulps): Use $(run-program-env).
48847         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
48848         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
48849         explicitly with each use of ${test_wrapper_env}.
48850         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
48851         $(test-program-prefix-before-env), $(run-program-env) and
48852         $(test-program-prefix-after-env).
48853         * posix/tst-getconf.sh: Do not set environment variables
48854         explicitly.
48855         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
48856         run_program_env and test_program_prefix_after_env arguments.
48857         * stdio-common/tst-printf.sh: Do not set environment variables
48858         explicitly.
48859         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
48860         $(test-program-prefix-before-env), $(run-program-env) and
48861         $(test-program-prefix-after-env).
48862         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
48863         run_program_env and test_program_prefix_after_env arguments.
48864         Split $test calls into $test_pre and $test.
48865         * timezone/Makefile (build-testdata): Use
48866         $(built-program-cmd-before-env), $(run-program-env) and
48867         $(built-program-cmd-after-env).
48868
48869 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48870
48871         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
48872         strlen for non SHARED builds.
48873
48874 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
48875
48876         * nptl/allocatestack.c (check_list): Inlined function...
48877         (__reclaim_stacks): ... here.
48878
48879 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
48880
48881         [BZ #15698]
48882         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
48883         memory overrun.
48884
48885 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
48886
48887         * Rules (make-test-out): Include
48888         LOCPATH=$(common-objpfx)localedata in default environment.
48889         * debug/Makefile (tst-chk1-ENV): Remove variable.
48890         (tst-chk2-ENV): Likewise.
48891         (tst-chk3-ENV): Likewise.
48892         (tst-chk4-ENV): Likewise.
48893         (tst-chk5-ENV): Likewise.
48894         (tst-chk6-ENV): Likewise.
48895         (tst-lfschk1-ENV): Likewise.
48896         (tst-lfschk2-ENV): Likewise.
48897         (tst-lfschk3-ENV): Likewise.
48898         (tst-lfschk4-ENV): Likewise.
48899         (tst-lfschk5-ENV): Likewise.
48900         (tst-lfschk6-ENV): Likewise.
48901         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
48902         (tst-iconv7-ENV): Likewise.
48903         * intl/Makefile (LOCPATH-ENV): Likewise.
48904         (tst-codeset-ENV): Likewise.
48905         (tst-gettext3-ENV): Likewise.
48906         (tst-gettext5-ENV): Likewise.
48907         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
48908         (tst-fopenloc-ENV): Likewise.
48909         (tst-fgetws-ENV): Remove variable.
48910         (tst-ungetwc1-ENV): Likewise.
48911         (tst-ungetwc2-ENV): Likewise.
48912         (bug-ungetwc2-ENV): Likewise.
48913         (tst-swscanf-ENV): Likewise.
48914         (bug-ftell-ENV): Likewise.
48915         (tst-fgetwc-ENV): Likewise.
48916         (tst-fseek-ENV): Likewise.
48917         (tst-ftell-partial-wide-ENV): Likewise.
48918         (tst-ftell-active-handler-ENV): Likewise.
48919         (tst-ftell-append-ENV): Likewise.
48920         * posix/Makefile (tst-fnmatch-ENV): Likewise.
48921         (tst-regexloc-ENV): Likewise.
48922         (bug-regex1-ENV): Likewise.
48923         (tst-regex-ENV): Likewise.
48924         (tst-regex2-ENV): Likewise.
48925         (bug-regex5-ENV): Likewise.
48926         (bug-regex6-ENV): Likewise.
48927         (bug-regex17-ENV): Likewise.
48928         (bug-regex18-ENV): Likewise.
48929         (bug-regex19-ENV): Likewise.
48930         (bug-regex20-ENV): Likewise.
48931         (bug-regex22-ENV): Likewise.
48932         (bug-regex23-ENV): Likewise.
48933         (bug-regex25-ENV): Likewise.
48934         (bug-regex26-ENV): Likewise.
48935         (bug-regex30-ENV): Likewise.
48936         (bug-regex32-ENV): Likewise.
48937         (bug-regex33-ENV): Likewise.
48938         (bug-regex34-ENV): Likewise.
48939         (bug-regex35-ENV): Likewise.
48940         (tst-rxspencer-ENV): Likewise.
48941         (tst-rxspencer-no-utf8-ENV): Likewise.
48942         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
48943         (tst-sscanf-ENV): Likewise.
48944         (tst-swprintf-ENV): Likewise.
48945         (tst-swscanf-ENV): Likewise.
48946         (test-vfprintf-ENV): Likewise.
48947         (scanf13-ENV): Likewise.
48948         (bug14-ENV): Likewise.
48949         (tst-grouping-ENV): Likewise.
48950         * stdlib/Makefile (tst-strtod-ENV): Likewise.
48951         (tst-strtod3-ENV): Likewise.
48952         (tst-strtod4-ENV): Likewise.
48953         (tst-strtod5-ENV): Likewise.
48954         (testmb2-ENV): Likewise./
48955         * string/Makefile (tst-strxfrm-ENV): Likewise.
48956         (tst-strxfrm2-ENV): Likewise.
48957         (bug-strcoll1-ENV): Likewise.
48958         (test-strcasecmp-ENV): Likewise.
48959         (test-strncasecmp-ENV): Likewise.
48960         * time/Makefile (tst-strptime-ENV): Likewise.
48961         (tst-ftime_l-ENV): Likewise.
48962         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
48963         (tst-mbrtowc-ENV): Likewise.
48964         (tst-wcrtomb-ENV): Likewise.
48965         (tst-mbrtowc2-ENV): Likewise.
48966         (tst-c16c32-1-ENV): Likewise.
48967         (tst-mbsnrtowcs-ENV): Likewise.
48968
48969 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
48970
48971         * manual/resource.texi (How to get information about the memory
48972         subsystem?): Fix typo.
48973         Reported by Peon de la Parra Ivan <peon@keba.com>
48974
48975 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
48976
48977         [BZ #16882]
48978         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
48979         (pthread_spin_lock): Branch out of spin loop to proper location.
48980         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
48981         (pthread_spin_lock): Likewise.
48982
48983         * nptl/tst-spin4.c: New test.
48984         * nptl/Makefile (tests): Add tst-spin4.
48985
48986 2014-06-03  Andreas Schwab  <schwab@suse.de>
48987
48988         [BZ #15946]
48989         * resolv/res_send.c (send_dg): Reload file descriptor after
48990         calling reopen.
48991
48992 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
48993
48994         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
48995
48996 2014-06-03  Richard Henderson  <rth@redhat.com>
48997
48998         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
48999         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
49000         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
49001         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
49002         in the SAVE_PID block.
49003         (__libc_vfork): New alias.
49004         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
49005
49006         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
49007         child in registers, not on the stack.  Remove RESET_PID conditionals.
49008         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
49009
49010 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
49011
49012         * sysdeps/aarch64/libm-test-ulps: Regenerate.
49013
49014 2014-06-03  Wilco  <wdijkstr@arm.com>
49015
49016         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
49017         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
49018         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
49019         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
49020         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
49021         Likewise.
49022
49023 2014-06-03  Wilco  <wdijkstr@arm.com>
49024
49025         * sysdeps/aarch64/fpu/math_private.h
49026         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
49027         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
49028         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
49029         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
49030         Fix declarations.
49031
49032 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
49033
49034         * crypt/crypt-private.h: Include ufc-crypt.h.
49035         (__b64_from_24bit): Declare extern.
49036         * crypt/crypt_util.c(__b64_from_24bit): New function.
49037         (b64t): New static const variable.
49038         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
49039         (b64t): Remove variable.
49040         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
49041         * crypt/sha256-crypt.c: Include crypt-private.h.
49042         (b64t): Remove variable.
49043         (__sha256_crypt_r): Remove b64_from_24bit and replace
49044         with __b64_from_24bit.
49045         * crypt/sha512-crypt.c: Likewise.
49046
49047 2014-06-02  Roland McGrath  <roland@hack.frob.com>
49048
49049         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
49050         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
49051         Label the code __libc_vfork rather than __vfork.
49052         [!NOT_IN_libc] (vfork): Define as weak alias.
49053         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
49054         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
49055         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
49056
49057 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49058
49059         * malloc/malloc.c (malloc_info): Fix format specifier for
49060         n_mmaps.
49061
49062 2014-06-02  Wilco  <wdijkstr@arm.com>
49063
49064         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
49065         FPCR write.
49066
49067 2014-06-02  Wilco  <wdijkstr@arm.com>
49068
49069         [BZ #17009]
49070         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
49071         Rewrite to reduce FPCR/FPSR accesses.
49072
49073 2014-06-01  David S. Miller  <davem@davemloft.net>
49074
49075         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49076
49077 2014-05-31  David S. Miller  <davem@davemloft.net>
49078
49079         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
49080         to occur in round to nearest mode when |x| >= 2.0
49081
49082 2014-05-30  Richard Henderson  <rth@twiddle.net>
49083
49084         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
49085         (PSEUDO_RET_NOERRNO): Remove.
49086         (ret): Don't redefine.
49087         (ret_NOERRNO): Define in terms of ret.
49088         (ret_ERRVAL): Likewise.
49089
49090         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
49091         use of PSEUDO_RET; perform the error check directly.
49092
49093 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
49094
49095         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
49096         with __int128_t.
49097
49098 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49099
49100         * malloc/malloc (malloc_info): Fix formatting.
49101
49102 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49103             Roland McGrath  <roland@hack.frob.com>
49104
49105         * malloc/malloc (malloc_info): Also print mmapped statistics.
49106
49107 2014-05-30  Roland McGrath  <roland@hack.frob.com>
49108
49109         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
49110         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
49111
49112 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
49113
49114         * malloc/malloc.c (malloc_info): Inline mi_arena.
49115
49116 2014-05-29  Richard Henderson  <rth@twiddle.net>
49117
49118         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
49119         Remove comma before expanding ASM_ARGS_##nr.
49120         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
49121         Make _x0 a strict output; make _x8 a strict input; adjust expansion
49122         of ASM_ARGS_##nr.
49123         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
49124         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
49125         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
49126         (ASM_ARGS_1): Add leading comma.
49127
49128         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
49129         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
49130         to __errno_location.
49131         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
49132         Remove the expected plt for __errno_location.
49133
49134         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
49135         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
49136         call to __read_tp.
49137
49138         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
49139         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
49140         it and break it down.
49141         (DOCARGS_0, DOCARGS_1): Do nothing.
49142         (DOCARGS_2): Update to store into the new stack frame.
49143         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
49144         (UNDOCARGS_1): Update to restore from the new stack frame.
49145         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
49146         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
49147
49148         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
49149         (SINGLE_THREAD_P): New parameter for result regno.
49150         (PSEUDO): Update to match; use cbz instead of beq.
49151
49152         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
49153         Use ENTRY to define the _nocancel entry point.  Share the syscall
49154         and syscall error check paths with the cancel path.
49155         (PSEUDO_END): New.
49156
49157         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
49158         whitespace; tabs before and after asm mnemonics.
49159
49160 2014-05-29  Eric Wong  <normalperson@yhbt.net>
49161
49162         [BZ #15132]
49163         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
49164         Call fstat64 or stat64 internally, depending on arguments passed.
49165         Replace stat buffer argument with file descriptor argument.
49166         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
49167         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
49168         Pass fd to __internal_statvfs instead of calling fstat64.
49169         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
49170         Pass fd to __internal_statvfs64 instead of calling fstat64.
49171         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
49172         Pass -1 to __internal_statvfs instead of calling stat64.
49173         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
49174         Pass -1 to __internal_statvfs64 instead of calling stat64.
49175
49176 2014-05-28  Roland McGrath  <roland@hack.frob.com>
49177
49178         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
49179         that was previously under [RESET_PID].
49180         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
49181
49182         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
49183         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
49184
49185 2014-05-27  Roland McGrath  <roland@hack.frob.com>
49186
49187         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
49188
49189         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
49190         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
49191
49192 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
49193
49194         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
49195
49196 2014-05-27  Andreas Schwab  <schwab@suse.de>
49197
49198         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
49199         TLS_INIT_TP macro.
49200         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
49201         * elf/rtld.c (init_tls, dl_main): Likewise.
49202         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
49203         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
49204         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
49205         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
49206         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
49207         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
49208         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
49209         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
49210         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
49211         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
49212         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
49213         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
49214         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
49215         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
49216         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
49217         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
49218         * sysdeps/generic/tls.h: Update description.
49219
49220 2014-05-27  Will Newton  <will.newton@linaro.org>
49221
49222         [BZ #16990]
49223         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
49224         and restore r2 rather than just restoring.
49225
49226 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
49227
49228         [BZ #16724]
49229         * libio/tst-ftell-append.c: New test case.
49230         * libio/Makefile (tests): Add test case.
49231         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
49232         append mode.
49233         * libio/wfileops.c (do_ftell_wide): Likewise.
49234
49235 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49236
49237         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49238
49239         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
49240         ...
49241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
49242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
49243         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
49244         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
49245         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
49246         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
49247         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
49248         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
49249         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
49250         Moved ...
49251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
49252         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
49253         Moved ...
49254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
49255         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
49256         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
49257         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
49258         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
49259         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
49260         ...
49261         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
49262         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
49263         Moved ...
49264         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
49265         here.
49266         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
49267         ...
49268         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
49269         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
49270         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
49271
49272         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
49273         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
49274         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
49275         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
49276
49277         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
49278         merge into ...
49279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
49280         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
49281         ...
49282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
49283         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
49284         ...
49285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
49286         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
49287         Moved ...
49288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
49289         here.
49290         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
49291         Moved ...
49292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
49293         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
49294         Moved ...
49295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
49296
49297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
49298         conditional [RESET_PID].
49299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
49300         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
49301         removed.
49302         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
49303         removed.
49304
49305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
49306         <tcb-offsets.h>.
49307         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
49308         (__libc_vfork): New strong alias.
49309         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
49310         removed.
49311         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
49312         Removed.
49313
49314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
49315         <tcb-offsets.h>.
49316         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
49317         (__libc_vfork): New strong alias.
49318         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
49319         removed.
49320         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
49321         removed.
49322
49323 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
49324
49325         * malloc/malloc.c (mi_arena): New function.
49326         (malloc_info): Remove nested function mi_arena. Call non-nosted
49327         function mi_arena.
49328
49329 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49330
49331         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
49332         by insrwi.
49333         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
49334         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
49335         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
49336         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
49337         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
49338         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
49339         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
49340
49341 2014-05-26  Andreas Schwab  <schwab@suse.de>
49342
49343         [BZ #16984]
49344         * locale/programs/repertoire.c (repertoire_read): Add slash
49345         between I18NPATH element and file name.
49346         * locale/programs/locfile.c (locfile_read): Likewise.
49347
49348 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
49349
49350         * nptl/pthread_mutexattr_settype.c
49351         (__pthread_mutexattr_settype):
49352         Disable lock elision for PTHREAD_MUTEX_NORMAL.
49353
49354 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
49355
49356         * nptl/tst-mutex5 (do_test):
49357         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
49358
49359 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49360
49361         * benchtests/README: Document 'init' directive.
49362         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
49363         BENCH_INIT.
49364         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
49365         (parse_file): Recognize 'init' directive.
49366
49367 2014-05-26  Kyle McMartin  <kyle@redhat.com>
49368
49369         [BZ #16796]
49370         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
49371         alignment of struct pthread.
49372
49373 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49374
49375         [BZ #16878]
49376         * nscd/netgroupcache.c (addgetnetgrentX): Look for
49377         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
49378         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
49379         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
49380
49381 2014-05-25  Richard Henderson  <rth@twiddle.net>
49382
49383         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
49384         (SINGLE_THREAD_P_PIC): Remove.
49385         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
49386         (SINGLE_THREAD_P_PIC): Remove.
49387
49388         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
49389         branch to syscall error ...
49390         (PSEUDO): ... here.
49391         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
49392         from __local_syscall_error to .Lsyscall_error.
49393         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
49394         (SYSCALL_ERROR): Update label name.
49395
49396         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
49397         Do not use DOARGS/UNDOARGS.
49398         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
49399         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
49400         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
49401         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
49402         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
49403
49404         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
49405         block comment.
49406
49407         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
49408         define if !NOT_IN_libc.
49409         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
49410         define with non-default symbol versions.
49411
49412 2014-05-23  Richard Henderson  <rth@twiddle.net>
49413
49414         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
49415         (vfork, __vfork): Define via compat_symbol.
49416
49417         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
49418         [!HAVE_IFUNC] (vfork_compat): Remove.
49419         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
49420
49421 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
49422
49423         [BZ #16978]
49424         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
49425         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
49426         variable.
49427
49428 2014-05-23  Richard Henderson  <rth@twiddle.net>
49429
49430         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
49431         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
49432         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
49433         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
49434
49435         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
49436         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
49437         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
49438         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
49439         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
49440         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
49441         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
49442         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
49443         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
49444         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
49445         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
49446         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
49447         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
49448         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
49449         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
49450         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
49451         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
49452         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
49453         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
49454         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
49455         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
49456         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
49457         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
49458         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
49459         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
49460         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
49461         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
49462         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
49463         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
49464         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
49465         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
49466         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
49467         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
49468         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
49469         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
49470         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
49471         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
49472         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
49473         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
49474         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
49475         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
49476         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
49477         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
49478         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
49479         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
49480         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
49481         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
49482         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
49483         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
49484         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
49485         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
49486         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
49487         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
49488         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
49489         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
49490         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
49491
49492         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
49493         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
49494         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
49495         before exiting on error.
49496         (__libc_vfork): New strong alias.
49497         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
49498         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
49499
49500         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
49501         that was previously under [RESET_PID].
49502         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
49503
49504         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
49505
49506 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
49507
49508         [BZ #16977]
49509         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
49510         value when x - 1 is zero.
49511         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
49512         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
49513         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
49514         0.0L for an argument of 1.0L.
49515         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
49516         Likewise.
49517         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
49518         value when x - 1 is zero.
49519         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
49520         * sysdeps/i386/fpu/libm-test-ulps: Update.
49521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49522
49523 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
49524
49525         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
49526         alphasort and versionsort.
49527
49528 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49529
49530         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
49531         macro.
49532         [copysignf]: Likewise.
49533
49534 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49535
49536         * crypt/md5-crypt.c: Fix formatting.
49537
49538 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
49539
49540         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
49541         (b64_from_24bit): New function.
49542
49543 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49544
49545         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
49546         libc_hidden_builtin_def to ifunc.
49547         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
49548         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
49549
49550 2014-05-21  Roland McGrath  <roland@hack.frob.com>
49551
49552         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
49553         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
49554
49555 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
49556
49557         * nscd/Depend (linuxthreads): Remove.
49558         (nptl): Add.
49559         * resolv/Depend (linuxthreads): Remove.
49560         * rt/Depend (linuxthreads): Remove.
49561
49562         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
49563         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
49564         $(common-objpfx)elf/.
49565         (link-libc-before-gnulib): Likewise.
49566         (elfobjdir): Remove variable.
49567         * Makefile (install): Use $(elf-objpfx) instead of
49568         $(common-objpfx)elf/.
49569         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
49570         $(elfobjdir)/.
49571         (link-libc-deps): Likewise.
49572         ($(common-objpfx)libc.so): Likewise.
49573         ($(common-objpfx)linkobj/libc.so): Likewise.
49574         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
49575         instead of $(common-objpfx)elf/.
49576         (symbolic-link-list): Likewise.
49577         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
49578         [$(cross-compiling) = no]: Likewise.
49579         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
49580         $(elfobjdir)/.
49581         (static-gnulib-arch): Likewise.
49582         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
49583         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
49584         $(common-objpfx)elf/.
49585
49586 2014-05-21  Richard Henderson  <rth@redhat.com>
49587
49588         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
49589         (SINGLE_THREAD_P): Use the correct width load.  Fold
49590         into the ldr offset.
49591
49592         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
49593         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
49594
49595 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
49596
49597         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
49598         (libgcc_s_resume): Use __attribute_used__.
49599         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
49600         Likewise.
49601
49602 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49603
49604         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
49605         optimization when used with float constants.
49606
49607         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49608
49609 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
49610
49611         [BZ #16915]
49612         * locale/nl_langinfo_l.c: Make direct reference to every
49613         _nl_current_CATEGORY symbol.
49614         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
49615         (tests-static): Add tst-langinfo-static.
49616         (tests-special): Add tst-langinfo-static.out.
49617         ($(objpfx)tst-langinfo.out): Redirect output.
49618         ($(objpfx)tst-langinfo-static.out): New.
49619         * localedata/tst-langinfo.sh: Send output to stdout.
49620         * localedata/tst-langinfo-static.c: New file.
49621
49622         [BZ #16965]
49623         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
49624         when the shift amount is modulo the limb size.
49625
49626 2014-05-20  Richard Henderson  <rth@redhat.com>
49627
49628         [BZ #16967]
49629         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
49630         Change type of sa_flags from unsigned int to int.
49631
49632         [BZ #16966]
49633         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
49634
49635         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
49636
49637 2014-05-20  Will Newton  <will.newton@linaro.org>
49638
49639         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
49640         Test the return value of the system call in the nocancel case.
49641
49642 2014-05-20  Will Newton  <will.newton@linaro.org>
49643             Yvan Roux  <yvan.roux@linaro.org>
49644
49645         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
49646         #include of asm/ptrace.h.
49647         (PTRACE_GET_THREAD_AREA): Remove #undef.
49648         (PTRACE_GETHBPREGS): Likewise.
49649         (PTRACE_SETHBPREGS): Likewise.
49650         (struct user_regs_struct): New structure.
49651         (struct user_fpsimd_struct): New structure.
49652         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
49653         #include of asm/ptrace.h and second #include of sys/user.h.
49654         (PTRACE_GET_THREAD_AREA): Remove #undef.
49655         (PTRACE_GETHBPREGS): Likewise.
49656         (PTRACE_SETHBPREGS): Likewise.
49657         (ELF_NGREG): Use new struct user_regs_struct.
49658         (elf_fpregset_t): Use new struct user_fpsimd_struct.
49659
49660 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49661
49662         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
49663         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
49664
49665 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
49666
49667         [BZ #16958]
49668         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
49669         membar to avoid block loads/stores to overlap previous stores.
49670
49671 2014-05-17  Richard Henderson  <rth@redhat.com>
49672
49673         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
49674         Create the __##syscall_name##_nocancel entry point.
49675         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
49676         Remove; let the sysdep-cancel.h code create it.
49677
49678 2014-05-17  David S. Miller  <davem@davemloft.net>
49679
49680         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
49681         Protect with __USE_GNU.
49682         (TIOCSET_TEMPT): Likewise.
49683         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
49684         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
49685         these are already provided in bits/ioctl-types.h
49686
49687 2014-05-16  Roland McGrath  <roland@hack.frob.com>
49688
49689         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
49690         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
49691
49692         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
49693         Use wait4 regardless of [__NR_waitpid].
49694
49695 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
49696
49697         PR libgcc/60166
49698         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
49699         (_FP_NANSIGN_Q): Set the quiet bit.
49700
49701 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
49702
49703         * benchtests/Makefile
49704         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
49705         not $(common-objpfx)math/libm.so.
49706         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
49707         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
49708         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
49709         $(common-objpfx)dlfcn/libdl.so.
49710         ($(objpfx)tst-audit8): Depend on $(libm), not
49711         $(common-objpfx)math/libm.so.
49712         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
49713         not $(common-objpfx)dlfcn/libdl.so.
49714         * math/Makefile
49715         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
49716         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
49717         [$(build-shared) = yes].
49718         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
49719         $(common-objpfx)nptl/libpthread.so.
49720         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
49721         $(common-objpfx)math/libm.so$(libm.so-version) or
49722         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
49723         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
49724         $(common-objpfx)dlfcn/libdl.so.
49725         * setjmp/Makefile (link-libm): Remove variable.
49726         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
49727         * stdio-common/Makefile (link-libm): Remove variable.
49728         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
49729         * stdlib/Makefile (link-libm): Remove variable.
49730         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
49731         ($(objpfx)tst-strtod-round): Likewise.
49732         ($(objpfx)tst-tininess): Likewise.
49733         ($(objpfx)tst-strtod-underflow): Likewise.
49734         ($(objpfx)tst-strtod6): Likewise.
49735         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
49736         $(libdl), not $(common-objpfx)nptl/libpthread.so and
49737         $(common-objpfx)dlfcn/libdl.so.
49738
49739 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49740
49741         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
49742         BSD terminal modes definitions.
49743
49744 2014-05-16  Roland McGrath  <roland@hack.frob.com>
49745
49746         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
49747         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
49748
49749         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
49750         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
49751         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
49752         Don't do #include_next.
49753         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
49754         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
49755         Don't do #include_next.
49756         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
49757         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
49758         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
49759         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
49760
49761 2014-05-16  Allan McRae  <allan@archlinux.org>
49762
49763         * po/sv.po: Update Swedish translation from translation project.
49764
49765         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
49766         in sed expression.
49767
49768 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
49769
49770         [BZ #16917]
49771         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
49772         errno if the TIOCGPTN ioctl fails with an error different than
49773         EINVAL.
49774         * login/tst-ptsname.c: New file.
49775         * login/Makefile (tests): Add tst-ptsname.
49776
49777         [BZ #16943]
49778         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
49779         and prlimit64.
49780
49781 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49782
49783         [BZ #16849]
49784         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
49785         herrno to return EAI_AGAIN.
49786
49787 2014-05-14  Roland McGrath  <roland@hack.frob.com>
49788
49789         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
49790         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
49791         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
49792         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
49793         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
49794         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
49795         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
49796         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
49797         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
49798         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
49799         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
49800         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
49801         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
49802         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
49803         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
49804         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
49805         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
49806         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
49807         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
49808         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
49809         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
49810         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
49811         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
49812         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
49813         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
49814         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
49815         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
49816         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
49817         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
49818         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
49819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
49820         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
49821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
49822         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
49823         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
49824         Moved ...
49825         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
49826         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
49827         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
49828         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
49829         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
49830         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
49831         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
49832         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
49833         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
49834         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
49835         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
49836         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
49837         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
49838         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
49839         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
49840         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
49841         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
49842         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
49843         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
49844         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
49845         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
49846         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
49847         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
49848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
49849         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
49850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
49851         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
49852         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
49853         Moved ...
49854         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
49855         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
49856         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
49857         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
49858         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
49859         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
49860         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
49861         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
49862         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
49863         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
49864         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
49865         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
49866         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
49867         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
49868         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
49869         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
49870         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
49871         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
49872         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
49873         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
49874         Moved ...
49875         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
49876         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
49877         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
49878
49879         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
49880         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
49881         (libpthread-sysdep_routines): Add elision-related stuff here instead.
49882         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
49883         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
49884         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
49885         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
49886         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
49887         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
49888         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
49889         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
49890         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
49891         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
49892         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
49893         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
49894         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
49895         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
49896         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
49897         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
49898         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
49899         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
49900         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
49901         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
49902         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
49903         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
49904         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
49905         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
49906         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
49907         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
49908         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
49909         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
49910
49911         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
49912         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
49913
49914         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
49915         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
49916         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
49917         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
49918         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
49919         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
49920         Moved ...
49921         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
49922         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
49923         Moved ...
49924         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
49925         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
49926         Moved ...
49927         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
49928         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
49929         Moved ...
49930         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
49931         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
49932         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
49933         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
49934         Moved ...
49935         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
49936         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
49937         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
49938         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
49939         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
49940         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
49941         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
49942         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
49943         Moved ...
49944         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
49945         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
49946         Moved ...
49947         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
49948         ... here.
49949         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
49950         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
49951         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
49952         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
49953         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
49954         Moved ...
49955         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
49956         ... here.
49957         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
49958         Moved ...
49959         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
49960         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
49961         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
49962         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
49963         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
49964         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
49965         Moved ...
49966         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
49967         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
49968         Moved ...
49969         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
49970         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
49971         Moved ...
49972         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
49973         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
49974         Moved ...
49975         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
49976         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
49977         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
49978         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
49979         Moved ...
49980         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
49981         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
49982         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
49983         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
49984         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
49985         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
49986         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
49987         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
49988         Moved ...
49989         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
49990         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
49991         Moved ...
49992         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
49993         ... here.
49994         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
49995         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
49996         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
49997         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
49998         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
49999         Moved ...
50000         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
50001         ... here.
50002         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
50003         Moved ...
50004         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
50005         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
50006         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
50007         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
50008         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
50009         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
50010         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
50011         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
50012         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
50013         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
50014         Moved ...
50015         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
50016         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
50017         Moved ...
50018         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
50019         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
50020         Moved ...
50021         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
50022         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
50023         Moved ...
50024         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
50025         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
50026         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
50027         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
50028         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
50029         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
50030         Moved ...
50031         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
50032         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
50033         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
50034         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
50035         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
50036         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
50037         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
50038         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
50039         Moved ...
50040         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
50041         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
50042         Moved ...
50043         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
50044         ... here.
50045         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
50046         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
50047         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
50048         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
50049         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
50050         Moved ...
50051         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
50052         ... here.
50053         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
50054         Moved ...
50055         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
50056         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
50057         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
50058         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
50059         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
50060         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
50061         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
50062         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
50063         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
50064         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
50065         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
50066
50067         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
50068         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
50069
50070         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
50071         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
50072
50073         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
50074         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
50075         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
50076         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
50077         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
50078         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
50079         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
50080         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
50081         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
50082         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
50083         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
50084         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
50085         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
50086         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
50087         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
50088         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
50089         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
50090         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
50091         Moved ...
50092         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
50093         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
50094         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
50095         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
50096         Moved ...
50097         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
50098         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
50099         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
50100         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
50101         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
50102         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
50103         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
50104         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
50105         Moved ...
50106         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
50107         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
50108         Moved ...
50109         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
50110         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
50111         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
50112         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
50113         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
50114         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
50115         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
50116         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
50117         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
50118         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
50119         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
50120         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
50121         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
50122         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
50123         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
50124         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
50125         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
50126
50127         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
50128         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
50129         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
50130         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
50131         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
50132
50133         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
50134         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
50135         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
50136         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
50137         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
50138         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
50139         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
50140         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
50141         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
50142         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
50143
50144         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
50145         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
50146
50147         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
50148         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
50149         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
50150         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
50151         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
50152         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
50153         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
50154         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
50155         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
50156         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
50157         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
50158         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
50159         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
50160         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
50161         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
50162         Update #include.
50163         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
50164         Likewise.
50165         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
50166         Likewise.
50167         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
50168         Likewise.
50169         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
50170         Likewise.
50171         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
50172         Likewise.
50173         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
50174         Likewise.
50175         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
50176         Likewise.
50177         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
50178         Likewise.
50179         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
50180         Likewise.
50181         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
50182         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
50183         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
50184         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
50185         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
50186         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
50187         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
50188         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
50189         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
50190         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
50191         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
50192         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
50193         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
50194         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
50195         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
50196
50197         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
50198         that was previously under [RESET_PID].
50199         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
50200         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
50201         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
50202
50203         * sysdeps/i386/nptl/Implies: New file.
50204         * sysdeps/x86_64/nptl/Implies: New file.
50205         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
50206         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
50207         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
50208         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
50209
50210         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
50211         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
50212         (__libc_vfork): New strong alias.
50213         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
50214         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
50215
50216         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
50217         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
50218         (__libc_vfork): New strong alias.
50219         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
50220         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
50221
50222         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
50223         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
50224         (__libc_vfork): New strong alias.
50225         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
50226         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
50227         * nptl/pt-vfork.c: New file.
50228         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
50229         (libpthread: GLIBC_2.20): New version set (empty).
50230
50231 2014-05-14  Will Newton  <will.newton@linaro.org>
50232
50233         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
50234         rather than #if.
50235
50236 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
50237
50238         [BZ #16564]
50239         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
50240         arguments with exponent 65 or above.
50241         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
50242         arguments 0x1p113L or above.
50243         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
50244         to arguments 0x1p107L or above.
50245         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
50246         positive arguments with exponent 65 or above.
50247         * math/auto-libm-test-in: Add more tests of log1p.
50248         * math/auto-libm-test-out: Regenerated.
50249
50250         [BZ #16928]
50251         * math/s_cacos.c (__cacos): Ensure zero real part of result from
50252         non-finite arguments is +0.
50253         * math/s_cacosf.c (__cacosf): Likewise.
50254         * math/s_cacosl.c (__cacosl): Likewise.
50255         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
50256         * sysdeps/i386/fpu/libm-test-ulps: Update.
50257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50258
50259         [BZ #16927]
50260         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
50261         value.
50262         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
50263         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
50264         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
50265         for explicit high bit of mantissa when testing for argument equal
50266         to 1.
50267         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
50268         * sysdeps/i386/fpu/libm-test-ulps: Update.
50269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50270
50271         [BZ #16516]
50272         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
50273         (__erf): Scale by 16 instead of 8 in potentially underflowing
50274         case.  Ensure exception if result actually underflows.
50275         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
50276         (__erff): Scale by 16 instead of 8 in potentially underflowing
50277         case.  Ensure exception if result actually underflows.
50278         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
50279         (efx8): Remove variable.
50280         (__erfl): Scale by 16 instead of 8 in potentially underflowing
50281         case.  Ensure exception if result actually underflows.
50282         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
50283         (efx8): Remove variable.
50284         (__erfl): Scale by 16 instead of 8 in potentially underflowing
50285         case.  Ensure exception if result actually underflows.
50286         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
50287         (efx8): Remove variable.
50288         (__erfl): Scale by 16 instead of 8 in potentially underflowing
50289         case.  Ensure exception if result actually underflows.
50290         * math/auto-libm-test-in: Add more tests of erf.
50291         * math/auto-libm-test-out: Regenerated.
50292
50293 2014-05-14  Andreas Schwab  <schwab@suse.de>
50294
50295         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
50296         Remove code conditionalized on USE___THREAD.
50297
50298         * config.h.in (HAVE_PT_CHOWN): Define as 0.
50299         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
50300         not definedness.
50301
50302 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
50303
50304         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
50305         Define unconditionally.
50306         (__ASSUME_O_CLOEXEC): Likewise.
50307         (__ASSUME_SOCK_CLOEXEC): Likewise.
50308         (__ASSUME_IN_NONBLOCK): Likewise.
50309         (__ASSUME_PIPE2): Likewise.
50310         (__ASSUME_EVENTFD2): Likewise.
50311         (__ASSUME_SIGNALFD4): Likewise.
50312         (__ASSUME_DUP3): Likewise.
50313         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50314         (__ASSUME_DUP3): Do not define.
50315         (__ASSUME_EVENTFD2): Likewise.
50316         (__ASSUME_IN_NONBLOCK): Likewise.
50317         (__ASSUME_O_CLOEXEC): Likewise.
50318         (__ASSUME_PIPE2): Likewise.
50319         (__ASSUME_SIGNALFD4): Likewise.
50320         (__ASSUME_SOCK_CLOEXEC): Likewise.
50321         (__ASSUME_UTIMES): Undefine.
50322         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50323         (__ASSUME_UTIMES): Do not define.
50324         (__ASSUME_O_CLOEXEC): Likewise.
50325         (__ASSUME_SOCK_CLOEXEC): Likewise.
50326         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
50327         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
50328         0x020621].
50329         (__ASSUME_PIPE2): Likewise.
50330         (__ASSUME_EVENTFD2): Likewise.
50331         (__ASSUME_SIGNALFD4): Likewise.
50332         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
50333         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
50334         Do not define.
50335         (__ASSUME_EVENTFD2): Likewise.
50336         (__ASSUME_SIGNALFD4): Likewise.
50337         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
50338         (__ASSUME_32BITUIDS): Likewise.
50339         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
50340         (__ASSUME_IPC64): Likewise.
50341         (__ASSUME_ST_INO_64_BIT): Likewise.
50342         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
50343         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
50344         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50345         (__ASSUME_UTIMES): Do not define.
50346         (__ASSUME_PSELECT): Likewise.
50347         (__ASSUME_PPOLL): Likewise.
50348         (__ASSUME_O_CLOEXEC): Likewise.
50349         (__ASSUME_SOCK_CLOEXEC): Likewise.
50350         (__ASSUME_IN_NONBLOCK): Likewise.
50351         (__ASSUME_PIPE2): Likewise.
50352         (__ASSUME_EVENTFD2): Likewise.
50353         (__ASSUME_SIGNALFD4): Likewise.
50354         (__ASSUME_DUP3): Likewise.
50355         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
50356         (__ASSUME_UTIMES): Likewise.
50357         (__ASSUME_O_CLOEXEC): Likewise.
50358         (__ASSUME_SOCK_CLOEXEC): Likewise.
50359         (__ASSUME_IN_NONBLOCK): Likewise.
50360         (__ASSUME_PIPE2): Likewise.
50361         (__ASSUME_EVENTFD2): Likewise.
50362         (__ASSUME_SIGNALFD4): Likewise.
50363         (__ASSUME_DUP3): Likewise.
50364         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50365         (__ASSUME_UTIMES): Likewise.
50366         (__ASSUME_O_CLOEXEC): Likewise.
50367         (__ASSUME_SOCK_CLOEXEC): Likewise.
50368         (__ASSUME_IN_NONBLOCK): Likewise.
50369         (__ASSUME_PIPE2): Likewise.
50370         (__ASSUME_EVENTFD2): Likewise.
50371         (__ASSUME_SIGNALFD4): Likewise.
50372         (__ASSUME_DUP3): Likewise.
50373         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
50374         Likewise.
50375         (__ASSUME_UTIMES): Likewise.
50376         (__ASSUME_EVENTFD2): Likewise.
50377         (__ASSUME_SIGNALFD4): Likewise.
50378         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50379         (__ASSUME_O_CLOEXEC): Likewise.
50380         (__ASSUME_SOCK_CLOEXEC): Likewise.
50381         (__ASSUME_IN_NONBLOCK): Likewise.
50382         (__ASSUME_PIPE2): Likewise.
50383         (__ASSUME_EVENTFD2): Likewise.
50384         (__ASSUME_SIGNALFD4): Likewise.
50385         (__ASSUME_DUP3): Likewise.
50386         (__ASSUME_UTIMES): Undefine.
50387
50388         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
50389         feclearexcept.  Remove symbol versioning code.
50390         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
50391         symbol versioning code.
50392         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
50393         symbol versioning code.
50394         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
50395         feupdateenv.  Remove symbol versioning code.
50396         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
50397         fegetexceptflag.  Remove symbol versioning code.
50398         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
50399         fesetexceptflag.  Remove symbol versioning code.
50400         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
50401         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
50402         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
50403         (__posix_fadvise64_l32): Remove prototype.
50404         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
50405         code.
50406
50407 2014-05-13  Roland McGrath  <roland@hack.frob.com>
50408
50409         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
50410         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
50411         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
50412         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
50413
50414 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
50415
50416         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
50417         current working directory
50418
50419 2014-05-13  Roland McGrath  <roland@hack.frob.com>
50420
50421         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
50422         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
50423         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
50424         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
50425         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
50426         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
50427         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
50428         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
50429         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
50430         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
50431         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
50432         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
50433         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
50434         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
50435         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
50436         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
50437         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
50438         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
50439         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
50440         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
50441         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
50442         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
50443         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
50444         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
50445         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
50446         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
50447         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
50448         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
50449         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
50450         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
50451         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
50452         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
50453         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
50454         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
50455         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
50456         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
50457         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
50458         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
50459         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
50460         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
50461         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
50462         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
50463
50464         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
50465         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
50466
50467         * sysdeps/unix/sysv/linux/arm/Makefile
50468         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
50469         Add rt-aeabi_unwind_cpp_pr1.
50470         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
50471         Add nptl-aeabi_unwind_cpp_pr1.
50472         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
50473         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
50474         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
50475         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
50476         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
50477         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
50478
50479         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
50480         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
50481         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
50482         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
50483
50484         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
50485         Deconditionalize the code that was previously under [RESET_PID].
50486         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
50487
50488         * sysdeps/generic/exit-thread.h: New file.
50489         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
50490         * include/unistd.h (__exit_thread): Remove declaration.
50491         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
50492         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
50493         * csu/libc-start.c: Include <exit-thread.h>.
50494         (LIBC_START_MAIN): Pass no argument to __exit_thread.
50495         * nptl/pthread_create.c: Include <exit-thread.h>.
50496         (start_thread): Call __exit_thread in place of __exit_thread_inline.
50497         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
50498         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
50499         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
50500         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
50501         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
50502         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
50503         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
50504         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
50505         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
50506         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
50507         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
50508         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
50509         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
50510         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
50511         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
50512         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
50513
50514 2014-05-13  Andreas Schwab  <schwab@suse.de>
50515
50516         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
50517
50518 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
50519
50520         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
50521         (__ASSUME_UTIMES): Do not condition on kernel version.
50522         (__ASSUME_PSELECT): Define unconditionally.
50523         (__ASSUME_PPOLL): Likewise.
50524         (__ASSUME_ATFCTS): Likewise.
50525         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
50526         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
50527         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
50528         (__ASSUME_UTIMENSAT): Define unconditionally.
50529         (__ASSUME_PRIVATE_FUTEX): Likewise.
50530         (__ASSUME_FALLOCATE): Likewise.
50531         (__ASSUME_O_CLOEXEC): Likewise.
50532         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
50533         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
50534         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
50535         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
50536         (__ASSUME_IN_NONBLOCK): Likewise.
50537         (__ASSUME_PIPE2): Likewise.
50538         (__ASSUME_EVENTFD2): Likewise.
50539         (__ASSUME_SIGNALFD4): Likewise.
50540         (__ASSUME_DUP3): Likewise.
50541         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
50542         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
50543         (__ASSUME_AT_RANDOM): Likewise.
50544         (__ASSUME_PREADV): Likewise.
50545         (__ASSUME_PWRITEV): Likewise.
50546         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
50547         (__ASSUME_F_GETOWN_EX): Define unconditionally.
50548         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
50549         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
50550         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
50551         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50552         (__ASSUME_O_CLOEXEC): Define unconditionally.
50553         (__ASSUME_PSELECT): Do not undefine conditionally.
50554         (__ASSUME_PPOLL): Likewise.
50555         (__ASSUME_ATFCTS): Likewise.
50556         (__ASSUME_SET_ROBUST_LIST): Likewise.
50557         (__ASSUME_UTIMENSAT): Likewise.
50558         (__ASSUME_FDATASYNC): Define unconditionally.
50559         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50560         (__ASSUME_SIGFRAME_V2): Likewise.
50561         )__ASSUME_EVENTFD2): Likewise.
50562         (__ASSUME_SIGNALFD4): Likewise.
50563         (__ASSUME_PSELECT): Do not undefine conditionally.
50564         (__ASSUME_PPOLL): Likewise.
50565         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50566         (__ASSUME_PSELECT): Define unconditionally.
50567         (__ASSUME_PPOLL): Likewise.
50568         (__ASSUME_O_CLOEXEC): Likewise.
50569         (__ASSUME_SOCK_CLOEXEC): Likewise.
50570         (__ASSUME_IN_NONBLOCK): Likewise.
50571         (__ASSUME_PIPE2): Likewise.
50572         (__ASSUME_EVENTFD2): Likewise.
50573         (__ASSUME_SIGNALFD4): Likewise.
50574         (__ASSUME_DUP3): Likewise.
50575         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
50576         (__ASSUME_O_CLOEXEC): Likewise.
50577         (__ASSUME_SOCK_CLOEXEC): Likewise.
50578         (__ASSUME_IN_NONBLOCK): Likewise.
50579         (__ASSUME_PIPE2): Likewise.
50580         (__ASSUME_EVENTFD2): Likewise.
50581         (__ASSUME_SIGNALFD4): Likewise.
50582         (__ASSUME_DUP3): Likewise.
50583         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50584         (__ASSUME_EVENTFD2): Likewise.
50585         (__ASSUME_SIGNALFD4): Likewise.
50586         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
50587
50588 2014-05-12  Andreas Schwab  <schwab@suse.de>
50589
50590         [BZ #16932]
50591         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
50592         (_nss_nis_gethostbyname4_r): Return error if item length is larger
50593         than maximum RPC packet size.
50594         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
50595         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
50596         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
50597         (_nss_nis_getservbyport_r): Likewise.
50598
50599 2014-05-12  Will Newton  <will.newton@linaro.org>
50600
50601         * malloc/Makefile (tests): Add tst-mallopt.
50602         * malloc/tst-mallopt.c: New file.
50603
50604 2014-05-09  Roland McGrath  <roland@hack.frob.com>
50605
50606         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
50607         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
50608
50609 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50610
50611         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
50612         (tst-tlsmod6.so): Likewise.
50613
50614 2014-05-09  Roland McGrath  <roland@hack.frob.com>
50615
50616         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
50617
50618 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
50619
50620         [BZ #16064]
50621         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
50622         and <dl-procinfo.h>.
50623         (__fegetenv): Save SSE state in envp->__eip if supported.
50624         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
50625         envp->__eip if supported.
50626         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
50627         and <dl-procinfo.h>.
50628         (__fesetenv): Always set __eip, __cs_selector, __opcode,
50629         __data_offset and __data_selector in environment to 0.  Set SSE
50630         state if supported.
50631         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
50632         test-fenv-sse.
50633         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
50634         -mfpmath=sse.
50635         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
50636
50637 2014-05-09  Will Newton  <will.newton@linaro.org>
50638
50639         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
50640         and libc_relro_required for ARM.
50641         * sysdeps/arm/preconfigure: Regenerate.
50642
50643 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
50644             Stefan Liebler  <stli@linux.vnet.ibm.com>
50645
50646         * config.make.in (enable-lock-elision): New Makefile variable.
50647         * configure.ac: Likewise.
50648         * configure: Regenerate.
50649         * sysdeps/s390/configure.ac:
50650         Add check for gcc transactions support.
50651         * sysdeps/s390/configure: Regenerate.
50652         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
50653         Build elision files if enabled.
50654         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
50655         Add lock elision support for s390.
50656         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
50657         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
50658         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
50659         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
50660         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
50661         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
50662         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
50663         Likewise.
50664         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
50665         Likewise.
50666         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
50667         Likewise.
50668         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
50669         Likewise.
50670         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
50671         (__lll_timedlock_elision, __lll_lock_elision)
50672         (__lll_unlock_elision, __lll_trylock_elision)
50673         (lll_timedlock_elision, lll_lock_elision)
50674         (lll_unlock_elision, lll_trylock_elision): Add.
50675         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
50676         (pthread_mutex_t): Add lock elision support for s390.
50677
50678 2014-05-14  Wilco  <wdijkstr@arm.com>
50679
50680         * sysdeps/arm/fclrexcpt.c: Cleanup.
50681         * sysdeps/arm/fedisblxcpt.c: Cleanup.
50682         * sysdeps/arm/feenablxcpt.c: Cleanup.
50683         * sysdeps/arm/fegetenv.c: Cleanup.
50684         * sysdeps/arm/fegetexcept.c: Cleanup.
50685         * sysdeps/arm/fegetround.c: Cleanup.
50686         * sysdeps/arm/feholdexcpt.c: Cleanup.
50687         * sysdeps/arm/fesetenv.c: Cleanup.
50688         * sysdeps/arm/fesetround.c: Cleanup.
50689         * sysdeps/arm/feupdateenv.c: Cleanup.
50690         * sysdeps/arm/fgetexcptflg.c: Cleanup.
50691         * sysdeps/arm/fraiseexcpt.c: Cleanup.
50692         * sysdeps/arm/fsetexcptflg.c: Cleanup.
50693         * sysdeps/arm/ftestexcept.c: Cleanup.
50694         * sysdeps/arm/get-rounding-mode.h: Cleanup.
50695         * sysdeps/arm/setfpucw.c: Cleanup.
50696
50697 2014-05-09  Will Newton  <will.newton@linaro.org>
50698
50699         * sysdeps/arm/armv7/strcmp.S: New file.
50700         * NEWS: Mention addition of ARMv7 optimized strcmp.
50701
50702 2014-05-08  Roland McGrath  <roland@hack.frob.com>
50703
50704         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
50705         look for %.ac rather than %.in.
50706
50707         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
50708         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
50709         * sysdeps/mach/hurd/configure: Regenerated.
50710         * sysdeps/unix/sysv/linux/configure: Regenerated.
50711
50712         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
50713
50714 2014-05-07  Steve Ellcey  <sellcey@mips.com>
50715
50716         [BZ #16922]
50717         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
50718         (LONG_SUB): Ditto.
50719         (PTR_SUB): Ditto.
50720
50721 2014-05-07  Andreas Schwab  <schwab@suse.de>
50722
50723         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
50724         when skipping over non-matching result from nscd.
50725
50726 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
50727
50728         [BZ #16876]
50729         * nptl/sockperf.c (client): Check socket return value.
50730
50731         [BZ #16877]
50732         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
50733         nscd security class.
50734
50735 2014-05-06  Roland McGrath  <roland@hack.frob.com>
50736
50737         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
50738         * sysdeps/arm/unwind.h: ... here.
50739
50740 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
50741
50742         [BZ #16916]
50743         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
50744         Define.
50745
50746 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
50747
50748         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
50749         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
50750         multiarch strncpy for PPC64.
50751         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
50752         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
50753         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
50754         multiarch optimizations.
50755         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
50756         (__libc_ifunc_impl_list): Likewise.
50757         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
50758         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
50759         multiarch stpncpy for PPC64.
50760         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
50761         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
50762
50763 2014-05-06  Andreas Schwab  <schwab@suse.de>
50764
50765         [BZ #16912]
50766         * gmon/mcount.c (_MCOUNT_DECL): Use
50767         atomic_compare_and_exchange_bool_acq instead of
50768         catomic_compare_and_exchange_bool_acq.
50769
50770 2014-05-05  Roland McGrath  <roland@hack.frob.com>
50771
50772         * elf/Makefile (others, install-bin): Remove pldd.
50773         (pldd-modules): Variable removed.
50774         ($(objpfx)pldd): Target removed.
50775         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
50776         (others, install-bin): Append pldd here.
50777         ($(objpfx)pldd): New target.
50778
50779         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
50780         to 0, so the first #if test emitted later doesn't see it undefined.
50781         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
50782         * sysdeps/gnu/errlist.c: Regenerated.
50783
50784 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50785
50786         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
50787         [libc_hidden_builtin_def]: Define to empty value.
50788         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
50789         [libc_hidden_builtin_def]: Likewise.
50790         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
50791         [libc_hidden_builtin_def]: Likewise.
50792         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
50793         [libc_hidden_builtin_def]: Likewise.
50794         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
50795         __redirect_memcpy and define ifunc as default hidden symbol.
50796         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
50797         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
50798
50799 2014-05-04  Adam Conrad  <adconrad@0c3.net>
50800
50801         * locale/iso-4217.def: Reintroduce XDR currency.
50802
50803 2014-05-04  Allan McRae  <allan@archlinux.org>
50804
50805         * po/eo.po: Update Esperanto translation from translation project.
50806
50807 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
50808
50809         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
50810         and FEATURE_INDEX_MAX to 1.
50811         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
50812
50813 2014-05-01  Steve Ellcey  <sellcey@mips.com>
50814
50815         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
50816         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
50817         * iconvdata/big5.c (ONE_DIRECTION): Define.
50818         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
50819         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
50820         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
50821         * iconvdata/cp932.c (ONE_DIRECTION): Define.
50822         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
50823         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
50824         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
50825         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
50826         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
50827         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
50828         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
50829         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
50830         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
50831         * iconvdata/gbk.c (ONE_DIRECTION): Define.
50832         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
50833         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
50834         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
50835         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
50836         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
50837         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
50838         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
50839         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
50840         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
50841         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
50842         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
50843         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
50844         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
50845         * iconvdata/iso646.c (ONE_DIRECTION): Define.
50846         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
50847         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
50848         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
50849         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
50850         * iconvdata/johab.c (ONE_DIRECTION): Define.
50851         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
50852         * iconvdata/sjis.c (ONE_DIRECTION): Define.
50853         * iconvdata/t.61.c (ONE_DIRECTION): Define.
50854         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
50855         * iconvdata/tscii.c (ONE_DIRECTION): Define.
50856         * iconvdata/uhc.c (ONE_DIRECTION): Define.
50857         * iconvdata/unicode.c (ONE_DIRECTION): Define.
50858         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
50859         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
50860         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
50861
50862 2014-05-01  Roland McGrath  <roland@hack.frob.com>
50863
50864         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
50865         (_IO_JUMPS_OFFSET): Define to 0.
50866
50867         * nptl/sysdeps/pthread/bits/libc-lock.h
50868         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
50869         (__libc_lock_define_initialized_recursive): Always define using
50870         initializer.  Modern compilers treat uninitialized (implicit zero) and
50871         explicit zero initializers the same (i.e. put the datum in bss).
50872
50873 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
50874
50875         * nscd/nscd-client.h: Include <string.h>.
50876
50877 2014-05-01  David S. Miller  <davem@davemloft.net>
50878
50879         [BZ #16885]
50880         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
50881         multiple zero bytes exist at the end of a string.
50882         Reported by Aurelien Jarno <aurelien@aurel32.net>
50883
50884         * string/test-strcmp.c (check): Add explicit test for situations where
50885         there are multiple zero bytes after the first.
50886
50887 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
50888
50889         [BZ #16890]
50890         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
50891         when compiling wprintf.
50892         * stdio-common/tstdiomisc.c (t3): New function.
50893         (main): Call it.
50894
50895 2014-05-01  Steve Ellcey  <sellcey@mips.com>
50896
50897         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
50898         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
50899         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
50900         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
50901
50902 2014-05-01  Steve Ellcey  <sellcey@mips.com>
50903
50904         * stdlib/longlong.h: Updated from GCC.
50905
50906 2014-05-01  Will Newton  <will.newton@linaro.org>
50907             Bernard Ogden  <bernie.ogden@linaro.org>
50908
50909         * NEWS: Update fixed bug list.
50910
50911         [BZ #15119]
50912         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
50913
50914 2014-04-30  David S. Miller  <davem@davemloft.net>
50915
50916         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
50917         (libc_feholdexcept_setround_sparc_ctx): New function.
50918         (libc_fesetenv_sparc_ctx): Likewise.
50919         (libc_feupdateenv_sparc_ctx): Likewise.
50920         (libc_feholdsetround_sparc_ctx): Likewise.
50921         (libc_feholdexcept_setround_ctx): Define.
50922         (libc_feholdexcept_setroundf_ctx): Likewise.
50923         (libc_feholdexcept_setroundl_ctx): Likewise.
50924         (libc_fesetenv_ctx): Likewise.
50925         (libc_fesetenvf_ctx): Likewise.
50926         (libc_fesetenvl_ctx): Likewise.
50927         (libc_feupdateenv_ctx): Likewise.
50928         (libc_feupdateenvf_ctx): Likewise.
50929         (libc_feupdateenvl_ctx): Likewise.
50930         (libc_feresetround_ctx): Likewise.
50931         (libc_feresetroundf_ctx): Likewise.
50932         (libc_feresetroundl_ctx): Likewise.
50933         (libc_feholdsetround_ctx): Likewise.
50934         (libc_feholdsetroundf_ctx): Likewise.
50935         (libc_feholdsetroundl_ctx): Likewise.
50936
50937         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
50938         with __USE_GNU instead of XOPEN cpp guards.
50939
50940         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
50941         0.
50942
50943         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
50944         with XOPEN cpp guards.
50945
50946 2014-04-30  Julian Brown  <julian@codesourcery.com>
50947
50948         [BZ #16888]
50949         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
50950         handling.
50951
50952 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
50953
50954         [BZ #9894]
50955         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
50956         Change to 2.6.32.
50957         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
50958         * sysdeps/unix/sysv/linux/configure: Regenerated.
50959         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
50960         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
50961         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
50962         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
50963         * README: Update reference to required Linux kernel version.
50964         * manual/install.texi (Linux): Update reference to required Linux
50965         kernel headers version.
50966         * INSTALL: Regenerated.
50967
50968         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
50969         header inclusion.
50970         [POSIX] (limits.h): Likewise.
50971         [POSIX] (math.h): Likewise.
50972         [POSIX] (sys/wait.h): Likewise.
50973         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
50974         function.
50975         [POSIX] (stddef.h): Do not allow header inclusion.
50976
50977 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50978
50979         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
50980
50981 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
50982
50983         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
50984         Return immediately after lll_futex_wake.
50985
50986 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
50987
50988         [BZ #16791]
50989         * nscd/nscd-client.h (datahead_init_common): Initialize entire
50990         structure.
50991         (datahead_init_pos): Call datahead_init_common early.
50992         (datahead_init_neg): Likewise.
50993
50994         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
50995         datahead_init_neg): New functions.
50996         * nscd/aicache.c (addhstaiX): Use them.
50997         * nscd/grpcache.c (cache_addgr): Likewise.
50998         * nscd/hstcache.c (cache_addhst): Likewise.
50999         * nscd/initgrcache.c (addinitgroupsX): Likewise.
51000         * nscd/netgroupcache.c (do_notfound): Likewise.
51001         (addgetnetgrentX): Likewise.
51002         (addinnetgrX): Likewise.
51003         * nscd/pwdcache.c (cache_addpw): Likewise.
51004         * nscd/servicescache.c (cache_addserv): Likewise.
51005
51006 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
51007             Atsushi Onoe  <atsushi@onoe.org>
51008
51009         [BZ #14308]
51010         [BZ #12994]
51011         [BZ #13651]
51012         * resolv/res_query.c (__libc_res_nsearch): Return if at least
51013         one response is valid.
51014         * resolv/res_send.c (send_dg): Check for validity of other
51015         response if the current response is a referral.
51016
51017 2014-04-29  Steve Ellcey  <sellcey@mips.com>
51018
51019         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
51020
51021 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
51022
51023         [BZ #16823]
51024         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
51025         Always divide by positive zero when computing -Inf result.
51026         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
51027         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
51028
51029 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51030
51031         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
51032         FPSCR if value do not change.
51033         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
51034         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
51035         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
51036         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
51037         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
51038         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
51039         function.
51040
51041 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
51042
51043         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
51044         * sysdeps/unix/sysv/linux/hppa: Move directory from
51045         ports/systeps/unix/sysv/linux/hppa.
51046         * README: Update listing for hppa-*-linux-gnu.
51047
51048 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
51049
51050         [BZ #16754]
51051         * manual/stdio.texi (Hook functions): Fix types of stream hook
51052         functions.
51053         [BZ #16854]
51054         * socket/sys/socket.h: Fix typo in comment.
51055
51056 2014-04-28  Wilco  <wdijkstr@arm.com>
51057
51058         * sysdeps/arm/fenv_private.h: New file.
51059         * sysdeps/arm/math_private.h: New file.
51060         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
51061
51062 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
51063
51064         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
51065         with __int128_t.
51066         (La_x86_64_retval): Likewise.
51067
51068 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
51069
51070         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
51071         fpsr if value didn't change.
51072         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
51073         to fpcr if value didn't change.
51074         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
51075         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
51076         fpsr or fpcr if value didn't change.
51077         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
51078         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
51079         fpcr if value didn't change.
51080         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
51081         to fpsr if value didn't change.
51082
51083 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
51084
51085         * nptl/tst-sem3.c: Use test-skeleton.c
51086         (main): Rename to do_test.  Use return instead of
51087         exit.
51088         * nptl/tst-sem4.c: Use test-skeleton.c
51089         (main): Rename to do_test.
51090
51091 2014-04-22  David S. Miller  <davem@davemloft.net>
51092
51093         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
51094         (struct sigaction): New struct member __glibc_reserved0, change
51095         type of sa_flags to int.
51096
51097 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
51098
51099         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
51100         (COUNT_LEADING_ZEROS_0): Define for AArch64.
51101
51102 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
51103
51104         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
51105         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
51106
51107 2014-04-22  Will Newton  <will.newton@linaro.org>
51108             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
51109
51110         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
51111         (__longjmp): Add longjmp and longjmp_target SystemTap
51112         probes.
51113         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
51114         (__sigsetjmp): Add setjmp SystemTap probe.
51115
51116 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
51117
51118         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
51119         match manual order.
51120
51121 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51122
51123         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
51124
51125         * sysdeps/powerpc/fpu/fenv_private.h
51126         (libc_feholdexcept_setroundl_ctx): Define to
51127         libc_feholdexcept_setround_ppc_ctx.
51128         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
51129         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
51130         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
51131         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
51132
51133 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
51134
51135         * sysdeps/aarch64/math-tests.h: New file.
51136
51137 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
51138
51139         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
51140         New.
51141         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51142         Check and set bit_AVX2_Usable.
51143         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
51144         macro.
51145         (bit_AVX2): Likewise.
51146         (index_AVX2_Usable): Likewise.
51147         (CPUID_AVX2): Likewise.
51148         (HAS_AVX2): Likewise.
51149
51150 2014-04-17  Will Newton  <will.newton@linaro.org>
51151
51152         * manual/setjmp.texi (System V contexts): Add note that
51153         calling setcontext on a context created by a call to a
51154         signal handler is undefined.  Update text to note that
51155         setcontext from a signal handler is possible but not
51156         recommended.
51157
51158         [BZ #16629]
51159         * stdlib/tst-setcontext.c: Include signal.h.
51160         (main): Check that the signal stack before and
51161         after swapcontext is the same.
51162
51163         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
51164         Re-implement to restore registers in user code and avoid
51165         rt_sigreturn system call.
51166
51167 2014-04-17  Wilco  <wdijkstr@arm.com>
51168
51169         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
51170         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
51171         * math/test-fenv.c: Skip exception trap tests on targets which only
51172         support non-stop mode.
51173
51174 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
51175             Wilco Dijkstra  <wilco.dijkstra@arm.com>
51176
51177         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
51178         (libc_feholdsetround_aarch64_ctx)
51179         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
51180         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
51181         (libc_feresetround_ctx, libc_feresetroundf_ctx)
51182         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
51183         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
51184         (libc_feresetround_noexl_ctx): Define.
51185
51186 2014-04-16  Richard Henderson  <rth@redhat.com>
51187
51188         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
51189
51190         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
51191         unwind tables.
51192
51193         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
51194         const from the non-libc, non-ldso copy.
51195
51196         * sysdeps/alpha/libm-test-ulps: Regenerate.
51197
51198 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
51199             Wilco Dijkstra  <wilco.dijkstra@arm.com>
51200
51201         * sysdeps/aarch64/fpu/math_private.h: New file.
51202
51203 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
51204
51205         * sysdeps/aarch64/libm-test-ulps: Regenerate.
51206
51207 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
51208
51209         [BZ #16275]
51210         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
51211         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
51212         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
51213         Intel MPX bound registers before _dl_profile_fixup.
51214         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
51215         registers after _dl_profile_fixup.  Save and restore bound
51216         registers bnd0/bnd1 when calling _dl_call_pltexit.
51217         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
51218         (LR_BND_OFFSET): Likewise.
51219         (LRV_BND0_OFFSET): Likewise.
51220         (LRV_BND1_OFFSET): Likewise.
51221
51222 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
51223
51224         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
51225         to...
51226         * sysdeps/mach/hurd/i386/tls.h: ... here.
51227         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
51228         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
51229         fields.
51230
51231 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
51232
51233         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
51234
51235 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
51236
51237         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
51238
51239 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
51240
51241         [BZ #14770]
51242         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
51243         * sysdeps/s390/configure: Regenerate.
51244
51245         [BZ #16824]
51246         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
51247         Set round-to-nearest internally to reduce error accumulation.
51248
51249 2014-04-16  Alan Modra  <amodra@gmail.com>
51250
51251         [BZ #16740]
51252         [BZ #16619]
51253         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
51254         * math/libm-test.inc (frexp_test_data): Add tests.
51255         * NEWS: Update fixed bug list.
51256
51257 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51258
51259         * benchtests/Makefile: Depend on libraries in build directory.
51260         (bench-math): Separate out math tests.
51261         (bench-pthread): Separate out pthread tests.
51262         (bench): Include math and pthread tests.
51263
51264 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
51265
51266         [BZ #16831]
51267         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
51268         _dl_debug_initialize.
51269
51270         * configure.ac: Remove SELinux header check.
51271         * configure: Regenerate.
51272         * nscd/selinux.c (perms): Array of const char* to permission names.
51273         (nscd_request_avc_has_perm): Call security_deny_unknown to find
51274         default policy. Call string_to_security_class and string_to_av_perm to
51275         translate strings. Enforce default policy and call avs_has_perm with
51276         results of translated strings.
51277
51278 2014-04-13  David S. Miller  <davem@davemloft.net>
51279
51280         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51281
51282 2014-04-12  Allan McRae  <allan@archlinux.org>
51283
51284         [BZ #16838]
51285         * manual/string.texi (Collation Functions): Fix qsort argument
51286         order in example.
51287         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
51288
51289 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
51290
51291         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
51292         Make the test a no-op if there are no exceptions defined.
51293
51294 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
51295
51296         * elf/Makefile (tests): make tst-dlopen-aout conditional on
51297         enable-hardcoded-path-in-tests
51298
51299 2014-04-11  Will Newton  <will.newton@linaro.org>
51300
51301         * benchtests/Makefile (extra-objs): Add json-lib.o.
51302         (bench-func): Tidy up JSON output.
51303         * benchtests/bench-skeleton.c: Include json-lib.h.
51304         (main): Use JSON library functions to do output of
51305         benchmark results.
51306         * benchtests/bench-timing-type.c (main): Output the
51307         timing type simply, leaving formatting to the user.
51308         * benchtests/json-lib.c: New file.
51309         * benchtests/json-lib.h: Likewise.
51310
51311 2014-04-11  Torvald Riegel  <triegel@redhat.com>
51312
51313         [BZ #15215]
51314         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
51315         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
51316         memory barriers.  Add comments.
51317         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
51318         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
51319         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
51320         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
51321         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
51322         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
51323
51324 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
51325
51326         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
51327         * sysdeps/s390/s390-64/configure.ac: ... this ...
51328         * sysdeps/s390/configure.ac: ... to here.
51329         * sysdeps/s390/s390-32/configure: Delete file.
51330         * sysdeps/s390/s390-64/configure: Delete file.
51331         * sysdeps/s390/configure: Regenerate.
51332
51333 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
51334
51335         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
51336
51337 2014-04-11  Will Newton  <will.newton@linaro.org>
51338
51339         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
51340         to zero if it is not defined elsewhere.  (mtrim): Test
51341         the value of MALLOC_DEBUG with #if rather than #ifdef.
51342
51343 2014-04-10 Torvald Riegel  <triegel@redhat.com>
51344
51345         * benchtests/pthread_once-inputs: New file.
51346         * benchtests/pthread_once-source.c: New file.
51347         * benchtests/README: Update documentation.
51348
51349 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
51350             H.J. Lu  <hongjiu.lu@intel.com>
51351
51352         [BZ #16275]
51353         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
51354         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
51355         * sysdeps/x86_64/configure: Regenerated.
51356         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
51357         macro.
51358         (REGISTER_SAVE_RAX): Likewise.
51359         (REGISTER_SAVE_RCX): Likewise.
51360         (REGISTER_SAVE_RDX): Likewise.
51361         (REGISTER_SAVE_RSI): Likewise.
51362         (REGISTER_SAVE_RDI): Likewise.
51363         (REGISTER_SAVE_R8): Likewise.
51364         (REGISTER_SAVE_R9): Likewise.
51365         (REGISTER_SAVE_BND0): Likewise.
51366         (REGISTER_SAVE_BND1): Likewise.
51367         (REGISTER_SAVE_BND2): Likewise.
51368         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
51369         bound registers when calling _dl_fixup.
51370
51371 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51372
51373         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
51374         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
51375         of its definition.
51376         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
51377         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
51378         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
51379         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
51380         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
51381         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
51382         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
51383
51384 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
51385
51386         [BZ #15514]
51387         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
51388         pathconf(_PC_NAME_MAX).
51389
51390 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51391
51392         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
51393         Remove macro usage.
51394         (__PTHREAD_SPINS): Move definition to ...
51395         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
51396         (__PTHREAD_SPINS): ... here.
51397         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
51398         (__PTHREAD_SPIN): Likewise.
51399         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
51400         (__PTHREAD_SPIN): Likewise.
51401         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
51402         (__PTHREAD_SPIN): Likewise.
51403         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
51404         (__PTHREAD_SPIN): Likewise.
51405         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
51406         (__PTHREAD_SPIN): Likewise.
51407         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
51408         (__PTHREAD_SPIN): Likewise.
51409         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
51410         (__PTHREAD_SPIN): Likewise.
51411         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
51412         (__PTHREAD_SPIN): Likewise.
51413         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
51414         (__PTHREAD_SPIN): Likewise.
51415         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
51416         (__PTHREAD_SPIN): Likewise.
51417         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
51418         (__PTHREAD_SPIN): Likewise.
51419         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
51420         (__PTHREAD_SPIN): Likewise.
51421
51422         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
51423         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
51424         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
51425         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
51426         imply folder.
51427         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
51428         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
51429         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
51430         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
51431         correct imply path.
51432         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
51433         strlen symbol for non multi-arch builds.
51434         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
51435         missing hidden_def and weak_alias.
51436
51437 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
51438
51439         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
51440
51441 2014-04-07  Will Newton  <will.newton@linaro.org>
51442
51443         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
51444         and contents.  [!_LIBC] Remove #ifndef and contents.
51445         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
51446         * string/memccpy.c (__memccpy): Use ANSI prototype.
51447         * string/memfrob.c (memfrob): Likewise.
51448         * string/strcoll.c (STRCOLL): Likewise.
51449         * string/strlen.c (strlen): Likewise.
51450         * string/strtok.c (STRTOK): Likewise.
51451         * string/strcat.c: Remove unused #include of memcopy.h.
51452         (strcat): Use ANSI prototype.
51453         * string/strchr.c: Remove unused #include of memcopy.h.
51454         (strchr): Use ANSI prototype.
51455         * string/strcmp.c: Remove unused #include of memcopy.h.
51456         (strcmp): Use ANSI prototype.
51457         * string/strcpy.c: Remove unused #include of memcopy.h.
51458         (strcpy): Use ANSI prototype.
51459
51460 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51461
51462         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
51463         * config.make.in (config-extra-cppflags): Set it from
51464         libc_extra_cppflags.
51465         * configure.ac (libc_extra_cflags): Make it accumulate over
51466         configure fragments.
51467         (libc_extra_cppflags): New flag.
51468         * configure. Regenerate.
51469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
51470         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
51471         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
51472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
51473
51474         [BZ #16815]
51475         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
51476         result for FE_DOWNWARD rounding mode.
51477         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
51478         Likewise.
51479         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51480
51481 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
51482
51483         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
51484         in function argument name.
51485
51486 2014-04-03  David Svoboda  <svoboda@cert.org>
51487
51488         [BZ #5666]
51489         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
51490         explicitly.
51491
51492 2014-04-03  Roland McGrath  <roland@hack.frob.com>
51493
51494         * elf/dl-unmap-segments.h: New file.
51495         * sysdeps/generic/ldsodefs.h
51496         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
51497         * elf/dl-close.c: Include <dl-unmap-segments.h>.
51498         * elf/dl-fptr.c: Likewise.
51499         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
51500         * sysdeps/aarch64/tlsdesc.c: Likewise.
51501         * sysdeps/arm/tlsdesc.c: Likewise.
51502         * sysdeps/i386/tlsdesc.c: Likewise.
51503         * sysdeps/tile/dl-runtime.c: Likewise.
51504         * sysdeps/x86_64/tlsdesc.c: Likewise.
51505         * elf/dl-load.h: New file.
51506         * elf/dl-load.c: Include it.
51507         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
51508         Macros moved to dl-load.h.
51509         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
51510         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
51511         Use _dl_unmap_segments in place of __munmap.
51512         Break out segment-mapping loop into ...
51513         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
51514
51515 2014-04-03  Will Newton  <will.newton@linaro.org>
51516
51517         * elf/dl-lookup.c (do_lookup_x): Remove comment
51518         referring to nested function and move variable
51519         declarations down to before first use.
51520
51521 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
51522
51523         [BZ #16799]
51524         [BZ #16800]
51525         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
51526         with 0 numerator.
51527         * math/s_catanf.c (__catanf): Likewise.
51528         * math/s_catanh.c (__catanh): Likewise.
51529         * math/s_catanhf.c (__catanhf): Likewise.
51530         * math/s_catanhl.c (__catanhl): Likewise.
51531         * math/s_catanl.c (__catanl): Likewise.
51532         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
51533         by positive zero when computing -Inf result.
51534         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
51535         (catanh_test): Likewise.
51536         * sysdeps/i386/fpu/libm-test-ulps: Update.
51537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51538
51539         [BZ #16789]
51540         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
51541         instead of using underflowing value in computing result.
51542         * math/s_clog10.c (__clog10): Likewise.
51543         * math/s_clog10f.c (__clog10f): Likewise.
51544         * math/s_clog10l.c (__clog10l): Likewise.
51545         * math/s_clogf.c (__clogf): Likewise.
51546         * math/s_clogl.c (__clogl): Likewise.
51547         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
51548         (clog10_test): Likewise.
51549         * sysdeps/i386/fpu/libm-test-ulps: Update.
51550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51551
51552 2014-04-02  Alan Modra  <amodra@gmail.com>
51553
51554         [BZ #16739]
51555         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
51556         output when value is near a power of two.  Use int64_t for lx and
51557         remove casts.  Use decimal rather than hex exponent constants.
51558         Don't use long double multiplication when double will suffice.
51559         * math/libm-test.inc (nextafter_test_data): Add tests.
51560         * NEWS: Add 16739 and 16786 to bug list.
51561
51562         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
51563
51564         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
51565
51566 2014-04-01  Will Newton  <will.newton@linaro.org>
51567
51568         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
51569         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
51570
51571 2014-04-01  Florian Weimer  <fweimer@redhat.com>
51572
51573         [BZ #13347]
51574         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
51575         * nptl/tst-setuid2.c: New file.
51576         * nptl/Makefile (xtests): Add tst-setuid2.
51577
51578 2014-04-01  Alan Modra  <amodra@gmail.com>
51579
51580         [BZ #16786]
51581         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
51582
51583 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
51584
51585         [BZ #6803]
51586         [BZ #6804]
51587         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
51588         set errno as appropriate.
51589         * math/w_scalbf.c (__scalbf): Likewise.
51590         * math/w_scalbl.c (__scalbl): Likewise.
51591         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
51592         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
51593         * math/libm-test.inc (scalb_test_data): Add errno expectations.
51594         Add more NaN tests.
51595
51596         [BZ #16349]
51597         * math/w_atan2.c: Include <errno.h>.
51598         (__atan2): Set errno for result underflowing to zero.
51599         * math/w_atan2f.c: Include <errno.h>.
51600         (__atan2f): Set errno for result underflowing to zero.
51601         * math/w_atan2l.c: Include <errno.h>.
51602         (__atan2l): Set errno for result underflowing to zero.
51603         * math/auto-libm-test-in: Don't allow missing errno for some atan2
51604         tests.
51605         * math/auto-libm-test-out: Regenerated.
51606
51607 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51608
51609         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
51610         Encode instruction correctly in little endian.
51611         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
51612         Likewise.
51613         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
51614         Likewise.
51615         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
51616         Likewise.
51617         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
51618         Likewise.
51619
51620 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
51621
51622         [BZ #9894]
51623         * sysdeps/unix/sysv/linux/kernel-features.h
51624         [__sparc__ && !__arch64__ && !__sparc_v9__]
51625         (__ASSUME_SET_ROBUST_LIST): Do not define.
51626         [__sparc__ && !__arch64__ && !__sparc_v9__]
51627         (__ASSUME_FUTEX_LOCK_PI): Likewise.
51628         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
51629         Likewise.
51630         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51631         (__ASSUME_FUTEX_LOCK_PI): Undefine.
51632         (__ASSUME_REQUEUE_PI): Likewise.
51633         (__ASSUME_SET_ROBUST_LIST): Likewise.
51634         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
51635         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
51636         Undefine.
51637         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51638         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
51639         Likewise.
51640         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
51641         Likewise.
51642         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
51643         Likewise.
51644         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51645         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
51646         Undefine.
51647         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
51648         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
51649         Likewise.
51650
51651         [BZ #16648]
51652         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51653         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
51654         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
51655
51656 2014-03-31  Will Newton  <will.newton@linaro.org>
51657
51658         * benchtests/Makefile (bench): Add ffs and ffsll to list
51659         of tests.
51660         * benchtests/ffs-inputs: New file.
51661         * benchtests/ffsll-inputs: Likewise.
51662
51663 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
51664
51665         [BZ #16770]
51666         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
51667         too large before casting to int.
51668         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
51669         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
51670         * math/libm-test.inc (scalb_test_data): Add more tests.
51671
51672 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
51673
51674         * benchtests/Makefile (DETAILED_OPT): New make option.
51675         (bench-func): Run benchmark program with -d if DETAILED_OPT is
51676         set.
51677         * benchtests/bench-skeleton.c: Include stdbool.h.
51678         (main): Store and print timings per input.
51679         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
51680         member to each argument value.
51681         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
51682         (_print_arg_data): Initialize per-input timing to 0.
51683
51684         * benchtests/Makefile (timing-type): New binary.
51685         (bench-clean): Also remove bench-timing-type.
51686         (bench): New target for timing-type.
51687         (bench-func): Print output in JSON format.
51688         * benchtests/bench-skeleton.c (main): Print output in JSON
51689         format.
51690         * benchtests/bench-timing-type.c: New file.
51691         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
51692         (TIMING_PRINT_STATS): Remove.
51693         * benchtests/scripts/bench.py (_print_arg_data): Store variant
51694         name separately.
51695
51696         * benchtests/bench-modf.c: Remove.
51697         * benchtests/modf-inputs: New inputs file.
51698
51699 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
51700
51701         [BZ #16362]
51702         * math/s_clog10.c (M_PI_LOG10E): New macro.
51703         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
51704         imaginary parts are 0.
51705         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
51706         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
51707         imaginary parts are 0.
51708         * math/s_clog10l.c (M_PI_LOG10El): New macro.
51709         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
51710         imaginary parts are 0.
51711         * math/libm-test.inc (clog10_test_data): Update expected results
51712         for when real and imaginary parts are 0.
51713
51714 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
51715
51716         * elf/dl-load.c: Finish conversion of __builtin_expect into
51717         __glibc_{un}likely.
51718
51719 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
51720
51721         [BZ #16348]
51722         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
51723         1+x for argument with exponent below -67.
51724         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
51725         Likewise.
51726         * math/auto-libm-test-in: Add more tests of exp.
51727         * math/auto-libm-test-out: Regenerated.
51728
51729 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51730
51731         [BZ #16759]
51732         * inet/getnetgrent_r.c (get_nonempty_val): New function.
51733         (nscd_getnetgrent): Use it.
51734
51735         [BZ #16760]
51736         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
51737         of stpcpy.
51738
51739 2014-03-27  Andi Kleen  <ak@linux.intel.com>
51740
51741         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
51742         (lll_robust_lock, lll_cond_lock, lll_timedlock)
51743         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
51744         (lll_robust_unlock): Remove out of line section. Use cfi
51745         intrinsics.
51746         (LLL_STUB_UNWIND_INFO*): Remove.
51747         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
51748         (lll_robust_lock, lll_cond_lock, lll_timedlock)
51749         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
51750         (lll_robust_unlock): Remove out of line section. Use cfi
51751         intrinsics.
51752         (LLL_STUB_UNWIND_INFO*): Remove.
51753
51754 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51755
51756         [BZ #16758]
51757         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
51758         blank values.
51759
51760 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
51761
51762         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
51763
51764 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
51765
51766         [BZ #16198]
51767         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
51768         fnstenv.
51769         * math/test-fenv-preserve.c: New file.
51770         * math/Makefile (tests): Add test-fenv-preserve.
51771
51772 2014-03-26  Will Newton <will.newton@linaro.org>
51773
51774         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
51775
51776 2014-03-25  Roland McGrath  <roland@hack.frob.com>
51777
51778         * scripts/versionlist.awk: Partition the version sets and emit all
51779         GLIBC_* (sorted) before all others (sorted).
51780
51781 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
51782
51783         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
51784         GLIBC_2.2.5 version.
51785
51786 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51787
51788         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
51789         calls.
51790
51791         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
51792         previous change.
51793
51794         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51795
51796 2014-03-25  Andreas Schwab  <schwab@suse.de>
51797
51798         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
51799         label to be used after in6ailist is initialized.
51800
51801 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51802
51803         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
51804         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
51805
51806 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
51807
51808         [BZ #16357]
51809         [BZ #16599]
51810         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
51811         min_plus_half.
51812         (fp_formats): Update initializers.
51813         (init_fp_formats): Initialize new field.
51814         (output_for_one_input_case): Allow underflow for results up to
51815         min_plus_half.
51816         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
51817         * math/auto-libm-test-in: Don't mark some underflows from asin and
51818         atanh as spurious.
51819         * math/auto-libm-test-out: Regenerated.
51820         * sysdeps/i386/fpu/libm-test-ulps: Update.
51821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51822
51823 2014-03-25  Andreas Schwab  <schwab@suse.de>
51824
51825         * libio/Makefile (tst-ftell-partial-wide-ENV)
51826         (tst-ftell-active-handler-ENV): Define.
51827
51828 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
51829
51830         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
51831
51832 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
51833
51834         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
51835
51836 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
51837
51838         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
51839         * sysdeps/x86_64/fpu/multiarch/e_exp.c
51840         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
51841
51842 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
51843
51844         [BZ #16634]
51845         * elf/dl-load.c (open_verify): Add mode parameter.
51846         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
51847         (open_path): Change from boolean 'secure' to complete flag 'mode'
51848         (_dl_map_object): Adjust.
51849         * elf/Makefile (tests): Add tst-dlopen-aout.
51850         * elf/tst-dlopen-aout.c: New test.
51851
51852 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
51853
51854         [BZ #16714]
51855         * sysdeps/unix/sysv/linux/s390/bits/stat.h
51856         (struct stat): Rename member pad0 to __glibc_reserved0.
51857
51858         [BZ #16712]
51859         * sysdeps/s390/s390-32/bits/wordsize.h
51860         (__WORDSIZE32_SIZE_ULONG): New define.
51861         * sysdeps/s390/s390-64/bits/wordsize.h
51862         (__WORDSIZE32_SIZE_ULONG): Likewise.
51863         * sysdeps/generic/stdint.h (SIZE_MAX):
51864         Define as UL if __WORDSIZE32_SIZE_ULONG.
51865
51866         [BZ #16713]
51867         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
51868         (__glibc_reserved0): New variable.
51869         (sa_flags): Change type to int.
51870
51871         * posix/Makefile (before-compile): Use += before-compile instead
51872         of a :=.
51873
51874         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
51875         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
51876
51877 2014-03-20  Andreas Schwab  <schwab@suse.de>
51878
51879         [BZ #16743]
51880         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
51881         non-matching result from nscd.
51882
51883 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51884
51885         * scripts/bench.py: Moved to ...
51886         * benchtests/scripts/bench.py: ... here.
51887         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
51888
51889 2014-03-24  Andreas Schwab  <schwab@suse.de>
51890
51891         [BZ #16002]
51892         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
51893         alloca_account and account alloca use for struct in6ailist.
51894
51895 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
51896
51897         [BZ #16284]
51898         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
51899         rounding mode to recompute results that overflow to infinity or
51900         underflow to zero.
51901         * math/auto-libm-test-in: Don't mark tests as expected to fail for
51902         bug 16284.
51903         * math/auto-libm-test-out: Regenerated.
51904         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
51905         (ccosh_test): Likewise.
51906         (csin_test_data): Use plus_oflow.
51907         (csin_test): Use ALL_RM_TEST.
51908         (csinh_test_data): Use plus_oflow.
51909         (csinh_test): Use ALL_RM_TEST.
51910         * sysdeps/i386/fpu/libm-test-ulps: Update.
51911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51912
51913 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
51914
51915         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
51916         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
51917         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
51918
51919         [BZ #16731]
51920         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
51921         when x - 1 is zero.
51922         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
51923         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
51924         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
51925         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
51926         argument is 1.
51927         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
51928         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
51929         zero.
51930         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
51931         * sysdeps/i386/fpu/libm-test-ulps: Update.
51932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51933
51934 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51935
51936         * scripts/bench.pl: Remove file.
51937         * scripts/bench.py: New benchmark script.
51938         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
51939         * benchtests/README: Mention python dependency.
51940         * scripts/pylintrc: New file.
51941         * scripts/pylint: New file.
51942
51943         * bits/mathdef.h: Use #ifdef instead of #if.
51944         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
51945         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
51946         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
51947         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
51948         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
51949         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
51950
51951 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51952             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
51953
51954         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
51955         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
51956         and strpbrk-ppc64 objects.
51957         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
51958         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
51959         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
51960         multiarch strpbrk for POWER7.
51961         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
51962         multiarch strpbrk for PPC64.
51963         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
51964         ifunc selector.
51965         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
51966         strpbrk for POWER7.
51967
51968 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
51969
51970         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
51971         (atan_test): Likewise.
51972         (atanh_test_data): Use NO_TEST_INLINE for two tests.
51973         (atanh_test): Use ALL_RM_TEST.
51974         (atan2_test_data): Likewise.
51975         (cabs_test): Likewise.
51976         (cacosh_test): Likewise.
51977         (carg_test): Likewise.
51978         (casin_test): Likewise.
51979         (casinh_test): Likewise.
51980         (cbrt_test): Likewise.
51981         (csqrt_test): Likewise.
51982         (erf_test): Likewise.
51983         (erfc_test): Likewise.
51984         (pow10_test): Likewise.
51985         (exp2_test): Likewise.
51986         (hypot_test): Likewise.
51987         (j0_test): Likewise.
51988         (j1_test): Likewise.
51989         (lgamma_test): Likewise.
51990         (gamma_test): Likewise.
51991         (sincos_test): Likewise.
51992         (tanh_test): Likewise.
51993         (y0_test): Likewise.
51994         (y1_test): Likewise.
51995         * sysdeps/i386/fpu/libm-test-ulps: Update.
51996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51997
51998 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51999
52000         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
52001         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
52002         and strcspn-ppc64 objects.
52003         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52004         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
52005         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
52006         multiarch strcspn for POWER7.
52007         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
52008         multiarch strcspn for PPC64.
52009         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
52010         ifunc selector.
52011         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
52012         strcspn for POWER7.
52013
52014 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
52015
52016         * math/gen-libm-test.pl (generate_testfile): Expect only function
52017         name as argument to AUTO_TESTS_* and pass results for all rounding
52018         modes to parse_args.
52019         (parse_auto_input): Separate inputs of automatic tests from
52020         outputs before storing in %auto_tests.
52021         * math/libm-test.inc (acos_test_data): Update call to
52022         AUTO_TESTS_f_f.
52023         (acos_test): Use ALL_RM_TEST.
52024         (acos_tonearest_test_data): Remove.
52025         (acos_test_tonearest): Likewise.
52026         (acos_towardzero_test_data): Likewise.
52027         (acos_test_towardzero): Likewise.
52028         (acos_downward_test_data): Likewise.
52029         (acos_test_downward): Likewise.
52030         (acos_upward_test_data): Likewise.
52031         (acos_test_upward): Likewise.
52032         (acosh_test_data): Update call to AUTO_TESTS_f_f.
52033         (asin_test_data): Likewise.
52034         (asin_test): Use ALL_RM_TEST.
52035         (asin_tonearest_test_data): Remove.
52036         (asin_test_tonearest): Likewise.
52037         (asin_towardzero_test_data): Likewise.
52038         (asin_test_towardzero): Likewise.
52039         (asin_downward_test_data): Likewise.
52040         (asin_test_downward): Likewise.
52041         (asin_upward_test_data): Likewise.
52042         (asin_test_upward): Likewise.
52043         (asinh_test_data): Update call to AUTO_TESTS_f_f.
52044         (atan_test_data): Likewise.
52045         (atanh_test_data): Likewise.
52046         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
52047         (cabs_test_data): Update call to AUTO_TESTS_c_f.
52048         (carg_test_data): Likewise.
52049         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
52050         (ccos_test_data): Update call to AUTO_TESTS_c_c.
52051         (ccosh_test_data): Likewise.
52052         (cexp_test_data): Likewise.
52053         (clog_test_data): Likewise.
52054         (clog10_test_data): Likewise.
52055         (cos_test_data): Update call to AUTO_TESTS_f_f.
52056         (cos_test): Use ALL_RM_TEST.
52057         (cos_tonearest_test_data): Remove.
52058         (cos_test_tonearest): Likewise.
52059         (cos_towardzero_test_data): Likewise.
52060         (cos_test_towardzero): Likewise.
52061         (cos_downward_test_data): Likewise.
52062         (cos_test_downward): Likewise.
52063         (cos_upward_test_data): Likewise.
52064         (cos_test_upward): Likewise.
52065         (cosh_test_data): Update call to AUTO_TESTS_f_f.
52066         (cosh_test): Use ALL_RM_TEST.
52067         (cosh_tonearest_test_data): Remove.
52068         (cosh_test_tonearest): Likewise.
52069         (cosh_towardzero_test_data): Likewise.
52070         (cosh_test_towardzero): Likewise.
52071         (cosh_downward_test_data): Likewise.
52072         (cosh_test_downward): Likewise.
52073         (cosh_upward_test_data): Likewise.
52074         (cosh_test_upward): Likewise.
52075         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
52076         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
52077         (ctan_test_data): Likewise.
52078         (ctan_test): Use ALL_RM_TEST.
52079         (ctan_tonearest_test_data): Remove.
52080         (ctan_test_tonearest): Likewise.
52081         (ctan_towardzero_test_data): Likewise.
52082         (ctan_test_towardzero): Likewise.
52083         (ctan_downward_test_data): Likewise.
52084         (ctan_test_downward): Likewise.
52085         (ctan_upward_test_data): Likewise.
52086         (ctan_test_upward): Likewise.
52087         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
52088         (ctanh_test): Use ALL_RM_TEST.
52089         (ctanh_tonearest_test_data): Remove.
52090         (ctanh_test_tonearest): Likewise.
52091         (ctanh_towardzero_test_data): Likewise.
52092         (ctanh_test_towardzero): Likewise.
52093         (ctanh_downward_test_data): Likewise.
52094         (ctanh_test_downward): Likewise.
52095         (ctanh_upward_test_data): Likewise.
52096         (ctanh_test_upward): Likewise.
52097         (erf_test_data): Update call to AUTO_TESTS_f_f.
52098         (erfc_test_data): Likewise.
52099         (exp_test_data): Likewise.
52100         (exp_test): Use ALL_RM_TEST.
52101         (exp_tonearest_test_data): Remove.
52102         (exp_test_tonearest): Likewise.
52103         (exp_towardzero_test_data): Likewise.
52104         (exp_test_towardzero): Likewise.
52105         (exp_downward_test_data): Likewise.
52106         (exp_test_downward): Likewise.
52107         (exp_upward_test_data): Likewise.
52108         (exp_test_upward): Likewise.
52109         (exp10_test_data): Update call to AUTO_TESTS_f_f.
52110         (exp10_test): Use ALL_RM_TEST.
52111         (exp10_tonearest_test_data): Remove.
52112         (exp10_test_tonearest): Likewise.
52113         (exp10_towardzero_test_data): Likewise.
52114         (exp10_test_towardzero): Likewise.
52115         (exp10_downward_test_data): Likewise.
52116         (exp10_test_downward): Likewise.
52117         (exp10_upward_test_data): Likewise.
52118         (exp10_test_upward): Likewise.
52119         (exp2_test_data): Update call to AUTO_TESTS_f_f.
52120         (expm1_test_data): Likewise.
52121         (expm1_test): Use ALL_RM_TEST.
52122         (expm1_tonearest_test_data): Remove.
52123         (expm1_test_tonearest): Likewise.
52124         (expm1_towardzero_test_data): Likewise.
52125         (expm1_test_towardzero): Likewise.
52126         (expm1_downward_test_data): Likewise.
52127         (expm1_test_downward): Likewise.
52128         (expm1_upward_test_data): Likewise.
52129         (expm1_test_upward): Likewise.
52130         (fma_test_data): Update call to AUTO_TESTS_fff_f.
52131         (fma_test): Use ALL_RM_TEST.
52132         (fma_towardzero_test_data): Remove.
52133         (fma_test_towardzero): Likewise.
52134         (fma_downward_test_data): Likewise.
52135         (fma_test_downward): Likewise.
52136         (fma_upward_test_data): Likewise.
52137         (fma_test_upward): Likewise.
52138         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
52139         (j0_test_data): Update call to AUTO_TESTS_f_f.
52140         (j1_test_data): Likewise.
52141         (jn_test_data): Update call to AUTO_TESTS_if_f.
52142         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
52143         (log_test_data): Update call to AUTO_TESTS_f_f.
52144         (log10_test_data): Likewise.
52145         (log1p_test_data): Likewise.
52146         (log2_test_data): Likewise.
52147         (pow_test_data): Update call to AUTO_TESTS_ff_f.
52148         (pow_tonearest_test_data): Likewise.
52149         (sin_test_data): Update call to AUTO_TESTS_f_f.
52150         (sin_test): Use ALL_RM_TEST.
52151         (sin_tonearest_test_data): Remove.
52152         (sin_test_tonearest): Likewise.
52153         (sin_towardzero_test_data): Likewise.
52154         (sin_test_towardzero): Likewise.
52155         (sin_downward_test_data): Likewise.
52156         (sin_test_downward): Likewise.
52157         (sin_upward_test_data): Likewise.
52158         (sin_test_upward): Likewise.
52159         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
52160         (sinh_test_data): Update call to AUTO_TESTS_f_f.
52161         (sinh_test): Use ALL_RM_TEST.
52162         (sinh_tonearest_test_data): Remove.
52163         (sinh_test_tonearest): Likewise.
52164         (sinh_towardzero_test_data): Likewise.
52165         (sinh_test_towardzero): Likewise.
52166         (sinh_downward_test_data): Likewise.
52167         (sinh_test_downward): Likewise.
52168         (sinh_upward_test_data): Likewise.
52169         (sinh_test_upward): Likewise.
52170         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
52171         (sqrt_test): Use ALL_RM_TEST.
52172         (sqrt_tonearest_test_data): Remove.
52173         (sqrt_test_tonearest): Likewise.
52174         (sqrt_towardzero_test_data): Likewise.
52175         (sqrt_test_towardzero): Likewise.
52176         (sqrt_downward_test_data): Likewise.
52177         (sqrt_test_downward): Likewise.
52178         (sqrt_upward_test_data): Likewise.
52179         (sqrt_test_upward): Likewise.
52180         (tan_test_data): Update call to AUTO_TESTS_f_f.
52181         (tan_test): Use ALL_RM_TEST.
52182         (tan_tonearest_test_data): Remove.
52183         (tan_test_tonearest): Likewise.
52184         (tan_towardzero_test_data): Likewise.
52185         (tan_test_towardzero): Likewise.
52186         (tan_downward_test_data): Likewise.
52187         (tan_test_downward): Likewise.
52188         (tan_upward_test_data): Likewise.
52189         (tan_test_upward): Likewise.
52190         (tanh_test_data): Update call to AUTO_TESTS_f_f.
52191         (tgamma_test_data): Likewise.
52192         (y0_test_data): Likewise.
52193         (y1_test_data): Likewise.
52194         (yn_test_data): Update call to AUTO_TESTS_if_f.
52195         (main): Do not call removed functions.
52196
52197 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
52198
52199         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
52200         (ldexp_test_data): Remove.
52201         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
52202         scalbn_test_data.
52203         (scalb_test): Use ALL_RM_TEST.
52204
52205 2014-03-19  Andreas Schwab  <schwab@suse.de>
52206
52207         * nscd/nscd.service: Also invalidate netgroup cache on reload.
52208
52209 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
52210
52211         [BZ #16649]
52212         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
52213         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
52214         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
52215         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
52216         (__ASSUME_PREADV): Undefine.
52217         (__ASSUME_PWRITEV): Likewise.
52218
52219 2014-03-18  Roland McGrath  <roland@hack.frob.com>
52220
52221         * bits/mman-linux.h: Add comment about non-Linux use.
52222         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
52223         bits/mman-linux.h resting place.
52224
52225         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
52226         * bits/mman-linux.h: ... here.
52227
52228 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52229
52230         * conform/conformtest.pl: Add standard definition when calling C
52231         preprocessor on data files.
52232         (checknamespace): Remove unused variable.
52233
52234 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
52235
52236         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
52237         minus_oflow, plus_uflow and minus_uflow in expected results.
52238         * math/libm-test.inc (scalbn_test_data): Add more tests of
52239         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
52240         minus_uflow.
52241         (scalbn_test): Use ALL_RM_TEST.
52242         (scalbln_test_data): Add more tests of negative arguments.  Use
52243         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
52244         (scalbln_test): Use ALL_RM_TEST.
52245
52246 2014-03-18  Roland McGrath  <roland@hack.frob.com>
52247
52248         * scripts/abilist.awk: Ignore symbols marked with .hidden.
52249
52250 2014-03-18  Will Newton  <will.newton@linaro.org>
52251
52252         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
52253         inaccurate comment.
52254
52255 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
52256
52257         * Makerules [!subdir] (check-abi): Exit with error status if a
52258         test failed.
52259
52260 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
52261
52262         * math/libm-test.inc (nearbyint_test_data): Include all tests used
52263         for rint.  Include results for all rounding modes.
52264         (nearbyint_test): Use ALL_RM_TEST.
52265         (rint_test_data): Include all tests used for nearbyint.
52266
52267 2014-03-17  Will Newton  <will.newton@linaro.org>
52268
52269         * nptl/sysdeps/pthread/pthread.h: Revert previous
52270         change.
52271
52272         * sysdeps/generic/ldsodefs.h: Revert previous
52273         change.
52274
52275         * libio/genops.c: Revert previous change.
52276         * libio/libioP.h: Likewise.
52277         * stdio-common/vfprintf.c: Likewise.
52278
52279         * sysdeps/generic/math_private.h: Revert previous
52280         change.
52281
52282         * sysdeps/generic/math_private.h: Check whether
52283         HAVE_RM_CTX is defined with #ifdef rather
52284         than #if.
52285
52286         * argp/argp-fmtstream.h: Check whether
52287         __STRICT_ANSI__ is defined with #ifdef rather
52288         than #if.
52289         * argp/argp.h: Likewise.
52290
52291         * libio/genops.c: Check whether
52292         _IO_JUMPS_OFFSET is defined with #ifdef rather
52293         than #if.
52294         * libio/libioP.h: Likewise.
52295         * stdio-common/vfprintf.c: Likewise.
52296
52297         * sysdeps/generic/ldsodefs.h: Check whether
52298         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
52299         than #if.
52300
52301         * nptl/sysdeps/pthread/pthread.h: Check
52302         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
52303         its value.
52304
52305 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52306
52307         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
52308         setting O_APPEND.
52309         * libio/tst-ftell-active-handler.c (do_append_test): Add a
52310         test case.
52311
52312         [BZ #16680]
52313         * libio/fileops.c (_IO_file_open): Seek to end of file but
52314         don't cache the offset.
52315         (get_file_offset): Remove function.
52316         (do_ftell): Use cached offset when available.
52317         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
52318         don't cache the offset.
52319         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
52320         case.
52321         (do_one_test): Call it.
52322         (do_ftell_test): Fix up expected old offset for a+ mode.
52323         * libio/wfileops.c (do_ftell_wide): Used cached offset when
52324         available.
52325
52326         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
52327         up test status with function return status.
52328         (do_write_test): Likewise.
52329         (do_append_test): Likewise.
52330
52331         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
52332         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
52333         Remove.
52334
52335 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
52336
52337         * math/gen-libm-test.pl (parse_args): Handle results specified for
52338         each rounding mode separately.
52339         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
52340         tests and results from lrint_tonearest_test_data,
52341         lrint_towardzero_test_data, lrint_downward_test_data and
52342         lrint_upward_test_data.
52343         (lrint_test): Use ALL_RM_TEST.
52344         (lrint_tonearest_test_data): Remove.
52345         (lrint_test_tonearest): Likewise.
52346         (lrint_towardzero_test_data): Likewise.
52347         (lrint_test_towardzero): Likewise.
52348         (lrint_downward_test_data): Likewise.
52349         (lrint_test_downward): Likewise.
52350         (lrint_upward_test_data): Likewise.
52351         (lrint_test_upward): Likewise.
52352         (llrint_test_data): Merge in per-rounding-mode tests and results
52353         from llrint_tonearest_test_data, llrint_towardzero_test_data,
52354         llrint_downward_test_data and llrint_upward_test_data.
52355         (llrint_test): Use ALL_RM_TEST.
52356         (llrint_tonearest_test_data): Remove.
52357         (llrint_test_tonearest): Likewise.
52358         (llrint_towardzero_test_data): Likewise.
52359         (llrint_test_towardzero): Likewise.
52360         (llrint_downward_test_data): Likewise.
52361         (llrint_test_downward): Likewise.
52362         (llrint_upward_test_data): Likewise.
52363         (llrint_test_upward): Likewise.
52364         (rint_test_data): Merge in per-rounding-mode tests and results
52365         from rint_tonearest_test_data, rint_towardzero_test_data,
52366         rint_downward_test_data and rint_upward_test_data.  Add
52367         per-rounding-mode results for tests not in those arrays.
52368         (rint_test): Use ALL_RM_TEST.
52369         (rint_tonearest_test_data): Remove.
52370         (rint_test_tonearest): Likewise.
52371         (rint_towardzero_test_data): Likewise.
52372         (rint_test_towardzero): Likewise.
52373         (rint_downward_test_data): Likewise.
52374         (rint_test_downward): Likewise.
52375         (rint_upward_test_data): Likewise.
52376         (rint_test_upward): Likewise.
52377         (main): Don't call removed functions.
52378
52379 2014-03-14  Roland McGrath  <roland@hack.frob.com>
52380
52381         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
52382         "Compiled on ..." crapola.  It is anti-useful.
52383
52384 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
52385
52386         * scripts/evaluate-test.sh: Handle fourth argument to determine
52387         whether test run should stop on failure.
52388         * Makeconfig (stop-on-test-failure): New variable.
52389         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
52390         $(stop-on-test-failure).
52391         * Makefile (tests): Give a summary of results from testing and
52392         exit with failure status if they include an ERROR or FAIL.
52393         (xtests): Likewise.
52394         * manual/install.texi (Configuring and compiling): Mention
52395         stop-on-test-failure=y.
52396         * INSTALL: Regenerated.
52397
52398 2014-03-14  Roland McGrath  <roland@hack.frob.com>
52399
52400         * scripts/versionlist.awk: New file.
52401         * Makerules [$(build-shared) = yes]
52402         (postclean-generated): Add Versions.def, not Versions.def.v and
52403         Versions.def.v.i.
52404         ($(common-objpfx)Versions.def.v.i): Target removed.
52405         ($(common-objpfx)Versions.def): New target.
52406         ($(common-objpfx)Versions.all): Depend on that rather that
52407         $(common-objpfx)Versions.def.v.
52408         * Versions.def: File removed.
52409
52410         * Makeconfig (+gccwarn): Add -Wundef.
52411         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
52412         a dl-sysdep.h breaking its contract.
52413         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
52414         * include/stackinfo.h: New file.
52415         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
52416         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
52417         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
52418         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
52419         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
52420         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
52421         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52422         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52423         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52424         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52425         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52426         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
52427         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52428         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52429         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
52430
52431 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52432
52433         [BZ #16707]
52434         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
52435         implementation.
52436         * math/libm-test.inc (round_test_data): Add more tests.
52437
52438         [BZ #16706]
52439         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
52440         implementation.
52441         * math/libm-test.inc (nearbyint_test_data): Add more tests.
52442
52443         [BZ #16701]
52444         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
52445         implementation.
52446         * math/libm-test.inc (ceil_test_data): Add more tests.
52447
52448         * math/libm-test.inc (trunc_test_data): Add more tests related to
52449         BZ#16414.
52450
52451 2014-03-14  Roland McGrath  <roland@hack.frob.com>
52452
52453         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
52454         with #if rather than #ifdef.
52455         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
52456
52457 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
52458
52459         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
52460         first.  Disable AVX-512 GCC support if assembler doesn't support
52461         it.
52462         * sysdeps/x86_64/configure: Regenerated.
52463
52464 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
52465
52466         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
52467         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
52468         (__old_pthread_attr_setstack): Likewise.
52469         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
52470         [!_STACK_GROWS_DOWN]: Likewise.
52471
52472 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
52473
52474         * config.make.in (have-bash2): Delete.
52475         * configure.ac (libc_cv_have_bash2): Delete.
52476         * configure: Regenerate.
52477         * elf/Makefile (common-ldd-rewrite): Rename to ...
52478         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
52479         (sh-ldd-rewrite): Delete.
52480         (bash-ldd-rewrite): Delete.
52481         (have-bash2): Delete checks.
52482         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
52483         ldd-rewrite.
52484
52485         * config.make.in (have-ksh): Delete.
52486         (KSH): Delete.
52487         * configure.ac (libc_cv_have_ksh): Delete.
52488         * configure: Regenerate.
52489
52490         * elf/Makefile: Delete $(have-ksh) check.
52491         ($(objpfx)sotruss): Change KSH to BASH.
52492         * elf/sotruss.ksh: Rename to ...
52493         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
52494         function style to match POSIX.  Drop ksh vim mode setting.
52495
52496         * manual/time.texi (Specifying the Time Zone with TZ): Change
52497         Tuesday to Thursday.
52498
52499         * debug/tst-longjmp_chk2.c: Update header comment.
52500         (stackoverflow_handler): Add comment.  Call assert on pass value.
52501
52502 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
52503
52504         [BZ #16194]
52505         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
52506         (HAVE_AVX512_ASM_SUPPORT): Likewise.
52507         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
52508         (La_x86_64_vector): Add zmm.
52509         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
52510         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
52511         ($(objpfx)tst-audit10): New target.
52512         ($(objpfx)tst-audit10.out): Likewise.
52513         (tst-audit10-ENV): New.
52514         (AVX512-CFLAGS): Likewise.
52515         (CFLAGS-tst-audit10.c): Likewise.
52516         (CFLAGS-tst-auditmod10a.c): Likewise.
52517         (CFLAGS-tst-auditmod10b.c): Likewise.
52518         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
52519         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
52520         * sysdeps/x86_64/configure: Regenerated.
52521         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
52522         AVX-512 zmm register support.
52523         (_dl_x86_64_save_sse): Likewise.
52524         (_dl_x86_64_restore_sse): Likewise.
52525         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
52526         size vector registers.
52527         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
52528         (ZMM_SIZE): Likewise.
52529         * sysdeps/x86_64/tst-audit10.c: New file.
52530         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
52531         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
52532
52533 2014-03-13  Roland McGrath  <roland@hack.frob.com>
52534
52535         * configure.ac (HAVE_EHDR_START): New check.
52536         * configure: Regenerated.
52537         * config.h.in (HAVE_EHDR_START): New #undef.
52538         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
52539         assuming the lowest-addressed segment maps the start of the file.
52540
52541 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
52542
52543         * INSTALL: Regenerated.
52544
52545 2014-03-13  Will Newton  <will.newton@linaro.org>
52546
52547         * manual/setjmp.texi (System V contexts): Improve
52548         clarity and grammar of documentation.
52549
52550 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
52551
52552         [BZ #16381]
52553         * elf/Makefile (tests): Add tst-pie2.
52554         (tests-pie): Add tst-pie2.
52555         * elf/tst-pie2.c: New file.
52556         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
52557         for ET_EXEC.
52558         * elf/rtld.c (map_doit): Load executable as lt_executable.
52559         (dl_main): Likewise.
52560
52561 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
52562
52563         [BZ #16642]
52564         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
52565         (__ASSUME_PSELECT): Undefine.
52566
52567 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52568
52569         [BZ #16689]
52570         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
52571         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
52572         static build.
52573         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
52574         selector for static builds.
52575
52576 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
52577
52578         [BZ #16695]
52579         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
52580         key in the buffer.
52581
52582 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52583
52584         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
52585         IFUNC selector for static builds.
52586
52587 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
52588
52589         * sysdeps/mips/math_private.h [__mips_hard_float]
52590         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
52591         libc_feresetround_mips_ctx.
52592         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
52593         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
52594         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
52595
52596         [BZ #16677]
52597         * math/s_nextafter.c (__nextafter): Do not return value from
52598         overflowing computation.
52599         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
52600         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
52601         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
52602         Likewise.
52603         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
52604         Likewise.
52605         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
52606         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
52607
52608 2014-03-11  Roland McGrath  <roland@hack.frob.com>
52609
52610         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
52611         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
52612         Move sfi_sp use from the load-multiple (that no longer sets sp) to
52613         the new mov targetting sp.
52614
52615 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52616
52617         [BZ #16683]
52618         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
52619         Define it for static builds as well.
52620         (NO_BZERO_IMPL): Likewise.
52621
52622 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
52623
52624         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
52625         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
52626         multiarch strspn for PPC64.
52627         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
52628         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
52629         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
52630         (__libc_ifunc_impl_list): Likewise.
52631         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
52632         multiarch optimizations
52633         * string/strspn.c (strspn): Using macro to redefine symbol name.
52634
52635 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
52636             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52637
52638         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
52639         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
52640         multiarch strncat for PPC64.
52641         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
52642         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
52643         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
52644         (__libc_ifunc_impl_list): Likewise.
52645         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
52646         multiarch optimizations
52647
52648 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52649
52650         [BZ #16639]
52651         * nscd/nscd.service: Make service type forking.
52652
52653 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52654
52655         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
52656         sign in non default rounding modes.
52657         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
52658
52659 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
52660
52661         * math/libm-test.inc (ALL_RM_TEST): New macro.
52662         (ceil_test): Use ALL_RM_TEST.
52663         (cimag_test): Likewise.
52664         (conj_test): Likewise.
52665         (copysign_test): Likewise.
52666         (cproj_test): Likewise.
52667         (creal_test): Likewise.
52668         (fabs_test): Likewise.
52669         (floor_test): Likewise.
52670         (fmax_test): Likewise.
52671         (fmin_test): Likewise.
52672         (fmod_test): Likewise.
52673         (fpclassify_test): Likewise.
52674         (frexp_test): Likewise.
52675         (ilogb_test): Likewise.
52676         (isfinite_test): Likewise.
52677         (finite_test): Likewise.
52678         (isgreater_test): Likewise.
52679         (isgreaterequal_test): Likewise.
52680         (isinf_test): Likewise.
52681         (isless_test): Likewise.
52682         (islessequal_test): Likewise.
52683         (islessgreater_test): Likewise.
52684         (isnan_test): Likewise.
52685         (isnormal_test): Likewise.
52686         (issignaling_test): Likewise.
52687         (isunordered_test): Likewise.
52688         (logb_test): Likewise.
52689         (logb_downward_test_data): Remove.
52690         (logb_test_downward): Likewise.
52691         (lround_test): Use ALL_RM_TEST.
52692         (llround_test): Likewise.
52693         (modf_test): Likewise.
52694         (nexttoward_test): Likewise.
52695         (remainder_test): Likewise.
52696         (drem_test): Likewise.
52697         (remainder_tonearest_test_data): Likewise.
52698         (remainder_test_tonearest): Likewise.
52699         (drem_test_tonearest): Likewise.
52700         (remainder_towardzero_test_data): Likewise.
52701         (remainder_test_towardzero): Likewise.
52702         (drem_test_towardzero): Likewise.
52703         (remainder_downward_test_data): Likewise.
52704         (remainder_test_downward): Likewise.
52705         (drem_test_downward): Likewise.
52706         (remainder_upward_test_data): Likewise.
52707         (remainder_test_upward): Likewise.
52708         (drem_test_upward): Likewise.
52709         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
52710         (round_test): Use ALL_RM_TEST.
52711         (signbit_test): Likewise.
52712         (trunc_test): Likewise.
52713         (significand_test): Likewise.
52714         (main): Don't call removed functions.
52715
52716 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
52717
52718         [BZ #16674]
52719         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
52720         || __USE_XOPEN2K8].
52721         (ILL_ILLOPN): Likewise.
52722         (ILL_ILLADR): Likewise.
52723         (ILL_ILLTRP): Likewise.
52724         (ILL_PRVOPC): Likewise.
52725         (ILL_PRVREG): Likewise.
52726         (ILL_COPROC): Likewise.
52727         (ILL_BADSTK): Likewise.
52728         (FPE_INTDIV): Likewise.
52729         (FPE_INTOVF): Likewise.
52730         (FPE_FLTDIV): Likewise.
52731         (FPE_FLTOVF): Likewise.
52732         (FPE_FLTUND): Likewise.
52733         (FPE_FLTRES): Likewise.
52734         (FPE_FLTINV): Likewise.
52735         (FPE_FLTSUB): Likewise.
52736         (SEGV_MAPERR): Likewise.
52737         (SEGV_ACCERR): Likewise.
52738         (BUS_ADRALN): Likewise.
52739         (BUS_ADRERR): Likewise.
52740         (BUS_OBJERR): Likewise.
52741         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
52742         (TRAP_TRACE): Likewise.
52743         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
52744         __USE_XOPEN2K8].
52745         (CLD_KILLED): Likewise.
52746         (CLD_DUMPED): Likewise.
52747         (CLD_TRAPPED): Likewise.
52748         (CLD_STOPPED): Likewise.
52749         (CLD_CONTINUED): Likewise.
52750         (POLL_IN): Likewise.
52751         (POLL_OUT): Likewise.
52752         (POLL_MSG): Likewise.
52753         (POLL_ERR): Likewise.
52754         (POLL_PRI): Likewise.
52755         (POLL_HUP): Likewise.
52756         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
52757         Likewise.
52758         (ILL_ILLOPN): Likewise.
52759         (ILL_ILLADR): Likewise.
52760         (ILL_ILLTRP): Likewise.
52761         (ILL_PRVOPC): Likewise.
52762         (ILL_PRVREG): Likewise.
52763         (ILL_COPROC): Likewise.
52764         (ILL_BADSTK): Likewise.
52765         (FPE_INTDIV): Likewise.
52766         (FPE_INTOVF): Likewise.
52767         (FPE_FLTDIV): Likewise.
52768         (FPE_FLTOVF): Likewise.
52769         (FPE_FLTUND): Likewise.
52770         (FPE_FLTRES): Likewise.
52771         (FPE_FLTINV): Likewise.
52772         (FPE_FLTSUB): Likewise.
52773         (SEGV_MAPERR): Likewise.
52774         (SEGV_ACCERR): Likewise.
52775         (BUS_ADRALN): Likewise.
52776         (BUS_ADRERR): Likewise.
52777         (BUS_OBJERR): Likewise.
52778         (BUS_MCEERR_AR): Likewise.
52779         (BUS_MCEERR_AO): Likewise.
52780         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
52781         (TRAP_TRACE): Likewise.
52782         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
52783         __USE_XOPEN2K8].
52784         (CLD_KILLED): Likewise.
52785         (CLD_DUMPED): Likewise.
52786         (CLD_TRAPPED): Likewise.
52787         (CLD_STOPPED): Likewise.
52788         (CLD_CONTINUED): Likewise.
52789         (POLL_IN): Likewise.
52790         (POLL_OUT): Likewise.
52791         (POLL_MSG): Likewise.
52792         (POLL_ERR): Likewise.
52793         (POLL_PRI): Likewise.
52794         (POLL_HUP): Likewise.
52795         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
52796         (ILL_ILLOPN): Likewise.
52797         (ILL_ILLADR): Likewise.
52798         (ILL_ILLTRP): Likewise.
52799         (ILL_PRVOPC): Likewise.
52800         (ILL_PRVREG): Likewise.
52801         (ILL_COPROC): Likewise.
52802         (ILL_BADSTK): Likewise.
52803         (FPE_INTDIV): Likewise.
52804         (FPE_INTOVF): Likewise.
52805         (FPE_FLTDIV): Likewise.
52806         (FPE_FLTOVF): Likewise.
52807         (FPE_FLTUND): Likewise.
52808         (FPE_FLTRES): Likewise.
52809         (FPE_FLTINV): Likewise.
52810         (FPE_FLTSUB): Likewise.
52811         (SEGV_MAPERR): Likewise.
52812         (SEGV_ACCERR): Likewise.
52813         (BUS_ADRALN): Likewise.
52814         (BUS_ADRERR): Likewise.
52815         (BUS_OBJERR): Likewise.
52816         (BUS_MCEERR_AR): Likewise.
52817         (BUS_MCEERR_AO): Likewise.
52818         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
52819         (TRAP_TRACE): Likewise.
52820         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
52821         __USE_XOPEN2K8].
52822         (CLD_KILLED): Likewise.
52823         (CLD_DUMPED): Likewise.
52824         (CLD_TRAPPED): Likewise.
52825         (CLD_STOPPED): Likewise.
52826         (CLD_CONTINUED): Likewise.
52827         (POLL_IN): Likewise.
52828         (POLL_OUT): Likewise.
52829         (POLL_MSG): Likewise.
52830         (POLL_ERR): Likewise.
52831         (POLL_PRI): Likewise.
52832         (POLL_HUP): Likewise.
52833         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
52834         Likewise.
52835         (ILL_ILLOPN): Likewise.
52836         (ILL_ILLADR): Likewise.
52837         (ILL_ILLTRP): Likewise.
52838         (ILL_PRVOPC): Likewise.
52839         (ILL_PRVREG): Likewise.
52840         (ILL_COPROC): Likewise.
52841         (ILL_BADSTK): Likewise.
52842         (ILL_BADIADDR): Likewise.
52843         (ILL_BREAK): Likewise.
52844         (FPE_INTDIV): Likewise.
52845         (FPE_INTOVF): Likewise.
52846         (FPE_FLTDIV): Likewise.
52847         (FPE_FLTOVF): Likewise.
52848         (FPE_FLTUND): Likewise.
52849         (FPE_FLTRES): Likewise.
52850         (FPE_FLTINV): Likewise.
52851         (FPE_FLTSUB): Likewise.
52852         (FPE_DECOVF): Likewise.
52853         (FPE_DECDIV): Likewise.
52854         (FPE_DECERR): Likewise.
52855         (FPE_INVASC): Likewise.
52856         (FPE_INVDEC): Likewise.
52857         (SEGV_MAPERR): Likewise.
52858         (SEGV_ACCERR): Likewise.
52859         (SEGV_PSTKOVF): Likewise.
52860         (BUS_ADRALN): Likewise.
52861         (BUS_ADRERR): Likewise.
52862         (BUS_OBJERR): Likewise.
52863         (BUS_MCEERR_AR): Likewise.
52864         (BUS_MCEERR_AO): Likewise.
52865         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
52866         (TRAP_TRACE): Likewise.
52867         (TRAP_BRANCH): Likewise.
52868         (TRAP_HWBKPT): Likewise.
52869         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
52870         __USE_XOPEN2K8].
52871         (CLD_KILLED): Likewise.
52872         (CLD_DUMPED): Likewise.
52873         (CLD_TRAPPED): Likewise.
52874         (CLD_STOPPED): Likewise.
52875         (CLD_CONTINUED): Likewise.
52876         (POLL_IN): Likewise.
52877         (POLL_OUT): Likewise.
52878         (POLL_MSG): Likewise.
52879         (POLL_ERR): Likewise.
52880         (POLL_PRI): Likewise.
52881         (POLL_HUP): Likewise.
52882         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
52883         (ILL_ILLOPN): Likewise.
52884         (ILL_ILLADR): Likewise.
52885         (ILL_ILLTRP): Likewise.
52886         (ILL_PRVOPC): Likewise.
52887         (ILL_PRVREG): Likewise.
52888         (ILL_COPROC): Likewise.
52889         (ILL_BADSTK): Likewise.
52890         (FPE_INTDIV): Likewise.
52891         (FPE_INTOVF): Likewise.
52892         (FPE_FLTDIV): Likewise.
52893         (FPE_FLTOVF): Likewise.
52894         (FPE_FLTUND): Likewise.
52895         (FPE_FLTRES): Likewise.
52896         (FPE_FLTINV): Likewise.
52897         (FPE_FLTSUB): Likewise.
52898         (SEGV_MAPERR): Likewise.
52899         (SEGV_ACCERR): Likewise.
52900         (BUS_ADRALN): Likewise.
52901         (BUS_ADRERR): Likewise.
52902         (BUS_OBJERR): Likewise.
52903         (BUS_MCEERR_AR): Likewise.
52904         (BUS_MCEERR_AO): Likewise.
52905         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
52906         (TRAP_TRACE): Likewise.
52907         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
52908         __USE_XOPEN2K8].
52909         (CLD_KILLED): Likewise.
52910         (CLD_DUMPED): Likewise.
52911         (CLD_TRAPPED): Likewise.
52912         (CLD_STOPPED): Likewise.
52913         (CLD_CONTINUED): Likewise.
52914         (POLL_IN): Likewise.
52915         (POLL_OUT): Likewise.
52916         (POLL_MSG): Likewise.
52917         (POLL_ERR): Likewise.
52918         (POLL_PRI): Likewise.
52919         (POLL_HUP): Likewise.
52920         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
52921         (ILL_ILLOPN): Likewise.
52922         (ILL_ILLADR): Likewise.
52923         (ILL_ILLTRP): Likewise.
52924         (ILL_PRVOPC): Likewise.
52925         (ILL_PRVREG): Likewise.
52926         (ILL_COPROC): Likewise.
52927         (ILL_BADSTK): Likewise.
52928         (FPE_INTDIV): Likewise.
52929         (FPE_INTOVF): Likewise.
52930         (FPE_FLTDIV): Likewise.
52931         (FPE_FLTOVF): Likewise.
52932         (FPE_FLTUND): Likewise.
52933         (FPE_FLTRES): Likewise.
52934         (FPE_FLTINV): Likewise.
52935         (FPE_FLTSUB): Likewise.
52936         (SEGV_MAPERR): Likewise.
52937         (SEGV_ACCERR): Likewise.
52938         (BUS_ADRALN): Likewise.
52939         (BUS_ADRERR): Likewise.
52940         (BUS_OBJERR): Likewise.
52941         (BUS_MCEERR_AR): Likewise.
52942         (BUS_MCEERR_AO): Likewise.
52943         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
52944         (TRAP_TRACE): Likewise.
52945         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
52946         __USE_XOPEN2K8].
52947         (CLD_KILLED): Likewise.
52948         (CLD_DUMPED): Likewise.
52949         (CLD_TRAPPED): Likewise.
52950         (CLD_STOPPED): Likewise.
52951         (CLD_CONTINUED): Likewise.
52952         (POLL_IN): Likewise.
52953         (POLL_OUT): Likewise.
52954         (POLL_MSG): Likewise.
52955         (POLL_ERR): Likewise.
52956         (POLL_PRI): Likewise.
52957         (POLL_HUP): Likewise.
52958         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
52959         (ILL_ILLOPN): Likewise.
52960         (ILL_ILLADR): Likewise.
52961         (ILL_ILLTRP): Likewise.
52962         (ILL_PRVOPC): Likewise.
52963         (ILL_PRVREG): Likewise.
52964         (ILL_COPROC): Likewise.
52965         (ILL_BADSTK): Likewise.
52966         (FPE_INTDIV): Likewise.
52967         (FPE_INTOVF): Likewise.
52968         (FPE_FLTDIV): Likewise.
52969         (FPE_FLTOVF): Likewise.
52970         (FPE_FLTUND): Likewise.
52971         (FPE_FLTRES): Likewise.
52972         (FPE_FLTINV): Likewise.
52973         (FPE_FLTSUB): Likewise.
52974         (SEGV_MAPERR): Likewise.
52975         (SEGV_ACCERR): Likewise.
52976         (BUS_ADRALN): Likewise.
52977         (BUS_ADRERR): Likewise.
52978         (BUS_OBJERR): Likewise.
52979         (BUS_MCEERR_AR): Likewise.
52980         (BUS_MCEERR_AO): Likewise.
52981         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
52982         (TRAP_TRACE): Likewise.
52983         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
52984         __USE_XOPEN2K8].
52985         (CLD_KILLED): Likewise.
52986         (CLD_DUMPED): Likewise.
52987         (CLD_TRAPPED): Likewise.
52988         (CLD_STOPPED): Likewise.
52989         (CLD_CONTINUED): Likewise.
52990         (POLL_IN): Likewise.
52991         (POLL_OUT): Likewise.
52992         (POLL_MSG): Likewise.
52993         (POLL_ERR): Likewise.
52994         (POLL_PRI): Likewise.
52995         (POLL_HUP): Likewise.
52996         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
52997         (ILL_ILLOPN): Likewise.
52998         (ILL_ILLADR): Likewise.
52999         (ILL_ILLTRP): Likewise.
53000         (ILL_PRVOPC): Likewise.
53001         (ILL_PRVREG): Likewise.
53002         (ILL_COPROC): Likewise.
53003         (ILL_BADSTK): Likewise.
53004         (ILL_DBLFLT): Likewise.
53005         (ILL_HARDWALL): Likewise.
53006         (FPE_INTDIV): Likewise.
53007         (FPE_INTOVF): Likewise.
53008         (FPE_FLTDIV): Likewise.
53009         (FPE_FLTOVF): Likewise.
53010         (FPE_FLTUND): Likewise.
53011         (FPE_FLTRES): Likewise.
53012         (FPE_FLTINV): Likewise.
53013         (FPE_FLTSUB): Likewise.
53014         (SEGV_MAPERR): Likewise.
53015         (SEGV_ACCERR): Likewise.
53016         (BUS_ADRALN): Likewise.
53017         (BUS_ADRERR): Likewise.
53018         (BUS_OBJERR): Likewise.
53019         (BUS_MCEERR_AR): Likewise.
53020         (BUS_MCEERR_AO): Likewise.
53021         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
53022         (TRAP_TRACE): Likewise.
53023         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
53024         __USE_XOPEN2K8].
53025         (CLD_KILLED): Likewise.
53026         (CLD_DUMPED): Likewise.
53027         (CLD_TRAPPED): Likewise.
53028         (CLD_STOPPED): Likewise.
53029         (CLD_CONTINUED): Likewise.
53030         (POLL_IN): Likewise.
53031         (POLL_OUT): Likewise.
53032         (POLL_MSG): Likewise.
53033         (POLL_ERR): Likewise.
53034         (POLL_PRI): Likewise.
53035         (POLL_HUP): Likewise.
53036         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
53037         (ILL_ILLOPN): Likewise.
53038         (ILL_ILLADR): Likewise.
53039         (ILL_ILLTRP): Likewise.
53040         (ILL_PRVOPC): Likewise.
53041         (ILL_PRVREG): Likewise.
53042         (ILL_COPROC): Likewise.
53043         (ILL_BADSTK): Likewise.
53044         (FPE_INTDIV): Likewise.
53045         (FPE_INTOVF): Likewise.
53046         (FPE_FLTDIV): Likewise.
53047         (FPE_FLTOVF): Likewise.
53048         (FPE_FLTUND): Likewise.
53049         (FPE_FLTRES): Likewise.
53050         (FPE_FLTINV): Likewise.
53051         (FPE_FLTSUB): Likewise.
53052         (SEGV_MAPERR): Likewise.
53053         (SEGV_ACCERR): Likewise.
53054         (BUS_ADRALN): Likewise.
53055         (BUS_ADRERR): Likewise.
53056         (BUS_OBJERR): Likewise.
53057         (BUS_MCEERR_AR): Likewise.
53058         (BUS_MCEERR_AO): Likewise.
53059         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
53060         (TRAP_TRACE): Likewise.
53061         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
53062         __USE_XOPEN2K8].
53063         (CLD_KILLED): Likewise.
53064         (CLD_DUMPED): Likewise.
53065         (CLD_TRAPPED): Likewise.
53066         (CLD_STOPPED): Likewise.
53067         (CLD_CONTINUED): Likewise.
53068         (POLL_IN): Likewise.
53069         (POLL_OUT): Likewise.
53070         (POLL_MSG): Likewise.
53071         (POLL_ERR): Likewise.
53072         (POLL_PRI): Likewise.
53073         (POLL_HUP): Likewise.
53074         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
53075         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
53076
53077         [BZ #16670]
53078         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
53079         before #include of <time.h>.
53080         [!__USE_XOPEN2K] (__need_timespec): Likewise.
53081         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
53082         (test-xfail-UNIX98/sched.h/conform): Likewise.
53083
53084 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
53085
53086         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
53087         error absence of trapping exception support.
53088         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
53089
53090 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
53091
53092         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
53093         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
53094         * timezone/Makefile (testdata): Move definition above include of
53095         Rules.
53096         (test-zones): New variable.
53097         (tests-special): Add zone files.
53098         (build-testdata): Use $(evaluate-test).
53099
53100         * elf/Makefile (tests-special): Rename tests to end with .out.
53101         ($(objpfx)noload-mem): Likewise.
53102         ($(objpfx)tst-leaks1-mem): Likewise.
53103         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
53104         * iconv/Makefile (xtests-special): Change test-iconvconfig to
53105         $(objpfx)test-iconvconfig.out.
53106         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
53107         set -e inside subshell and redirect output to file.
53108         * iconvdata/Makefile (generated): Rename tests to end with .out.
53109         Correct type.
53110         (tests-special): Rename tests to end with .out.
53111         ($(objpfx)mtrace-tst-loading): Likewise.
53112         * intl/Makefile (generated): Likewise.
53113         (tests-special): Likewise.
53114         ($(objpfx)mtrace-tst-gettext): Likewise.
53115         * misc/Makefile (generated): Likewise.
53116         (tests-special): Likewise.
53117         ($(objpfx)tst-error1-mem): Likewise.
53118         * nptl/Makefile (tests-special): Likewise.
53119         ($(objpfx)tst-stack3-mem): Likewise.
53120         (generated): Likewise.
53121         * posix/Makefile (generated): Likewise.
53122         (tests-special): Likewise.
53123         (xtests-special): Likewise.
53124         ($(objpfx)tst-fnmatch-mem): Likewise.
53125         ($(objpfx)bug-regex2-mem): Likewise.
53126         ($(objpfx)bug-regex14-mem): Likewise.
53127         ($(objpfx)bug-regex21-mem): Likewise.
53128         ($(objpfx)bug-regex31-mem): Likewise.
53129         ($(objpfx)tst-vfork3-mem): Likewise.
53130         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
53131         ($(objpfx)tst-pcre-mem): Likewise.
53132         ($(objpfx)tst-boost-mem): Likewise.
53133         ($(objpfx)bug-ga2-mem): Likewise.
53134         ($(objpfx)bug-glob2-mem): Likewise.
53135         * resolv/Makefile (generate): Likewise.
53136         (tests-special): Likewise.
53137         (xtests-special): Likewise.
53138         (generated): Likewise.
53139         ($(objpfx)mtrace-tst-leaks): Likewise.
53140         ($(objpfx)mtrace-tst-leaks2): Likewise.
53141
53142         * scripts/merge-test-results.sh: New file.
53143         * Makefile (tests-special-notdir): New variable.
53144         (tests): Run merge-test-results.sh.
53145         (xtests): Likewise.
53146         * Rules (tests-special-notdir): New variable.
53147         (xtests-special-notdir): Likewise.
53148         (tests): Run merge-test-results.sh
53149         (xtests): Likewise.
53150
53151         * Makeconfig (test-xfail-name): New variable.
53152         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
53153         compute variable name for expected failures.
53154         * conform/Makefile (conformtest-headers-data): New variable.
53155         (conformtest-standards): Likewise.
53156         (conformtest-headers-ISO): Likewise.
53157         (conformtest-headers-ISO99): Likewise.
53158         (conformtest-headers-ISO11): Likewise.
53159         (conformtest-headers-POSIX): Likewise.
53160         (conformtest-headers-XPG3): Likewise.
53161         (conformtest-headers-XPG4): Likewise.
53162         (conformtest-headers-UNIX98): Likewise.
53163         (conformtest-headers-XOPEN2K): Likewise.
53164         (conformtest-headers-POSIX2008): Likewise.
53165         (conformtest-headers-XOPEN2K8): Likewise.
53166         (conformtest-header-list-base): Likewise.
53167         (conformtest-header-list-tests): Likewise.
53168         (conformtest-header-base): Likewise.
53169         (conformtest-header-tests): Likewise.
53170         (tests-special): Add $(conformtest-header-list-tests).  If
53171         [$(fast-check) && !$(cross-compiling)], add
53172         $(conformtest-header-tests) instead of
53173         $(objpfx)run-conformtest.out.
53174         (generated): Add $(conformtest-header-list-base).  If
53175         [$(fast-check) && !$(cross-compiling)], add
53176         $(conformtest-header-base).  Remove previous setting.
53177         ($(conformtest-header-list-tests)): New target.
53178         (test-xfail-run-conformtest): Remove variable.
53179         ($(objpfx)run-conformtest.out): Remove target.
53180         (test-xfail-ISO11/complex.h/conform): New variable.
53181         (test-xfail-ISO11/stdalign.h/conform): Likewise.
53182         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
53183         (test-xfail-XPG3/varargs.h/conform): Likewise.
53184         (test-xfail-XPG4/varargs.h/conform): Likewise.
53185         (test-xfail-UNIX98/varargs.h/conform): Likewise.
53186         (test-xfail-XPG4/ndbm.h/conform): Likewise.
53187         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
53188         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
53189         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
53190         (test-xfail-XPG3/fcntl.h/conform): Likewise.
53191         (test-xfail-XPG3/ftw.h/conform): Likewise.
53192         (test-xfail-XPG3/grp.h/conform): Likewise.
53193         (test-xfail-XPG3/langinfo.h/conform): Likewise.
53194         (test-xfail-XPG3/limits.h/conform): Likewise.
53195         (test-xfail-XPG3/pwd.h/conform): Likewise.
53196         (test-xfail-XPG3/search.h/conform): Likewise.
53197         (test-xfail-XPG3/signal.h/conform): Likewise.
53198         (test-xfail-XPG3/stdio.h/conform): Likewise.
53199         (test-xfail-XPG3/stdlib.h/conform): Likewise.
53200         (test-xfail-XPG3/string.h/conform): Likewise.
53201         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
53202         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
53203         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
53204         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
53205         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
53206         (test-xfail-XPG3/sys/types.h/conform): Likewise.
53207         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
53208         (test-xfail-XPG3/termios.h/conform): Likewise.
53209         (test-xfail-XPG3/time.h/conform): Likewise.
53210         (test-xfail-XPG3/unistd.h/conform): Likewise.
53211         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
53212         (test-xfail-XPG4/fcntl.h/conform): Likewise.
53213         (test-xfail-XPG4/langinfo.h/conform): Likewise.
53214         (test-xfail-XPG4/netdb.h/conform): Likewise.
53215         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
53216         (test-xfail-XPG4/signal.h/conform): Likewise.
53217         (test-xfail-XPG4/stdio.h/conform): Likewise.
53218         (test-xfail-XPG4/stdlib.h/conform): Likewise.
53219         (test-xfail-XPG4/stropts.h/conform): Likewise.
53220         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
53221         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
53222         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
53223         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
53224         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
53225         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
53226         (test-xfail-XPG4/sys/time.h/conform): Likewise.
53227         (test-xfail-XPG4/sys/types.h/conform): Likewise.
53228         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
53229         (test-xfail-XPG4/termios.h/conform): Likewise.
53230         (test-xfail-XPG4/ucontext.h/conform): Likewise.
53231         (test-xfail-XPG4/unistd.h/conform): Likewise.
53232         (test-xfail-XPG4/utmpx.h/conform): Likewise.
53233         (test-xfail-POSIX/sched.h/conform): Likewise.
53234         (test-xfail-POSIX/signal.h/conform): Likewise.
53235         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
53236         (test-xfail-POSIX/tar.h/conform): Likewise.
53237         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
53238         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
53239         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
53240         (test-xfail-UNIX98/netdb.h/conform): Likewise.
53241         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
53242         (test-xfail-UNIX98/sched.h/conform): Likewise.
53243         (test-xfail-UNIX98/signal.h/conform): Likewise.
53244         (test-xfail-UNIX98/stdio.h/conform): Likewise.
53245         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
53246         (test-xfail-UNIX98/stropts.h/conform): Likewise.
53247         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
53248         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
53249         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
53250         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
53251         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
53252         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
53253         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
53254         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
53255         (test-xfail-UNIX98/unistd.h/conform): Likewise.
53256         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
53257         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
53258         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
53259         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
53260         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
53261         (test-xfail-XOPEN2K/math.h/conform): Likewise.
53262         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
53263         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
53264         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
53265         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
53266         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
53267         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
53268         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
53269         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
53270         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
53271         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
53272         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
53273         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
53274         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
53275         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
53276         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
53277         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
53278         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
53279         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
53280         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
53281         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
53282         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
53283         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
53284         (test-xfail-POSIX2008/signal.h/conform): Likewise.
53285         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
53286         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
53287         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
53288         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
53289         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
53290         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
53291         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
53292         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
53293         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
53294         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
53295         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
53296         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
53297         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
53298         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
53299         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
53300         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
53301         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
53302         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
53303         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
53304         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
53305         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
53306         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
53307         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
53308         (conformtest-cc-flags): Likewise.
53309         ($(conformtest-header-tests): New target.
53310         * conform/check-header-lists.sh: New file.
53311         * conform/run-conformtest.sh: Remove.
53312
53313         * conform/conformtest.pl: Allow ' and \ in values given for
53314         constants.
53315         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
53316         inclusion.
53317         [POSIX] (sys/types.h): Likewise.
53318         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
53319         inclusion.
53320         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
53321         inclusion.
53322         * conform/data/signal.h-data (SIGIO): Remove expectation.
53323         [XPG3] (SIGBUS): Do not expect.
53324         [POSIX || XPG3] (SIGPOLL): Likewise.
53325         [POSIX || XPG3] (SIGPROF): Likewise.
53326         [POSIX || XPG3] (SIGSYS): Likewise.
53327         [XPG3] (SIGTRAP): Likewise.
53328         [POSIX || XPG3] (SIGURG): Likewise.
53329         [POSIX || XPG3] (SIGVTALRM): Likewise.
53330         [POSIX || XPG3] (SIGXCPU): Likewise.
53331         [POSIX || XPG3] (SIGXFSZ): Likewise.
53332         [POSIX] (SA_SIGINFO): Expect.
53333         [XPG3] (siginfo_t): Do not expect type or contents.
53334         [POSIX] (si_pid): Do not expect element.
53335         [POSIX] (si_uid): Likewise.
53336         [POSIX] (si_addr): Likewise.
53337         [POSIX] (si_status): Likewise.
53338         [POSIX] (si_band): Likewise.
53339         [XPG4] (si_value): Likewise.
53340         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
53341         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
53342         [POSIX || XPG3] (ILL_ILLADR): Likewise.
53343         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
53344         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
53345         [POSIX || XPG3] (ILL_PRVREG): Likewise.
53346         [POSIX || XPG3] (ILL_COPROC): Likewise.
53347         [POSIX || XPG3] (ILL_BADSTK): Likewise.
53348         [POSIX || XPG3] (FPE_INTDIV): Likewise.
53349         [POSIX || XPG3] (FPE_INTOVF): Likewise.
53350         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
53351         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
53352         [POSIX || XPG3] (FPE_FLTUND): Likewise.
53353         [POSIX || XPG3] (FPE_FLTRES): Likewise.
53354         [POSIX || XPG3] (FPE_FLTINV): Likewise.
53355         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
53356         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
53357         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
53358         [POSIX || XPG3] (BUS_ADRALN): Likewise.
53359         [POSIX || XPG3] (BUS_ADRERR): Likewise.
53360         [POSIX || XPG3] (BUS_OBJERR): Likewise.
53361         [POSIX || XPG3] (CLD_EXITED): Likewise.
53362         [POSIX || XPG3] (CLD_KILLED): Likewise.
53363         [POSIX || XPG3] (CLD_DUMPED): Likewise.
53364         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
53365         [POSIX || XPG3] (CLD_STOPPED): Likewise.
53366         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
53367         [POSIX || XPG3] (POLL_IN): Likewise.
53368         [POSIX || XPG3] (POLL_OUT): Likewise.
53369         [POSIX || XPG3] (POLL_MSG): Likewise.
53370         [POSIX || XPG3] (POLL_ERR): Likewise.
53371         [POSIX || XPG3] (POLL_PRI): Likewise.
53372         [POSIX || XPG3] (POLL_HUP): Likewise.
53373         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
53374         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
53375         (SIG*): Do not allow.
53376         [XPG3] (si_*): Likewise.
53377         [XPG3] (SI_*): Likewise.
53378         [XPG3 || XPG4] (sigev_*): Likewise.
53379         [XPG3 || XPG4] (SIGEV_*): Likewise.
53380         [XPG3 || XPG4] (sival_*): Likewise.
53381         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
53382         [POSIX || XPG3] (BUS_*): Likewise.
53383         [POSIX || XPG3] (CLD_*): Likewise.
53384         [POSIX || XPG3] (FPE_*): Likewise.
53385         [POSIX || XPG3] (ILL_*): Likewise.
53386         [POSIX || XPG3] (POLL_*): Likewise.
53387         [POSIX || XPG3] (SEGV_*): Likewise.
53388         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
53389         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
53390         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
53391         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
53392         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
53393         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
53394         Specify type and value.
53395         (TVERSLEN): Likewise.
53396         (REGTYPE): Likewise.
53397         (AREGTYPE): Likewise.
53398         (LNKTYPE): Likewise.
53399         (SYMTYPE): Likewise.
53400         (CHRTYPE): Likewise.
53401         (BLKTYPE): Likewise.
53402         (DIRTYPE): Likewise.
53403         (FIFOTYPE): Likewise.
53404         (CONTTYPE): Likewise.
53405         (TSUID): Likewise.
53406         (TSGID): Likewise.
53407         (TSVTX): Likewise.
53408         (TUREAD): Likewise.
53409         (TUWRITE): Likewise.
53410         (TUEXEC): Likewise.
53411         (TGREAD): Likewise.
53412         (TGWRITE): Likewise.
53413         (TGEXEC): Likewise.
53414         (TOREAD): Likewise.
53415         (TOWRITE): Likewise.
53416         (TOEXEC): Likewise.
53417         [POSIX] (TSVTX): Expect constant.
53418
53419 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
53420
53421         * Makefile (tests): Change dependencies to ....
53422         (tests-special): ... additions to this variable.
53423         (tests): Depend on $(tests-special).
53424         * Makerules (check-abi-list): New variable.
53425         (check-abi): Depend on $(check-abi-list).
53426         [$(subdir) = elf] (tests-special): Add
53427         $(objpfx)check-abi-libc.out.
53428         [$(build-shared) = yes && subdir] (tests-special): Add
53429         $(check-abi-list).
53430         [$(build-shared) = yes && subdir] (tests): Do not depend on
53431         check-abi.
53432         * Rules (tests): Depend on $(tests-special).
53433         (xtests): Depend on $(xtests-special).
53434         * catgets/Makefile (tests): Change dependencies to ....
53435         (tests-special): ... additions to this variable.
53436         * conform/Makefile (tests): Change dependencies to ....
53437         (tests-special): ... additions to this variable.
53438         * elf/Makefile (tests): Change dependencies to ....
53439         (tests-special): ... additions to this variable.
53440         * grp/Makefile (tests): Change dependencies to ....
53441         (tests-special): ... additions to this variable.
53442         * iconv/Makefile (xtests): Change dependencies to ....
53443         (xtests-special): ... additions to this variable.
53444         * iconvdata/Makefile (tests): Change dependencies to ....
53445         (tests-special): ... additions to this variable.
53446         * intl/Makefile (tests): Change dependencies to ....
53447         (tests-special): ... additions to this variable.  Also add
53448         $(objpfx)tst-gettext.out.
53449         * io/Makefile (tests): Change dependencies to ....
53450         (tests-special): ... additions to this variable.
53451         * libio/Makefile (tests): Change dependencies to ....
53452         (tests-special): ... additions to this variable.
53453         * malloc/Makefile (tests): Change dependencies to ....
53454         (tests-special): ... additions to this variable.
53455         * misc/Makefile (tests): Change dependencies to ....
53456         (tests-special): ... additions to this variable.
53457         * nptl/Makefile (tests): Change dependencies to ....
53458         (tests-special): ... additions to this variable.
53459         * nptl_db/Makefile (tests): Change dependencies to ....
53460         (tests-special): ... additions to this variable.
53461         * posix/Makefile (tests): Change dependencies to ....
53462         (tests-special): ... additions to this variable.
53463         (xtests): Change dependencies to ....
53464         (xtests-special): ... additions to this variable.
53465         * resolv/Makefile (tests): Change dependencies to ....
53466         (tests-special): ... additions to this variable.
53467         (xtests): Change dependencies to ....
53468         (xtests-special): ... additions to this variable.
53469         * stdio-common/Makefile (tests): Change dependencies to ....
53470         (tests-special): ... additions to this variable.
53471         (do-tst-unbputc): Remove target.
53472         (do-tst-printf): Likewise.
53473         * stdlib/Makefile (tests): Change dependencies to ....
53474         (tests-special): ... additions to this variable.
53475         * string/Makefile (tests): Change dependencies to ....
53476         (tests-special): ... additions to this variable.
53477         * sysdeps/x86/Makefile (tests): Change dependencies to ....
53478         (tests-special): ... additions to this variable.
53479
53480         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
53481         whole file.
53482         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
53483         whole file.
53484         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
53485         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
53486
53487         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
53488         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
53489         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
53490         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
53491         * conform/data/libgen.h-data [XPG3]: Likewise.
53492         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
53493         * conform/data/ndbm.h-data [XPG3]: Likewise.
53494         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
53495         * conform/data/netdb.h-data [XPG3]: Likewise.
53496         * conform/data/netinet/in.h-data [XPG3]: Likewise.
53497         * conform/data/poll.h-data [XPG3]: Likewise.
53498         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
53499         * conform/data/strings.h-data [XPG3]: Likewise.
53500         * conform/data/stropts.h-data [XPG3]: Likewise.
53501         * conform/data/sys/mman.h-data [XPG3]: Likewise.
53502         * conform/data/sys/resource.h-data [XPG3]: Likewise.
53503         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
53504         Likewise.
53505         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
53506         * conform/data/sys/time.h-data [XPG3]: Likewise.
53507         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
53508         * conform/data/sys/uio.h-data [XPG3]: Likewise.
53509         * conform/data/sys/un.h-data [XPG3]: Likewise.
53510         * conform/data/syslog.h-data [XPG3]: Likewise.
53511         * conform/data/ucontext.h-data [XPG3]: Likewise.
53512         * conform/data/utmpx.h-data [XPG3]: Likewise.
53513         * conform/data/varargs.h-data [UNIX98]: Enable file.
53514
53515         * manual/Makefile (INSTALL_INFO): Remove variable setting.
53516
53517         * math/libm-test.inc (struct test_f_f_data): Move expected results
53518         into structure for each rounding mode.
53519         (struct test_ff_f_data): Likewise.
53520         (struct test_ff_f_data_nexttoward): Likewise.
53521         (struct test_fi_f_data): Likewise.
53522         (struct test_fl_f_data): Likewise.
53523         (struct test_if_f_data): Likewise.
53524         (struct test_fff_f_data): Likewise.
53525         (struct test_c_f_data): Likewise.
53526         (struct test_f_f1_data): Likewise.
53527         (struct test_fF_f1_data): Likewise.
53528         (struct test_ffI_f1_data): Likewise.
53529         (struct test_c_c_data): Likewise.
53530         (struct test_cc_c_data): Likewise.
53531         (struct test_f_i_data): Likewise.
53532         (struct test_ff_i_data): Likewise.
53533         (struct test_f_l_data): Likewise.
53534         (struct test_f_L_data): Likewise.
53535         (struct test_fFF_11_data): Likewise.
53536         (RM_): New macro.
53537         (RM_FE_DOWNWARD): Likewise.
53538         (RM_FE_TONEAREST): Likewise.
53539         (RM_FE_TOWARDZERO): Likewise.
53540         (RM_FE_UPWARD): Likewise.
53541         (RUN_TEST_LOOP_f_f): Update references to expected results.
53542         (RUN_TEST_LOOP_2_f): Likewise.
53543         (RUN_TEST_LOOP_fff_f): Likewise.
53544         (RUN_TEST_LOOP_c_f): Likewise.
53545         (RUN_TEST_LOOP_f_f1): Likewise.
53546         (RUN_TEST_LOOP_fF_f1): Likewise.
53547         (RUN_TEST_LOOP_fI_f1): Likewise.
53548         (RUN_TEST_LOOP_ffI_f1): Likewise.
53549         (RUN_TEST_LOOP_c_c): Likewise.
53550         (RUN_TEST_LOOP_cc_c): Likewise.
53551         (RUN_TEST_LOOP_f_i): Likewise.
53552         (RUN_TEST_LOOP_f_i_tg): Likewise.
53553         (RUN_TEST_LOOP_ff_i_tg): Likewise.
53554         (RUN_TEST_LOOP_f_b): Likewise.
53555         (RUN_TEST_LOOP_f_b_tg): Likewise.
53556         (RUN_TEST_LOOP_f_l): Likewise.
53557         (RUN_TEST_LOOP_f_L): Likewise.
53558         (RUN_TEST_LOOP_fFF_11): Likewise.
53559         * math/gen-libm-test.pl (parse_args): Output four copies of
53560         expected results for each test.
53561
53562         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
53563         (__ASSUME_UTIMES): Remove.
53564         * sysdeps/unix/sysv/linux/tile/kernel-features.h
53565         (__ASSUME_UTIMES): Likewise.
53566
53567         * math/gen-auto-libm-tests.c: Update comment on output format.
53568         (output_for_one_input_case): Generate before-rounding and
53569         after-rounding information as conditions on output flags not
53570         floating-point format.
53571         * math/auto-libm-test-out: Regenerated.
53572         * math/gen-libm-test.pl (cond_value): New function.
53573         (or_cond_value): Use cond_value.
53574         (generate_testfile): Handle conditional exceptions.
53575
53576 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
53577
53578         * math/libm-test.inc (max_valid_error): New variable.
53579         (init_max_error): Take new argument specifying whether function
53580         results are exactly determined.  Set max_valid_error and bound
53581         other variables for errors based on this argument.
53582         (set_max_error): Do not record results above max_valid_error.
53583         (check_float_internal): Only accept errors of up to 0.5ulps if
53584         also at most max_valid_error.
53585         (START): Take new argument EXACT and pass it to init_max_error.
53586         (acos_test): Update call to START.
53587         (acos_test_tonearest): Likewise.
53588         (acos_test_towardzero): Likewise.
53589         (acos_test_downward): Likewise.
53590         (acos_test_upward): Likewise.
53591         (acosh_test): Likewise.
53592         (asin_test): Likewise.
53593         (asin_test_tonearest): Likewise.
53594         (asin_test_towardzero): Likewise.
53595         (asin_test_downward): Likewise.
53596         (asin_test_upward): Likewise.
53597         (asinh_test): Likewise.
53598         (atan_test): Likewise.
53599         (atanh_test): Likewise.
53600         (atan2_test): Likewise.
53601         (cabs_test): Likewise.
53602         (cacos_test): Likewise.
53603         (cacosh_test): Likewise.
53604         (carg_test): Likewise.
53605         (casin_test): Likewise.
53606         (casinh_test): Likewise.
53607         (catan_test): Likewise.
53608         (catanh_test): Likewise.
53609         (cbrt_test): Likewise.
53610         (ccos_test): Likewise.
53611         (ccosh_test): Likewise.
53612         (ceil_test): Likewise.
53613         (cexp_test): Likewise.
53614         (cimag_test): Likewise.
53615         (clog_test): Likewise.
53616         (clog10_test): Likewise.
53617         (conj_test): Likewise.
53618         (copysign_test): Likewise.
53619         (cos_test): Likewise.
53620         (cos_test_tonearest): Likewise.
53621         (cos_test_towardzero): Likewise.
53622         (cos_test_downward): Likewise.
53623         (cos_test_upward): Likewise.
53624         (cosh_test): Likewise.
53625         (cosh_test_tonearest): Likewise.
53626         (cosh_test_towardzero): Likewise.
53627         (cosh_test_downward): Likewise.
53628         (cosh_test_upward): Likewise.
53629         (cpow_test): Likewise.
53630         (cproj_test): Likewise.
53631         (creal_test): Likewise.
53632         (csin_test): Likewise.
53633         (csinh_test): Likewise.
53634         (csqrt_test): Likewise.
53635         (ctan_test): Likewise.
53636         (ctan_test_tonearest): Likewise.
53637         (ctan_test_towardzero): Likewise.
53638         (ctan_test_downward): Likewise.
53639         (ctan_test_upward): Likewise.
53640         (ctanh_test): Likewise.
53641         (ctanh_test_tonearest): Likewise.
53642         (ctanh_test_towardzero): Likewise.
53643         (ctanh_test_downward): Likewise.
53644         (ctanh_test_upward): Likewise.
53645         (erf_test): Likewise.
53646         (erfc_test): Likewise.
53647         (exp_test): Likewise.
53648         (exp_test_tonearest): Likewise.
53649         (exp_test_towardzero): Likewise.
53650         (exp_test_downward): Likewise.
53651         (exp_test_upward): Likewise.
53652         (exp10_test): Likewise.
53653         (exp10_test_tonearest): Likewise.
53654         (exp10_test_towardzero): Likewise.
53655         (exp10_test_downward): Likewise.
53656         (exp10_test_upward): Likewise.
53657         (pow10_test): Likewise.
53658         (exp2_test): Likewise.
53659         (expm1_test): Likewise.
53660         (expm1_test_tonearest): Likewise.
53661         (expm1_test_towardzero): Likewise.
53662         (expm1_test_downward): Likewise.
53663         (expm1_test_upward): Likewise.
53664         (fabs_test): Likewise.
53665         (fdim_test): Likewise.
53666         (floor_test): Likewise.
53667         (fma_test): Likewise.
53668         (fma_test_towardzero): Likewise.
53669         (fma_test_downward): Likewise.
53670         (fma_test_upward): Likewise.
53671         (fmax_test): Likewise.
53672         (fmin_test): Likewise.
53673         (fmod_test): Likewise.
53674         (fpclassify_test): Likewise.
53675         (frexp_test): Likewise.
53676         (hypot_test): Likewise.
53677         (ilogb_test): Likewise.
53678         (isfinite_test): Likewise.
53679         (finite_test): Likewise.
53680         (isgreater_test): Likewise.
53681         (isgreaterequal_test): Likewise.
53682         (isinf_test): Likewise.
53683         (isless_test): Likewise.
53684         (islessequal_test): Likewise.
53685         (islessgreater_test): Likewise.
53686         (isnan_test): Likewise.
53687         (isnormal_test): Likewise.
53688         (issignaling_test): Likewise.
53689         (isunordered_test): Likewise.
53690         (j0_test): Likewise.
53691         (j1_test): Likewise.
53692         (jn_test): Likewise.
53693         (ldexp_test): Likewise.
53694         (lgamma_test): Likewise.
53695         (gamma_test): Likewise.
53696         (lrint_test): Likewise.
53697         (lrint_test_tonearest): Likewise.
53698         (lrint_test_towardzero): Likewise.
53699         (lrint_test_downward): Likewise.
53700         (lrint_test_upward): Likewise.
53701         (llrint_test): Likewise.
53702         (llrint_test_tonearest): Likewise.
53703         (llrint_test_towardzero): Likewise.
53704         (llrint_test_downward): Likewise.
53705         (llrint_test_upward): Likewise.
53706         (log_test): Likewise.
53707         (log10_test): Likewise.
53708         (log1p_test): Likewise.
53709         (log2_test): Likewise.
53710         (logb_test): Likewise.
53711         (logb_test_downward): Likewise.
53712         (lround_test): Likewise.
53713         (llround_test): Likewise.
53714         (modf_test): Likewise.
53715         (nearbyint_test): Likewise.
53716         (nextafter_test): Likewise.
53717         (nexttoward_test): Likewise.
53718         (pow_test): Likewise.
53719         (pow_test_tonearest): Likewise.
53720         (pow_test_towardzero): Likewise.
53721         (pow_test_downward): Likewise.
53722         (pow_test_upward): Likewise.
53723         (remainder_test): Likewise.
53724         (drem_test): Likewise.
53725         (remainder_test_tonearest): Likewise.
53726         (drem_test_tonearest): Likewise.
53727         (remainder_test_towardzero): Likewise.
53728         (drem_test_towardzero): Likewise.
53729         (remainder_test_downward): Likewise.
53730         (drem_test_downward): Likewise.
53731         (remainder_test_upward): Likewise.
53732         (drem_test_upward): Likewise.
53733         (remquo_test): Likewise.
53734         (rint_test): Likewise.
53735         (rint_test_tonearest): Likewise.
53736         (rint_test_towardzero): Likewise.
53737         (rint_test_downward): Likewise.
53738         (rint_test_upward): Likewise.
53739         (round_test): Likewise.
53740         (scalb_test): Likewise.
53741         (scalbn_test): Likewise.
53742         (scalbln_test): Likewise.
53743         (signbit_test): Likewise.
53744         (sin_test): Likewise.
53745         (sin_test_tonearest): Likewise.
53746         (sin_test_towardzero): Likewise.
53747         (sin_test_downward): Likewise.
53748         (sin_test_upward): Likewise.
53749         (sincos_test): Likewise.
53750         (sinh_test): Likewise.
53751         (sinh_test_tonearest): Likewise.
53752         (sinh_test_towardzero): Likewise.
53753         (sinh_test_downward): Likewise.
53754         (sinh_test_upward): Likewise.
53755         (sqrt_test): Likewise.
53756         (sqrt_test_tonearest): Likewise.
53757         (sqrt_test_towardzero): Likewise.
53758         (sqrt_test_downward): Likewise.
53759         (sqrt_test_upward): Likewise.
53760         (tan_test): Likewise.
53761         (tan_test_tonearest): Likewise.
53762         (tan_test_towardzero): Likewise.
53763         (tan_test_downward): Likewise.
53764         (tan_test_upward): Likewise.
53765         (tanh_test): Likewise.
53766         (tgamma_test): Likewise.
53767         (trunc_test): Likewise.
53768         (y0_test): Likewise.
53769         (y1_test): Likewise.
53770         (yn_test): Likewise.
53771         (significand_test): Likewise.
53772
53773         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
53774         individual tests in comment.
53775         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
53776         (prev_max_error): New variable.
53777         (prev_real_max_error): Likewise.
53778         (prev_imag_max_error): Likewise.
53779         (compare_ulp_data): Don't refer to test names in comment.
53780         (find_test_ulps): Remove function.
53781         (find_function_ulps): Likewise.
53782         (find_complex_function_ulps): Likewise.
53783         (init_max_error): Take function name as argument.  Look up ulps
53784         for that function.
53785         (print_ulps): Remove function.
53786         (print_max_error): Use prev_max_error instead of calling
53787         find_function_ulps.
53788         (print_complex_max_error): Use prev_real_max_error and
53789         prev_imag_max_error instead of calling find_complex_function_ulps.
53790         (check_float_internal): Take max_ulp parameter instead of calling
53791         find_test_ulps.  Don't call print_ulps.
53792         (check_float): Update call to check_float_internal.
53793         (check_complex): Update calls to check_float_internal.
53794         (START): Pass argument to init_max_error.
53795         * math/gen-libm-test.pl (%results): Don't include "kind"
53796         information.
53797         (parse_ulps): Don't handle ulps of individual tests.
53798         (print_ulps_file): Likewise.
53799         (output_ulps): Likewise.
53800         * math/README.libm-test: Update.
53801         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
53802         individual tests.
53803         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
53804         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
53805         * sysdeps/arm/libm-test-ulps: Likewise.
53806         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
53807         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
53808         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
53809         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
53810         * sysdeps/microblaze/libm-test-ulps: Likewise.
53811         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
53812         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
53813         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53814         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
53815         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53816         * sysdeps/sh/libm-test-ulps: Likewise.
53817         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53818         * sysdeps/tile/libm-test-ulps: Likewise.
53819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53820
53821 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
53822
53823         * math/libm-test.inc (print_complex_max_error): Check separately
53824         whether real and imaginary errors are within allowed range and
53825         pass 0 to print_complex_function_ulps instead of value within
53826         allowed range.
53827
53828 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53829
53830         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
53831         formatting.
53832         (get_handles_fopen): Likewise.
53833         (do_write_test): Likewise.
53834
53835         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
53836
53837         * libio/fileops.c (do_ftell): Use cached offset when
53838         available.
53839         * libio/iofwide.c (do_ftell_wide): Likewise.
53840         * libio/iofdopen.c (_IO_new_fdopen): Don't use
53841         _IO_file_attach.
53842         * libio/wfileops.c (_IO_fwide): Don't cache offset.
53843
53844         [BZ #16532]
53845         * libio/libioP.h (get_file_offset): New function.
53846         * libio/fileops.c (get_file_offset): Likewise.
53847         (do_ftell): Likewise.
53848         (_IO_new_file_seekoff): Split out ftell logic.
53849         * libio/wfileops.c (do_ftell_wide): Likewise.
53850         (_IO_wfile_seekoff): Split out ftell logic.
53851         * libio/tst-ftell-active-handler.c: New test case.
53852         * libio/Makefile (tests): Add it.
53853
53854 2014-03-03  Roland McGrath  <roland@hack.frob.com>
53855
53856         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
53857         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
53858
53859 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
53860
53861         [BZ #16639]
53862         * nscd/connections.c (nscd_init): Call do_exit.
53863         (start_threads): Call do_exit and notify_parent.
53864         (begin_drop_privileges): Call do_exit.
53865         (finish_drop_privileges): Likewise.
53866         * nscd/selinux.c (preserve_capabilities): Likewise.
53867         (install_real_capabilities): Likewise.
53868         (nscd_selinux_enabled): Likewise.
53869         (avc_create_thread): Likewise.
53870         (avc_alloc_lock): Likewise.
53871         (nscd_avc_init): Likewise.
53872         * nscd/nscd.c (parent_fd): New static variable.
53873         (main): Create a pipe between parent and child processes.
53874         Skip closing parent_fd.
53875         (monitor_child): New function.
53876         (do_exit): Likewise.
53877         (notify_parent): Likewise.
53878         * nscd/nscd.h (notify_parent): Likewise.
53879         (do_exit): Likewise.
53880
53881 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
53882
53883         * malloc/malloc.c (__libc_calloc): Revert last change.
53884
53885 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53886
53887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53888
53889 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
53890
53891         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
53892         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
53893         implementation.
53894         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
53895         (__libc_ifunc_impl_list): Likewise.
53896         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
53897         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
53898         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
53899         * string/strrchr.c: Define STRRCHR.
53900
53901 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
53902
53903         * benchtest/bench-strtok.c (simple_strtok): Delete.
53904         (strtok_string): Use as benchmark.
53905         * string/strtok (STRTOK): New macro.
53906
53907 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
53908
53909         * manual/threads.texi: Add header and standard comments to all
53910         functions.
53911
53912         * elf/dl-lookup.c (check_match): New function.
53913         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
53914         (do_lookup_x): Remove nested function check_match. Use non-nested
53915         function check_match.
53916
53917 2014-02-28  Roland McGrath  <roland@hack.frob.com>
53918
53919         * csu/Makefile (generated, before-compile): Use += rather than =.
53920         * catgets/Makefile (generated, generated-dirs): Likewise.
53921         * debug/Makefile (generated): Likewise.
53922         * dlfcn/Makefile (generated): Likewise.
53923         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
53924         * iconvdata/Makefile (before-compile, generated): Likewise.
53925         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
53926         * libio/Makefile (generated): Likewise.
53927         * malloc/Makefile (generated): Likewise.
53928         * manual/Makefile (generated, generated-dirs): Likewise.
53929         * misc/Makefile (generated): Likewise.
53930         * posix/Makefile (generated): Likewise.
53931         * resolv/Makefile (generated): Likewise.
53932         * sunrpc/Makefile (generated, generated-dirs): Likewise.
53933         * timezone/Makefile (generated, generated-dirs): Likewise.
53934
53935         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
53936
53937 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53938
53939         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
53940         power8 implementation.
53941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
53942         file: POWER8 llround ifunc implementation.
53943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
53944         (__lllround): Add POWER8 implementation.
53945         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
53946         POWER8 llround implementation.
53947
53948         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
53949         power8 implementation.
53950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
53951         file: POWER8 llrint ifunc implementation.
53952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
53953         Add POWER8 implementation.
53954         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
53955         POWER8 llrint implementation.
53956
53957         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
53958         power8 implementation.
53959         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
53960         file: POWER8 finite ifunc implementation.
53961         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
53962         Add POWER8 implementation.
53963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
53964         Likewise.
53965         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
53966         POWER8 finite implementation.
53967         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
53968
53969         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
53970         power8 implementation.
53971         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
53972         file: POWER8 isinf ifunc implementation.
53973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
53974         POWER8 implementation.
53975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
53976         Likewise.
53977         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
53978         isinf implementation.
53979         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
53980
53981         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
53982         (INIT_ARCH): Add hwcap2 initialization.
53983         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
53984         power8 implementation.
53985         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
53986         file: POWER8 isnan ifunc implementation.
53987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
53988         POWER8 implementation.
53989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
53990         Likewise.
53991         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
53992         isnan implementation.
53993         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
53994
53995 2014-02-27  Joey Ye  <joey.ye@arm.com>
53996
53997         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
53998         (_FP_NANFRAC_Q): Set to zero.
53999
54000 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54001
54002         [BZ #16623]
54003         * math/auto-libm-test-in: New test inputs.
54004         * math/auto-libm-test-out: Regenerate.
54005         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
54006         and DA.
54007         (__cos): Likewise.
54008         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
54009
54010 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
54011
54012         * scripts/evaluate-test.sh: Take new argument indicating whether
54013         failure is expected.
54014         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
54015         indicating whether failure is expected.
54016         * conform/Makefile (test-xfail-run-conformtest): New variable.
54017         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
54018         level.
54019         * posix/Makefile (test-xfail-annexc): New variable.
54020         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
54021
54022 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
54023
54024         * argp/Makefile: Include Makeconfig immediately after defining
54025         subdir.
54026         * assert/Makefile: Likewise.
54027         * benchtests/Makefile: Likewise.
54028         * catgets/Makefile: Likewise.
54029         * conform/Makefile: Likewise.
54030         * crypt/Makefile: Likewise.
54031         * csu/Makefile: Likewise.
54032         (all): Remove target.
54033         * ctype/Makefile: Include Makeconfig immediately after defining
54034         subdir.
54035         * debug/Makefile: Likewise.
54036         * dirent/Makefile: Likewise.
54037         * dlfcn/Makefile: Likewise.
54038         * gmon/Makefile: Likewise.
54039         * gnulib/Makefile: Likewise.
54040         * grp/Makefile: Likewise.
54041         * gshadow/Makefile: Likewise.
54042         * hesiod/Makefile: Likewise.
54043         * hurd/Makefile: Likewise.
54044         (all): Remove target.
54045         * iconvdata/Makefile: Include Makeconfig immediately after
54046         defining subdir.
54047         * inet/Makefile: Likewise.
54048         * intl/Makefile: Likewise.
54049         * io/Makefile: Likewise.
54050         * libio/Makefile: Likewise.
54051         (all): Remove target.
54052         * locale/Makefile: Include Makeconfig immediately after defining
54053         subdir.
54054         * login/Makefile: Likewise.
54055         * mach/Makefile: Likewise.
54056         (all): Remove target.
54057         * malloc/Makefile: Include Makeconfig immediately after defining
54058         subdir.
54059         (all): Remove target.
54060         * manual/Makefile: Include Makeconfig immediately after defining
54061         subdir.
54062         * math/Makefile: Likewise.
54063         * misc/Makefile: Likewise.
54064         * nis/Makefile: Likewise.
54065         * nss/Makefile: Likewise.
54066         * po/Makefile: Likewise.
54067         (all): Remove target.
54068         * posix/Makefile: Include Makeconfig immediately after defining
54069         subdir.
54070         * pwd/Makefile: Likewise.
54071         * resolv/Makefile: Likewise.
54072         * resource/Makefile: Likewise.
54073         * rt/Makefile: Likewise.
54074         * setjmp/Makefile: Likewise.
54075         * shadow/Makefile: Likewise.
54076         * signal/Makefile: Likewise.
54077         * socket/Makefile: Likewise.
54078         * soft-fp/Makefile: Likewise.
54079         * stdio-common/Makefile: Likewise.
54080         * stdlib/Makefile: Likewise.
54081         * streams/Makefile: Likewise.
54082         * string/Makefile: Likewise.
54083         * sunrpc/Makefile: Likewise.
54084         (all): Remove target.
54085         * sysvipc/Makefile: Include Makeconfig immediately after defining
54086         subdir.
54087         * termios/Makefile: Likewise.
54088         * time/Makefile: Likewise.
54089         * timezone/Makefile: Likewise.
54090         (all): Remove target.
54091         * wcsmbs/Makefile: Include Makeconfig immediately after defining
54092         subdir.
54093         * wctype/Makefile: Likewise.
54094
54095 2014-02-26  Steve Ellcey  <sellcey@mips.com>
54096
54097         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
54098         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
54099         (libc_feholdexcept_setround_mips): Ditto.
54100         (libc_feholdsetround): New.
54101         (libc_feholdsetroundf): New.
54102         (libc_feholdsetroundl): New.
54103         (libc_feupdateenv_test_mips): New.
54104         (libc_feupdateenv_test): New.
54105         (libc_feupdateenv_testf): New.
54106         (libc_feupdateenv_testl): New.
54107         (libc_feresetround): New.
54108         (libc_feresetroundf): New.
54109         (libc_feresetroundl): New.
54110         (libc_fetestexcept_mips): New.
54111         (libc_fetestexcept): New.
54112         (libc_fetestexceptf): New.
54113         (libc_fetestexceptl): New.
54114         (HAVE_RM_CTX): New.
54115         (libc_feholdexcept_setround_mips_ctx): New.
54116         (libc_feholdexcept_setround_ctx): New.
54117         (libc_feholdexcept_setroundf_ctx): New.
54118         (libc_feholdexcept_setroundl_ctx): New.
54119         (libc_fesetenv_mips_ctx): New.
54120         (libc_fesetenv_ctx): New.
54121         (libc_fesetenv_ctxf): New.
54122         (libc_fesetenv_ctxl): New.
54123         (libc_feupdateenv_mips_ctx): New.
54124         (libc_feupdateenv_ctx): New.
54125         (libc_feupdateenvf_ctx): New.
54126         (libc_feupdateenvl_ctx): New.
54127         (libc_feholdsetround_mips_ctx): New.
54128         (libc_feholdsetround_ctx): New.
54129         (libc_feholdsetroundf_ctx): New.
54130         (libc_feholdsetroundl_ctx): New.
54131         (libc_feresetround_mips_ctx): New.
54132         (libc_feresetround_ctx): New.
54133         (libc_feresetroundf_ctx): New.
54134         (libc_feresetroundl_ctx): New.
54135
54136 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
54137
54138         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
54139
54140         * manual/ipc.texi: New file.
54141         * manual/Makefile (chapters): Add ipc.
54142         * manual/job.texi: Add "Inter-Process Communication" to next.
54143         * manual/process.texi: Add "Inter-Process Communication" to prev.
54144
54145 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54146
54147         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54148
54149 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
54150
54151         * malloc/malloc.c (__libc_calloc): Simplify implementation.
54152
54153         * manual/arith.texi: Fix spaces after sentences.
54154         * manual/charset.texi: Likewise.
54155         * manual/errno.texi: Likewise.
54156         * manual/install.texi: Likewise.
54157         * manual/llio.texi: Likewise.
54158         * manual/locale.texi: Likewise.
54159         * manual/maint.texi: Likewise.
54160         * manual/math.texi: Likewise.
54161         * manual/memory.texi: Likewise.
54162         * manual/message.texi: Likewise.
54163         * manual/probes.texi: Likewise.
54164         * manual/resource.texi: Likewise.
54165         * manual/signal.texi: Likewise.
54166         * manual/socket.texi: Likewise.
54167         * manual/stdio.texi: Likewise.
54168         * manual/string.texi: Likewise.
54169         * manual/time.texi: Likewise.
54170         * manual/users.texi: Likewise.
54171
54172 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
54173
54174         [BZ #16632]
54175         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
54176         _DEFAULT_SOURCE is defined.
54177
54178 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
54179             Carlos O'Donell  <carlos@redhat.com>
54180
54181         [BZ #16613]
54182         * elf/dl-tls.c (_dl_count_modids): New function.
54183         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
54184         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
54185         audit library and increment generation counter.
54186         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
54187         * elf/tst-audit9.c: New file.
54188         * elf/tst-auditmod9a.c: New file.
54189         * elf/tst-auditmod9b.c: New file.
54190         * elf/Makefile: Add rules to build and run tst-audit9.
54191
54192 2014-02-25  Florian Weimer  <fweimer@redhat.com>
54193
54194         [BZ #15347]
54195         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
54196
54197 2014-02-25  Will Newton  <will.newton@linaro.org>
54198
54199         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
54200         (__longjmp): Restore sp and lr before restoring callee
54201         saved registers.  Add longjmp and longjmp_target
54202         SystemTap probe point.
54203         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
54204         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
54205         Define to zero to match jmpbuf layout.
54206         * sysdeps/arm/setjmp.S: Include stap-probe.h.
54207         (__sigsetjmp): Save sp and lr before saving callee
54208         saved registers.  Add setjmp SystemTap probe point.
54209
54210 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
54211
54212         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
54213
54214 2014-02-24  Andreas Schwab  <schwab@suse.de>
54215
54216         [BZ #15804]
54217         * elf/pldd.c (wait_for_ptrace_stop): New function.
54218         (main): Call it after attaching.
54219
54220 2014-02-22  Roland McGrath  <roland@hack.frob.com>
54221
54222         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
54223         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
54224         Versions files is now verboten.
54225         * hurd/Versions (libc: GLIBC_2.0):
54226         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
54227         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
54228         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
54229         * mach/Versions: Likewise.
54230
54231         * csu/Versions: Remove unused %include.
54232         * resolv/Versions: Likewise.
54233
54234 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
54235
54236         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
54237         ($(objpfx)check-local-headers.out): Likewise.
54238         ($(objpfx)begin-end-check.out): Likewise.
54239         * Makerules (check-abi-%.out): Likewise.
54240         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
54241         ($(objpfx)test2.cat): Likewise.
54242         ($(objpfx)de/libc.cat): Likewise.
54243         ($(objpfx)test-gencat.out): Likewise.
54244         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
54245         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
54246         ($(objpfx)noload-mem): Likewise.
54247         ($(objpfx)tst-pathopt.out): Likewise.
54248         ($(objpfx)tst-rtld-load-self.out): Likewise.
54249         ($(objpfx)tst-array1-cmp.out): Likewise.
54250         ($(objpfx)tst-array1-static-cmp.out): Likewise.
54251         ($(objpfx)tst-array2-cmp.out): Likewise.
54252         ($(objpfx)tst-array3-cmp.out): Likewise.
54253         ($(objpfx)tst-array4-cmp.out): Likewise.
54254         ($(objpfx)tst-array5-cmp.out): Likewise.
54255         ($(objpfx)tst-array5-static-cmp.out): Likewise.
54256         ($(objpfx)check-textrel.out): Likewise.
54257         ($(objpfx)check-execstack.out): Likewise.
54258         ($(objpfx)check-localplt.out): Likewise.
54259         ($(objpfx)order2-cmp.out): Likewise.
54260         ($(objpfx)tst-leaks1-mem): Likewise.
54261         ($(objpfx)tst-leaks1-static-mem): Likewise.
54262         ($(objpfx)tst-initorder-cmp.out): Likewise.
54263         ($(objpfx)tst-initorder2-cmp.out): Likewise.
54264         ($(objpfx)tst-unused-dep.out): Likewise.
54265         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
54266         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
54267         * iconv/Makefile (test-iconvconfig): Likewise.
54268         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
54269         ($(objpfx)iconv-test.out): Likewise.
54270         ($(objpfx)tst-tables.out): Likewise.
54271         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
54272         ($(objpfx)tst-gettext.out): Likewise.
54273         ($(objpfx)tst-translit.out): Likewise.
54274         ($(objpfx)tst-gettext2.out): Likewise.
54275         ($(objpfx)tst-gettext4.out): Likewise.
54276         ($(objpfx)tst-gettext6.out): Likewise.
54277         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
54278         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
54279         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
54280         ($(objpfx)tst-fopenloc-mem.out): Likewise.
54281         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
54282         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
54283         * posix/Makefile ($(objpfx)globtest.out): Likewise.
54284         ($(objpfx)wordexp-tst.out): Likewise.
54285         ($(objpfx)annexc.out): Likewise.
54286         ($(objpfx)tst-fnmatch-mem): Likewise.
54287         ($(objpfx)bug-regex2-mem): Likewise.
54288         ($(objpfx)bug-regex14-mem): Likewise.
54289         ($(objpfx)bug-regex21-mem): Likewise.
54290         ($(objpfx)bug-regex31-mem): Likewise.
54291         ($(objpfx)tst-vfork3-mem): Likewise.
54292         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
54293         ($(objpfx)tst-pcre-mem): Likewise.
54294         ($(objpfx)tst-boost-mem): Likewise.
54295         ($(objpfx)tst-getconf.out): Likewise.
54296         ($(objpfx)bug-ga2-mem): Likewise.
54297         ($(objpfx)bug-glob2-mem): Likewise.
54298         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
54299         ($(objpfx)mtrace-tst-leaks2): Likewise.
54300         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
54301         ($(objpfx)tst-printf.out): Likewise.
54302         ($(objpfx)tst-setvbuf1.out): Likewise.
54303         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
54304         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
54305         ($(objpfx)tst-fmtmsg.out): Likewise.
54306         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
54307         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
54308
54309         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
54310         * bits/sigaction.h [__USE_MISC]: Likewise.
54311         * bits/waitstatus.h: Update #endif comments.
54312         * ctype/ctype.h: Likewise.
54313         * dirent/dirent.h: Likewise.
54314         [__USE_MISC]: Remove redundant conditionals.
54315         * grp/grp.h: Update #endif comments.
54316         [__USE_GNU]: Remove redundant conditionals.
54317         [__USE_MISC]: Likewise.
54318         * inet/netinet/in.h [__USE_GNU]: Likewise.
54319         * io/sys/stat.h [__USE_MISC]: Likewise.
54320         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
54321         * libio/bits/stdio.h: Update #endif comments.
54322         [__USE_MISC]: Remove redundant conditionals.
54323         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
54324         * libio/stdio.h: Update #endif comments.
54325         [__USE_MISC]: Remove redundant conditionals.
54326         * math/bits/math-finite.h [__USE_MISC]: Likewise.
54327         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
54328         * math/math.h: Update #else and #endif comments.
54329         [__USE_MISC]: Remove redundant conditionals.
54330         * misc/sys/uio.h: Update #endif comments.
54331         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
54332         * posix/glob.h [__USE_MISC]: Likewise.
54333         * posix/sys/types.h: Update #endif comments.
54334         [__USE_MISC]: Remove redundant conditionals.
54335         * posix/sys/wait.h: Update #endif comments.
54336         [__USE_MISC]: Remove redundant conditionals.
54337         * posix/unistd.h: Update #endif comments.
54338         [__USE_MISC]: Remove redundant conditionals.
54339         * pwd/pwd.h [__USE_GNU]: Likewise.
54340         [__USE_MISC]: Likewise.
54341         * resolv/netdb.h [__USE_GNU]: Likewise.
54342         * signal/signal.h: Update #endif comments.
54343         [__USE_MISC]: Remove redundant conditionals.
54344         * stdlib/stdlib.h: Update #else and #endif comments.
54345         [__USE_MISC]: Remove redundant conditionals.
54346         [__USE_GNU]: Likewise.
54347         * string/bits/string2.h [__USE_MISC]: Likewise.
54348         * string/string.h: Update #endif comments.
54349         [__USE_MISC]: Remove redundant conditionals.
54350         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
54351         Likewise.
54352         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
54353         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
54354         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
54355         Likewise.
54356         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
54357         Likewise.
54358         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
54359         comments.
54360         [__USE_MISC]: Remove redundant conditionals.
54361         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
54362         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
54363         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
54364         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
54365         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
54366         Likewise.
54367         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
54368         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
54369         Likewise.
54370         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
54371         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
54372         Likewise.
54373         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
54374         Likewise.
54375         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
54376         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
54377         Likewise.
54378         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
54379         Likewise.
54380         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
54381         * sysdeps/x86/bits/string.h: Update #endif comments.
54382         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
54383         conditionals.
54384         * time/sys/time.h: Update #endif comments.
54385         * time/time.h: Likewise.
54386         [__USE_MISC]: Remove redundant conditionals.
54387
54388 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
54389
54390         [BZ #16600]
54391         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
54392
54393 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
54394
54395         * Versions.def (librt): Add GLIBC_2.17.
54396
54397 2014-02-21  Adam Conrad  <adconrad@0c3.net>
54398
54399         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
54400         synonym for _SYS_AUXV_H to allow direct inclusion.
54401         * sysdeps/sparc/bits/hwcap.h: Likewise.
54402         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
54403         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
54404         * sysdeps/sparc/sysdep.h: Likewise.
54405
54406 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
54407
54408         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
54409
54410 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
54411
54412         * benchtests/bench-strrchr.c: Print length instead of position.
54413
54414 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
54415
54416         [BZ #16611]
54417         * sysdeps/unix/sysv/linux/kernel-features.h
54418         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
54419         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
54420         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
54421         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
54422         Likewise.
54423         [__i386__ || __powerpc__ || __sh__ || __sparc__]
54424         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
54425         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
54426         (__ASSUME_SENDMMSG): Define instead of using previous
54427         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
54428         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
54429         (__ASSUME_SENDMMSG_SYSCALL): Define.
54430         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
54431         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
54432         Likewise.
54433         * sysdeps/unix/sysv/linux/arm/kernel-features.h
54434         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
54435         Likewise.
54436         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
54437         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
54438         Likewise.
54439         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
54440         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
54441         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
54442         [__ASSUME_SENDMMSG]: Change conditionals to
54443         [__ASSUME_SENDMMSG_SOCKETCALL].
54444         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
54445         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
54446         Define.
54447         * sysdeps/unix/sysv/linux/mips/kernel-features.h
54448         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
54449         Likewise.
54450         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
54451         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
54452         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
54453         [!__ASSUME_SENDMMSG]: Change conditional to
54454         [!__ASSUME_SENDMMSG_SOCKETCALL].
54455         * sysdeps/unix/sysv/linux/tile/kernel-features.h
54456         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
54457         Define.
54458
54459         [BZ #16610]
54460         * sysdeps/unix/sysv/linux/kernel-features.h
54461         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
54462         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
54463         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
54464         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
54465         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
54466         [__i386__ || __sparc__]
54467         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
54468         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
54469         (__ASSUME_RECVMMSG): Define instead of using previous
54470         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
54471         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
54472         (__ASSUME_RECVMMSG_SYSCALL): Define.
54473         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
54474         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
54475         Likewise.
54476         * sysdeps/unix/sysv/linux/arm/kernel-features.h
54477         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
54478         Likewise.
54479         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
54480         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
54481         Likewise.
54482         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
54483         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
54484         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
54485         [__ASSUME_RECVMMSG]: Change condition to
54486         [__ASSUME_RECVMMSG_SOCKETCALL].
54487         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
54488         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
54489         Define.
54490         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
54491         * sysdeps/unix/sysv/linux/mips/kernel-features.h
54492         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
54493         Likewise.
54494         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
54495         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
54496         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
54497         [!__ASSUME_RECVMMSG]: Change condition to
54498         [!__ASSUME_RECVMMSG_SOCKETCALL].
54499         * sysdeps/unix/sysv/linux/tile/kernel-features.h
54500         (__ASSUME_RECVMMSG_SYSCALL): Define.
54501
54502         [BZ #16609]
54503         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
54504         __powerpc__ || __s390__ || __sh__ || __sparc__]
54505         (__ASSUME_SOCKETCALL): Define.
54506         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
54507         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
54508         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
54509         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
54510         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
54511         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
54512         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
54513         (__ASSUME_ACCEPT4): Define instead of using previous
54514         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
54515         __powerpc__ || __sparc__ || __s390__)] condition.
54516         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
54517         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
54518         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
54519         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
54520         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
54521         [!__ASSUME_ACCEPT4]: Change condition to
54522         [!__ASSUME_ACCEPT4_SOCKETCALL].
54523         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
54524         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
54525         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
54526         * sysdeps/unix/sysv/linux/arm/kernel-features.h
54527         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
54528         __ASSUME_ACCEPT4_SYSCALL.
54529         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
54530         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
54531         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
54532         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
54533         __ASSUME_ACCEPT4_SYSCALL.
54534         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
54535         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
54536         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
54537         [__ASSUME_ACCEPT4]: Change condition to
54538         [__ASSUME_ACCEPT4_SOCKETCALL].
54539         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
54540         (__ASSUME_SOCKETCALL): Define.
54541         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
54542         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
54543         (__ASSUME_SOCKETCALL): Define.
54544         (__ASSUME_ACCEPT4): Remove.
54545         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
54546         Define.
54547         * sysdeps/unix/sysv/linux/mips/kernel-features.h
54548         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
54549         Likewise.
54550         * sysdeps/unix/sysv/linux/tile/kernel-features.h
54551         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
54552
54553         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
54554         macro.
54555         (HWCAP_ARM_LPAE): Likewise.
54556         (HWCAP_ARM_EVTSTRM): Likewise.
54557         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
54558         Add vpfd32, lpae and evtstrm.
54559         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
54560         Increase to 22.
54561
54562 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
54563
54564         * math/auto-libm-test-in: Add tests of clog10.
54565         * math/auto-libm-test-out: Regenerated.
54566         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
54567         * sysdeps/i386/fpu/libm-test-ulps: Update.
54568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54569
54570 2014-02-18  Andreas Schwab  <schwab@suse.de>
54571
54572         [BZ #16574]
54573         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
54574         Store non-zero if the second buffer was newly allocated.
54575         (send_dg): Likewise.
54576         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
54577         to send_vc and send_dg.
54578         (res_nsend): Pass NULL for ansp2_malloced.
54579         * resolv/res_query.c (__libc_res_nquery): Add parameter
54580         answerp2_malloced and pass it down to __libc_res_nsend.
54581         (res_nquery): Pass additional NULL to __libc_res_nquery.
54582         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
54583         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
54584         second answer buffer if answerp2_malloced was set.
54585         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
54586         (__libc_res_nquerydomain): Add parameter
54587         answerp2_malloced and pass it down to __libc_res_nquery.
54588         (res_nquerydomain): Pass additional NULL to
54589         __libc_res_nquerydomain.
54590         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
54591         additional NULL to __libc_res_nsend and __libc_res_nquery.
54592         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
54593         additional NULL to __libc_res_nsearch.
54594         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
54595         parameter of __libc_res_nsearch to check for separately allocated
54596         second buffer.
54597         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
54598         __libc_res_nquery.
54599         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
54600         additional NULL to __libc_res_nquery.
54601         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
54602         __libc_res_nsearch.
54603         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
54604         * include/resolv.h: Update prototypes of __libc_res_nquery,
54605         __libc_res_nsearch, __libc_res_nsend.
54606
54607 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
54608
54609         * math/auto-libm-test-in: Add tests of fma.
54610         * math/auto-libm-test-out: Regenerated.
54611         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
54612         (fma_towardzero_test_data): Likewise.
54613         (fma_downward_test_data): Likewise.
54614         (fma_upward_test_data): Likewise.
54615         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
54616         mpc_mode.
54617         (rounding_modes): Add values for new field.
54618         (func_calc_method): Add value mpfr_fff_f.
54619         (func_calc_desc): Add mpfr_fff_f union field.
54620         (test_function): Add field exact_args.
54621         (FUNC): Add macro argument EXACT_ARGS.
54622         (FUNC_mpfr_f_f): Update call to FUNC.
54623         (FUNC_mpfr_f_f): Likewise.
54624         (FUNC_mpfr_ff_f): Likewise.
54625         (FUNC_mpfr_if_f): Likewise.
54626         (FUNC_mpc_c_f): Likewise.
54627         (FUNC_mpc_c_c): Likewise.
54628         (test_functions): Add fma.  Update calls to FUNC.
54629         (handle_input_arg): Add argument exact_args.
54630         (add_test): Update call to handle_input_arg.
54631         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
54632         (output_for_one_input_case): Update call to calc_generic_results.
54633         Recalculate exact zero results in each rounding mode.
54634
54635         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
54636         non-negative before setting low bit.
54637         * math/auto-libm-test-in: Mark one asin test possibly having
54638         spurious underflow.
54639         * math/auto-libm-test-out: Regenerated.
54640         * sysdeps/i386/fpu/libm-test-ulps: Update.
54641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54642
54643 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
54644
54645         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
54646         * sysdeps/unix/sysv/linux/microblaze: Move directory from
54647         ports/sysdeps/unix/sysv/linux/microblaze.
54648         * README: Add missing listing for microblaze*-*-linux-gnu.
54649
54650 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
54651
54652         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
54653         duplicate code
54654
54655 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
54656
54657         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
54658         * sysdeps/unix/sysv/linux/ia64: Move directory from
54659         ports/sysdeps/unix/sysv/linux/ia64.
54660         * README: Update listing for ia64-*-linux-gnu.
54661
54662 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
54663             Joseph Myers  <joseph@codesourcery.com>
54664
54665         * Makeconfig (test-name): New variable.
54666         (evaluate-test): Likewise.
54667         * Makerules (do-test-clean): Remove .test-result files.
54668         (common-mostlyclean): Likewise.
54669         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
54670         * scripts/evaluate-test.sh: New file.
54671
54672 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
54673
54674         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
54675         separate $(objpfx)tst-fopenloc-cmp.out and
54676         $(objpfx)tst-fopenloc-mem.out targets.
54677         (tests): Update dependencies.
54678         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
54679         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
54680         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
54681         (tst-rxspencer-no-utf8-ARGS): New variable.
54682         (tst-rxspencer-no-utf8-ENV): Likewise.
54683         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
54684         instead of $(objpfx)tst-rxspencer-mem.
54685         ($(objpfx)tst-rxspencer-mem): Change target to
54686         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
54687         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
54688         * posix/tst-rxspencer-no-utf8.c: New file.
54689
54690         * elf/Makefile ($(objpfx)order.out): Remove rule.
54691         [$(run-built-tests) = yes] (tests): Depend on
54692         $(objpfx)order-cmp.out.
54693         ($(objpfx)order-cmp.out): New rule.
54694         [$(run-built-tests) = yes] (tests): Depend on
54695         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
54696         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
54697         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
54698         $(objpfx)tst-array5-static-cmp.out.
54699         ($(objpfx)tst-array1.out): Remove rule.
54700         ($(objpfx)tst-array1-cmp.out): New rule.
54701         ($(objpfx)tst-array1-static.out): Remove rule.
54702         ($(objpfx)tst-array1-static-cmp.out): New rule.
54703         ($(objpfx)tst-array2.out): Remove rule.
54704         ($(objpfx)tst-array2-cmp.out): New rule.
54705         ($(objpfx)tst-array3.out): Remove rule.
54706         ($(objpfx)tst-array3-cmp.out): New rule.
54707         ($(objpfx)tst-array4.out): Remove rule.
54708         ($(objpfx)tst-array4-cmp.out): New rule.
54709         ($(objpfx)tst-array5.out): Remove rule.
54710         ($(objpfx)tst-array5-cmp.out): New rule.
54711         ($(objpfx)tst-array5-static.out): Remove rule.
54712         ($(objpfx)tst-array5-static-cmp.out): New rule.
54713         [$(run-built-tests) = yes] (tests): Depend on
54714         $(objpfx)order2-cmp.out.
54715         ($(objpfx)order2.out): Remove rule.
54716         ($(objpfx)order2-cmp.out): New rule.
54717         ($(objpfx)tst-initorder.out): Remove rule.
54718         [$(run-built-tests) = yes] (tests): Depend on
54719         $(objpfx)tst-initorder-cmp.out.
54720         ($(objpfx)tst-initorder-cmp.out): New rule.
54721         ($(objpfx)tst-initorder2.out): Remove rule.
54722         [$(run-built-tests) = yes] (tests): Depend on
54723         $(objpfx)tst-initorder2-cmp.out.
54724         ($(objpfx)tst-initorder2-cmp.out): New rule.
54725         [$(run-built-tests) = yes] (tests): Depend on
54726         $(objpfx)tst-unused-dep-cmp.out.
54727         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
54728         ($(objpfx)tst-unused-dep-cmp.out): New rule.
54729         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
54730         on $(objpfx)tst-setvbuf1-cmp.out.
54731         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
54732         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
54733         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
54734         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
54735         ($(objpfx)tst-svc.out): Remove rule.
54736         ($(objpfx)tst-svc-cmp.out): New rule.
54737
54738 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
54739
54740         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
54741         * ctype/ctype.h [__USE_MISC]: Likewise.
54742         * dirent/dirent.h [__USE_MISC]: Likewise.
54743         * grp/grp.h [__USE_MISC]: Likewise.
54744         * io/fcntl.h [__USE_MISC]: Likewise.
54745         * io/sys/stat.h [__USE_MISC]: Likewise.
54746         * libio/stdio.h [__USE_MISC]: Likewise.
54747         * posix/unistd.h [__USE_MISC]: Likewise.
54748         * pwd/pwd.h [__USE_MISC]: Likewise.
54749         * stdlib.h [__USE_MISC]: Likewise.
54750         * string/bits/string2.h [__USE_MISC]: Likewise.
54751         * string/string.h [__USE_MISC]: Likewise.
54752         * time/time.h [__USE_MISC]: Likewise.
54753
54754 2014-02-13  Andreas Schwab  <schwab@suse.de>
54755
54756         [BZ #16574]
54757         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
54758         second answer buffer if it was separately allocated.
54759
54760 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
54761
54762         * sysdeps/mips/math-tests.h: Include <features.h>.
54763         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
54764         (ROUNDING_TESTS_long_double): Do not define.
54765         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
54766         (EXCEPTION_TESTS_long_double): Likewise.
54767         * sysdeps/mips/mips64/libm-test-ulps: Update.
54768
54769         * include/features.h (__USE_BSD): Remove macro definitions.
54770         (__USE_SVID): Likewise.
54771         (_BSD_SOURCE): Likewise.
54772         (_SVID_SOURCE): Likewise.
54773         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
54774         from definition of _DEFAULT_SOURCE.
54775         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
54776         [_DEFAULT_SOURCE].
54777         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
54778         * bits/mman.h [__USE_BSD]: Likewise.
54779         * bits/termios.h [__USE_BSD]: Likewise.
54780         * bits/waitstatus.h [__USE_BSD]: Likewise.
54781         * ctype/ctype.h [__USE_SVID]: Likewise.
54782         * dirent/dirent.h [__USE_BSD]: Likewise.
54783         * grp/grp.h [__USE_SVID]: Likewise.
54784         [__USE_BSD]: Likewise.
54785         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
54786         * io/fcntl.h [__USE_BSD]: Likewise.
54787         * io/ftw.h [__USE_BSD]: Likewise.
54788         * io/sys/stat.h [__USE_BSD]: Likewise.
54789         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
54790         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
54791         * libio/stdio.h [__USE_SVID]: Likewise.
54792         [__USE_BSD]: Likewise.
54793         * math/math.h [__USE_SVID]: Likewise.
54794         [__USE_BSD]: Likewise.
54795         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
54796         * misc/bits/syslog.h [__USE_BSD]: Likewise.
54797         * misc/search.h [__USE_SVID]: Likewise.
54798         * misc/sys/mman.h [__USE_BSD]: Likewise.
54799         * misc/sys/syslog.h [__USE_BSD]: Likewise.
54800         * misc/sys/uio.h [__USE_BSD]: Likewise.
54801         * posix/bits/unistd.h [__USE_BSD]: Likewise.
54802         * posix/glob.h [__USE_BSD]: Likewise.
54803         * posix/regex.h [__USE_BSD]: Likewise.
54804         * posix/sys/types.h [__USE_BSD]: Likewise.
54805         [__USE_SVID]: Likewise.
54806         * posix/sys/utsname.h [__USE_SVID]: Likewise.
54807         * posix/sys/wait.h [__USE_BSD]: Likewise.
54808         [__USE_SVID]: Likewise.
54809         * posix/unistd.h [__USE_BSD]: Likewise.
54810         [__USE_SVID]: Likewise.
54811         * pwd/pwd.h [__USE_SVID]: Likewise.
54812         * resolv/netdb.h [__USE_BSD]: Likewise.
54813         * setjmp/setjmp.h [__USE_BSD]: Likewise.
54814         * signal/signal.h [__USE_BSD]: Likewise.
54815         [__USE_SVID]: Likewise.
54816         * socket/sys/socket.h [__USE_BSD]: Likewise.
54817         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
54818         * stdlib/stdlib.h [__USE_BSD]: Likewise.
54819         [__USE_SVID]: Likewise.
54820         * string/bits/string2.h [__USE_BSD]: Likewise.
54821         [__USE_SVID]: Likewise.
54822         * string/bits/string3.h [__USE_BSD]: Likewise.
54823         * string/endian.h [__USE_BSD]: Likewise.
54824         * string/string.h [__USE_SVID]: Likewise.
54825         [__USE_BSD]: Likewise.
54826         * string/strings.h [__USE_BSD]: Likewise.
54827         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
54828         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
54829         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
54830         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
54831         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
54832         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
54833         Likewise.
54834         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
54835         Likewise.
54836         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
54837         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
54838         Likewise.
54839         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
54840         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
54841         Likewise.
54842         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
54843         Likewise.
54844         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
54845         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
54846         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
54847         Likewise.
54848         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
54849         Likewise.
54850         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
54851         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
54852         * termios/termios.h [__USE_BSD]: Likewise.
54853         * time/sys/time.h [__USE_BSD]: Likewise.
54854         * time/time.h [__USE_BSD]: Likewise.
54855         [__USE_SVID]: Likewise.
54856
54857         * Makefile (subdir_targets): Remove subdir_lint.out.
54858
54859         * stdio-common/Makefile (do-tst-unbputc): Remove target.
54860         (do-tst-printf): Likewise.
54861         (tests): Depend directly on $(objpfx)tst-unbputc.out and
54862         $(objpfx)tst-printf.out.
54863
54864         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
54865
54866         * Makerules (check-abi-%): Change target to
54867         $(objpfx)check-abi-%.out.
54868         (check-abi target): Update dependencies.
54869         (check-abi-pattern variable): Redirect output of diff to $@.
54870         (check-abi variable): Likewise.
54871         * elf/Makefile (check-abi): Update dependencies.
54872
54873         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
54874         unused.
54875         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
54876         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
54877         subnormal range.
54878         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
54879         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
54880         value has largest subnormal exponent.
54881         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
54882         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
54883         * sysdeps/aarch64/soft-fp/sfp-machine.h
54884         (_FP_TININESS_AFTER_ROUNDING): New macro.
54885         * sysdeps/alpha/soft-fp/sfp-machine.h
54886         (_FP_TININESS_AFTER_ROUNDING): Likewise.
54887         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
54888         Likewise.
54889         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
54890         (_FP_TININESS_AFTER_ROUNDING): Likewise.
54891         * sysdeps/mips/soft-fp/sfp-machine.h
54892         (_FP_TININESS_AFTER_ROUNDING): Likewise.
54893         * sysdeps/powerpc/soft-fp/sfp-machine.h
54894         (_FP_TININESS_AFTER_ROUNDING): Likewise.
54895         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
54896         Likewise.
54897         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
54898         (_FP_TININESS_AFTER_ROUNDING): Likewise.
54899         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
54900         (_FP_TININESS_AFTER_ROUNDING): Likewise.
54901         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
54902         Likewise.
54903
54904 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
54905
54906         [BZ #16545]
54907         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
54908         model 1.
54909
54910 2014-02-12  Richard Henderson  <rth@redhat.com>
54911
54912         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
54913         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
54914         * sysdeps/unix/sysv/linux/alpha: Move directory from
54915         ports/sysdeps/unix/sysv/linux/alpha.
54916         * README: Update listing for alpha-*-linux-gnu.
54917
54918 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
54919
54920         * include/features.h: Update comment documenting feature test
54921         macros.
54922         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
54923         _DEFAULT_SOURCE.
54924         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
54925         (_SVID_SOURCE): Likewise.
54926         (_DEFAULT_SOURCE): Update description of default features.
54927         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
54928         with _GNU_SOURCE.
54929         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
54930         (S_ISVTX): Likewise.
54931         * manual/math.texi (Mathematical Constants): Likewise.
54932         * manual/signal.texi (Interrupted Primitives): Likewise.
54933         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
54934         * math/test-matherr.c (_SVID_SOURCE): Do not define.
54935         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
54936         Don't refer to _SVID_SOURCE in warning text.
54937
54938         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54939
54940         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
54941         already defined.
54942         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
54943         * sysdeps/mips/dl-lookup.c: Remove.
54944         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
54945
54946 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
54947
54948         [BZ #16447]
54949         * math/auto-libm-test-in: Add testcase for expl.
54950         * math/auto-libm-test-out: Regenerate.
54951         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
54952         calculation of unsafe.
54953         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
54954
54955 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
54956
54957         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
54958         * sysdeps/unix/sysv/linux/aarch64: Move directory from
54959         ports/sysdeps/unix/sysv/linux/aarch64.
54960         * README: Update listing for aarch64*-*-linux-gnu.
54961
54962 2014-02-11  Will Newton  <will.newton@linaro.org>
54963
54964         * manual/probes.texi (Mathematical Function Probes): Use
54965         "triggered" instead of "hit".
54966
54967         * manual/probes.texi (Internal Probes): Add documentation
54968         of setjmp, longjmp and longjmp_target probes.
54969
54970         * include/stap-probe.h: Add comment about probe argument
54971         format.
54972
54973         * malloc/mtrace.c (attribute_hidden): Remove unused macro
54974         definition.  (tr_where, tr_freehook, tr_mallochook,
54975         tr_reallochook, tr_memalignhook): Use ANSI protoype.
54976
54977 2014-02-11  David S. Miller  <davem@davemloft.net>
54978
54979         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
54980         processing int_tests.
54981
54982 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
54983
54984         * sysdeps/mips: Move directory from ports/sysdeps/mips.
54985         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
54986         * sysdeps/unix/sysv/linux/mips: Move directory from
54987         ports/sysdeps/unix/sysv/linux/mips.
54988         * README: Update listing for mips-*-linux-gnu and
54989         mips64-*-linux-gnu.
54990
54991 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
54992
54993         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
54994         * sysdeps/unix/sysv/linux/m68k: Move directory from
54995         ports/sysdeps/unix/sysv/linux/m68k.
54996         * README: Update listing for m68k-*-linux-gnu.
54997
54998 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
54999
55000         * sysdeps/tile: Move directory from ports/sysdeps/tile.
55001         * sysdeps/unix/sysv/linux/generic: Move directory from
55002         ports/sysdeps/unix/sysv/linux/generic.
55003         * sysdeps/unix/sysv/linux/tile: Move directory from
55004         ports/sysdeps/unix/sysv/linux/tile.
55005         * README: Update listing for tile*-*-linux-gnu.
55006
55007 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
55008
55009         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
55010         __builtin_expect.
55011         * benchtests/bench-memmem.c (simple_memmem): Likewise.
55012         * catgets/open_catalog.c (__open_catalog): Likewise.
55013         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
55014         * debug/confstr_chk.c: Likewise.
55015         * debug/fread_chk.c (__fread_chk): Likewise.
55016         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
55017         * debug/getgroups_chk.c: Likewise.
55018         * debug/mbsnrtowcs_chk.c: Likewise.
55019         * debug/mbsrtowcs_chk.c: Likewise.
55020         * debug/mbstowcs_chk.c: Likewise.
55021         * debug/memcpy_chk.c: Likewise.
55022         * debug/memmove_chk.c: Likewise.
55023         * debug/mempcpy_chk.c: Likewise.
55024         * debug/memset_chk.c: Likewise.
55025         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
55026         * debug/strcat_chk.c (__strcat_chk): Likewise.
55027         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
55028         * debug/strncat_chk.c (__strncat_chk): Likewise.
55029         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
55030         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
55031         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
55032         * debug/wcpncpy_chk.c: Likewise.
55033         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
55034         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
55035         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
55036         * debug/wcsncpy_chk.c: Likewise.
55037         * debug/wcsnrtombs_chk.c: Likewise.
55038         * debug/wcsrtombs_chk.c: Likewise.
55039         * debug/wcstombs_chk.c: Likewise.
55040         * debug/wmemcpy_chk.c: Likewise.
55041         * debug/wmemmove_chk.c: Likewise.
55042         * debug/wmempcpy_chk.c: Likewise.
55043         * debug/wmemset_chk.c: Likewise.
55044         * dirent/scandirat.c (SCANDIRAT): Likewise.
55045         * dlfcn/dladdr1.c (dladdr1): Likewise.
55046         * dlfcn/dladdr.c (dladdr): Likewise.
55047         * dlfcn/dlclose.c (dlclose_doit): Likewise.
55048         * dlfcn/dlerror.c (__dlerror): Likewise.
55049         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
55050         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
55051         * dlfcn/dlopen.c (dlopen_doit): Likewise.
55052         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
55053         * dlfcn/dlsym.c (dlsym_doit): Likewise.
55054         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
55055         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
55056         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
55057         Likewise.
55058         * elf/dl-conflict.c: Likewise.
55059         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
55060         * elf/dl-dst.h: Likewise.
55061         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
55062         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
55063         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
55064         * elf/dl-init.c (call_init, _dl_init): Likewise.
55065         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
55066         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
55067         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
55068         Likewise.
55069         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
55070         Likewise.
55071         * elf/dl-minimal.c (__libc_memalign): Likewise.
55072         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
55073         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
55074         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
55075         * elf/dl-sym.c (do_sym): Likewise.
55076         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
55077         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
55078         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
55079         * elf/dl-writev.h (_dl_writev): Likewise.
55080         * elf/ldconfig.c (search_dir): Likewise.
55081         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
55082         (dl_main): Likewise.
55083         * elf/setup-vdso.h (setup_vdso): Likewise.
55084         * grp/compat-initgroups.c (compat_call): Likewise.
55085         * grp/fgetgrent.c (fgetgrent): Likewise.
55086         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
55087         * grp/putgrent.c (putgrent): Likewise.
55088         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
55089         Likewise.
55090         * hurd/hurdinit.c: Likewise.
55091         * iconvdata/8bit-gap.c (struct): Likewise.
55092         * iconvdata/ansi_x3.110.c : Likewise.
55093         * iconvdata/big5.c : Likewise.
55094         * iconvdata/big5hkscs.c : Likewise.
55095         * iconvdata/cp1255.c: Likewise.
55096         * iconvdata/cp1258.c : Likewise.
55097         * iconvdata/cp932.c : Likewise.
55098         * iconvdata/euc-cn.c: Likewise.
55099         * iconvdata/euc-jisx0213.c : Likewise.
55100         * iconvdata/euc-jp.c: Likewise.
55101         * iconvdata/euc-jp-ms.c : Likewise.
55102         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
55103         * iconvdata/gb18030.c : Likewise.
55104         * iconvdata/gbbig5.c (const): Likewise.
55105         * iconvdata/gbgbk.c: Likewise.
55106         * iconvdata/gbk.c : Likewise.
55107         * iconvdata/ibm1364.c : Likewise.
55108         * iconvdata/ibm930.c : Likewise.
55109         * iconvdata/ibm932.c: Likewise.
55110         * iconvdata/ibm933.c : Likewise.
55111         * iconvdata/ibm935.c : Likewise.
55112         * iconvdata/ibm937.c : Likewise.
55113         * iconvdata/ibm939.c : Likewise.
55114         * iconvdata/ibm943.c: Likewise.
55115         * iconvdata/iso_11548-1.c: Likewise.
55116         * iconvdata/iso-2022-cn.c : Likewise.
55117         * iconvdata/iso-2022-cn-ext.c : Likewise.
55118         * iconvdata/iso-2022-jp-3.c: Likewise.
55119         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
55120         * iconvdata/iso-2022-kr.c : Likewise.
55121         * iconvdata/iso646.c (gconv_end): Likewise.
55122         * iconvdata/iso_6937-2.c : Likewise.
55123         * iconvdata/iso_6937.c : Likewise.
55124         * iconvdata/iso8859-1.c: Likewise.
55125         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
55126         * iconvdata/shift_jisx0213.c : Likewise.
55127         * iconvdata/sjis.c : Likewise.
55128         * iconvdata/t.61.c : Likewise.
55129         * iconvdata/tcvn5712-1.c : Likewise.
55130         * iconvdata/tscii.c: Likewise.
55131         * iconvdata/uhc.c : Likewise.
55132         * iconvdata/unicode.c (gconv_end): Likewise.
55133         * iconvdata/utf-16.c (gconv_end): Likewise.
55134         * iconvdata/utf-32.c (gconv_end): Likewise.
55135         * iconvdata/utf-7.c (base64): Likewise.
55136         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
55137         * iconv/gconv_close.c (__gconv_close): Likewise.
55138         * iconv/gconv_open.c (__gconv_open): Likewise.
55139         * iconv/gconv_simple.c (internal_ucs4_loop_single)
55140         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
55141         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
55142         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
55143         (ucs4le_internal_loop_single): Likewise.
55144         * iconv/iconv.c (iconv): Likewise.
55145         * iconv/iconv_close.c: Likewise.
55146         * iconv/loop.c (SINGLE): Likewise.
55147         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
55148         * include/atomic.h: Likewise.
55149         * inet/inet6_option.c (option_alloc): Likewise.
55150         * intl/bindtextdom.c (set_binding_values): Likewise.
55151         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
55152         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
55153         * intl/localealias.c (read_alias_file): Likewise.
55154         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
55155         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
55156         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
55157         * libio/fmemopen.c (fmemopen): Likewise.
55158         * libio/iofgets.c (_IO_fgets): Likewise.
55159         * libio/iofgets_u.c (fgets_unlocked): Likewise.
55160         * libio/iofgetws.c (fgetws): Likewise.
55161         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
55162         * libio/iogetdelim.c (_IO_getdelim): Likewise.
55163         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
55164         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
55165         * locale/findlocale.c (_nl_find_locale): Likewise.
55166         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
55167         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
55168         Likewise.
55169         * locale/setlocale.c (setlocale): Likewise.
55170         * login/programs/pt_chown.c (main): Likewise.
55171         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
55172         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
55173         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
55174         (mmap, mmap64, mremap, munmap): Likewise.
55175         * math/e_exp2l.c: Likewise.
55176         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
55177         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
55178         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
55179         * math/s_catan.c (__catan): Likewise.
55180         * math/s_catanf.c (__catanf): Likewise.
55181         * math/s_catanh.c (__catanh): Likewise.
55182         * math/s_catanhf.c (__catanhf): Likewise.
55183         * math/s_catanhl.c (__catanhl): Likewise.
55184         * math/s_catanl.c (__catanl): Likewise.
55185         * math/s_ccosh.c (__ccosh): Likewise.
55186         * math/s_ccoshf.c (__ccoshf): Likewise.
55187         * math/s_ccoshl.c (__ccoshl): Likewise.
55188         * math/s_cexp.c (__cexp): Likewise.
55189         * math/s_cexpf.c (__cexpf): Likewise.
55190         * math/s_cexpl.c (__cexpl): Likewise.
55191         * math/s_clog10.c (__clog10): Likewise.
55192         * math/s_clog10f.c (__clog10f): Likewise.
55193         * math/s_clog10l.c (__clog10l): Likewise.
55194         * math/s_clog.c (__clog): Likewise.
55195         * math/s_clogf.c (__clogf): Likewise.
55196         * math/s_clogl.c (__clogl): Likewise.
55197         * math/s_csin.c (__csin): Likewise.
55198         * math/s_csinf.c (__csinf): Likewise.
55199         * math/s_csinh.c (__csinh): Likewise.
55200         * math/s_csinhf.c (__csinhf): Likewise.
55201         * math/s_csinhl.c (__csinhl): Likewise.
55202         * math/s_csinl.c (__csinl): Likewise.
55203         * math/s_csqrt.c (__csqrt): Likewise.
55204         * math/s_csqrtf.c (__csqrtf): Likewise.
55205         * math/s_csqrtl.c (__csqrtl): Likewise.
55206         * math/s_ctan.c (__ctan): Likewise.
55207         * math/s_ctanf.c (__ctanf): Likewise.
55208         * math/s_ctanh.c (__ctanh): Likewise.
55209         * math/s_ctanhf.c (__ctanhf): Likewise.
55210         * math/s_ctanhl.c (__ctanhl): Likewise.
55211         * math/s_ctanl.c (__ctanl): Likewise.
55212         * math/w_pow.c: Likewise.
55213         * math/w_powf.c: Likewise.
55214         * math/w_powl.c: Likewise.
55215         * math/w_scalb.c (sysv_scalb): Likewise.
55216         * math/w_scalbf.c (sysv_scalbf): Likewise.
55217         * math/w_scalbl.c (sysv_scalbl): Likewise.
55218         * misc/error.c (error_tail): Likewise.
55219         * misc/pselect.c (__pselect): Likewise.
55220         * nis/nis_callback.c (__nis_create_callback): Likewise.
55221         * nis/nis_call.c (__nisfind_server): Likewise.
55222         * nis/nis_creategroup.c (nis_creategroup): Likewise.
55223         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
55224         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
55225         * nis/nis_getservlist.c (nis_getservlist): Likewise.
55226         * nis/nis_lookup.c (nis_lookup): Likewise.
55227         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
55228         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
55229         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
55230         * nis/nis_xdr.c (xdr_endpoint): Likewise.
55231         * nis/nss_compat/compat-grp.c (getgrent_next_file)
55232         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
55233         * nis/nss_compat/compat-initgroups.c (add_group)
55234         (internal_getgrent_r): Likewise.
55235         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
55236         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
55237         * nis/nss_compat/compat-spwd.c (getspent_next_file)
55238         (internal_getspnam_r): Likewise.
55239         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
55240         (_nss_nis_getaliasbyname_r): Likewise.
55241         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
55242         (_nss_nis_getntohost_r): Likewise.
55243         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
55244         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
55245         (_nss_nis_getgrgid_r): Likewise.
55246         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
55247         (internal_nis_gethostent_r, internal_gethostbyname2_r)
55248         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
55249         (_nss_nis_gethostbyname4_r): Likewise.
55250         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
55251         (initgroups_netid): Likewise.
55252         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
55253         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
55254         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
55255         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
55256         (_nss_nis_getprotobynumber_r): Likewise.
55257         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
55258         (_nss_nis_getsecretkey): Likewise.
55259         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
55260         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
55261         (_nss_nis_getpwuid_r): Likewise.
55262         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
55263         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
55264         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
55265         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
55266         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
55267         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
55268         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
55269         Likewise.
55270         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
55271         (_nss_nisplus_getntohost_r): Likewise.
55272         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
55273         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
55274         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
55275         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
55276         Likewise.
55277         * nis/nss_nisplus/nisplus-initgroups.c
55278         (_nss_nisplus_initgroups_dyn): Likewise.
55279         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
55280         (_nss_nisplus_getnetbyaddr_r): Likewise.
55281         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
55282         (_nss_nisplus_getprotobynumber_r): Likewise.
55283         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
55284         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
55285         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
55286         Likewise.
55287         * nis/nss_nisplus/nisplus-service.c
55288         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
55289         (_nss_nisplus_getservbyport_r): Likewise.
55290         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
55291         (_nss_nisplus_getspnam_r): Likewise.
55292         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
55293         Likewise.
55294         * nscd/aicache.c (addhstaiX): Likewise.
55295         * nscd/cache.c (cache_search, prune_cache): Likewise.
55296         * nscd/connections.c (register_traced_file, send_ro_fd)
55297         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
55298         (main_loop_epoll): Likewise.
55299         * nscd/grpcache.c (addgrbyX): Likewise.
55300         * nscd/hstcache.c (addhstbyX): Likewise.
55301         * nscd/initgrcache.c (addinitgroupsX): Likewise.
55302         * nscd/mem.c (gc, mempool_alloc): Likewise.
55303         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
55304         (addinnetgrX): Likewise.
55305         * nscd/nscd-client.h (__nscd_acquire_maplock)
55306         (__nscd_drop_map_ref): Likewise.
55307         * nscd/nscd_getai.c (__nscd_getai): Likewise.
55308         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
55309         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
55310         Likewise.
55311         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
55312         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
55313         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
55314         (__nscd_get_map_ref): Likewise.
55315         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
55316         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
55317         Likewise.
55318         * nscd/pwdcache.c (addpwbyX): Likewise.
55319         * nscd/selinux.c (preserve_capabilities): Likewise.
55320         * nscd/servicescache.c (addservbyX): Likewise.
55321         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
55322         * posix/fnmatch.c (fnmatch): Likewise.
55323         * posix/getopt.c (_getopt_internal_r): Likewise.
55324         * posix/glob.c (glob, glob_in_dir): Likewise.
55325         * posix/wordexp.c (exec_comm_child): Likewise.
55326         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
55327         (getanswer_r, gaih_getanswer_slice): Likewise.
55328         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
55329         * resolv/res_init.c: Likewise.
55330         * resolv/res_mkquery.c (res_nmkquery): Likewise.
55331         * resolv/res_query.c (__libc_res_nquery): Likewise.
55332         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
55333         Likewise.
55334         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
55335         * stdio-common/perror.c (perror): Likewise.
55336         * stdio-common/printf_fp.c (___printf_fp): Likewise.
55337         * stdio-common/tmpnam.c (tmpnam): Likewise.
55338         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
55339         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
55340         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
55341         Likewise.
55342         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
55343         * stdlib/putenv.c (putenv): Likewise.
55344         * stdlib/setenv.c (__add_to_environ): Likewise.
55345         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
55346         * stdlib/strtol_l.c (INTERNAL): Likewise.
55347         * string/memmem.c (memmem): Likewise.
55348         * string/strerror.c (strerror): Likewise.
55349         * string/strnlen.c (__strnlen): Likewise.
55350         * string/test-memmem.c (simple_memmem): Likewise.
55351         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
55352         * sunrpc/pm_getport.c (__get_socket): Likewise.
55353         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
55354         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
55355         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
55356         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
55357         Likewise.
55358         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
55359         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
55360         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
55361         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
55362         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
55363         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
55364         Likewise.
55365         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
55366         Likewise.
55367         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
55368         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
55369         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55370         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
55371         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
55372         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
55373         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
55374         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
55375         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
55376         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
55377         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
55378         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
55379         Likewise.
55380         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
55381         Likewise.
55382         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
55383         Likewise.
55384         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
55385         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
55386         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
55387         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
55388         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
55389         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
55390         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
55391         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
55392         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
55393         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
55394         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
55395         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
55396         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
55397         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
55398         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55399         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
55400         Likewise.
55401         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
55402         Likewise.
55403         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
55404         Likewise.
55405         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
55406         Likewise.
55407         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55408         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55409         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
55410         Likewise.
55411         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
55412         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
55413         * sysdeps/posix/opendir.c (__opendirat): Likewise.
55414         * sysdeps/posix/sleep.c: Likewise.
55415         * sysdeps/posix/tempname.c: Likewise.
55416         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
55417         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
55418         Likewise.
55419         * sysdeps/powerpc/powerpc32/dl-machine.h
55420         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
55421         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
55422         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
55423         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
55424         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
55425         Likewise.
55426         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
55427         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
55428         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
55429         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
55430         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
55431         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
55432         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
55433         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
55434         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
55435         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
55436         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
55437         (elf_machine_lazy_rel): Likewise.
55438         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
55439         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
55440         (elf_machine_lazy_rel): Likewise.
55441         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
55442         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
55443         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
55444         * sysdeps/unix/grantpt.c (grantpt): Likewise.
55445         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
55446         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
55447         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
55448         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
55449         Likewise.
55450         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
55451         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
55452         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
55453         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
55454         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
55455         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
55456         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
55457         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
55458         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
55459         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
55460         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
55461         Likewise.
55462         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
55463         (__posix_fallocate64_l64): Likewise.
55464         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
55465         (posix_fallocate): Likewise.
55466         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
55467         Likewise.
55468         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
55469         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
55470         (getifaddrs_internal): Likewise.
55471         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
55472         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
55473         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
55474         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
55475         * sysdeps/unix/sysv/linux/posix_fallocate64.c
55476         (__posix_fallocate64_l64): Likewise.
55477         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
55478         Likewise.
55479         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
55480         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
55481         (__get_clockfreq): Likewise.
55482         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
55483         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
55484         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
55485         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
55486         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
55487         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
55488         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
55489         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
55490         Likewise.
55491         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
55492         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
55493         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
55494         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
55495         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
55496         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
55497         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
55498         Likewise.
55499         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
55500         (posix_fallocate): Likewise.
55501         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
55502         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
55503         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
55504         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
55505         (elf_machine_rela, elf_machine_rela_relative)
55506         (elf_machine_lazy_rel): Likewise.
55507         * time/asctime.c (asctime_internal): Likewise.
55508         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
55509         * time/tzset.c (__tzset_parse_tz): Likewise.
55510         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
55511         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
55512         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
55513         * wcsmbs/wcsmbsload.h: Likewise.
55514
55515         [BZ #15894]
55516         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
55517
55518         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
55519         (arena_get2): Remove THREAD_STATS conditionals.
55520         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
55521         (__malloc_stats, int): Likewise.
55522
55523 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
55524
55525         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
55526         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
55527
55528         * manual/setjmp.texi: Fix typos/grammar errors.
55529
55530         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
55531         Only return early when n is <= 0.  Delete unused return statement.
55532
55533         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
55534         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
55535         * debug/tst-longjmp_chk3.c: New file.
55536
55537         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
55538         (test_main): Replace code with set_fortify_handler call.
55539         * debug/test-strcpy_chk.c: Likewise.
55540         * debug/tst-chk1.c: Likewise.
55541         * debug/tst-longjmp_chk.c: Likewise.
55542         * test-skeleton.c: Include fcntl.h & paths.h
55543         (set_fortify_handler): Define.
55544
55545         * debug/tst-longjmp_chk.c: Add header comment and include
55546         ../test-skeleton.c.
55547         (do_test): Mark static.
55548         (TEST_FUNCTION): Define.
55549
55550         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
55551         (IP_PMTUDISC_INTERFACE): Likewise.
55552         (IP_MULTICAST_IF): Likewise.
55553         (IP_MULTICAST_TTL): Likewise.
55554         (IP_MULTICAST_LOOP): Likewise.
55555         (IP_ADD_MEMBERSHIP): Likewise.
55556         (IP_DROP_MEMBERSHIP): Likewise.
55557         (IP_UNBLOCK_SOURCE): Likewise.
55558         (IP_BLOCK_SOURCE): Likewise.
55559         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
55560         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
55561         (IP_MSFILTER): Likewise.
55562         (MCAST_JOIN_GROUP): Likewise.
55563         (MCAST_BLOCK_SOURCE): Likewise.
55564         (MCAST_UNBLOCK_SOURCE): Likewise.
55565         (MCAST_LEAVE_GROUP): Likewise.
55566         (MCAST_JOIN_SOURCE_GROUP): Likewise.
55567         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
55568         (MCAST_MSFILTER): Likewise.
55569         (IP_MULTICAST_ALL): Likewise.
55570         (IP_UNICAST_IF): Likewise.
55571
55572         * timezone/Makefile: Delete $(have-ksh) check.
55573         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
55574         * timezone/tzselect.ksh: Add +x mode bits.
55575
55576         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
55577         (ANON_INODE_FS_MAGIC): Likewise.
55578         (BDEVFS_MAGIC): Likewise.
55579         (BINFMTFS_MAGIC): Likewise.
55580         (BTRFS_TEST_MAGIC): Likewise.
55581         (CRAMFS_MAGIC_WEND): Likewise.
55582         (DEBUGFS_MAGIC): Likewise.
55583         (ECRYPTFS_SUPER_MAGIC): Likewise.
55584         (EXT3_SUPER_MAGIC): Likewise.
55585         (EXT4_SUPER_MAGIC): Likewise.
55586         (FUTEXFS_SUPER_MAGIC): Likewise.
55587         (HOSTFS_SUPER_MAGIC): Likewise.
55588         (HUGETLBFS_MAGIC): Likewise.
55589         (MINIX3_SUPER_MAGIC): Likewise.
55590         (MTD_INODE_FS_MAGIC): Likewise.
55591         (NILFS_SUPER_MAGIC): Likewise.
55592         (OPENPROM_SUPER_MAGIC): Likewise.
55593         (PIPEFS_MAGIC): Likewise.
55594         (PSTOREFS_MAGIC): Likewise.
55595         (QNX6_SUPER_MAGIC): Likewise.
55596         (RAMFS_MAGIC): Likewise.
55597         (REISERFS_SUPER_MAGIC_STRING): Likewise.
55598         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
55599         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
55600         (SECURITYFS_MAGIC): Likewise.
55601         (SELINUX_MAGIC): Likewise.
55602         (SMACK_MAGIC): Likewise.
55603         (SOCKFS_MAGIC): Likewise.
55604         (SQUASHFS_MAGIC): Likewise.
55605         (STACK_END_MAGIC): Likewise.
55606         (TMPFS_MAGIC): Likewise.
55607         (USBDEVICE_SUPER_MAGIC): Likewise.
55608         (V9FS_MAGIC): Likewise.
55609         (XENFS_SUPER_MAGIC): Likewise.
55610         (CRAMFS_MAGIC): Fix typo in comment.
55611         (EXT2_SUPER_MAGIC): Update comment.
55612         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
55613
55614 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
55615
55616         * sysdeps/arm: Move directory from ports/sysdeps/arm.
55617         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
55618         * sysdeps/unix/sysv/linux/arm: Move directory from
55619         ports/sysdeps/unix/sysv/linux/arm.
55620         * README: Update listing for arm-*-linux-gnueabi.
55621
55622         * README: Remove mention of am33.
55623
55624 2014-02-07  Roland McGrath  <roland@hack.frob.com>
55625
55626         * bits/sigset.h (__sigemptyset): Use a statement expression rather
55627         than the comma operator, to avoid "rhs of comma has no effect"
55628         compiler warnings.
55629         (__sigfillset, __sigandset, __sigorset): Likewise.
55630         * include/signal.h (__sigemptyset): Likewise.
55631         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
55632
55633 2014-02-07  Allan McRae  <allan@archlinux.org>
55634
55635         * version.h (RELEASE): Set to "development".
55636         (VERSION): Set to "2.19.90"
55637         * NEWS: Add 2.20 section.
55638
55639 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
55640
55641         [BZ #16529]
55642         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
55643
55644 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
55645
55646         * manual/contrib.texi: Update entry for Carlos O'Donell,
55647         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
55648
55649 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
55650
55651         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
55652
55653         * sysdeps/unix/sysv/linux/kernel-features.h
55654         [__LINUX_KERNEL_VERSION >= 0x020621]
55655         (__ASSUME_PROC_PID_TASK_COMM): Define.
55656
55657 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
55658
55659         [BZ #16398]
55660         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
55661         conversion when destination buffer does not have enough space.
55662         * libio/tst-ftell-partial-wide.c: New test case.
55663         * libio/Makefile (tests): Add tst-ftell-partial-wide.
55664
55665         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
55666         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
55667         Leonard and Allan McRae.
55668
55669 2014-02-04  David S. Miller  <davem@davemloft.net>
55670
55671         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
55672         32-bit.
55673
55674 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55675
55676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
55677         New file
55678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
55679         New file
55680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
55681         New file.
55682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
55683         New file.
55684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
55685         New file.
55686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
55687         New file.
55688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
55689         New file.
55690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
55691         New file.
55692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
55693         New file.
55694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
55695         New file.
55696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
55697         New file.
55698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
55699         New file.
55700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
55701         New file.
55702
55703 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55704
55705         * nptl/shlib-versions: Change powerpc*le start to 2.17.
55706         * shlib-versions: Likewise.
55707
55708 2014-02-04  Roland McGrath  <roland@hack.frob.com>
55709             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55710
55711         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
55712         (abilist-pattern): New variable, set to %-le.abilist.
55713
55714         * Makerules (abilist-pattern): New variable.
55715         (vpath): Use $(abilist-pattern) in place of %.abilist.
55716         (check-abi-% pattern rule): Likewise.
55717         (check-abi, update-abi): Likewise.
55718
55719 2014-02-04  Eric Wong  <normalperson@yhbt.net>
55720
55721         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55722
55723 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
55724
55725         * manual/startup.texi: Add next, previous, and top entries for
55726         the `Program Arguments' and `Environment Variables' nodes.
55727
55728 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
55729
55730         * manual/macros.texi: Add comments before MTASC-safety macros.
55731
55732         * manual/users.texi: Document MTASC-safety properties.
55733
55734         * manual/threads.texi (pthread_key_create, pthread_key_delete)
55735         (pthread_getspecific, pthread_setspecific): Format with
55736         @deftypefun, and add @safety note.
55737         * manual/signal.texi: Move comments that analyze the above
55738         functions to their home place.
55739
55740 2014-02-03  Allan McRae  <allan@archlinux.org>
55741
55742         * po/sl.po: Update Slovenian translation from translation project.
55743
55744 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
55745
55746         * manual/time.texi (timegm): Add missing blank after @c.
55747         Reported by Joseph Myers <joseph@codesourcery.com>.
55748
55749 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
55750
55751         * manual/check-safety.sh: New.
55752         * manual/Makefile ($(objpfx)stamp-summary): Run it.
55753
55754         * manual/terminal.texi: Document MTASC-safety properties.
55755
55756         * manual/filesys.texi: Document MTASC-safety properties.
55757
55758         * manual/errno.texi: Document MTASC-safety properties.
55759
55760         * manual/intro.texi: Document safety identifiers and
55761         conditionals.
55762
55763         * manual/string.texi (wcstok): Fix prototype.
55764         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
55765
55766         * manual/time.texi: Document MTASC-safety properties.
55767
55768         * manual/string.texi: Document MTASC-safety properties.
55769
55770         * manual/threads.texi: Document MTASC-safety properties.
55771
55772         * manual/stdio.texi: Document MTASC-safety properties.
55773
55774         * manual/syslog.texi: Document MTASC-safety properties.
55775
55776         * manual/sysinfo.texi: Document MTASC-safety properties.
55777
55778         * manual/startup.texi: Document MTASC-safety properties.
55779
55780         * manual/socket.texi: Document MTASC-safety properties.
55781
55782         * manual/signal.texi: Document MTASC-safety properties.
55783
55784 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
55785
55786         * manual/setjmp.texi: Document MTASC-safety properties.
55787
55788         * manual/search.texi: Document MTASC-safety properties.
55789
55790         * manual/resource.texi: Document MTASC-safety properties.
55791
55792         * manual/process.texi: Document MTASC-safety properties.
55793
55794         * manual/platform.texi: Document MTASC-safety properties.
55795
55796         * manual/pipe.texi: Document MTASC-safety properties.
55797
55798         * manual/pattern.texi: Document MTASC-safety properties.
55799
55800         * manual/message.texi: Document MTASC-safety properties.
55801
55802         [BZ #12751]
55803         * manual/memory.texi: Document MTASC-safety properties.
55804
55805         * manual/math.texi: Document MTASC-safety properties.
55806
55807         * manual/locale.texi: Document MTASC-safety properties.
55808
55809         * manual/llio.texi: Document MTASC-safety properties.
55810
55811         * manual/libdl.texi: New.
55812
55813         * manual/lang.texi: Document MTASC-safety properties.
55814
55815         * manual/job.texi: Document MTASC-safety properties.
55816
55817         * manual/getopt.texi: Document MTASC-safety properties.
55818
55819         * manual/ctype.texi: Document MTASC-safety properties.
55820
55821 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
55822
55823         [BZ #16046]
55824         * csu/libc-tls.c (static_map): Remove variable.
55825         (__libc_setup_tls): Use main executable's link map for TLS data.
55826         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
55827         casing for LM_ID_BASE and GL(dl_nns).
55828         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
55829         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
55830         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
55831         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
55832         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
55833         member.
55834         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
55835         l_phnum members.
55836
55837 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
55838
55839         * manual/debug.texi: Document MTASC-safety properties.
55840
55841 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
55842
55843         [BZ #16510]
55844         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
55845         of __x86_64__ when disabling x87 inline functions.
55846
55847 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
55848
55849         * manual/charset.texi: Document MTASC-safety properties.
55850
55851         * manual/crypt.texi: Document MTASC-safety properties.
55852
55853         * manual/conf.texi: Document MTASC-safety properties.
55854
55855         * manual/arith.texi: Document MTASC-safety properties.
55856
55857         * manual/argp.texi: Document MTASC-safety properties.
55858
55859         * manual/macros.texi: Introduce macros to document multi
55860         thread, asynchronous signal and asynchronous cancellation
55861         safety properties.
55862         * manual/intro.texi: Introduce the properties themselves.
55863
55864 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
55865
55866         * sysdeps/sh/sh4/Makefile: New file.
55867
55868 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
55869
55870         * math/gen-libm-test.pl ($srcdir): New variable.
55871         ($auto_input): Use it.
55872
55873 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
55874
55875         [BZ #16506]
55876         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
55877         access beyond array bounds when parsing netgroups file.
55878
55879         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
55880         the old buffer before realloc.
55881
55882 2014-01-27  Allan McRae  <allan@archlinux.org>
55883
55884         * po/fr.po: Update French translation from translation project.
55885
55886 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
55887
55888         * sysdeps/sh/libm-test-ulps: Regenerate.
55889
55890 2014-01-24  David S. Miller  <davem@davemloft.net>
55891
55892         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
55893
55894 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
55895
55896         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
55897         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
55898
55899 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
55900
55901         [BZ #16474]
55902         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
55903         string pointers after reallocation.
55904
55905 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
55906
55907         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
55908         __SH4A__ instead of __SH_FPU_ANY__.
55909
55910 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
55911
55912         * sysdeps/sh/fpu_control.h: New file.
55913         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
55914         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
55915         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
55916         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
55917         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
55918         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
55919         * sysdeps/sh/sys/ucontext.h: Remove.
55920         * sysdeps/sh/sys: Remove directory.
55921
55922 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55923
55924         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
55925         s390/sys/ucontext.h.
55926         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
55927         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
55928
55929 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
55930
55931         [BZ #15605]
55932         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
55933
55934 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55935
55936         [BZ #16431]
55937         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
55938         Adjust the vDSO correctly for internal calls.
55939         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
55940
55941 2014-01-20  Allan McRae  <allan@archlinux.org>
55942
55943         * po/ca.po: Update Catalan translation from translation project.
55944
55945 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
55946
55947         * sysdeps/s390/sotruss-lib.c: New file.
55948
55949 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55950
55951         [BZ #16430]
55952         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
55953         (__GI___gettimeofday): Alias for a different internal symbol to avoid
55954         local calls issues by not having a PLT stub required for IFUNC calls.
55955         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
55956
55957 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
55958
55959         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
55960         * math/test-fpucw-static.c: Likewise.
55961
55962 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55963
55964         [BZ #16453]
55965         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
55966
55967 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55968
55969         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
55970         implementation for powerpc.
55971
55972 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
55973
55974         [BZ #14782]
55975         * sysdeps/posix/system.c (__libc_system): Do not enable
55976         asynchronous cancellation.
55977
55978 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55979
55980         [BZ #16427]
55981         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
55982         handling only for numbers special also in the IEEE case.
55983
55984 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55985
55986         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
55987
55988 2014-01-11  Allan McRae  <allan@archlinux.org>
55989
55990         * po/bg.po: Update Bulgarian translation from translation project.
55991
55992         * po/de.po: Update German translation from translation project.
55993
55994 2014-01-10  Roland McGrath  <roland@hack.frob.com>
55995
55996         * sysdeps/generic/gcc-compat.h: New file.
55997
55998 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55999
56000         * benchtests/asin-inputs: Correct slow inputs.
56001         * benchtests/acos-inputs: Likewise.
56002
56003 2014-01-10  Allan McRae  <allan@archlinux.org>
56004
56005         * po:sv.po: Update Swedish translation from translation project.
56006
56007         * po/vi.po: Update Vietnamese translation from translation project.
56008
56009         * po/eo.po: Update Esperanto translation from translation project.
56010
56011         * po/cs.po: Update Czech translation from translation project.
56012
56013         * po/nl.po: Update Dutch translation from translation project.
56014
56015         * po/pl.po: Update Polish translation from translation project.
56016
56017         * po/ru.po: Update Russian translation from translation project.
56018
56019         * po/uk.po: Update Ukrainian translation from translation project.
56020
56021 2014-01-08  Brooks Moses  <bmoses@google.com>
56022
56023         * elf/dl-load.c: Fix comment typo.
56024
56025 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
56026
56027         * po/header.pot: Rename to...
56028         * po/pot.header: ... this.
56029         * po/Makefile: Use pot.header.
56030
56031 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
56032             Maxim Kuvyrkov  <maxim@kugelworks.com>
56033
56034         [BZ #16394]
56035         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
56036         SRC and DEST against LEN.
56037
56038 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56039
56040         [BZ #16414]
56041         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
56042         implementation.
56043         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
56044
56045 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56046
56047         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56048
56049 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
56050
56051         [BZ #16408]
56052         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
56053         for large positive arguments.
56054
56055 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
56056
56057         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
56058
56059         * math/auto-libm-test-in: Mark various tests with
56060         xfail-rounding:ldbl-128ibm.
56061         * math/auto-libm-test-out: Regenerated.
56062
56063         [BZ #16407]
56064         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
56065         Increase overflow threshold.
56066
56067 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
56068
56069         [BZ #14286]
56070         * stdio-common/vfprintf.c: Check for integer overflow.
56071
56072 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56073
56074         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
56075         the first argument and return value of __tls_get_addr_internal.
56076
56077 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56078
56079         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
56080         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
56081
56082 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56083
56084         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
56085         * sysdeps/s390/rtld-global-offsets.sym: New file.
56086         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
56087         GLIBC_2.19 symbol.
56088         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
56089         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
56090         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
56091         ... this.
56092         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
56093         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
56094         ... this.
56095         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
56096         Regenerate.
56097         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
56098         Regenerate.
56099         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
56100         halfs of GPRs for high_gprs contexts.
56101         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
56102         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
56103         field.
56104         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
56105         uc_flags field.
56106         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
56107         64 bit versions:
56108         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
56109         for high GPRs (uc_high_gprs) and for future extensions
56110         (__reserved).
56111         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
56112         for future extensions (__reserved).
56113         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
56114         64 bit versions:
56115         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
56116         SC_HIGHGPRS offset definition.
56117         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
56118         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
56119
56120         * Versions.def: Add GLIBC_2.19 for libpthread.
56121         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
56122         siglongjmp for libpthread with GLIBC_2.19 symver.
56123         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
56124         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
56125         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
56126         * sysdeps/s390/__longjmp.c: New file.
56127         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
56128         * sysdeps/s390/longjmp.c: New file.
56129         * sysdeps/s390/setjmp.S: New file.
56130         * sysdeps/s390/sigjmp.S: New file.
56131         * sysdeps/s390/v1-longjmp.c: New file.
56132         * sysdeps/s390/v1-setjmp.h: New file.
56133         * sysdeps/s390/v1-sigjmp.c: New file.
56134         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
56135         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
56136         GLIBC_2.19 version.
56137         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
56138         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
56139         versioned symbols for ____longjmp_chk.
56140         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
56141         Likewise.
56142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
56143         Regenerate.
56144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
56145         Regenerate.
56146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
56147         Regenerate.
56148         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
56149         Regenerate.
56150         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
56151         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
56152         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
56153         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
56154         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
56155         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
56156         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
56157         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
56158         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
56159         * sysdeps/s390/rtld-__longjmp.c: New file.
56160         * sysdeps/s390/rtld-setjmp.S: New file.
56161
56162 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
56163
56164         [BZ #16400]
56165         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
56166         Return -__logl (x) for small positive arguments without evaluating
56167         a polynomial.
56168
56169 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
56170
56171         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
56172         Rename to ...
56173         (__ptrace_peeksiginfo_args): ... this.
56174         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
56175         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
56176         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
56177
56178 2014-01-06  Allan McRae  <allan@archlinux.org>
56179
56180         * inet/netinet/in.h: Fix typo in comment.
56181
56182 2014-01-05  Andreas Jaeger  <aj@suse.de>
56183
56184         * sysdeps/i386/fpu/libm-test-ulps: Update.
56185
56186 2014-01-05  Allan McRae  <allan@archlinux.org>
56187
56188         * po/libc.pot: Regenerated.
56189
56190         * malloc/memusagestat.c: Fix gettext call formatting.
56191
56192 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
56193
56194         * nscd/nscd.c: Improve usage() output.
56195
56196 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
56197
56198         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
56199         * sysdeps/unix/sysv/linux/configure: Regenerated.
56200         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
56201         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
56202
56203 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
56204
56205         [BZ #16390]
56206         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
56207         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
56208
56209 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56210
56211         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
56212         extra tokens at end of #undef directive.
56213         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
56214         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
56215         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
56216
56217 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
56218
56219         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
56220
56221         * math/auto-libm-test-in: Mark various tests with
56222         xfail-rounding:ldbl-128ibm.
56223         * math/auto-libm-test-out: Regenerated.
56224
56225 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
56226
56227         [BZ #16386]
56228         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
56229         numbers with subnormal high part when calculating exponent.
56230
56231         [BZ #16385]
56232         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
56233         fabs.
56234
56235         [BZ #16384]
56236         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
56237         M_LN2l.
56238         (__ieee754_acoshl): Use __log1pl not __log1p.
56239
56240 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
56241
56242         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
56243         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
56244         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
56245         (grow_heap, heap_trim, _int_new_arena, get_free_list)
56246         (reused_arena, arena_get2): Convert to GNU style.
56247         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
56248         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
56249         (memalign_check, __malloc_set_state): Likewise.
56250         * malloc/mallocbug.c (main): Likewise.
56251         * malloc/malloc.c (__malloc_assert, malloc_init_state)
56252         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
56253         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
56254         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
56255         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
56256         (__posix_memalign, malloc_info): Likewise.
56257         * malloc/malloc.h: Likewise.
56258         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
56259         (mallochook, memalignhook, reallochook, mabort): Likewise.
56260         * malloc/mcheck.h: Likewise.
56261         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
56262         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
56263         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
56264         * malloc/morecore.c (__default_morecore): Likewise.
56265         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
56266         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
56267         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
56268         (print_and_abort): Likewise.
56269         * malloc/obstack.h: Likewise.
56270         * malloc/set-freeres.c (__libc_freeres): Likewise.
56271         * malloc/tst-mallocstate.c (main): Likewise.
56272         * malloc/tst-mtrace.c (main): Likewise.
56273         * malloc/tst-realloc.c (do_test): Likewise.
56274
56275 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
56276
56277         [BZ #16366]
56278         * nscd/netgroupcache.c (do_notfound): New function.
56279         (addgetnetgrentX): Use it.
56280
56281         [BZ # 16365]
56282         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
56283         NSS_STATUS_NOTFOUND.
56284
56285 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
56286
56287         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
56288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56289
56290 2014-01-01  Allan McRae  <allan@archlinux.org>
56291
56292         * scripts/update-copyrights: Update configure input file suffix.
56293
56294         * NEWS: Update copyright year.
56295         * catgets/gencat.c: Likewise.
56296         * csu/version.c: Likewise.
56297         * debug/catchsegv.sh: Likewise.
56298         * debug/pcprofiledump.c: Likewise.
56299         * debug/xtrace.sh: Likewise.
56300         * elf/ldconfig.c: Likewise.
56301         * elf/ldd.bash.in: Likewise.
56302         * elf/pldd.c: Likewise.
56303         * elf/sotruss.ksh: Likewise.
56304         * elf/sprof.c: Likewise.
56305         * iconv/iconv_prog.c: Likewise.
56306         * iconv/iconvconfig.c: Likewise.
56307         * locale/programs/locale.c: Likewise.
56308         * locale/programs/localedef.c: Likewise.
56309         * login/programs/pt_chown.c: Likewise.
56310         * malloc/memusage.sh: Likewise.
56311         * malloc/memusagestat.c: Likewise.
56312         * malloc/mtrace.pl: Likewise.
56313         * manual/libc.texinfo: Likewise.
56314         * nscd/nscd.c: Likewise.
56315         * nss/getent.c: Likewise.
56316         * nss/makedb.c: Likewise.
56317         * posix/getconf.c: Likewise.
56318         * scripts/test-installation.pl: Likewise.
56319
56320         * All files with FSF copyright notices: Update copyright dates
56321         using scripts/update-copyrights.
56322         * intl/plural.c: Regenerated.
56323         * locale/programs/charmap-kw.h: Likewise.
56324         * locale/programs/locfile-kw.h: Likewise.
56325
56326 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
56327
56328         * sysdeps/unix/sysv/linux/configure: Regenerated.
56329         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
56330         the linux/fanotify.h header.
56331         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
56332         HAVE_LINUX_FANOTIFY_H is defined.
56333
56334 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
56335
56336         * benchtests/cos-inputs: New inputs.
56337         * benchtests/sin-inputs: Likewise.
56338
56339         * benchtests/atan-inputs: New inputs. Fix name of multiple
56340         precision fallback inputs.
56341
56342         * benchtests/atanh-inputs: New inputs.
56343         * benchtests/tanh-inputs: Likewise.
56344
56345         * benchtests/acosh-inputs: New inputs.
56346         * benchtests/asinh-inputs: Likewise.
56347
56348         * benchtests/cosh-inputs: New inputs.
56349         * benchtests/sinh-inputs: Likewise.
56350
56351         * benchtests/acos-inputs: Add more inputs.
56352         * benchtests/asin-inputs: Likewise.
56353
56354 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
56355
56356         [BZ #16375]
56357         * manual/arith.texi: Fix spelling.
56358         * manual/charset.texi: Likewise.
56359         * manual/errno.texi: Likewise.
56360         * manual/filesys.texi: Likewise.
56361         * manual/lang.texi: Likewise.
56362         * manual/llio.texi: Likewise.
56363         * manual/locale.texi: Likewise.
56364         * manual/message.texi: Likewise.
56365         * manual/resource.texi: Likewise.
56366         * manual/search.texi: Likewise.
56367         * manual/setjmp.texi: Likewise.
56368         * manual/stdio.texi: Likewise.
56369         * manual/string.texi: Likewise.
56370         * manual/sysinfo.texi: Likewise.
56371         * manual/time.texi: Likewise.
56372
56373 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
56374
56375         * po/sl.po: New file.
56376
56377 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
56378
56379         * .gitignore: Add core/.gdbinit/.gdb_history.
56380
56381 2013-12-27  Allan McRae  <allan@archlinux.org>
56382
56383         [BZ #16369]
56384         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
56385         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
56386
56387 2013-12-24  Brooks Moses  <bmoses@google.com>
56388
56389         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
56390         all compilers that claim C++98 compliance, not just GCC.
56391         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
56392         Likewise.
56393
56394 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
56395
56396         * NEWS: Restore accidentally deleted bug-fix entries.
56397
56398 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
56399             Ondřej Bílka  <neleai@seznam.cz>
56400
56401         [BZ #15073]
56402         * malloc/malloc.c (_int_free): Perform sanity check only if we
56403         have_lock.
56404
56405 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
56406
56407         [BZ #12986]
56408         * manual/stdio.texi (String Input Conversions): Clarify that character
56409         classes are not supported.
56410
56411 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56412
56413         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56414
56415 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
56416
56417         [BZ #16337]
56418         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
56419         Calculate results for small negative arguments directly rather
56420         than using reflection formula with special underflow handling.
56421
56422         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
56423         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
56424         sysdeps/unix/bsd/bsd4.4/syscalls.list.
56425         (fchflags): Likewise.
56426         (revoke): Likewise.
56427         (setlogin): Likewise.
56428         (sigaltstack): Likewise.
56429         (wait4): Likewise.
56430         (sigblock): Remove.
56431         (sigsetmask): Likewise.
56432         (wait3): Likewise.
56433         (waitpid): Likewise.
56434         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
56435         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
56436         file.
56437         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
56438         * sysdeps/unix/bsd/Makefile: ... here.
56439         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
56440         * sysdeps/unix/bsd/Versions: ... here.
56441         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
56442         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
56443         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
56444         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
56445         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
56446         * sysdeps/unix/bsd/sigblock.c: ... here.
56447         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
56448         * sysdeps/unix/bsd/sigsetmask.c: ... here.
56449         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
56450         * sysdeps/unix/bsd/sigvec.c: ... here.
56451         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
56452         * sysdeps/unix/bsd/tcdrain.c: ... here.
56453         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
56454         * sysdeps/unix/bsd/tcgetattr.c: ... here.
56455         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
56456         * sysdeps/unix/bsd/tcsetattr.c: ... here.
56457         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
56458         * sysdeps/unix/bsd/wait.c: ... here.
56459         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
56460         * sysdeps/unix/bsd/wait3.c: ... here.
56461         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
56462         * sysdeps/unix/bsd/waitpid.c: ... here.
56463
56464 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
56465
56466         [BZ #16356]
56467         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
56468         round-to-nearest for [!USE_AS_EXPM1L].
56469         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
56470         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
56471         more tests of exp and exp10.  Expect some exp10 tests to miss
56472         exceptions or fail in directed rounding modes.
56473         * math/auto-libm-test-out: Regenerated.
56474         * math/libm-test.inc (exp10_tonearest_test_data): New array.
56475         (exp10_test_tonearest): New function.
56476         (exp10_towardzero_test_data): New array.
56477         (exp10_test_towardzero): New function.
56478         (exp10_downward_test_data): New array.
56479         (exp10_test_downward): New function.
56480         (exp10_upward_test_data): New array.
56481         (exp10_test_upward): New function.
56482         (main): Call the new functions.
56483         * sysdeps/i386/fpu/libm-test-ulps: Update.
56484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56485
56486 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
56487
56488         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
56489         asinh, atan, atan2, atanh, cbrt, cos and cosh.
56490         * math/auto-libm-test-out: Regenerated.
56491         * math/libm-test.inc (acosh_test_data): Add more tests.
56492         (atanh_test_data): Likewise.
56493         (ceil_test_data): Likewise.
56494         (copysign_test_data): Likewise.
56495         * sysdeps/i386/fpu/libm-test-ulps: Update.
56496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56497
56498         * timezone/checktab.awk: Update from tzcode 2013i.
56499         * timezone/private.h: Likewise.
56500         * timezone/scheck.c: Likewise.
56501         * timezone/tzfile.h: Likewise.
56502         * timezone/tzselect.ksh: Likewise.
56503         * timezone/zdump.c: Likewise.
56504         * timezone/zic.c: Likewise.
56505
56506         * math/auto-libm-test-in: Add tests of cpow.
56507         * math/auto-libm-test-out: Regenerated.
56508         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
56509         * math/gen-auto-libm-tests.c (func_calc_method): Add value
56510         mpc_cc_c.
56511         (func_calc_desc): Add mpc_cc_c union field.
56512         (test_functions): Add cpow.
56513         (special_fill_2pi): New function.
56514         (special_real_inputs): Add 2pi.
56515         (calc_generic_results): Handle mpc_cc_c.
56516         * sysdeps/i386/fpu/libm-test-ulps: Update.
56517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56518
56519         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
56520         csqrt, ctan and ctanh.
56521         * math/auto-libm-test-out: Regenerated.
56522         * math/libm-test.inc (TEST_COND_x86_64): New macro.
56523         (TEST_COND_x86): Likewise.
56524         (ccos_test_data): Use AUTO_TESTS_c_c.
56525         (ccosh_test_data): Likewise.
56526         (cexp_test_data): Likewise.
56527         (clog_test_data): Likewise.
56528         (csqrt_test_data): Likewise.
56529         (ctan_test_data): Likewise.
56530         (ctan_tonearest_test_data): Likewise.
56531         (ctan_towardzero_test_data): Likewise.
56532         (ctan_downward_test_data): Likewise.
56533         (ctan_upward_test_data): Likewise.
56534         (ctanh_test_data): Likewise.
56535         (ctanh_tonearest_test_data): Likewise.
56536         (ctanh_towardzero_test_data): Likewise.
56537         (ctanh_downward_test_data): Likewise.
56538         (ctanh_upward_test_data): Likewise.
56539         * math/gen-auto-libm-tests.c (func_calc_method): Add value
56540         mpc_c_c.
56541         (func_calc_desc): Add mpc_c_c union field.
56542         (FUNC_mpc_c_c): New macro.
56543         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
56544         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
56545         ctanh.
56546         (special_fill_min_subnorm_p120): New function.
56547         (special_real_inputs): Add min_subnorm_p120.
56548         (calc_generic_results): Handle mpc_c_c.
56549         * sysdeps/i386/fpu/libm-test-ulps: Update.
56550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56551
56552 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56553
56554         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
56555         (do_sin_slow): New functions.
56556         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
56557         (cslow2, csloww1, csloww2): Use the new functions.
56558
56559         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
56560         Use M to change sign of result instead of X.  Assume X is
56561         positive.
56562         (csloww1): Likewise.
56563         (__sin): Adjust.
56564         (__cos): Adjust.
56565
56566         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
56567         arguments A and DA.
56568         (__sin): Adjust.
56569         (__cos): Likewise.
56570
56571         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
56572         (__cos): Likewise.
56573         (sloww1): Don't adjust sign of DX.
56574         (csloww1): Likewise.
56575         (sloww2): Use X directly and don't adjust sign of DX.
56576         (csloww2): Likewise.
56577
56578 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
56579
56580         * math/auto-libm-test-in: Add tests of cabs and carg.
56581         * math/auto-libm-test-out: Regenerated.
56582         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
56583         (carg_test_data): Likewise.
56584         * math/gen-auto-libm-tests.c (func_calc_method): Add value
56585         mpc_c_f.
56586         (func_calc_desc): Add mpc_c_f union field.
56587         (test_functions): Add cabs and carg.
56588         (calc_generic_results): Handle mpc_c_f.
56589
56590         * sysdeps/powerpc/powerpc32/libgcc-compat.S
56591         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
56592         as a macro and a compat symbol.
56593         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
56594         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
56595         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
56596         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
56597         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
56598         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
56599         not use .hidden.
56600         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
56601         Likewise.
56602         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
56603         Likewise.
56604         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
56605         Likewise.
56606         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
56607         Likewise.
56608         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
56609         Likewise.
56610         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
56611         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
56612         from GLIBC_2.3.2.
56613
56614 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56615
56616         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56617
56618 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
56619
56620         * manual/texinfo.tex: Update to version 2013-11-26.10 with
56621         trailing whitespace removed.
56622         * scripts/config.guess: Update to version 2013-11-29.
56623         * scripts/config.sub: Update to version 2013-10-01.
56624
56625         * math/auto-libm-test-in: Add tests of sincos.
56626         * math/auto-libm-test-out: Regenerated.
56627         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
56628         * math/gen-auto-libm-tests.c (func_calc_method): Add value
56629         mpfr_f_11.
56630         (func_calc_desc): Add mpfr_f_11 union field.
56631         (test_functions): Add sincos.
56632         (calc_generic_results): Handle mpfr_f_11.
56633         * sysdeps/i386/fpu/libm-test-ulps: Update.
56634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56635
56636 2013-12-19  Andreas Schwab  <schwab@suse.de>
56637
56638         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
56639         CALL_MCOUNT.
56640         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
56641         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
56642         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
56643
56644 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
56645
56646         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
56647         * sysdeps/i386/fpu/libm-test-ulps: Update.
56648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56649
56650         [BZ #16293]
56651         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
56652         round-to-nearest mode when using frndint.
56653         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
56654         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
56655         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
56656         Likewise.
56657         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
56658         sinh test to fail.
56659         * math/auto-libm-test-out: Regenerated.
56660         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
56661         (TEST_COND_x86): Likewise.
56662         (expm1_tonearest_test_data): New array.
56663         (expm1_test_tonearest): New function.
56664         (expm1_towardzero_test_data): New array.
56665         (expm1_test_towardzero): New function.
56666         (expm1_downward_test_data): New array.
56667         (expm1_test_downward): New function.
56668         (expm1_upward_test_data): New array.
56669         (expm1_test_upward): New function.
56670         (main): Run the new test functions.
56671         * sysdeps/i386/fpu/libm-test-ulps: Update.
56672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56673
56674         * include/features.h: Update comment documenting feature test
56675         macros.  Mention _DEFAULT_SOURCE in comment.
56676         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
56677         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
56678         _BSD_SOURCE and _SVID_SOURCE.
56679         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
56680         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
56681         !_SVID_SOURCE]: Likewise.
56682         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
56683         (__USE_POSIX_IMPLICITLY): Define.
56684         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
56685         (_POSIX_SOURCE): Undefine and redefine.
56686         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
56687         (_POSIX_C_SOURCE): Likewise.
56688         * manual/creature.texi (_DEFAULT_SOURCE): Document.
56689         (Feature Test Macros): Update documentation of default features.
56690
56691 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
56692
56693         * benchtests/Makefile: Add bench-strtok.
56694         * benchtests/bench-strtok.c: New file: strtok benchtest.
56695
56696 2013-12-19  Allan McRae  <allan@archlinux.org>
56697
56698         * manual/install.texi: Suppress menu for plain text output.
56699         * INSTALL: Regenerated.
56700
56701 2013-12-18  Brooks Moses  <bmoses@google.com>
56702
56703         [BZ #15846]
56704         * misc/getauxval.c: Include errno.h.
56705         (__getauxval): Set errno to ENOENT if the requested type is not
56706         found.
56707         * misc/sys/auxv.h (getauxval): Document that it may set errno;
56708         don't declare with __attribute_const__.
56709         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
56710         * manual/startup.texi: Document that getauxval sets errno.
56711
56712 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
56713
56714         * math/auto-libm-test-in: Add tests of jn and yn.
56715         * math/auto-libm-test-out: Regenerated.
56716         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
56717         (yn_test_data): Likewise.
56718         * math/gen-auto-libm-tests.c (func_calc_method): Add value
56719         mpfr_if_f.
56720         (func_calc_desc): Add mpfr_if_f union field.
56721         (FUNC_mpfr_if_f): New macro.
56722         (test_functions): Add jn and yn.
56723         (calc_generic_results): Assert type of second input for
56724         mpfr_ff_f.  Handle mpfr_if_f.
56725         (output_for_one_input_case): Disable all checking for arguments
56726         fitting floating-point types in case of an integer argument.
56727         * sysdeps/i386/fpu/libm-test-ulps: Update.
56728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56729
56730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
56731         Don't expect fegetround reference in libm.so.
56732
56733 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56734
56735         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
56736         $(config-cflags-nofma).
56737
56738 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
56739
56740         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
56741         * math/auto-libm-test-out: Regenerated.
56742
56743         [BZ #16338]
56744         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
56745         to determine exponent and adjust argument to have exponent of -1.
56746         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
56747         log2.
56748         * math/auto-libm-test-out: Regenerated.
56749         * sysdeps/i386/fpu/libm-test-ulps: Update.
56750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56751
56752 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
56753
56754         * manual/probes.texi: Remove cases when per-thread arenas are
56755         disabled.
56756
56757 2013-12-18  Andreas Schwab  <schwab@suse.de>
56758
56759         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
56760         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
56761         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
56762         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
56763         * sysdeps/i386/i686/multiarch/Makefile: Update.
56764         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
56765
56766 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
56767
56768         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
56769         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
56770
56771 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
56772
56773         [BZ #15968]
56774         Support TZ transition times < 00:00:00.
56775         This is needed for version-3 tz-format files; it supports time
56776         stamps past 2037 for America/Godthab (the only entry in the tz
56777         database for which this change is relevant).
56778         * manual/time.texi (TZ Variable): Document transition times
56779         from -167:59:59 through -00:00:01.
56780         * time/tzset.c (tz_rule): Time of day is now signed.
56781         (__tzset_parse_tz): Parse negative time of day.
56782
56783         Document TZ transition times >= 25:00:00.
56784         * manual/time.texi (TZ Variable): Document transition times from
56785         25:00:00 through 167:59:59.  These are already supported, and this
56786         support will help with version-3 tz-format files.
56787
56788         * manual/time.texi (TZ Variable): Modernize North America example
56789         to reflect current (i.e., 2007-and-later) daylight saving rules.
56790
56791         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
56792
56793 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
56794
56795         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
56796         * sysdeps/unix/bsd/bits/stat.h: Likewise.
56797         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
56798         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
56799         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
56800         * sysdeps/unix/bsd/bsdstat.h: Likewise.
56801         * sysdeps/unix/bsd/clock.c: Likewise.
56802         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
56803         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
56804         * sysdeps/unix/bsd/init-posix.c: Likewise.
56805         * sysdeps/unix/bsd/poll.c: Likewise.
56806         * sysdeps/unix/bsd/ptsname.c: Likewise.
56807         * sysdeps/unix/bsd/seekdir.c: Likewise.
56808         * sysdeps/unix/bsd/setegid.c: Likewise.
56809         * sysdeps/unix/bsd/seteuid.c: Likewise.
56810         * sysdeps/unix/bsd/setgid.c: Likewise.
56811         * sysdeps/unix/bsd/setrgid.c: Likewise.
56812         * sysdeps/unix/bsd/setruid.c: Likewise.
56813         * sysdeps/unix/bsd/setsid.c: Likewise.
56814         * sysdeps/unix/bsd/setuid.c: Likewise.
56815         * sysdeps/unix/bsd/sigaction.c: Likewise.
56816         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
56817         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
56818         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
56819         * sysdeps/unix/bsd/telldir.c: Likewise.
56820         * sysdeps/unix/bsd/times.c: Likewise.
56821         * sysdeps/unix/bsd/usleep.c: Likewise.
56822
56823         * misc/Makefile (install-lib): Remove libbsd-compat.a.
56824         ($(objpfx)libbsd-compat.a): Remove rule.
56825
56826         * include/features.h (__FAVOR_BSD): Do not define.
56827         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
56828         features conflicting with POSIX.
56829         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
56830         (_BSD_SOURCE): Remove description of not being a subset of other
56831         feature test macros.
56832         * manual/job.texi (getpgrp): Do not document BSD version.
56833         (getpgid): Do not document by reference to BSD getpgrp.
56834         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
56835         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
56836         * signal/signal.h [__FAVOR_BSD]: Likewise.
56837         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
56838         instead of making contents conditional on [__FAVOR_BSD].
56839         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
56840
56841 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56842
56843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56844
56845 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
56846
56847         [BZ #16314]
56848         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
56849         values below 2**-450, not 2**-500.
56850         * math/auto-libm-test-in: Don't allow spurious underflow from
56851         hypot.
56852         * math/auto-libm-test-out: Regenerated.
56853
56854         [BZ #16316]
56855         [BZ #16330]
56856         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
56857         values of ha and hb and sort them after adjusting subnormal
56858         arguments.
56859         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
56860         Likewise.
56861         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
56862         values of ea and eb and sort them after adjusting subnormal
56863         arguments.
56864         * math/auto-libm-test-in: Do not expect some hypot tests of
56865         subnormals to fail.  Add more hypot tests.
56866         * math/auto-libm-test-out: Regenerated.
56867
56868 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
56869
56870         [BZ #13304]
56871         * sysdeps/sh/s_fma.c: New file.
56872         * sysdeps/sh/s_fmaf.c: New file.
56873         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
56874         version.
56875         * sysdeps/sh/Implies: Add sh/soft-fp.
56876
56877 2013-12-16  Roland McGrath  <roland@hack.frob.com>
56878
56879         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
56880         level of indirection to members `objname', `errstring', `malloced'.
56881         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
56882         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
56883         it as the __longjmp argument (just pass 1 instead).
56884         (_dl_catch_error): Initialize C with argument pointers and address of
56885         volatile local ERRCODE rather than copying values out of C at return.
56886
56887 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
56888
56889         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
56890         * math/auto-libm-test-out: Regenerated.
56891         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
56892         (hypot_test_data): Likewise.
56893         (pow_test_data): Likewise.
56894         (pow_tonearest_test_data): Likewise.
56895         * math/gen-auto-libm-tests.c (func_calc_method): Add value
56896         mpfr_ff_f.
56897         (func_calc_desc): Add mpfr_ff_f union field.
56898         (FUNC_mpfr_ff_f): New macro.
56899         (test_functions): Add atan2, hypot and pow.
56900         (special_fill_min): New function.
56901         (special_fill_minus_min): Likewise.
56902         (special_fill_min_subnorm): Likewise.
56903         (special_fill_minus_min_subnorm): Likewise.
56904         (special_real_inputs): Add min, -min, min_subnorm and
56905         -min_subnorm.
56906         (calc_generic_results): Handle mpfr_ff_f.
56907         * sysdeps/i386/fpu/libm-test-ulps: Update.
56908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56909
56910 2013-12-16  Will Newton  <will.newton@linaro.org>
56911
56912         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
56913         (Aligned Memory Blocks): Add documentation for aligned_alloc
56914         and suggest it as an alternative to posix_memalign.
56915         (Hooks for Malloc): Document __memalign_hook is also called
56916         for aligned_alloc.  (Summary of Malloc): Add summary for
56917         aligned alloc.  Document __memalign_hook is also called
56918         for aligned_alloc.
56919
56920 2013-12-16  Will Newton  <will.newton@linaro.org>
56921
56922         * manual/memory.texi (Malloc Examples): Clarify default
56923         alignment documentation.  Suggest posix_memalign rather
56924         than memalign or valloc.
56925         (Aligned Memory Blocks): Remove suggestion to use memalign
56926         or valloc.  Remove obsolete comment about BSD.
56927         Document memalign errno values and mark the function obsolete.
56928         Document posix_memalign returned error codes.  Mark valloc
56929         as obsolete.  (Hooks for Malloc): __memalign_hook is also
56930         called for posix_memalign and valloc.
56931         (Summary of Malloc): Add posix_memalign to function summary.
56932         __memalign_hook is also called for posix_memalign and valloc.
56933
56934 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
56935
56936         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
56937         TAYLOR_SIN.
56938         (__sin): Adjust.
56939         (__cos): Likewise.
56940         (sloww): Use mynumber union.  Expand ternary operator into
56941         if-else statements.
56942         (cslow): use mynumber union.
56943
56944 2013-12-16  Allan McRae  <allan@archlinux.org>
56945
56946         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
56947         * configure: Regenerated.
56948
56949         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
56950
56951         [BZ #14120]
56952         * configure.ac: Added --enable-maintainer-mode. Check for
56953         autoconf when enabled.
56954         * configure: Regenerated.
56955
56956         * nscd/nscd.service: New file.
56957         * nscd/nscd.tmpfiles: New file.
56958
56959 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
56960
56961         [BZ #12100]
56962         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
56963         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
56964         * sysdeps/x86_64/multiarch/strstr.c: ... here.
56965         (strstr): Add __strstr_sse2_unaligned ifunc.
56966         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
56967         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
56968         (strcasestr): Remove __strcasestr_sse42 ifunc.
56969         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
56970         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
56971         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
56972
56973 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
56974
56975         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
56976         * sysdeps/sh/bits/fenv.h: ... here.
56977         * sysdeps/sh/sh4/fpu/bits: Remove directory.
56978
56979 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56980
56981         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
56982
56983         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
56984         hypotf multiarch implementations.
56985         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
56986         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
56987         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
56988         multiarch hypot for PPC64.
56989         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
56990         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
56991         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
56992         multiarch hypotf for PPC64.
56993
56994         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
56995         modff multiarch implementations.
56996         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
56997         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
56998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
56999         multiarch modf for PPC64.
57000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
57001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
57002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
57003         multiarch modff for PPC64.
57004
57005         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
57006         and logl multiarch implementations.
57007         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
57008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
57009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
57010         multiarch logb for PPC64.
57011         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
57012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
57013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
57014         multiarch logb for PPC64.
57015         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
57016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
57017         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
57018         multiarch logb for PPC64.
57019
57020         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
57021         isinff multiarch implementation.
57022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
57023         file.
57024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
57025         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
57026         multiarch isinf for PPC64.
57027         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
57028         file.
57029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
57030         multiarch isinff for PPC64.
57031
57032         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
57033         finitef multiarch implementation.
57034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
57035         file.
57036         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
57037         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
57038         multiarch finite for PPC64.
57039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
57040         file.
57041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
57042         multiarch finitef for PPC64.
57043
57044         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
57045         lrint multiarch implementation.
57046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
57047         file.
57048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
57049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
57050         multiarch llrint for PPC64.
57051         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
57052         multiarch lrint for PPC64.
57053
57054         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
57055         copysignf multiarch implementation.
57056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
57057         file.
57058         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
57059         file.
57060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
57061         multiarch copysign for PPC64.
57062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
57063         multiarch copysignf for PPC64.
57064
57065         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
57066         multiarch implementation.
57067         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
57068         file.
57069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
57070         file.
57071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
57072         file.
57073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
57074         file.
57075         multiarch llround for PPC64.
57076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
57077         multiarch trunc for PPC64.
57078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
57079         multiarch truncf for PPC64.
57080
57081         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
57082         multiarch implementation.
57083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
57084         file.
57085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
57086         file.
57087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
57088         file.
57089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
57090         file.
57091         multiarch llround for PPC64.
57092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
57093         multiarch round for PPC64.
57094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
57095         multiarch roundf for PPC64.
57096
57097         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
57098         multiarch implementation.
57099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
57100         file.
57101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
57102         file.
57103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
57104         file.
57105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
57106         file.
57107         multiarch llround for PPC64.
57108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
57109         multiarch floor for PPC64.
57110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
57111         multiarch floorf for PPC64.
57112
57113         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
57114         multiarch implementation.
57115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
57116         file.
57117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
57118         file.
57119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
57120         file.
57121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
57122         file.
57123         multiarch llround for PPC64.
57124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
57125         multiarch ceil for PPC64.
57126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
57127         multiarch ceilf for PPC64.
57128
57129         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
57130         multiarch implementation.
57131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
57132         file.
57133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
57134         file.
57135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
57136         file.
57137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
57138         multiarch llround for PPC64.
57139         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
57140         multiarch lround for PPC64.
57141
57142         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
57143         multiarch implementation.
57144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
57145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
57146         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
57147         file.
57148         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
57149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
57150         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
57151         multiarch isnan for PPC64.
57152         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
57153         multiarch isnanf for PPC64.
57154
57155         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
57156         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
57157         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
57158         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
57159         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
57160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
57161
57162         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
57163         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
57164         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
57165         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
57166
57167         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
57168         multiarch implementations.
57169         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57170         (__libc_ifunc_impl_list): Likewise.
57171         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
57172         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
57173         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
57174         multiarch stpcpy for PPC64.
57175
57176         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
57177         multiarch implementations.
57178         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57179         (__libc_ifunc_impl_list): Likewise.
57180         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
57181         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
57182         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
57183         multiarch strcpy for PPC64.
57184
57185         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
57186         redefine function name.
57187         (_wordcopy_fwd_dest_aligned): Likewise.
57188         (_wordcopy_bwd_aligned): Likewise.
57189         (_wordcopy_bwd_dest_aligned): Likewise.
57190         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
57191         multiarch implementations.
57192         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57193         (__libc_ifunc_impl_list): Likewise.
57194         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
57195         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
57196         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
57197         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
57198         multiarch wcscpy for PPC64.
57199
57200         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
57201         multiarch implementations.
57202         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57203         (__libc_ifunc_impl_list): Likewise.
57204         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
57205         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
57206         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
57207         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
57208         multiarch wcscpy for PPC64.
57209
57210         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
57211         multiarch implementations.
57212         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57213         (__libc_ifunc_impl_list): Likewise.
57214         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
57215         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
57216         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
57217         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
57218         multiarch wcsrchr for PPC64.
57219
57220         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
57221         multiarch implementations.
57222         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57223         (__libc_ifunc_impl_list): Likewise.
57224         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
57225         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
57226         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
57227         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
57228         multiarch wcschr for PPC64.
57229
57230         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
57231         multiarch implementations.
57232         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57233         (__libc_ifunc_impl_list): Likewise.
57234         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
57235         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
57236         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
57237         multiarch strchrnul for PPC64.
57238
57239         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
57240         implementations.
57241         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57242         (__libc_ifunc_impl_list): Likewise.
57243         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
57244         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
57245         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
57246         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
57247         strchr for PPC64.
57248
57249         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
57250         implementations.
57251         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57252         (__libc_ifunc_impl_list): Likewise.
57253         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
57254         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
57255         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
57256         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
57257         strncmp for PPC64.
57258
57259         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
57260         multiarch implementations.
57261         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57262         (__libc_ifunc_impl_list): Likewise.
57263         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
57264         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
57265         strncasecmp for PPC64.
57266         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
57267         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
57268         multiarch strncasecmp_l for PPC64.
57269
57270         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
57271         multiarch implementations.
57272         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
57273         (__libc_ifunc_impl_list): Likewise.
57274         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
57275         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
57276         multiarch strcasecmp for PPC64.
57277         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
57278         file.
57279         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
57280         multiarch strcasecmp_l for PPC64.
57281
57282         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
57283         implementations.
57284         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57285         (__libc_ifunc_impl_list): Likewise.
57286         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
57287         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
57288         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
57289         strnlen for PPC64.
57290
57291         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
57292         implementations.
57293         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57294         (__libc_ifunc_impl_list): Likewise.
57295         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
57296         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
57297         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
57298         strlen for PPC64.
57299
57300         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
57301         implementations.
57302         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57303         (__libc_ifunc_impl_list): Likewise.
57304         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
57305         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
57306         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
57307         rawmemrchr for PPC64.
57308
57309         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
57310         implementation.
57311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57312         (__libc_ifunc_impl_list): Likewise.
57313         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
57314         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
57315         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
57316         memrchr for PPC64.
57317
57318         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
57319         implementation.
57320         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57321         (__libc_ifunc_impl_list): Likewise.
57322         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
57323         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
57324         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
57325         memchr for PPC64.
57326
57327         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
57328         implementation.
57329         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57330         (__libc_ifunc_impl_list): Likewise.
57331         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
57332         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
57333         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
57334         mempcpy for PPC64.
57335
57336         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
57337         avoid cretion of __bzero symbol.
57338         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
57339         Likewise.
57340         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
57341         Likewise.
57342         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
57343         Likewise.
57344         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
57345         multiarch implementations.
57346         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57347         (__libc_ifunc_impl_list): Likewise.
57348         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
57349         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
57350         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
57351         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
57352         bzero for PPC32.
57353         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
57354         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
57355         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
57356         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
57357         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
57358         memset for PPC64.
57359         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
57360
57361         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
57362         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
57363         implementations.
57364         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
57365         (__libc_ifunc_impl_list): Likewise.
57366         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
57367         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
57368         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
57369         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
57370         memcmp for PPC64.
57371
57372         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
57373         multiarch for POWER/PPC64.
57374         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
57375         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
57376         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
57377         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
57378         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
57379         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
57380         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
57381         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
57382         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
57383         memcpy for PPC64.
57384
57385         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
57386         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
57387         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
57388         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
57389         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
57390         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
57391         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
57392         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
57393         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
57394         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
57395         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
57396         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
57397         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
57398         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
57399         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
57400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
57401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
57402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
57403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
57404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
57405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
57406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
57407
57408 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
57409
57410         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
57411
57412 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
57413
57414         * benchtests/Makefile (bench): Add exp2 and log2.
57415         (LDLIBS-bench-exp2): Add -lm.
57416         (LDLIBS-bench-log2): Likewise.
57417         * benchtests/exp2-inputs: New inputs file.
57418         * benchtests/log2-inputs: New inputs file.
57419         * benchtests/log-inputs: Add new inputs.
57420         * benchtests/tan-inputs: Likewise.
57421
57422 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
57423
57424         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
57425         definition...
57426         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
57427         (csloww2): ... from here.
57428
57429         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
57430         instead of structures.
57431         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
57432         (POLYNOMIAL): Likewise.
57433         (TAYLOR_SLOW): Likewise.
57434         (__sin): Likewise.
57435         (__cos): Likewise.
57436         (slow1): Likewise.
57437         (slow2): Likewise.
57438         (sloww): Likewise.
57439         (sloww1); Likewise.
57440         (sloww2): Likewise.
57441         (bsloww1): Likewise.
57442         (bsloww2): Likewise.
57443         (cslow2): Likewise.
57444         (csloww): Likewise.
57445         (csloww1): Likewise.
57446         (csloww2): Likewise.
57447
57448 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
57449
57450         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
57451         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
57452         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
57453         * malloc/hooks.c (realloc_check): Likewise.
57454
57455         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
57456         * malloc/arena.c: Remove PER_THREAD conditional.
57457         [!PER_THREAD]: Remove code.
57458         (ptmalloc_unlock_all2): Likewise.
57459         (ptmalloc_init): Likewise.
57460         (_int_new_arena): Likewise.
57461         (arena_get2): Likewise.
57462         * malloc/hooks.c (__malloc_get_state): Likewise.
57463         (__malloc_set_state): Likewise.
57464         * malloc/malloc.c: Likewise.
57465         (struct malloc_state): Likewise.
57466         (struct malloc_par): Likewise.
57467         (__libc_realloc): Likewise.
57468         (__libc_mallopt): Likewise.
57469
57470 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57471
57472         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
57473
57474 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
57475
57476         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
57477         macro to a function.  Check for zero perturb_byte.
57478         (_int_malloc, _int_free): Remove zero perturb_byte checks.
57479
57480         * malloc/malloc.c: (force_reg): Remove.
57481         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
57482         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
57483         force_reg by atomic_forced_read.
57484         * malloc/arena.c (ptmalloc_init): Likewise.
57485         * malloc/hooks.c (top_check): Likewise.
57486
57487 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57488
57489         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57490
57491 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
57492
57493         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57494
57495 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
57496
57497         * math/auto-libm-test-in: Add tests of lgamma.
57498         * math/auto-libm-test-out: Regenerated.
57499         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
57500         (M_LOG_2_SQRT_PIl): Likewise.
57501         (lgamma_test_data): Use AUTO_TESTS_f_f1.
57502         * math/gen-auto-libm-tests.c (func_calc_method): Add value
57503         mpfr_f_f1.
57504         (func_calc_desc): Add mpfr_f_f1 union field.
57505         (ARGS1): New macro.
57506         (ARGS2): Likewise.
57507         (ARGS3): Likewise.
57508         (ARGS4): Likewise.
57509         (RET1): Likewise.
57510         (RET2): Likewise.
57511         (CALC): Likewise.
57512         (FUNC): Likewise.
57513         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
57514         (test_functions): Add lgamma.
57515         (calc_generic_results): Handle mpfr_f_f1.
57516         * sysdeps/i386/fpu/libm-test-ulps: Update.
57517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57518
57519 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57520
57521         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
57522         __mpn_add_n for PowerPC64/POWER7.
57523         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
57524         __mpn_sub_n for PowerPC64/POWER7.
57525
57526         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
57527         __mpn_addmul_1 for PowerPC64.
57528         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
57529         __mpn_submul_1 for PowerPC64.
57530         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
57531         for PowerPC64.
57532         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
57533         for PowerPC64.
57534
57535 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
57536
57537         [BZ #15089]
57538         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
57539
57540 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57541
57542         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
57543
57544         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
57545         add multiarch folders.
57546         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
57547         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
57548         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
57549         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
57550         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
57551         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
57552         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
57553         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
57554         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
57555         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
57556         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
57557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
57558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
57559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
57560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
57561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
57562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
57563
57564         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
57565         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
57566         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
57567         New file.
57568         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
57569         New file.
57570         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
57571         multiarch __ieee754_hypot for PowerPC32.
57572         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
57573         New file.
57574         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
57575         New file.
57576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
57577         multiarch __ieee754_hypotf for PowerPC32.
57578
57579         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
57580         long_double_symbol only if __logbl is defined.
57581         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
57582         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
57583         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
57584         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
57585         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
57586         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
57587         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
57588         path for implementation.
57589         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
57590         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
57591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
57592         logb, and logbl multiarch implementations for PowerPC32.
57593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
57594         file.
57595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
57596         file.
57597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
57598         multiarch logb for PowerPC32.
57599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
57600         file.
57601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
57602         file.
57603         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
57604         multiarch logbf for PowerPC32.
57605         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
57606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
57607         file.
57608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
57609         multiarch logbl implementation for PowerPC32.
57610
57611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
57612         and modff multiarch implementations.
57613         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
57614         New file.
57615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
57616         New file.
57617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
57618         multiarch modf for PowerPC32.
57619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
57620         New file.
57621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
57622         New file.
57623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
57624         multiarch modff for PowerPC32.
57625
57626         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
57627         and lrintf multiarch implementations.
57628         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
57629         New file.
57630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
57631         New file.
57632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
57633         multiarch lrint for PowerPC32.
57634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
57635         file: multiarch lrintf for PowerPC32.
57636
57637         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
57638         and lroundf multiarch implementations.
57639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
57640         New file.
57641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
57642         New file.
57643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
57644         New file.
57645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
57646         multiarch lround for PowerPC32.
57647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
57648         file: multiarch lroundf for PowerPC32.
57649
57650         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
57651         copysign and copysignf multiarch implementations.
57652         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
57653         New file.
57654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
57655         New file.
57656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
57657         file: multiarch copysign for PowerPC32.
57658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
57659         file: multiarch copysignf for PowerPC32.
57660
57661         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
57662         and truncf multiarch implementations.
57663         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
57664         New file.
57665         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
57666         file.
57667         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
57668         multiarch trunc for PowerPC32.
57669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
57670         New file.
57671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
57672         New file.
57673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
57674         multiarch truncf for PowerPC32.
57675
57676         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
57677         and roundf multiarch implementations.
57678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
57679         New file.
57680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
57681         file.
57682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
57683         multiarch round for PowerPC32.
57684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
57685         New file.
57686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
57687         New file.
57688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
57689         multiarch roundf for PowerPC32.
57690
57691         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
57692         and floorf multiarch implementations.
57693         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
57694         New file.
57695         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
57696         file.
57697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
57698         multiarch floor for PowerPC32.
57699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
57700         New file.
57701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
57702         New file.
57703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
57704         multiarch floorf for PowerPC32.
57705
57706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
57707         and ceilf multiarch implementations.
57708         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
57709         New file.
57710         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
57711         file.
57712         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
57713         multiarch ceil for PowerPC32.
57714         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
57715         New file.
57716         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
57717         file.
57718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
57719         multiarch ceilf for PowerPC32.
57720
57721         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
57722         is defined.
57723         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
57724         FINITEF is defined.
57725         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
57726         and finitef multiarch implementations.
57727         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
57728         New file.
57729         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
57730         file.
57731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
57732         multiarch finite for PowerPC32.
57733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
57734         New file.
57735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
57736         file: multiarch finitef for PowerPC32.
57737
57738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
57739         and isinff multiarch implementations.
57740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
57741         file.
57742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
57743         file.
57744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
57745         multiarch isinf for PowerPC32.
57746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
57747         New file.
57748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
57749         multiarch isinff for PowerPC32.
57750
57751         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
57752         alias when __isnan is defined.
57753         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
57754         and isnanf multiarch implementations.
57755         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
57756         file.
57757         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
57758         file.
57759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
57760         file.
57761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
57762         file.
57763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
57764         multiarch isnan for PowerPC32.
57765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
57766         New file.
57767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
57768         New file.
57769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
57770         multiarch isnanf for PowerPC32.
57771
57772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
57773         and sqrtf multiarch implementations.
57774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
57775         file.
57776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
57777         file.
57778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
57779         multiarch sqrt for PowerPC32.
57780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
57781         file.
57782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
57783         file.
57784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
57785         multiarch sqrtf for PowerPC32.
57786
57787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
57788         and llroundf multiarch implementations.
57789         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
57790         New file.
57791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
57792         New file.
57793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
57794         New file.
57795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
57796         file: multiarch llround for PowerPC32.
57797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
57798         file: multiarch llroundf for PowerPC32.
57799
57800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
57801         multiarch PowerPC32 fpu implementations.
57802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
57803         New file.
57804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
57805         New file.
57806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
57807         multiarch llrint for PowerPC32.
57808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
57809         New file.
57810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
57811         New file.
57812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
57813         file.
57814
57815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
57816
57817         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
57818         file.
57819         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
57820         file.
57821         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
57822         file.
57823         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
57824         multiarch wordcopy for PPC32.
57825         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
57826         wordcopy objects.
57827         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57828         (__libc_ifunc_impl_list): Likewise.
57829         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
57830         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
57831         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
57832         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
57833         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
57834         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
57835
57836         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
57837         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
57838         file.
57839         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
57840         file.
57841         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
57842         file.
57843         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
57844         multiarch wcscpy for PPC32.
57845         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
57846         multiarch objects.
57847         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57848         (__libc_ifunc_impl_list): Likewise.
57849         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
57850         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
57851         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
57852         sysdeps/powerpc/power6/wcscpy.c.
57853
57854         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
57855         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
57856         file.
57857         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
57858         file.
57859         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
57860         file.
57861         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
57862         multiarch wcsrchr for PPC32.
57863         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
57864         multiarch objects.
57865         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57866         (__libc_ifunc_impl_list): Likewise.
57867         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
57868         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
57869         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
57870         sysdeps/powerpc/power6/wcsrchr.c.
57871
57872         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
57873         file.
57874         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
57875         file.
57876         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
57877         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
57878         multiarch wcschr for PPc32.
57879         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
57880         multiarch objects.
57881         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57882         (__libc_ifunc_impl_list): Likewise.
57883         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
57884         * sysdeps/powerpc/power6/wcschr.c: ... to here.
57885         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
57886         sysdeps/powerpc/power6/wcschr.c.
57887
57888         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
57889         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
57890         file.
57891         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
57892         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
57893         file: multiarch strchr for PPC32.
57894         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
57895         multiarch objects.
57896         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57897         (__libc_ifunc_impl_list): Likewise.
57898
57899         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
57900         name.
57901         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
57902         file.
57903         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
57904         file.
57905         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
57906         multiarch strchrnul for PPC32.
57907         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
57908         multiarch objects.
57909         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57910         (__libc_ifunc_impl_list): Likewise.
57911
57912         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
57913         file.
57914         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
57915         multiarch strncasecmp for PPC32.
57916         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
57917         file.
57918         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
57919         multiarch strncasecmp_l for PPC32.
57920         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
57921         strncasecmp multiarch objects.
57922         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57923         (__libc_ifunc_impl_list): Likewise.
57924
57925         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
57926         file.
57927         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
57928         multiarch strncasecmp for PPC32.
57929         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
57930         New file.
57931         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
57932         multiarch strcasecmp_l for PPC32.
57933         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
57934         multiarch objects.
57935         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57936         (__libc_ifunc_impl_list): Likewise.
57937
57938         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
57939         file.
57940         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
57941         file.
57942         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
57943         multiarch strncmp for PPC32.
57944         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
57945         multiarch objects.
57946         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57947         (__libc_ifunc_impl_list): Likewise.
57948
57949         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
57950         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
57951         file.
57952         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
57953         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
57954         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
57955         multiarch objects.
57956         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57957         (__libc_ifunc_impl_list): Likewise.
57958
57959         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
57960         file.
57961         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
57962         file.
57963         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
57964         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
57965         multiarch objects.
57966         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57967         (__libc_ifunc_impl_list): Likewise.
57968
57969         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
57970         file.
57971         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
57972         file.
57973         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
57974         multiarch rawmemchr for PPC32.
57975         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
57976         multiarch objects.
57977         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57978         (__libc_ifunc_impl_list): Likewise.
57979
57980         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
57981         file.
57982         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
57983         file.
57984         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
57985         file: memrchr multiarch for PPC32.
57986         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
57987         multiarch objects.
57988         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
57989         (__libc_ifunc_impl_list): Likewise.
57990
57991         * string/memchr.c (__memchr): Using macro to redefine symbol name.
57992         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
57993         file.
57994         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
57995         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
57996         multiarch memchr for PPC32.
57997         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
57998         multiarch objects.
57999         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
58000         (__libc_ifunc_impl_list): Likewise.
58001
58002         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
58003         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
58004         file.
58005         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
58006         file.
58007         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
58008         file: multiarch mempcpy for PPC32.
58009         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
58010         multiarch objects.
58011         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
58012         (__libc_ifunc_impl_list): Likewise.
58013
58014         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
58015         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
58016         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
58017         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
58018         multiarch bzero for PPC32.
58019         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
58020         file.
58021         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
58022         file.
58023         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
58024         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
58025         file: multiarch memset for PPC32.
58026         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
58027         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
58028         memset multiarch objects.
58029         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
58030         (__libc_ifunc_impl_list): Likewise.
58031
58032         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
58033         file.
58034         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
58035         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
58036         memcmp for PPC32.
58037         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
58038         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
58039         multiarch objects.
58040         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
58041         (__libc_ifunc_impl_list): Likewise.
58042
58043         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
58044         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
58045         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
58046         file.
58047         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
58048         file.
58049         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
58050         file.
58051         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
58052         multiarch memcpy for PPC32.
58053         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
58054         multiarch objects.
58055         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
58056         (__libc_ifunc_impl_list): Likewise.
58057
58058         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
58059         support multiarch for POWER/PPC32.
58060         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
58061         Likewise.
58062         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
58063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
58064         Implies file to make multiarch folder appers before the fpu and
58065         default folder for power4 configuration.
58066
58067 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
58068
58069         * scripts/bench.pl: Append volatile keyword to type.
58070
58071 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
58072
58073         * sysdeps/sh/sotruss-lib.c: New file.
58074         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
58075
58076 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58077
58078         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58079
58080 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
58081
58082         [BZ #6810]
58083         * math/w_tgamma.c: Include <errno.h>.
58084         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
58085         * math/w_tgammaf.c: Include <errno.h>.
58086         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
58087         * math/w_tgammal.c: Include <errno.h>.
58088         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
58089         * math/auto-libm-test-in: Do not allow missing errno on tgamma
58090         underflow.  Add more tgamma tests.
58091         * math/auto-libm-test-out: Regenerated.
58092         * sysdeps/i386/fpu/libm-test-ulps: Update.
58093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58094
58095         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
58096         sin, sinh, tan, tanh, tgamma, y0 and y1.
58097         * math/auto-libm-test-out: Regenerated.
58098         * math/libm-test.inc (TEST_COND_x86_64): New macro.
58099         (TEST_COND_x86): Likewise.
58100         (M_E2l): Remove macro.
58101         (M_E3l): Likewise.
58102         (M_2_SQRT_PIl): Likewise.
58103         (M_SQRT_PIl): Likewise.
58104         (M_1_DIV_El): Likewise.
58105         (log_test_data): Use AUTO_TESTS_f_f.
58106         (log10_test_data): Likewise.
58107         (log1p_test_data): Likewise.
58108         (log2_test_data): Likewise.
58109         (sin_test_data): Likewise.
58110         (sin_tonearest_test_data): Likewise.
58111         (sin_towardzero_test_data): Likewise.
58112         (sin_downward_test_data): Likewise.
58113         (sin_upward_test_data): Likewise.
58114         (sinh_test_data): Likewise.
58115         (sinh_tonearest_test_data): Likewise.
58116         (sinh_towardzero_test_data): Likewise.
58117         (sinh_downward_test_data): Likewise.
58118         (sinh_upward_test_data): Likewise.
58119         (tan_test_data): Likewise.
58120         (tan_tonearest_test_data): Likewise.
58121         (tan_towardzero_test_data): Likewise.
58122         (tan_downward_test_data): Likewise.
58123         (tan_upward_test_data): Likewise.
58124         (tanh_test_data): Likewise.
58125         (tgamma_test_data): Likewise.
58126         (y0_test_data): Likewise.
58127         (y1_test_data): Likewise.
58128         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
58129         (special_real_inputs): Add pi/4.
58130         * sysdeps/i386/fpu/libm-test-ulps: Update.
58131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58132
58133 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58134
58135         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
58136         "longjmp_target" static probes.
58137         (__longjmp): Rename to __longjmp_symbol.
58138         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
58139         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
58140         on which longjmp to generate.
58141         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
58142         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
58143         probe.
58144         (__sigsetjmp): Rename to __sigsetjmp_symbol.
58145         (__sigjmp_save): Rename to __sigjmp_save_symbol.
58146         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
58147         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
58148         and __sigjmp_save_symbol based on which sigsetjmp to generated.
58149         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
58150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
58151         __longjmp_symbol based on which __longjmp to generate.
58152         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
58153         probe.
58154         (setjmp): Rename to setjmp_symbol.
58155         (__sigsetjmp): Rename to __sigsetjmp_symbol.
58156         (_setjmp): Rename to _setjmp_symbol.
58157         (__sigsetjmp): Rename to __sigsetjmp_symbol.
58158         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
58159         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
58160         which setjmp to generate.
58161         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
58162         "longjmp_target" static probes.
58163
58164 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58165
58166         * benchtests/README: Add note about output arguments.
58167         * benchtests/bench-sincos.c: Remove file.
58168         * benchtests/sincos-inputs: New file.
58169         * scripts/bench.pl: Identify output arguments and define
58170         static variables for them.
58171
58172         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
58173
58174         [BZ #15941]
58175         * Makefile (INSTALL): Add install-plain.texi as the primary
58176         dependency.
58177         * manual/install-plain.texi: New file.
58178         * manual/install.texi: Include node directive only for
58179         non-plaintext output.
58180
58181 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
58182
58183         * stdlib/longlong.h: Update from GCC.
58184
58185         [BZ #6807]
58186         [BZ #15901]
58187         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
58188         * math/w_j0f.c (y0f): Likewise.
58189         * math/w_j0l.c (__y0l): Likewise.
58190         * math/w_j1.c (y1): Likewise.
58191         * math/w_j1f.c (y1f): Likewise.
58192         * math/w_j1l.c (__y1l): Likewise.
58193         * math/w_jn.c (yn): Likewise.
58194         * math/w_jnf.c (ynf): Likewise.
58195         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
58196         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
58197         value for Bessel function domain errors outside _SVID_ mode.
58198         Adjust sign of return value for yn (negative integer, 0).
58199         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
58200         by zero in return for negative x and set sign appropriately for
58201         negative n.
58202         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
58203         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
58204         * math/libm-test.inc (y0_test_data): Add more tests and adjust
58205         expectations in error cases.
58206         (y1_test_data): Likewise.
58207         (yn_test_data): Likewise.
58208         * sysdeps/i386/fpu/libm-test-ulps: Update.
58209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58210
58211 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
58212
58213         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
58214         "64" to "64-v1".  Add "64-v2".
58215         (abi-64-options): Rename to ...
58216         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
58217         (abi-64-condition): Rename to ...
58218         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
58219         (abi-64-ld-soname): Rename to ...
58220         (abi-64-v1-ld-soname): ... this.
58221         (abi-64-v2-options): Define.
58222         (abi-64-v2-condition): Likewise.
58223         (abi-64-v2-ld-soname): Likewise.
58224         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
58225         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
58226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
58227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
58228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
58229
58230 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
58231             Alan Modra  <amodra@gmail.com>
58232
58233         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
58234         New versions for use with the ELFv2 ABI.
58235         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
58236         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
58237         declaration.
58238         (struct La_ppc64v2_retval): Likewise.
58239         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
58240         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
58241         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
58242         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
58243         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
58244         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
58245         Do not save or restore CR.
58246         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
58247         (_dl_profile_resolve): Do no save or restore CR.  Support extended
58248         return values for ELFv2 ABI.  Fix location of FPR return registers.
58249         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
58250         updated values for _CALL_ELF == 2.
58251         (La_regs, La_retval, int_retval): Likewise.
58252
58253 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
58254
58255         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
58256         (FRAME_MIN_SIZE_PARM): Likewise.
58257         (FRAME_BACKCHAIN): Likewise.
58258         (FRAME_CR_SAVE): Likewise.
58259         (FRAME_LR_SAVE): Likewise.
58260         (FRAME_TOC_SAVE): Likewise.
58261         (FRAME_PARM_SAVE): Likewise.
58262         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
58263         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
58264         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
58265         (call_mcount_parm_offset): New macro.
58266         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
58267         (PROF): Use symbolic stack frame offsets.
58268         (TAIL_CALL_SYSCALL_ERROR): Likewise.
58269         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
58270         Redefine in terms of FRAME_MIN_SIZE.
58271         (_dl_runtime_resolve): Use symbolic stack frame offsets.
58272         (_dl_profile_resolve): Likewise.  Update comment.
58273         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
58274         symbols stack frame offsets.
58275         (__sigsetjmp): Likewise.
58276         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
58277         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
58278         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
58279         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
58280
58281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
58282         (FRAME_BACKCHAIN): Remove.
58283         (FRAME_CR_SAVE): Likewise.
58284         (FRAME_LR_SAVE): Likewise.
58285         (FRAME_COMPILER_DW): Likewise.
58286         (FRAME_LINKER_DW): Likewise.
58287         (FRAME_TOC_SAVE): Likewise.
58288         (FRAME_PARM_SAVE): Likewise.
58289         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
58290         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
58291         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
58292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
58293         (CHECK_SP): Use symbolic stack frame offsets.
58294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
58295         zone" instead of caller's parameter save area for temp storage.
58296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
58297         Likewise.  Also, use symbolic stack frame offsets.
58298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
58299         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
58300         our own stack frame instead of the caller's.
58301         (__socket): Use symbolic stack frame offsets.
58302
58303 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
58304             Alan Modra  <amodra@gmail.com>
58305
58306         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
58307         Define.
58308         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
58309         (PPC64_LOCAL_ENTRY_OFFSET): Define.
58310         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
58311         New function.
58312         (elf_machine_fixup_plt): Call it.
58313         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
58314         reloc arguments.
58315         (elf_machine_rela): Update call to elf_machine_plt_conflict.
58316         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
58317         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
58318         r2 before calling target.
58319
58320 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
58321             Alan Modra  <amodra@gmail.com>
58322
58323         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
58324         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
58325         versions of macros to support ELFv2 ABI.
58326         (LOCALENTRY): New macro.
58327         (ENTRY, EALIGN): Use it.
58328         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
58329         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
58330         fall through into ENTRY entry point.
58331         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
58332         Only define if _CALL_ELF != 2.
58333
58334         (elf_machine_matches_host): Verify ABI version matches.
58335         (RTLD_START): Use LOCALENTRY.
58336         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
58337         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
58338         (PLT_ENTRY_WORDS): New macro.
58339         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
58340         (elf_machine_runtime_setup): Support ELFv2 ABI.
58341         (elf_machine_fixup_plt): Likewise.
58342         (elf_machine_plt_conflict): Likewise.
58343         (resolve_ifunc): Likewise.
58344         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
58345         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
58346         Likewise.
58347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
58348         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
58349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
58350         (makecontext): Support ELFv2 ABI.
58351         * elf/elf.h (EF_PPC64_ABI): Define.
58352
58353 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
58354
58355         * sysdeps/powerpc/powerpc64/sysdep.h
58356         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
58357         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
58358         (ENTRY) [ASSEMBLER]: ... but instead here ...
58359         (EALIGN) [ASSEMBLER]: ... and here.
58360         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
58361         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
58362         (ENTRY_2) [!ASSEMBLER]: Use it.
58363         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
58364         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
58365         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
58366         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
58367         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
58368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
58369         Use PPC64_LOAD_FUNCPTR.
58370
58371         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
58372
58373 2013-12-04  Alan Modra  <amodra@gmail.com>
58374
58375         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
58376         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
58377         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
58378         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
58379
58380         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
58381         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
58382         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
58383         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
58384         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
58385         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
58386
58387 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
58388
58389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
58390         (__makecontext): Fix incorrect CFI when backtracing out of
58391         context created via makecontext.
58392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
58393         (__setcontext): Fix incorrect CFI during switch to new context.
58394         (__novec_setcontext): Likewise.
58395
58396 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
58397
58398         [BZ #4772]
58399         * time/strptime_l.c (__strptime_internal): Allow modifiers
58400         in strptime.
58401         * time/tst-strptime.c (day_tests): Add testcase.
58402
58403 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
58404
58405         * scripts/bench.pl: Skip over blank lines.
58406
58407 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58408
58409         [BZ #926]
58410         * manual/time.texi (Calendar Time): Clarify what timezone functions
58411         use.
58412
58413 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58414
58415         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58416
58417 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
58418
58419         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
58420         implementation.
58421         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
58422         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
58423         * debug/memset_chk.c (__memset_chk): Likewise.
58424         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
58425         * debug/strncpy_chk.c: Likewise.
58426
58427 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
58428
58429         [BZ #15268]
58430         [BZ #15425]
58431         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
58432         (__ieee754_exp): For possibly underflowing results, check size of
58433         result and force underflow exception if required.
58434         * math/auto-libm-test-in: Add more tests of exp.
58435         * math/auto-libm-test-out: Regenerated.
58436         * sysdeps/i386/fpu/libm-test-ulps: Update.
58437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58438
58439         [BZ #16283]
58440         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
58441         * math/w_exp2f.c (__exp2f): Likewise.
58442         * math/w_exp2l.c (__exp2l): Likewise.
58443         * math/auto-libm-test-in: Do not allow missing errno on exp2
58444         underflow.
58445         * math/auto-libm-test-out: Regenerated.
58446
58447 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
58448
58449         [BZ #16274]
58450         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
58451         handle filename validation.
58452         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
58453         (do_open): Delete.
58454
58455 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
58456
58457         [BZ #6786]
58458         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
58459         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
58460         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
58461         <float.h>.
58462         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
58463         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
58464         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
58465         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
58466         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
58467         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
58468         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
58469         * math/auto-libm-test-in: Don't allow missing errno from erfc.
58470         Add more erfc tests.
58471         * math/auto-libm-test-out: Regenerated.
58472         * sysdeps/i386/fpu/libm-test-ulps: Update.
58473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58474
58475         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
58476         exp2, expm1, j0 and j1.
58477         * math/auto-libm-test-out: Regenerated.
58478         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
58479         (erfc_test_data): Likewise.
58480         (exp_test_data): Likewise.
58481         (exp_tonearest_test_data): Likewise.
58482         (exp_towardzero_test_data): Likewise.
58483         (exp_downward_test_data): Likewise.
58484         (exp_upward_test_data): Likewise.
58485         (exp10_test_data): Likewise.
58486         (exp2_test_data): Likewise.
58487         (expm1_test_data): Likewise.
58488         (j0_test_data): Likewise.
58489         (j1_test_data): Likewise.
58490         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
58491         (input_flag_type): Add flag_xfail_rounding.
58492         (input_flags): Add xfail-rounding.
58493         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
58494         (output_for_one_input_case): Handle flag_xfail_rounding.
58495         * sysdeps/i386/fpu/libm-test-ulps: Update.
58496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58497
58498 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
58499
58500         [BZ #16289]
58501         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
58502         division by 0.
58503
58504 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
58505
58506         [BZ #16195]
58507         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
58508         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
58509         (STAP_PROBE0): New macro.
58510         (STAP_PROBE1): Likewise.
58511         (STAP_PROBE2): Likewise.
58512         (STAP_PROBE3): Likewise.
58513         (STAP_PROBE4): Likewise.
58514
58515 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
58516
58517         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
58518
58519 2013-12-02  Steve Ellcey  <sellcey@mips.com>
58520
58521         * benchtests/Makefile (bench): Add sqrt.
58522         (LDLIBS-bench-sqrt): New.
58523         * benchtests/sqrt-input: New.
58524
58525 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
58526
58527         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
58528         (GAIH_EAI): Likewise.
58529         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
58530         (gaih_inet): Likewise.
58531         (getaddrinfo): Don't use GAIH_EAI.
58532
58533         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
58534         (struct gaih): Remove definition.
58535
58536 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
58537
58538         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
58539         Use HERRNOP directly.
58540
58541 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58542
58543         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58544
58545 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
58546
58547         * math/gen-auto-libm-tests.c (test_functions): Add more
58548         single-argument functions.
58549         (special_fill_pi_2): New function.
58550         (special_fill_minus_pi_2): Likewise.
58551         (special_fill_pi_6): Likewise.
58552         (special_fill_minus_pi_6): Likewise.
58553         (special_fill_pi_3): Likewise.
58554         (special_fill_2pi_3): Likewise.
58555         (special_fill_e): Likewise.
58556         (special_fill_1_e): Likewise.
58557         (special_fill_e_minus_1): Likewise.
58558         (special_real_inputs): Add more special inputs.
58559         (output_for_one_input_case): Do not require ERANGE on underflow to
58560         zero if round-to-nearest result does not underflow to zero, unless
58561         exact results required.
58562         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
58563         atan, atanh, cbrt, cos and cosh.
58564         * math/auto-libm-test-out: Regenerated.
58565         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
58566         (acos_tonearest_test_data): Likewise.
58567         (acos_towardzero_test_data): Likewise.
58568         (acos_downward_test_data): Likewise.
58569         (acos_upward_test_data): Likewise.
58570         (acosh_test_data): Likewise.
58571         (asin_test_data): Likewise.
58572         (asin_tonearest_test_data): Likewise.
58573         (asin_towardzero_test_data): Likewise.
58574         (asin_upward_test_data): Likewise.
58575         (asinh_test_data): Likewise.
58576         (atan_test_data): Likewise.
58577         (atanh_test_data): Likewise.
58578         (cbrt_test_data): Likewise.
58579         (cos_test_data): Likewise.
58580         (cos_tonearest_test_data): Likewise.
58581         (cos_towardzero_test_data): Likewise.
58582         (cos_downward_test_data): Likewise.
58583         (cos_upward_test_data): Likewise.
58584         (cosh_test_data): Likewise.
58585         (cosh_tonearest_test_data): Likewise.
58586         (cosh_towardzero_test_data): Likewise.
58587         (cosh_downward_test_data): Likewise.
58588         (cosh_upward_test_data): Likewise.
58589         * sysdeps/i386/fpu/libm-test-ulps: Update.
58590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58591
58592 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
58593
58594         [BZ #6787]
58595         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
58596         * math/w_exp10f.c (__exp10f): Likewise.
58597         * math/w_exp10l.c (__exp10l): Likewise.
58598         * math/libm-test.inc (exp10_test_data): Add more tests and expect
58599         errno settings in existing tests.
58600
58601         [BZ #14032]
58602         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
58603         precision control set to double precision.
58604         * sysdeps/i386/fpu/w_sqrt.c: New file.
58605         * math/auto-libm-test-in: Add more tests.
58606         * math/auto-libm-test-out: Update.
58607
58608         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
58609         (sqrt_test_tonearest): New function.
58610         (sqrt_towardzero_test_data): New variable.
58611         (sqrt_test_towardzero): New function.
58612         (sqrt_downward_test_data): New variable.
58613         (sqrt_test_downward): New function.
58614         (sqrt_upward_test_data): New variable.
58615         (sqrt_test_upward): New function.
58616         (main): Call the new functions.
58617
58618         * math/gen-auto-libm-tests.c: New file.
58619         * math/auto-libm-test-in: Likewise.
58620         * math/auto-libm-test-out: New generated file.
58621         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
58622         variables.
58623         (%beautify): Add generated representations of zero.
58624         (top level): Set $auto_input and call parse_auto_input.
58625         (beautify): Remove trailing "f" from hex float constants.
58626         (parse_args): Handle XFAIL_TEST.
58627         (convert_condition): New function.
58628         (or_value): Likewise.
58629         (or_cond_value): Likewise.
58630         (generate_testfile): Handle AUTO_TESTS_* lines.
58631         (parse_auto_input): New function.
58632         * math/libm-test.inc (XFAIL_TEST): New macro.
58633         (ERRNO_UNCHANGED): Update value.
58634         (ERRNO_EDOM): Likewise.
58635         (ERRNO_ERANGE): Likewise.
58636         (IGNORE_RESULT): Likewise.
58637         (TEST_COND_flt_32): New macro.
58638         (TEST_COND_dbl_64): Likewise.
58639         (TEST_COND_ldbl_96_intel): Likewise.
58640         (TEST_COND_ldbl_96_m68k): Likewise.
58641         (TEST_COND_ldbl_128): Likewise.
58642         (TEST_COND_ldbl_128ibm): Likewise.
58643         (TEST_COND_long32): Likewise.
58644         (TEST_COND_long64): Likewise.
58645         (TEST_COND_before_rounding): Likewise.
58646         (TEST_COND_after_rounding): Likewise.
58647         (enable_test): Handle XFAIL_TEST flag.
58648         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
58649         with finite results.
58650         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
58651         auto-libm-test-out.
58652
58653 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58654             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58655
58656         [BZ #16214]
58657         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
58658         __tls_get_addr_internal instead of __tls_get_offset in order to
58659         avoid GOT pointer dependency.  Make rtld export
58660         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
58661         __tls_get_addr since we are a __tls_get_offset platform.
58662         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
58663         GOT pointer being set up before.
58664         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
58665
58666 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
58667
58668         * manual/math.texi (Errors in Math Functions): Document accuracy
58669         goals.
58670
58671         [BZ #15004]
58672         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
58673         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
58674         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
58675         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
58676         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
58677         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
58678         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
58679         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
58680         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
58681         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
58682         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
58683         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
58684         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
58685         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
58686         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
58687         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
58688
58689         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
58690         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
58691         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
58692         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
58693         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
58694         Likewise.
58695         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
58696         Likewise.
58697         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
58698         Likewise.
58699         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
58700         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
58701         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
58702         atomic-feupdateenv and flt-rounds.
58703         * sysdeps/powerpc/nofpu/Versions (libc): Add
58704         __atomic_feholdexcept, __atomic_feclearexcept,
58705         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
58706         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
58707         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
58708         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
58709         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
58710         here.
58711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
58712         Update.
58713
58714         * manual/arith.texi (FP Exceptions): Document that exceptions may
58715         not be raised when matherr is used.
58716         (Math Error Reporting): Document overflow in directed rounding
58717         modes.  Document that errno may not be set when finite values are
58718         returned on overflow.  Document intent to set errno on underflow
58719         only for underflow to zero.
58720
58721         [BZ #16271]
58722         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
58723         round-to-nearest then adjust result for other rounding modes.
58724         * include/fenv.h (fegetround): Use libm_hidden_proto.
58725         * math/fegetround.c (fegetround): Use libm_hidden_def.
58726         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
58727         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
58728         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
58729         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
58730         Likewise.
58731         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
58732         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
58733         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
58734         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
58735
58736 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
58737
58738         [BZ #16077]
58739         * nss/Versions (libnss_files): Add
58740         _nss_files_gethostbyname3_r.
58741         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
58742         New function.
58743         (HOST_DB_LOOKUP): Remove macro.
58744         (_nss_files_gethostbyname_r): Implement function without the
58745         HOST_DB_LOOKUP macro.
58746         (_nss_files_gethostbyname2_r): Likewise.
58747
58748 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
58749
58750         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
58751
58752 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
58753
58754         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
58755         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
58756         warning.
58757
58758 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58759
58760         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
58761         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
58762         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
58763         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
58764         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
58765         __fe_nomask_env_priv and attribute_hidden.
58766         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
58767         (libc_feupdateenv_test_ppc): Likewise.
58768         (libc_feresetround_ppc): Likewise.
58769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
58770         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
58771         compat_symbol macro.
58772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
58773         (__fe_nomask_env): Likewise.
58774         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
58775
58776 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
58777
58778         * string/Makefile: Remove ifunc tests.
58779         * string/test-string.h: Define TEST_IFUNC.
58780         * string/test-bcopy-ifunc.c: Remove.
58781         * string/test-bzero-ifunc.c: Likewise.
58782         * string/test-memccpy-ifunc.c: Likewise.
58783         * string/test-memchr-ifunc.c: Likewise.
58784         * string/test-memcmp-ifunc.c: Likewise.
58785         * string/test-memcpy-ifunc.c: Likewise.
58786         * string/test-memmem-ifunc.c: Likewise.
58787         * string/test-memmove-ifunc.c: Likewise.
58788         * string/test-mempcpy-ifunc.c: Likewise.
58789         * string/test-memrchr-ifunc.c: Likewise.
58790         * string/test-memset-ifunc.c: Likewise.
58791         * string/test-rawmemchr-ifunc.c: Likewise.
58792         * string/test-stpcpy-ifunc.c: Likewise.
58793         * string/test-stpncpy-ifunc.c: Likewise.
58794         * string/test-strcasecmp-ifunc.c: Likewise.
58795         * string/test-strcasestr-ifunc.c: Likewise.
58796         * string/test-strcat-ifunc.c: Likewise.
58797         * string/test-strchr-ifunc.c: Likewise.
58798         * string/test-strchrnul-ifunc.c: Likewise.
58799         * string/test-strcmp-ifunc.c: Likewise.
58800         * string/test-strcpy-ifunc.c: Likewise.
58801         * string/test-strcspn-ifunc.c: Likewise.
58802         * string/test-strlen-ifunc.c: Likewise.
58803         * string/test-strncasecmp-ifunc.c: Likewise.
58804         * string/test-strncat-ifunc.c: Likewise.
58805         * string/test-strncmp-ifunc.c: Likewise.
58806         * string/test-strncpy-ifunc.c: Likewise.
58807         * string/test-strnlen-ifunc.c: Likewise.
58808         * string/test-strpbrk-ifunc.c: Likewise.
58809         * string/test-strrchr-ifunc.c: Likewise.
58810         * string/test-strspn-ifunc.c: Likewise.
58811         * string/test-strstr-ifunc.c: Likewise.
58812
58813 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
58814
58815         * benchtests/Makefile: Remove ifunc tests.
58816         * benchtests/bench-string.h: Define TEST_IFUNC.
58817         * benchtests/bench-bcopy-ifunc.c: Remove.
58818         * benchtests/bench-bzero-ifunc.c: Likewise.
58819         * benchtests/bench-memccpy-ifunc.c: Likewise.
58820         * benchtests/bench-memchr-ifunc.c: Likewise.
58821         * benchtests/bench-memcmp-ifunc.c: Likewise.
58822         * benchtests/bench-memcpy-ifunc.c: Likewise.
58823         * benchtests/bench-memmem-ifunc.c: Likewise.
58824         * benchtests/bench-memmove-ifunc.c: Likewise.
58825         * benchtests/bench-mempcpy-ifunc.c: Likewise.
58826         * benchtests/bench-memrchr-ifunc.c: Likewise.
58827         * benchtests/bench-memset-ifunc.c: Likewise.
58828         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
58829         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
58830         * benchtests/bench-stpcpy-ifunc.c: Likewise.
58831         * benchtests/bench-stpncpy-ifunc.c: Likewise.
58832         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
58833         * benchtests/bench-strcasestr-ifunc.c: Likewise.
58834         * benchtests/bench-strcat-ifunc.c: Likewise.
58835         * benchtests/bench-strchr-ifunc.c: Likewise.
58836         * benchtests/bench-strchrnul-ifunc.c: Likewise.
58837         * benchtests/bench-strcmp-ifunc.c: Likewise.
58838         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
58839         * benchtests/bench-strcpy-ifunc.c: Likewise.
58840         * benchtests/bench-strcspn-ifunc.c: Likewise.
58841         * benchtests/bench-strlen-ifunc.c: Likewise.
58842         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
58843         * benchtests/bench-strncat-ifunc.c: Likewise.
58844         * benchtests/bench-strncmp-ifunc.c: Likewise.
58845         * benchtests/bench-strncpy-ifunc.c: Likewise.
58846         * benchtests/bench-strnlen-ifunc.c: Likewise.
58847         * benchtests/bench-strpbrk-ifunc.c: Likewise.
58848         * benchtests/bench-strrchr-ifunc.c: Likewise.
58849         * benchtests/bench-strsep-ifunc.c: Likewise.
58850         * benchtests/bench-strspn-ifunc.c: Likewise.
58851         * benchtests/bench-strstr-ifunc.c: Likewise.
58852
58853 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
58854
58855         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
58856
58857 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
58858
58859         * resolv/netdb.h: Use __glibc_reserved instead __unused.
58860         * rt/aio.h: Likewise.
58861         * sysdeps/gnu/bits/utmp.h: Likewise.
58862         * sysdeps/gnu/bits/utmpx.h: Likewise.
58863         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
58864         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
58865         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
58866         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
58867         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
58868         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
58869         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
58870         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
58871         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
58872         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
58873         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
58874         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
58875         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
58876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
58877         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
58878         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
58879         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
58880         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
58881         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
58882         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
58883         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
58884         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
58885         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
58886         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
58887         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
58888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
58889         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
58890         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
58891         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
58892         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
58893         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
58894         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
58895         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
58896         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
58897         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
58898         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
58899         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
58900         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
58901         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
58902         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
58903         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
58904         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
58905
58906 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
58907
58908         [BZ #16245]
58909         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
58910         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
58911
58912 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
58913
58914         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
58915         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
58916         Likewise.
58917
58918 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58919
58920         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
58921         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
58922         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
58923         (__fesetround): Remove define.
58924         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
58925         rounding and exceptions handling.
58926         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
58927         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
58928         (__fe_nomask_env): Likewise.
58929         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
58930         __fegetround instead of fegetround.
58931         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
58932         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
58933
58934 2013-11-21  Roland McGrath  <roland@hack.frob.com>
58935
58936         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
58937         it's there.
58938
58939         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
58940
58941 2013-11-21  Meador Inge  <meadori@codesourcery.com>
58942
58943         [BZ #11157]
58944         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
58945         (encrypt_r): Likewise.
58946         * malloc/obstack.h (obstack_free): Likewise.
58947         * posix/unistd.h (encrypt): Likewise.
58948
58949 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
58950
58951         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
58952         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
58953         DL_CALL_DT_FINI() that call the functions directly.
58954         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
58955         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
58956         * elf/dl-fini.c: Likewise.
58957
58958 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
58959
58960         * malloc/hooks.c (memalign_check): Add alignment rounding.
58961         * malloc/malloc.c (_mid_memalign): New function.
58962         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
58963         Implement by calling _mid_memalign.
58964         * manual/probes.texi (Memory Allocation Probes): Remove
58965         memory_valloc_retry and memory_pvalloc_retry.
58966
58967 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
58968
58969         * locale/programs/locarchive.c (open_archive): Add const
58970         qualifier to ARCHIVEFNAME and copy default fname to
58971         DEFAULT_FNAME.
58972
58973         [BZ #15601]
58974         * libio/tst-widetext.input: Rename Oriya to Odia.
58975         * locale/iso-639.def: Likewise.
58976
58977         * manual/probes.texi (Mathematical Function Probes): Add
58978         documentation for sin, cos, asin and acos probes.
58979         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
58980         (__sin32): Add slowasin probe.
58981         (__cos32): Add slowacos probe.
58982         (__mpsin): Add slowsin probe.
58983         (__mpcos): Add slowcos probe.
58984
58985 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
58986
58987         [BZ #15483]
58988         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
58989         thread-local __sim_exceptions_thread and global
58990         __sim_exceptions_global.
58991         (__sim_disabled_exceptions): Change to thread-local
58992         __sim_disabled_exceptions_thread and global
58993         __sim_disabled_exceptions_global.
58994         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
58995         and global __sim_round_mode_global.
58996         (__simulate_exceptions): Use thread-local floating-point state and
58997         set global state from it as needed.
58998         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
58999         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
59000         __sim_round_mode_thread.
59001         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
59002         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
59003         and global __sim_exceptions_global.
59004         (__sim_disabled_exceptions): Change to thread-local
59005         __sim_disabled_exceptions_thread and global
59006         __sim_disabled_exceptions_global.
59007         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
59008         and global __sim_round_mode_global.
59009         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
59010         (SIM_SET_GLOBAL): Likewise.
59011         * sysdeps/powerpc/soft-fp/sfp-machine.h
59012         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
59013         __sim_round_mode_thread.
59014         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
59015         __sim_disabled_exceptions_thread.
59016         (__sim_exceptions): Change to __sim_exceptions_thread.
59017         (__sim_disabled_exceptions): Change to
59018         __sim_disabled_exceptions_thread.
59019         (__sim_round_mode): Change to __sim_round_mode_thread.
59020         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
59021         thread-local floating-point state and set global state from it as
59022         needed.
59023         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
59024         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
59025         (__sim_disabled_exceptions): Remove extern declaration.
59026         (feenableexcept): Use thread-local floating-point state and set
59027         global state from it as needed.
59028         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
59029         extern declaration.
59030         (__sim_disabled_exceptions): Likewise.
59031         (__sim_round_mode): Likewise.
59032         (__fegetenv): Use thread-local floating-point state.
59033         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
59034         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
59035         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
59036         floating-point state and set global state from it as needed.
59037         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
59038         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
59039         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
59040         Likewise.
59041         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
59042         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
59043         Likewise.
59044         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
59045         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
59046         Use __sim_round_mode_thread.
59047         * math/test-fenv-tls.c: New file.
59048         * math/Makefile (tests): Add test-fenv-tls.
59049         ($(objpfx)test-fenv-tls): Depend on
59050         $(common-objpfx)nptl/libpthread.so.
59051
59052 2013-11-19  Andreas Schwab  <schwab@suse.de>
59053
59054         * locale/programs/locale.c (show_info): Decode wordarray elements.
59055         * locale/categories.def (LC_MONETARY): Add element for
59056         _NL_MONETARY_CRNCYSTR.
59057         * locale/C-monetary.c (conversion_rate): New variable.
59058         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
59059         element.
59060
59061 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
59062
59063         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
59064         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
59065
59066 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
59067
59068         * elf/Makefile (tst-auxv): New test.
59069         * elf/tst-auxv.c: New
59070         * elf/rtld.c (dl_main): Adjust AT_EXECFN
59071
59072 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
59073
59074         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
59075         (hidden_proto): Caller changed.
59076         (hidden_tls_proto): New macro.
59077         (libc_hidden_tls_proto): Likewise.
59078         (rtld_hidden_tls_proto): Likewise.
59079         (libm_hidden_tls_proto): Likewise.
59080         (libresolv_hidden_tls_proto): Likewise.
59081         (librt_hidden_tls_proto): Likewise.
59082         (libdl_hidden_tls_proto): Likewise.
59083         (libnss_files_hidden_tls_proto): Likewise.
59084         (libnsl_hidden_tls_proto): Likewise.
59085         (libnss_nisplus_hidden_tls_proto): Likewise.
59086         (libutil_hidden_tls_proto): Likewise.
59087
59088 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
59089
59090         [BZ #10253]
59091         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
59092         (decompose_rpath): Defer expansion to fillin_rpath.
59093         (_dl_init_paths): Pass linkmap to fillin_rpath.
59094
59095 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
59096
59097         * benchtests/Makefile: Add strsep.
59098         * benchtests/bench-strsep.c: New file: strsep benchtest.
59099         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
59100
59101 2013-11-18  Andreas Schwab  <schwab@suse.de>
59102
59103         * locale/programs/locale.c (show_info) [case byte]: Check for
59104         '\377' instead of '\177'.
59105         * locale/C-monetary.c (not_available): Always use "\377".
59106         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
59107         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
59108         detect unavailable sign_posn locale elements.
59109         * locale/localeconv.c (__localeconv): For grouping and
59110         mon_grouping handle "\177" and "\377" like no grouping.
59111         (INT_ELEM): New macro.  Use it to set all numeric members.
59112         * locale/programs/ld-monetary.c (monetary_read)
59113         <tok_mon_grouping>: Normalize single -1 to the empty string.
59114         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
59115         Likewise.
59116
59117 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
59118
59119         [BZ #16055]
59120         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
59121         when we match (nil).
59122         * stdio-common/tst-sscanf.c (struct test): Add testcase.
59123
59124 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
59125
59126         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
59127         (NO_TEST_INLINE): Update value.
59128         (ERRNO_UNCHANGED): Likewise.
59129         (ERRNO_EDOM): Likewise.
59130         (ERRNO_ERANGE): Likewise.
59131         (IGNORE_RESULT): Likewise.
59132         (check_float_internal): Check signs of NaN results if
59133         TEST_NAN_SIGN used.
59134         (check_complex): Pass TEST_NAN_SIGN flag through to second
59135         check_float_internal call.
59136         (copysign_test_data): Add tests with quiet NaNs as second
59137         argument.  Use TEST_NAN_SIGN.
59138         (fabs_test_data): Add test of negative quiet NaN argument.  Use
59139         TEST_NAN_SIGN.
59140         (signbit_test_data): Add tests of quiet NaN argument.
59141         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
59142
59143         * math/gen-libm-test.pl (show_exceptions): Take extra argument
59144         $ignore_result.
59145         (parse_args): Handle function results specified as IGNORE.
59146         * math/libm-test.inc (IGNORE_RESULT): New macro.
59147         (check_float_internal): Do not check numerical result if flag
59148         IGNORE_RESULT set.
59149         (check_complex): Pass through IGNORE_RESULT to second
59150         check_float_internal call.
59151         (check_int): Do not check numerical result if flag IGNORE_RESULT
59152         set.
59153         (check_long): Likewise.
59154         (check_bool): Likewise.
59155         (check_longlong): Likewise.
59156         (lrint_test_data): Add tests of infinite and NaN arguments.
59157         (lrint_tonearest_test_data): Likewise.
59158         (lrint_towardzero_test_data): Likewise.
59159         (lrint_downward_test_data): Likewise.
59160         (lrint_upward_test_data): Likewise.
59161         (llrint_test_data): Likewise.
59162         (llrint_tonearest_test_data): Likewise.
59163         (llrint_towardzero_test_data): Likewise.
59164         (llrint_downward_test_data): Likewise.
59165         (llrint_upward_test_data): Likewise.
59166         (lround_test_data): Likewise.
59167         (llround_test_data): Likewise.
59168
59169         * math/libm-test.inc (NO_TEST_INLINE): New macro.
59170         (ERRNO_UNCHANGED): Update value.
59171         (ERRNO_EDOM): Likewise.
59172         (ERRNO_ERANGE): Likewise.
59173         (NO_TEST_INLINE_FLOAT): New macro.
59174         (NO_TEST_INLINE_DOUBLE): Likewise.
59175         (enable_test): New function.
59176         (RUN_TEST_f_f): Check enable_test before running test.
59177         (RUN_TEST_2_f): Likewise.
59178         (RUN_TEST_fff_f): Likewise.
59179         (RUN_TEST_c_f): Likewise.
59180         (RUN_TEST_f_f1): Likewise.
59181         (RUN_TEST_fF_f1): Likewise.
59182         (RUN_TEST_fI_f1): Likewise.
59183         (RUN_TEST_ffI_f1): Likewise.
59184         (RUN_TEST_c_c): Likewise.
59185         (RUN_TEST_cc_c): Likewise.
59186         (RUN_TEST_f_i): Likewise.
59187         (RUN_TEST_f_i_tg): Likewise.
59188         (RUN_TEST_ff_i_tg): Likewise.
59189         (RUN_TEST_f_b): Likewise.
59190         (RUN_TEST_f_b_tg): Likewise.
59191         (RUN_TEST_f_l): Likewise.
59192         (RUN_TEST_f_L): Likewise.
59193         (RUN_TEST_fFF_11): Likewise.
59194         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
59195         conditionals.
59196         (cosh_test_data): Likewise.
59197         (exp_test_data): Likewise.
59198         (expm1_test_data): Likewise.
59199         (hypot_test_data): Likewise.
59200         (pow_test_data): Likewise.
59201         (sinh_test_data): Likewise.
59202         (tanh_test_data): Likewise.
59203         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
59204         flags argument.
59205
59206         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
59207         tests with quiet NaN input and output.
59208         (acosh_test_data): Likewise.
59209         (asin_test_data): Likewise.
59210         (asinh_test_data): Likewise.
59211         (atan_test_data): Likewise.
59212         (atanh_test_data): Likewise.
59213         (atan2_test_data): Likewise.
59214         (cbrt_test_data): Likewise.
59215         (cos_test_data): Likewise.
59216         (cosh_test_data): Likewise.
59217         (erf_test_data): Likewise.
59218         (erfc_test_data): Likewise.
59219         (exp_test_data): Likewise.
59220         (exp10_test_data): Likewise.
59221         (exp2_test_data): Likewise.
59222         (expm1_test_data): Likewise.
59223         (hypot_test_data): Likewise.
59224         (j0_test_data): Likewise.
59225         (j1_test_data): Likewise.
59226         (jn_test_data): Likewise.
59227         (lgamma_test_data): Likewise.
59228         (log_test_data): Likewise.
59229         (log10_test_data): Likewise.
59230         (log1p_test_data): Likewise.
59231         (log2_test_data): Likewise.
59232         (pow_test_data): Likewise.
59233         (scalb_test_data): Likewise.
59234         (sin_test_data): Likewise.
59235         (sincos_test_data): Likewise.
59236         (sinh_test_data): Likewise.
59237         (tan_test_data): Likewise.
59238         (tanh_test_data): Likewise.
59239         (tgamma_test_data): Likewise.
59240         (y0_test_data): Likewise.
59241         (y1_test_data): Likewise.
59242         (yn_test_data): Likewise.
59243
59244         [BZ #16167]
59245         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
59246         argument being NaN and avoid computations with second argument in
59247         that case.
59248         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
59249         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
59250         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
59251
59252 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
59253
59254         * locale/iso-639.def: Add Chitwani Tharu (the).
59255
59256 2013-11-14  Andreas Schwab  <schwab@suse.de>
59257
59258         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
59259         word instead of empty string.
59260
59261 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59262
59263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59264         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
59265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59266         (__fe_nomask_env): Likewise.
59267
59268 2013-11-13  Steve Ellcey  <sellcey@mips.com>
59269
59270         * benchtests/bench-timing.h: Include time.h.
59271
59272 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
59273
59274         [BZ #15997]
59275         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
59276         to 3.4.0 for x32.
59277         * sysdeps/unix/sysv/linux/configure: Regenerated.
59278
59279 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
59280
59281         [BZ #16151]
59282         * stdlib/strtod_l.c (round_and_return): Do not consider
59283         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
59284         exponent one less than half the least subnormal exponent.
59285         * stdlib/test-strtod-round-data: Add more tests.
59286         * stdlib/tst-strtod-round.c (tests): Regenerated.
59287
59288 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59289
59290         [BZ #14143]
59291         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
59292         (__fe_mask_env): Likewise.
59293         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
59294         libm_hidden_proto and add function prototype.
59295         (__fe_mask_env): Add function prototype.
59296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59297         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
59298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59299         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
59300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59301         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
59302
59303 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
59304
59305         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
59306         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
59307
59308 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
59309
59310         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
59311         of htab_find_slot().
59312
59313 2013-11-11  David S. Miller  <davem@davemloft.net>
59314
59315         [BZ #16150]
59316         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
59317         symbol in the non-vis3 case in static builds.
59318         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
59319         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
59320         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
59321         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
59322
59323 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
59324
59325         [BZ #387]
59326         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
59327         it is empty.
59328
59329 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59330
59331         * benchtests/Makefile: Add bench-strtod.
59332         * benchtests/bench-strtod.c: New file: strtod benchtest
59333
59334 2013-11-11  Andreas Schwab  <schwab@suse.de>
59335
59336         [BZ #16153]
59337         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
59338         terminating NUL in key length.
59339
59340 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59341
59342         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
59343         Add artificial ODP entry for vDSO symbol for PPC64.
59344         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
59345         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
59346
59347 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
59348
59349         [BZ #15374]
59350         * nss/getent.c (services_keys): Recognize services starting with digit.
59351
59352 2013-11-06  David S. Miller  <davem@davemloft.net>
59353
59354         [BZ #15985]
59355         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
59356         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
59357
59358 2013-11-06  Will Newton  <will.newton@linaro.org>
59359
59360         * manual/memory.texi (Malloc Examples): Remove register
59361         keyword from examples.
59362
59363 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
59364
59365         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
59366
59367 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
59368
59369         [BZ #6981]
59370         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
59371         depending on [__GCC_IEC_559 > 0].
59372         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
59373         depending on [__GCC_IEC_559_COMPLEX > 0].
59374
59375 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
59376
59377         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
59378         to iso-639.def.
59379
59380 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
59381
59382         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
59383
59384 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
59385
59386         [BZ #16112]
59387         * malloc/malloc (malloc_info): Do not handle first bin as
59388         special case.
59389
59390 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
59391
59392         * locale/iso-639.def: Add Central Nahuatl (nhn).
59393
59394 2013-11-01  Bruno Haible  <bruno@clisp.org>
59395
59396         [BZ #7003]
59397         * manual/math.texi (BSD Random): Specify range upper bound as
59398         in POSIX.
59399
59400 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
59401
59402         * locale/iso-639.def: Add Meadow Mari (mhr).
59403
59404 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
59405
59406         [BZ #14752], [BZ #15763]
59407         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
59408         Validate name.
59409         * rt/tst_shm.c: Add test for escaping directory.
59410
59411 2013-10-31  Andreas Schwab  <schwab@suse.de>
59412
59413         [BZ #15917]
59414         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
59415         followed by 'x' as part of digit sequence.
59416         * stdio-common/tst-sscanf.c (double_tests2): New tests.
59417
59418 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
59419
59420         [BZ #16037]
59421         * configure.ac: allow GNU Make 4.0 and greater.
59422         * configure: Regenerated.
59423
59424 2013-10-30  Will Newton  <will.newton@linaro.org>
59425
59426         [BZ #16038]
59427         * malloc/hooks.c (memalign_check): Limit alignment to the
59428         maximum representable power of two.
59429         * malloc/malloc.c (__libc_memalign): Likewise.
59430         * malloc/tst-memalign.c (do_test): Add test for very
59431         large alignment values.
59432         * malloc/tst-posix_memalign.c (do_test): Likewise.
59433
59434 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
59435
59436         [BZ #11087]
59437         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
59438         (munmap_chunk): Likewise.
59439         (mremap_chunk): Likewise.
59440
59441 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
59442
59443         [BZ #15799]
59444         * stdlib/div.c (div): Remove obsolete code.
59445         * stdlib/ldiv.c (ldiv): Likewise.
59446         * stdlib/lldiv.c (lldiv): Likewise.
59447
59448 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
59449
59450         [BZ #16071]
59451         * nss/nss_files/files-XXX.c (get_contents_ret): New
59452         enumerator.
59453         (get_contents): New function.
59454         (internal_getent): Use it.  Expand size of LINEBUFLEN.
59455
59456 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
59457
59458         * configure.in: Moved to ...
59459         * configure.ac: ... here. Change reference to configure.in
59460         to configure.ac.
59461         * sysdeps/arm/preconfigure.ac: ... here.
59462         configure.in to configure.ac.
59463         * sysdeps/gnu/configure.in: Moved to ...
59464         * sysdeps/gnu/configure.ac: ... here.
59465         * sysdeps/i386/configure.in: Moved to ...
59466         * sysdeps/i386/configure.ac: ... here.
59467         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
59468         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
59469         * sysdeps/mach/configure.in: Moved to ...
59470         * sysdeps/mach/configure.ac: ... here.
59471         * sysdeps/mach/hurd/configure.in: Moved to ...
59472         * sysdeps/mach/hurd/configure.ac: ... here.
59473         * sysdeps/powerpc/configure.in: Moved to ...
59474         * sysdeps/powerpc/configure.ac: ... here.
59475         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
59476         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
59477         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
59478         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
59479         * sysdeps/s390/s390-32/configure.in: Moved to ...
59480         * sysdeps/s390/s390-32/configure.ac: ... here.
59481         * sysdeps/s390/s390-64/configure.in: Moved to ...
59482         * sysdeps/s390/s390-64/configure.ac: ... here.
59483         * sysdeps/sh/configure.in: Moved to ...
59484         * sysdeps/sh/configure.ac: ... here.
59485         * sysdeps/sparc/configure.in: Moved to ...
59486         * sysdeps/sparc/configure.ac: ... here.
59487         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
59488         * sysdeps/unix/sysv/linux/configure.ac: ... here.
59489         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
59490         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
59491         * sysdeps/x86_64/configure.in: Moved to ...
59492         * sysdeps/x86_64/configure.ac: ... here.
59493         * sysdeps/x86_64/preconfigure.in: Moved to ...
59494         * sysdeps/x86_64/preconfigure.ac: ... here.
59495         * aclocal.m4: Change reference to configure.in to configure.ac.
59496         * config.h.in: Likewise.
59497         * manual/install.texi: Likewise.
59498         * manual/maint.texi: Likewise.
59499         * Makefile: Likewise.
59500         * malloc/Makefile: Likewise.
59501         * nscd/Makefile: Likewise.
59502         * Makeconfig: Change reference to configure.in and
59503         preconfigure.in to configure.ac and preconfigure.ac
59504         respectively.
59505         * INSTALL: Regenerated.
59506         * configure: Likewise.
59507         * sysdeps/gnu/configure: Likewise.
59508         * sysdeps/i386/configure: Likewise.
59509         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
59510         * sysdeps/mach/configure: Likewise.
59511         * sysdeps/mach/hurd/configure: Likewise.
59512         * sysdeps/powerpc/configure: Likewise.
59513         * sysdeps/powerpc/powerpc32/configure: Likewise.
59514         * sysdeps/powerpc/powerpc64/configure: Likewise.
59515         * sysdeps/s390/s390-32/configure: Likewise.
59516         * sysdeps/s390/s390-64/configure: Likewise.
59517         * sysdeps/sh/configure: Likewise.
59518         * sysdeps/sparc/configure: Likewise.
59519         * sysdeps/unix/sysv/linux/configure: Likewise.
59520         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
59521         * sysdeps/x86_64/configure: Likewise.
59522         * sysdeps/x86_64/preconfigure: Likewise.
59523
59524 2013-10-29  Andreas Schwab  <schwab@suse.de>
59525
59526         * stdio-common/Makefile (tst-swscanf-ENV): Define.
59527
59528 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
59529
59530         * benchtests/pow-inputs: Add new inputs.
59531
59532         * benchtests/exp-inputs: Add new inputs.
59533
59534         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
59535         conditional check for return value.
59536         (__cos32): Likewise.
59537
59538 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59539
59540         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
59541         to provide a boost for large inputs with word alignment.
59542         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
59543         implementation based on optimized PPC64 strcpy.
59544         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
59545         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
59546         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
59547         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
59548
59549 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
59550
59551         [BZ #2801]
59552         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
59553
59554 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
59555
59556         [BZ #14876]
59557         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
59558         * time/tst-strptime.c (day_tests): Add testcase.
59559
59560 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
59561
59562         [BZ #14029]
59563         * manual/pattern.texi: Acknowledge that fnmatch can fail.
59564
59565 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
59566
59567         [BZ #16074]
59568         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
59569         MAP_FAILED on error.
59570
59571 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
59572
59573         [BZ #16072]
59574         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
59575         heap for large requests.
59576
59577 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
59578
59579         [BZ #9954]
59580         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
59581         result if the result has no associated interface.
59582         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
59583         interface for all 127.X.Y.Z addresses.
59584
59585 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
59586
59587         * locale/iso-639.def: Add Ligurian (lij)
59588
59589 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
59590
59591         [BZ #15825]
59592         * sunrpc/rpc_main.c: Document rpcgen -5.
59593
59594 2013-10-19  Michael Stahl  <mstahl@redhat.com>
59595
59596         * elf/rtld.c (do_preload): Print the reason why preloading failed.
59597
59598 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
59599
59600         [BZ #10278]
59601         * posix/glob.c: Match only directories when trailing slash is present.
59602         * posix/tst-gnuglob.c (my_opendir): Do not open files.
59603         (main): Add testcase.
59604
59605 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
59606
59607         [BZ #15670]
59608         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
59609
59610 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
59611
59612         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
59613         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
59614         AUTH_DES and cindex for FIPS 140-2.
59615         (DES Encryption): Add cindex FIPS 46-3.
59616
59617         * locale/locarchive.h (struct locarhandle): Add fname.
59618         * locale/programs/localedef.c (main): Pass ARGV[remaining]
59619         if an optional argument was specified to --list-archive,
59620         otherwise NULL.
59621         * locale/programs/locarchive.c (show_archive_content): Take new
59622         argument fname and pass it via ah.fname to open_archive.
59623         * locale/programs/localedef.h: Update decl.
59624         (open_archive): If AH->fname is non-null, open that file
59625         rather than the default file name, and don't ignore ENOENT.
59626         (create_archive): Set AH.fname to NULL.
59627         (delete_locales_from_archive): Likewise.
59628         (add_locales_to_archive): Likewise.
59629         * locale/programs/locfile.c (write_all_categories): Likewise.
59630
59631 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
59632             Aldy Hernandez  <aldyh@redhat.com>
59633
59634         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
59635         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
59636         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
59637         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
59638         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
59639         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
59640         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
59641         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
59642         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
59643         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
59644         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
59645         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
59646         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
59647         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
59648         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
59649         Likewise.
59650         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
59651         Likewise.
59652         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
59653         Likewise.
59654         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
59655         Likewise.
59656         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
59657         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
59658         Likewise.
59659         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
59660         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
59661         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
59662         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
59663         Likewise.
59664         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
59665         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
59666         * sysdeps/powerpc/preconfigure: Likewise.
59667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
59668         Likewise.
59669         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
59670         Replace contents of file by #include of <fenv_libc.h>.
59671         * sysdeps/powerpc/soft-fp/sfp-machine.h
59672         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
59673         and <sys/prctl.h>.
59674         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
59675         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
59676         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
59677         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
59678         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
59679         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
59680         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
59681         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
59682         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
59683         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
59684         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
59685         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
59686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
59687         Allow copysignl PLT reference to be missing.
59688
59689 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
59690             Joseph Myers  <joseph@codesourcery.com
59691
59692         [BZ #15948]
59693         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
59694         single character.
59695         (add_to_tablewc): Assert sequence of wide characters is nonempty.
59696
59697 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
59698
59699         * elf/tst-tls-dlinfo.c: Don't include tls.h.
59700         * elf/tst-tls1.c: Likewise.
59701         * elf/tst-tls10.h: Likewise.
59702         * elf/tst-tls14.c: Likewise.
59703         * elf/tst-tls2.c: Likewise.
59704         * elf/tst-tls3.c: Likewise.
59705         * elf/tst-tls4.c: Likewise.
59706         * elf/tst-tls5.c: Likewise.
59707         * elf/tst-tls6.c: Likewise.
59708         * elf/tst-tls7.c: Likewise.
59709         * elf/tst-tls8.c: Likewise.
59710         * elf/tst-tls9.c: Likewise.
59711         * elf/tst-tlsmod1.c: Likewise.
59712         * elf/tst-tlsmod13.c: Likewise.
59713         * elf/tst-tlsmod13a.c: Likewise.
59714         * elf/tst-tlsmod14a.c: Likewise.
59715         * elf/tst-tlsmod16a.c: Likewise.
59716         * elf/tst-tlsmod16b.c: Likewise.
59717         * elf/tst-tlsmod2.c: Likewise.
59718         * elf/tst-tlsmod3.c: Likewise.
59719         * elf/tst-tlsmod4.c: Likewise.
59720         * elf/tst-tlsmod5.c: Likewise.
59721         * elf/tst-tlsmod6.c: Likewise.
59722
59723 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
59724
59725         [BZ #12486]
59726         * malloc/malloc.c: remove checks for statistics.
59727
59728 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
59729
59730         [BZ #15277]
59731         * inet/inet_net.c (inet_network): Detect additional invalid strings.
59732         * inet/tst-network.c: Add testcase.
59733
59734 2013-10-17  Andreas Schwab  <schwab@suse.de>
59735
59736         [BZ #15218]
59737         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
59738         to determine canonical name.
59739
59740 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
59741
59742         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
59743         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
59744         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
59745         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
59746         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
59747         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
59748         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
59749         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
59750         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
59751         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
59752         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
59753         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
59754         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
59755         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
59756         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
59757         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
59758         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
59759         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
59760         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
59761         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
59762         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
59763         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
59764         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
59765         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
59766         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
59767         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
59768         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
59769         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
59770         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
59771         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
59772         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
59773         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
59774         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
59775         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
59776         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
59777         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
59778         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
59779         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
59780         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
59781         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
59782         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
59783         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
59784         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
59785         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
59786         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
59787         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
59788         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
59789         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
59790         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
59791         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
59792         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
59793         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
59794         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
59795         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
59796         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
59797         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
59798         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
59799         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
59800
59801 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
59802
59803         [BZ #16041]
59804         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
59805         make result into a quiet NaN.
59806
59807 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
59808
59809         * soft-fp/adddf3.c: Fix horizontal whitespace.
59810         * soft-fp/addsf3.c: Likewise.
59811         * soft-fp/addtf3.c: Likewise.
59812         * soft-fp/divdf3.c: Likewise.
59813         * soft-fp/divsf3.c: Likewise.
59814         * soft-fp/divtf3.c: Likewise.
59815         * soft-fp/double.h: Likewise.
59816         * soft-fp/eqdf2.c: Likewise.
59817         * soft-fp/eqsf2.c: Likewise.
59818         * soft-fp/eqtf2.c: Likewise.
59819         * soft-fp/extenddftf2.c: Likewise.
59820         * soft-fp/extended.h: Likewise.
59821         * soft-fp/extendsfdf2.c: Likewise.
59822         * soft-fp/extendsftf2.c: Likewise.
59823         * soft-fp/extendxftf2.c: Likewise.
59824         * soft-fp/fixdfdi.c: Likewise.
59825         * soft-fp/fixdfsi.c: Likewise.
59826         * soft-fp/fixdfti.c: Likewise.
59827         * soft-fp/fixsfdi.c: Likewise.
59828         * soft-fp/fixsfsi.c: Likewise.
59829         * soft-fp/fixsfti.c: Likewise.
59830         * soft-fp/fixtfdi.c: Likewise.
59831         * soft-fp/fixtfsi.c: Likewise.
59832         * soft-fp/fixtfti.c: Likewise.
59833         * soft-fp/fixunsdfdi.c: Likewise.
59834         * soft-fp/fixunsdfsi.c: Likewise.
59835         * soft-fp/fixunsdfti.c: Likewise.
59836         * soft-fp/fixunssfdi.c: Likewise.
59837         * soft-fp/fixunssfsi.c: Likewise.
59838         * soft-fp/fixunssfti.c: Likewise.
59839         * soft-fp/fixunstfdi.c: Likewise.
59840         * soft-fp/fixunstfsi.c: Likewise.
59841         * soft-fp/fixunstfti.c: Likewise.
59842         * soft-fp/floatdidf.c: Likewise.
59843         * soft-fp/floatdisf.c: Likewise.
59844         * soft-fp/floatditf.c: Likewise.
59845         * soft-fp/floatsidf.c: Likewise.
59846         * soft-fp/floatsisf.c: Likewise.
59847         * soft-fp/floatsitf.c: Likewise.
59848         * soft-fp/floattidf.c: Likewise.
59849         * soft-fp/floattisf.c: Likewise.
59850         * soft-fp/floattitf.c: Likewise.
59851         * soft-fp/floatundidf.c: Likewise.
59852         * soft-fp/floatundisf.c: Likewise.
59853         * soft-fp/floatunditf.c: Likewise.
59854         * soft-fp/floatunsidf.c: Likewise.
59855         * soft-fp/floatunsisf.c: Likewise.
59856         * soft-fp/floatunsitf.c: Likewise.
59857         * soft-fp/floatuntidf.c: Likewise.
59858         * soft-fp/floatuntisf.c: Likewise.
59859         * soft-fp/floatuntitf.c: Likewise.
59860         * soft-fp/fmadf4.c: Likewise.
59861         * soft-fp/fmasf4.c: Likewise.
59862         * soft-fp/fmatf4.c: Likewise.
59863         * soft-fp/gedf2.c: Likewise.
59864         * soft-fp/gesf2.c: Likewise.
59865         * soft-fp/getf2.c: Likewise.
59866         * soft-fp/ledf2.c: Likewise.
59867         * soft-fp/lesf2.c: Likewise.
59868         * soft-fp/letf2.c: Likewise.
59869         * soft-fp/muldf3.c: Likewise.
59870         * soft-fp/mulsf3.c: Likewise.
59871         * soft-fp/multf3.c: Likewise.
59872         * soft-fp/negdf2.c: Likewise.
59873         * soft-fp/negsf2.c: Likewise.
59874         * soft-fp/negtf2.c: Likewise.
59875         * soft-fp/op-1.h: Likewise.
59876         * soft-fp/op-2.h: Likewise.
59877         * soft-fp/op-4.h: Likewise.
59878         * soft-fp/op-8.h: Likewise.
59879         * soft-fp/op-common.h: Likewise.
59880         * soft-fp/quad.h: Likewise.
59881         * soft-fp/single.h: Likewise.
59882         * soft-fp/soft-fp.h: Likewise.
59883         * soft-fp/sqrtdf2.c: Likewise.
59884         * soft-fp/sqrtsf2.c: Likewise.
59885         * soft-fp/sqrttf2.c: Likewise.
59886         * soft-fp/subdf3.c: Likewise.
59887         * soft-fp/subsf3.c: Likewise.
59888         * soft-fp/subtf3.c: Likewise.
59889         * soft-fp/truncdfsf2.c: Likewise.
59890         * soft-fp/trunctfdf2.c: Likewise.
59891         * soft-fp/trunctfsf2.c: Likewise.
59892         * soft-fp/trunctfxf2.c: Likewise.
59893         * soft-fp/unorddf2.c: Likewise.
59894         * soft-fp/unordsf2.c: Likewise.
59895         * soft-fp/unordtf2.c: Likewise.
59896
59897 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
59898
59899         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
59900         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
59901
59902 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
59903
59904         * elf/dl-libc.c: Clear initfini list after freeing.
59905
59906 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
59907
59908         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
59909         * soft-fp/addsf3.c: Likewise.
59910         * soft-fp/addtf3.c: Likewise.
59911         * soft-fp/divdf3.c: Likewise.
59912         * soft-fp/divsf3.c: Likewise.
59913         * soft-fp/divtf3.c: Likewise.
59914         * soft-fp/double.h: Likewise.
59915         * soft-fp/eqdf2.c: Likewise.
59916         * soft-fp/eqsf2.c: Likewise.
59917         * soft-fp/eqtf2.c: Likewise.
59918         * soft-fp/extenddftf2.c: Likewise.
59919         * soft-fp/extended.h: Likewise.
59920         * soft-fp/extendsfdf2.c: Likewise.
59921         * soft-fp/extendsftf2.c: Likewise.
59922         * soft-fp/extendxftf2.c: Likewise.
59923         * soft-fp/fixdfdi.c: Likewise.
59924         * soft-fp/fixdfsi.c: Likewise.
59925         * soft-fp/fixdfti.c: Likewise.
59926         * soft-fp/fixsfdi.c: Likewise.
59927         * soft-fp/fixsfsi.c: Likewise.
59928         * soft-fp/fixsfti.c: Likewise.
59929         * soft-fp/fixtfdi.c: Likewise.
59930         * soft-fp/fixtfsi.c: Likewise.
59931         * soft-fp/fixtfti.c: Likewise.
59932         * soft-fp/fixunsdfdi.c: Likewise.
59933         * soft-fp/fixunsdfsi.c: Likewise.
59934         * soft-fp/fixunsdfti.c: Likewise.
59935         * soft-fp/fixunssfdi.c: Likewise.
59936         * soft-fp/fixunssfsi.c: Likewise.
59937         * soft-fp/fixunssfti.c: Likewise.
59938         * soft-fp/fixunstfdi.c: Likewise.
59939         * soft-fp/fixunstfsi.c: Likewise.
59940         * soft-fp/fixunstfti.c: Likewise.
59941         * soft-fp/floatdidf.c: Likewise.
59942         * soft-fp/floatdisf.c: Likewise.
59943         * soft-fp/floatditf.c: Likewise.
59944         * soft-fp/floatsidf.c: Likewise.
59945         * soft-fp/floatsisf.c: Likewise.
59946         * soft-fp/floatsitf.c: Likewise.
59947         * soft-fp/floattidf.c: Likewise.
59948         * soft-fp/floattisf.c: Likewise.
59949         * soft-fp/floattitf.c: Likewise.
59950         * soft-fp/floatundidf.c: Likewise.
59951         * soft-fp/floatundisf.c: Likewise.
59952         * soft-fp/floatunsidf.c: Likewise.
59953         * soft-fp/floatunsisf.c: Likewise.
59954         * soft-fp/floatuntidf.c: Likewise.
59955         * soft-fp/floatuntisf.c: Likewise.
59956         * soft-fp/floatuntitf.c: Likewise.
59957         * soft-fp/fmadf4.c: Likewise.
59958         * soft-fp/fmasf4.c: Likewise.
59959         * soft-fp/fmatf4.c: Likewise.
59960         * soft-fp/gedf2.c: Likewise.
59961         * soft-fp/gesf2.c: Likewise.
59962         * soft-fp/getf2.c: Likewise.
59963         * soft-fp/ledf2.c: Likewise.
59964         * soft-fp/lesf2.c: Likewise.
59965         * soft-fp/letf2.c: Likewise.
59966         * soft-fp/muldf3.c: Likewise.
59967         * soft-fp/mulsf3.c: Likewise.
59968         * soft-fp/multf3.c: Likewise.
59969         * soft-fp/negdf2.c: Likewise.
59970         * soft-fp/negsf2.c: Likewise.
59971         * soft-fp/negtf2.c: Likewise.
59972         * soft-fp/op-1.h: Likewise.
59973         * soft-fp/op-2.h: Likewise.
59974         * soft-fp/op-4.h: Likewise.
59975         * soft-fp/op-8.h: Likewise.
59976         * soft-fp/op-common.h: Likewise.
59977         * soft-fp/quad.h: Likewise.
59978         * soft-fp/single.h: Likewise.
59979         * soft-fp/soft-fp.h: Likewise.
59980         * soft-fp/sqrtdf2.c: Likewise.
59981         * soft-fp/sqrtsf2.c: Likewise.
59982         * soft-fp/sqrttf2.c: Likewise.
59983         * soft-fp/subdf3.c: Likewise.
59984         * soft-fp/subsf3.c: Likewise.
59985         * soft-fp/subtf3.c: Likewise.
59986         * soft-fp/truncdfsf2.c: Likewise.
59987         * soft-fp/trunctfdf2.c: Likewise.
59988         * soft-fp/trunctfsf2.c: Likewise.
59989         * soft-fp/trunctfxf2.c: Likewise.
59990         * soft-fp/unorddf2.c: Likewise.
59991         * soft-fp/unordsf2.c: Likewise.
59992         * soft-fp/unordtf2.c: Likewise.
59993
59994 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
59995
59996         [BZ #15672]
59997         * misc/error.c (error_tail): Fix possible buffer overflow.
59998
59999 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
60000
60001         [BZ #13028]
60002         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
60003         address.
60004
60005 2013-10-14  P. J. McDermott  <pj@pehjota.net>
60006
60007         [BZ #832]
60008         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
60009         testing pipefail option.
60010
60011 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
60012
60013         * soft-fp/double.h: Indent preprocessor directives inside #if.
60014         * soft-fp/extended.h: Likewise.
60015         * soft-fp/op-2.h: Likewise.
60016         * soft-fp/op-4.h: Likewise.
60017         * soft-fp/op-common.h: Likewise.
60018         * soft-fp/quad.h: Likewise.
60019         * soft-fp/single.h: Likewise.
60020         * soft-fp/soft-fp.h: Likewise.
60021
60022 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
60023
60024         * iconv/iconv_prog.c: Fix typos.
60025         * stdio-common/psiginfo-data.h: Likewise.
60026
60027 2013-10-12   Reuben Thomas <rrt@sc3d.org>
60028
60029         [BZ #15764]
60030         * locale/setlocale.c: Fix typo.
60031
60032 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
60033
60034         [BZ #16036]
60035         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
60036         signaling NaN arguments.
60037         * soft-fp/unordsf2.c (__unordsf2): Likewise.
60038         * soft-fp/unordtf2.c (__unordtf2): Likewise.
60039
60040         [BZ #14910]
60041         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
60042         unordered operands.
60043         * soft-fp/gesf2.c (__gesf2): Likewise.
60044         * soft-fp/getf2.c (__getf2): Likewise.
60045         * soft-fp/ledf2.c (__ledf2): Likewise.
60046         * soft-fp/lesf2.c (__lesf2): Likewise.
60047         * soft-fp/letf2.c (__letf2): Likewise.
60048
60049         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
60050         * soft-fp/eqsf2.c (__eqsf2): Likewise.
60051         * soft-fp/eqtf2.c (__eqtf2): Likewise.
60052         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
60053         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
60054         * soft-fp/fixdfti.c (__fixdfti): Likewise.
60055         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
60056         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
60057         * soft-fp/fixsfti.c (__fixsfti): Likewise.
60058         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
60059         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
60060         * soft-fp/fixtfti.c (__fixtfti): Likewise.
60061         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
60062         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
60063         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
60064         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
60065         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
60066         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
60067         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
60068         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
60069         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
60070         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
60071         * soft-fp/floatdisf.c (__floatdisf): Likewise.
60072         * soft-fp/floatsisf.c (__floatsisf): Likewise.
60073         * soft-fp/floattidf.c (__floattidf): Likewise.
60074         * soft-fp/floattisf.c (__floattisf): Likewise.
60075         * soft-fp/floattitf.c (__floattitf): Likewise.
60076         * soft-fp/floatundidf.c (__floatundidf): Likewise.
60077         * soft-fp/floatundisf.c (__floatundisf): Likewise.
60078         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
60079         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
60080         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
60081         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
60082         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
60083         * soft-fp/gesf2.c (__gesf2): Likewise.
60084         * soft-fp/getf2.c (__getf2): Likewise.
60085         * soft-fp/ledf2.c (__ledf2): Likewise.
60086         * soft-fp/lesf2.c (__lesf2): Likewise.
60087         * soft-fp/letf2.c (__letf2): Likewise.
60088
60089         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
60090         Undefine and redefine.
60091         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
60092         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
60093         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
60094         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
60095         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
60096         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
60097         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
60098         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
60099         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
60100         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
60101         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
60102         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
60103         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
60104         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
60105         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
60106
60107         [BZ #16032]
60108         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
60109         without decrementing exponent if mantissa >= that for the
60110         denominator, not >.
60111         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
60112         denominator, not >.  Decrement exponent in < case instead of
60113         incrementing in >= case.
60114         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
60115         without decrementing exponent if mantissa >= that for the
60116         denominator, not >.
60117
60118         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
60119         computing saturated result for unsigned overflow.
60120
60121 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
60122             Jeff Law  <law@redhat.com>
60123
60124         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
60125         (atan2Mp): Add systemtap probe marker.
60126         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
60127         (__ieee754_log): Add systemtap probe marker.
60128         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
60129         (atanMp): Add systemtap probe marker.
60130         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
60131         (tanMp): Add systemtap probe marker.
60132         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
60133         (__slowexp): Add systemtap probe marker.
60134         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
60135         (__slowpow): Add systemtap probe marker.
60136         * manual/probes.texi: Document probes.
60137
60138 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
60139
60140         [BZ #15362]
60141         * libio/fileops.c (_IO_new_file_write): Return count of bytes
60142         written.
60143         (_IO_new_file_xsputn): Don't return EOF if nothing has been
60144         written.
60145         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
60146         written to buffer but not flushed.
60147         * libio/iofwrite_u.c:  Likewise.
60148         * libio/iopadn.c:  Return bytes returned even if EOF was
60149         encountered.
60150         * libio/iowpadn.c:  Likewise.
60151         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
60152         if _IO_padn does not write the whole buffer.
60153         [!COMPILE_WPRINTF] (PAD): Likewise.
60154
60155 2013-10-10  David S. Miller  <davem@davemloft.net>
60156
60157         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
60158         directory block.
60159
60160 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
60161
60162         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
60163         instead of FSF address.
60164         * soft-fp/fixdfti.c: Likewise.
60165         * soft-fp/fixsfti.c: Likewise.
60166         * soft-fp/fixtfti.c: Likewise.
60167         * soft-fp/fixunsdfti.c: Likewise.
60168         * soft-fp/fixunssfti.c: Likewise.
60169         * soft-fp/fixunstfti.c: Likewise.
60170         * soft-fp/floattidf.c: Likewise.
60171         * soft-fp/floattisf.c: Likewise.
60172         * soft-fp/floattitf.c: Likewise.
60173         * soft-fp/floatuntidf.c: Likewise.
60174         * soft-fp/floatuntisf.c: Likewise.
60175         * soft-fp/floatuntitf.c: Likewise.
60176         * soft-fp/trunctfxf2.c: Likewise.
60177
60178         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
60179         * soft-fp/fixdfti.c: Likewise.
60180         * soft-fp/fixsfti.c: Likewise.
60181         * soft-fp/fixtfti.c: Likewise.
60182         * soft-fp/fixunsdfti.c: Likewise.
60183         * soft-fp/fixunssfti.c: Likewise.
60184         * soft-fp/fixunstfti.c: Likewise.
60185         * soft-fp/floattidf.c: Likewise.
60186         * soft-fp/floattisf.c: Likewise.
60187         * soft-fp/floattitf.c: Likewise.
60188         * soft-fp/floatuntidf.c: Likewise.
60189         * soft-fp/floatuntisf.c: Likewise.
60190         * soft-fp/floatuntitf.c: Likewise.
60191         * soft-fp/trunctfxf2.c: Likewise.
60192
60193 2013-10-10  David S. Miller  <davem@davemloft.net>
60194
60195         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60196
60197 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
60198
60199         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
60200         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
60201         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
60202         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
60203         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
60204         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
60205         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
60206
60207         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
60208         for NaNs before doing comparisons on argument.
60209         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
60210         Likewise.
60211
60212 2013-10-10  Will Newton  <will.newton@linaro.org>
60213
60214         * malloc/hooks.c (memalign_check): Ensure the value of bytes
60215         passed to _int_memalign does not overflow.
60216
60217 2013-10-10  Torvald Riegel  <triegel@redhat.com>
60218
60219         * scripts/bench.pl: Add include-sources directive.
60220         * benchtests/README: Update documentation.
60221
60222 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
60223
60224         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
60225         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
60226         instead of FP_INIT_ROUNDMODE.
60227         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
60228         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
60229
60230         [BZ #16034]
60231         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
60232         copy class of input value.
60233         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
60234         not handle exceptions.
60235         * soft-fp/negsf2.c (__negsf2): Likewise.
60236         * soft-fp/negtf2.c (__negtf2): Likewise.
60237         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
60238
60239 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
60240
60241         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
60242         semicolon.  From Linux kernel.
60243
60244 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
60245
60246         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
60247
60248 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
60249
60250         [BZ #156]
60251         * manual/socket.texi: Added statement about buffer
60252         for gethostbyname2_r.
60253
60254 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
60255
60256         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
60257         Use .p2align directive instead, throughout.
60258         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
60259         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
60260         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
60261         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
60262         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
60263         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
60264         * sysdeps/x86_64/strchr.S: Likewise.
60265         * sysdeps/x86_64/strrchr.S: Likewise.
60266
60267 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
60268
60269         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
60270
60271         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
60272
60273         * sysdeps/generic/math_private.h (__mpsin1): Remove
60274         declaration.
60275         (__mpcos1): Likewise.
60276         (__mpsin): New argument __range_reduce.
60277         (__mpcos): Likewise.
60278         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
60279         (slow): Use __mpsin and __mpcos.
60280         (slow1): Likewise.
60281         (slow2): Likewise.
60282         (sloww): Likewise.
60283         (sloww1): Likewise.
60284         (sloww2): Likewise.
60285         (bsloww): Likewise.
60286         (bsloww1): Likewise.
60287         (bsloww2): Likewise.
60288         (cslow2): Likewise.
60289         (csloww): Likewise.
60290         (csloww1): Likewise.
60291         (csloww2): Likewise.
60292         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
60293         range_reduce.  Merge in __mpsin1.
60294         (__mpcos): Likewise.
60295         (__mpsin1): Remove.
60296         (__mpcos1): Likewise.
60297
60298 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
60299
60300         * locale/loadlocale.c (_nl_intern_locale_data): Use
60301         LOCFILE_ALIGNED_P.
60302         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
60303         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
60304         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
60305         obstack data is appropriately aligned.
60306         (obstack_int32_grow_fast): Likewise.
60307         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
60308         * locale/programs/locfile.c (add_locale_uint32): Likewise.
60309         (add_locale_uint32_array): Likewise.
60310
60311 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
60312
60313         * benchtests/Makefile: Remove ARGLIST and RET variables.
60314         ($(objpfx)bench-%.c): Pass only function name to the script.
60315         * benchtests/README: Update documentation.
60316         * benchtests/acos-inputs: Add new directives.
60317         * benchtests/acosh-inputs: Likewise.
60318         * benchtests/asin-inputs: Likewise.
60319         * benchtests/asinh-inputs: Likewise.
60320         * benchtests/atan-inputs: Likewise.
60321         * benchtests/atanh-inputs: Likewise.
60322         * benchtests/cos-inputs: Likewise.
60323         * benchtests/cosh-inputs: Likewise.
60324         * benchtests/exp-inputs: Likewise.
60325         * benchtests/log-inputs: Likewise.
60326         * benchtests/pow-inputs: Likewise.
60327         * benchtests/rint-inputs: Likewise.
60328         * benchtests/sin-inputs: Likewise.
60329         * benchtests/sinh-inputs: Likewise.
60330         * benchtests/tan-inputs: Likewise.
60331         * benchtests/tanh-inputs: Likewise.
60332         * scripts/bench.pl: Add support for new directives.
60333
60334 2013-10-07  Alan Modra  <amodra@gmail.com>
60335
60336         * README: Fix careless merge.
60337
60338 2013-10-05  Alan Modra  <amodra@gmail.com>
60339
60340         * NEWS: Mention powerpc64le support and bugs fixed.
60341         * README: Both big-endian and little-endian powerpc64 supported.
60342
60343 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
60344
60345         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
60346         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
60347         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
60348         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
60349
60350 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
60351
60352         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
60353         match prototype.
60354
60355 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
60356
60357         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
60358         Move -mhard-float appending from
60359         ports/sysdeps/powerpc/powerpc32/Makefile.
60360         [$(with-fp) = yes] (ASFLAGS): Likewise.
60361         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
60362         * sysdeps/powerpc/nofpu: Move directory from
60363         ports/sysdeps/powerpc/nofpu.
60364         * sysdeps/powerpc/soft-fp: Move directory from
60365         ports/sysdeps/powerpc/soft-fp.
60366         * sysdeps/powerpc/powerpc32/405: Move directory from
60367         ports/sysdeps/powerpc/powerpc32/405.
60368         * sysdeps/powerpc/powerpc32/440: Move directory from
60369         ports/sysdeps/powerpc/powerpc32/440.
60370         * sysdeps/powerpc/powerpc32/464: Move directory from
60371         ports/sysdeps/powerpc/powerpc32/464.
60372         * sysdeps/powerpc/powerpc32/476: Move directory from
60373         ports/sysdeps/powerpc/powerpc32/476.
60374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
60375         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
60376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
60377         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
60378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
60379         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
60380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
60381         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
60382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
60383         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
60384         * README: Update for powerpc-*-linux-gnu software floating point
60385         support in libc.
60386
60387         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
60388         case to powerpc/powerpc32*.
60389         * sysdeps/unix/sysv/linux/configure: Regenerated.
60390
60391         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
60392         (_FPU_MASK_OM): Define as 0x04.
60393         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
60394         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
60395         0x00c10080.
60396         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
60397         0x0000003c.
60398         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
60399
60400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
60401         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
60402         getcontext_e500.
60403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
60404         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
60405         setcontext_e500.
60406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
60407         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
60408         and setcontext_e500.
60409
60410 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
60411
60412         * locale/iso-3166.def: Update iso-1366.def and related occurrences
60413
60414 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60415
60416         * manual/threads.texi (Default Thread Attributes): Fix typo.
60417
60418 2013-10-04  Will Newton  <will.newton@linaro.org>
60419
60420         * malloc/Makefile: Add tst-memalign.
60421         * malloc/tst-memalign.c: New file.
60422
60423         * malloc/tst-posix_memalign.c: Add comments.
60424         (do_test): Add comments and call free on all potentially
60425         allocated pointers. Add space after cast.
60426
60427         * malloc/tst-pvalloc.c: Add comments.
60428         (do_test): Add comments and call free on all potentially
60429         allocated pointers. Remove duplicate check for NULL pointer.
60430         Add space after cast.
60431
60432         * malloc/tst-valloc.c: Add comments.
60433         (do_test): Add comments and call free on all potentially
60434         allocated pointers. Remove duplicate check for NULL pointer.
60435         Add space after cast.
60436
60437 2013-10-04  Alan Modra  <amodra@gmail.com>
60438
60439         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
60440         Use stdint types in rather than __attribute__((mode())).
60441         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
60442
60443 2013-10-04  Alan Modra  <amodra@gmail.com>
60444
60445         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
60446         Correct handling of unaligned relocs for little-endian.
60447         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
60448
60449 2013-10-04  Alan Modra  <amodra@gmail.com>
60450
60451         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
60452         * configure: Regenerate.
60453         * nptl/shlib-versions: Powerpc*le starts at 2.18.
60454         * shlib-versions: Likewise.
60455
60456 2013-10-04  Alan Modra  <amodra@gmail.com>
60457
60458         * string/tester.c (test_memrchr): Increment reported test cycle.
60459
60460 2013-10-04  Alan Modra  <amodra@gmail.com>
60461
60462         * string/test-memcpy.c (do_one_test): When reporting errors, print
60463         string address and don't overrun end of string.
60464
60465 2013-10-04  Alan Modra  <amodra@gmail.com>
60466
60467         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
60468         insrdi.  Make better use of reg selection to speed exit slightly.
60469         Schedule entry path a little better.  Remove useless "are we done"
60470         checks on entry to main loop.  Handle wrapping around zero address.
60471         Correct main loop count.  Handle single left-over word from main
60472         loop inline rather than by using loop_small.  Remove extra word
60473         case in loop_small caused by wrong loop count.  Add little-endian
60474         support.
60475         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
60476         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
60477         cache hint.
60478         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
60479         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
60480         support.  Avoid rlwimi.
60481         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
60482
60483 2013-10-04  Alan Modra  <amodra@gmail.com>
60484
60485         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
60486         insrdi.  Formatting.
60487         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
60488         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
60489         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
60490         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
60491         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
60492         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
60493
60494 2013-10-04  Alan Modra  <amodra@gmail.com>
60495
60496         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
60497         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
60498         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
60499         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
60500         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
60501         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
60502         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
60503         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
60504         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
60505         use of regs.  Use power7 mtocrf.  Tidy function tails.
60506
60507 2013-10-04  Alan Modra  <amodra@gmail.com>
60508
60509         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
60510         Formatting.  Consistently use rXXX register defines or rN defines.
60511         Use early exit labels that avoid restoring unused non-volatile regs.
60512         Make cr field use more consistent with rWORDn compares.  Rename
60513         regs used as shift registers for unaligned loop, using rN defines
60514         for short lifetime/multiple use regs.
60515         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
60516         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
60517         addi 1,1,64 to pop stack frame.  Simplify return value code.
60518         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
60519
60520 2013-10-04  Alan Modra  <amodra@gmail.com>
60521
60522         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
60523         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
60524         rather than rlwimi.
60525         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
60526         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
60527         little-endian support.  Correct typos.
60528         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
60529         rather than rlwimi.
60530         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
60531         in loop and entry code to keep "and." results.
60532         (strchr): Add little-endian support.  Comment.  Move cntlzd
60533         earlier in tail.
60534         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
60535
60536 2013-10-04  Alan Modra  <amodra@gmail.com>
60537
60538         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
60539         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
60540         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
60541         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
60542
60543 2013-10-04  Alan Modra  <amodra@gmail.com>
60544
60545         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
60546         (rTMP): Define as r11.
60547         (strcmp): Add little-endian support.  Optimise tail.
60548         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
60549         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
60550         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
60551         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
60552         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
60553         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
60554         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
60555
60556 2013-10-04  Alan Modra  <amodra@gmail.com>
60557
60558         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
60559         little-endian support.  Remove unnecessary "are we done" tests.
60560         Handle "s" wrapping around zero and extremely large "size".
60561         Correct main loop count.  Handle single left-over word from main
60562         loop inline rather than by using small_loop.  Correct comments.
60563         Delete "zero" tail, use "end_max" instead.
60564         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
60565
60566 2013-10-04  Alan Modra  <amodra@gmail.com>
60567
60568         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
60569         support.  Don't branch over align.
60570         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
60571         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
60572         support.  Rearrange tmp reg use to suit.  Comment.
60573         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
60574
60575 2013-10-04  Alan Modra  <amodra@gmail.com>
60576
60577         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
60578
60579 2013-10-04  Alan Modra  <amodra@gmail.com>
60580
60581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
60582         conditional form of branch and link when obtaining pc.
60583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
60584
60585 2013-10-04  Alan Modra  <amodra@gmail.com>
60586
60587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
60588         HIWORD/LOWORD.
60589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
60590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
60591
60592 2013-10-04  Alan Modra  <amodra@gmail.com>
60593
60594         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
60595         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
60596         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
60597         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
60598         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
60599         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
60600         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
60601         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
60602         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
60603         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
60604
60605 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
60606             Alistair Popple <alistair@ozlabs.au.ibm.com>
60607             Alan Modra <amodra@gmail.com>
60608
60609         [BZ #15723]
60610         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
60611         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
60612         _dl_hwcap access for little-endian.
60613         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
60614         destroy vmx regs when saving unaligned.
60615         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
60616         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
60617         destroy vmx regs when saving unaligned.
60618
60619 2013-10-04  Alan Modra  <amodra@gmail.com>
60620
60621         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
60622         Don't use a union to pack hi/low value.
60623
60624 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
60625
60626         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
60627         for little-endian.
60628         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
60629         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
60630         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
60631         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
60632         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
60633
60634 2013-10-04  Alan Modra  <amodra@gmail.com>
60635
60636         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
60637         constants to usual value for .cst8 section, and remove redundant
60638         high address load.
60639         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
60640         constant for 0x1p52.  Load little-endian words of double from
60641         correct stack offsets.
60642
60643 2013-10-04  Alan Modra  <amodra@gmail.com>
60644
60645         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
60646         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
60647         words of double from correct stack offsets.
60648         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
60649         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
60650         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
60651         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
60652         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
60653         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
60654         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
60655         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
60656         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
60657         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
60658         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
60659         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
60660         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
60661         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
60662         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
60663         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
60664         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
60665
60666 2013-10-04  Alan Modra  <amodra@gmail.com>
60667
60668         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
60669         64-bit int/double union.
60670         (_FPU_SETCW): Likewise.
60671         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
60672         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
60673
60674 2013-10-04  Alan Modra  <amodra@gmail.com>
60675
60676         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
60677         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
60678
60679 2013-10-04  Alan Modra  <amodra@gmail.com>
60680
60681         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
60682         use vector int constants.
60683         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
60684
60685 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
60686
60687         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
60688         array with long long.
60689         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
60690         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
60691         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
60692         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
60693         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
60694         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
60695         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
60696         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
60697         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
60698         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
60699         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
60700         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
60701         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
60702
60703 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
60704
60705         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
60706         (__signbit): Likewise.  Correct for little-endian.
60707         (__signbitl): Call __signbit.
60708         (lrint): Correct for little-endian.
60709         (lrintf): Call lrint.
60710
60711 2013-10-04  Alan Modra  <amodra@gmail.com>
60712
60713         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
60714         union 32-bit int array member with 64-bit int array.
60715         (t515, tm256): Double rather than long double.
60716         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
60717
60718 2013-10-04  Alan Modra  <amodra@gmail.com>
60719
60720         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
60721         Delete.
60722         (IEEE854_LONG_DOUBLE_BIAS): Delete.
60723         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
60724         version of math_ldbl.h.
60725
60726 2013-10-04  Alan Modra  <amodra@gmail.com>
60727
60728         [BZ #15734], [BZ #15735]
60729         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
60730         all uses of ieee875 long double macros and unions.  Simplify test
60731         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
60732         ldbl_extract_mantissa value for ix,iy exponents.  Properly
60733         normalize after ldbl_extract_mantissa, and don't add hidden bit
60734         already handled.  Don't treat low word of ieee854 mantissa like
60735         low word of IBM long double and mask off bit when testing for
60736         zero.
60737         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
60738         all uses of ieee875 long double macros and unions.  Simplify tests
60739         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
60740         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
60741         two1022, instead use their values.  Recognise that tests for large
60742         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
60743         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
60744         Rewrite all uses of ieee875 long double macros and unions.  Simplify
60745         test for 0.0L and nan.  Correct negation.
60746         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
60747         ieee875 long double macros and unions.  Correct output for large
60748         magnitude x.  Correct absolute value calculation.
60749         (__erfcl): Likewise.
60750         * math/libm-test.inc: Add tests for errors discovered in IBM long
60751         double versions of fmodl, remainderl, erfl and erfcl.
60752
60753 2013-10-04  Alan Modra  <amodra@gmail.com>
60754
60755         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
60756         all uses of ieee854 long double macros and unions.  Simplify tests
60757         for long doubles that are fully specified by the high double.
60758         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
60759         Likewise.
60760         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
60761         Remove dead code too.
60762         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
60763         (__ieee754_ynl): Likewise.
60764         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
60765         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
60766         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
60767         Remove dead code too.
60768         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
60769         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
60770         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
60771         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
60772         Simplify.
60773         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
60774         Simplify.
60775         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
60776         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
60777         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
60778         Comment on variable precision.
60779         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
60780         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
60781         Likewise.
60782         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
60783         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
60784         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
60785         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
60786         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
60787
60788 2013-10-04  Alan Modra  <amodra@gmail.com>
60789
60790         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
60791         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
60792         all uses of ieee854 long double macros and unions.
60793         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
60794         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
60795         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
60796         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
60797         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
60798         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
60799         Likewise.
60800         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
60801         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
60802         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
60803         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
60804         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
60805         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
60806         Simplify sign and nan test too.
60807         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
60808         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
60809         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
60810         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
60811         Likewise.
60812         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
60813         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
60814         Likewise.
60815         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60816         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
60817         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
60818         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
60819         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
60820         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
60821
60822 2013-10-04  Alan Modra  <amodra@gmail.com>
60823
60824         * stdio-common/printf_size.c (__printf_size): Don't use
60825         union ieee854_long_double in fpnum union.
60826         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
60827         signbit macro to retrieve sign from long double.
60828         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
60829         retrieve sign from long double.
60830         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
60831         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
60832         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
60833         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
60834         * math/test-misc.c (main): Don't use union ieee854_long_double.
60835
60836 2013-10-04  Alan Modra  <amodra@gmail.com>
60837
60838         [BZ #15680]
60839         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
60840         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
60841         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
60842         calculation.  Remove unnecessary test for denormal exponent.
60843         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
60844         Correct handling of denormals.  Avoid undefined shift behaviour.
60845         Correct normalisation of low mantissa when low double is denormal.
60846         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
60847         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
60848         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
60849         Correct normalisation of low mantissa.  Test for overflow of high
60850         mantissa and normalise.
60851         (ldbl_nearbyint): Use more readable constant for two52.
60852         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
60853         (__mpn_construct_long_double): Fix test for overflow of high
60854         mantissa and correct normalisation.  Avoid undefined shift.
60855
60856 2013-10-04  Alan Modra  <amodra@gmail.com>
60857
60858         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
60859         (union ibm_extended_long_double): Define as an array of ieee754_double.
60860         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
60861         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
60862         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
60863         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
60864         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
60865         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
60866         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
60867         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
60868         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
60869         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
60870         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
60871
60872 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
60873
60874         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
60875         page size instead of calling getpagesize.
60876
60877         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
60878         (LOCFILE_ALIGN_MASK): Likewise.
60879         (LOCFILE_ALIGN_UP): Likewise.
60880         (LOCFILE_ALIGNED_P): Likewise.
60881         * locale/programs/ld-collate.c (collate_output): Use the new
60882         macros instead of __alignof__ (int32_t).
60883         * locale/weight.h (findidx): Likewise.
60884
60885 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
60886
60887         [BZ #431]
60888         * manual/string.texi: Fix strncat and wcsncat.
60889
60890 2013-10-03  Brooks Moses  <bmoses@google.com>
60891
60892         [BZ #15915]
60893         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
60894         * Makerules: ...here, and adjust associated comments.
60895
60896 2013-10-02  Will Newton  <will.newton@linaro.org>
60897
60898         * malloc/Makefile: Add tst-pvalloc.
60899         * malloc/tst-pvalloc.c: New file.
60900
60901 2013-10-02  Will Newton  <will.newton@linaro.org>
60902
60903         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
60904         improve test coverage.
60905
60906 2013-10-02  Will Newton  <will.newton@linaro.org>
60907
60908         * malloc/Makefile: Add tst-posix_memalign.
60909         * malloc/tst-posix_memalign.c: New file.
60910
60911 2013-10-01  Eric Blake  <eblake@redhat.com>
60912
60913         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
60914         Use __THROWNL rather than __THROW on static functions.
60915
60916 2013-09-30  Petr Machata  <pmachata@redhat.com>
60917
60918         * elf/elf.h (R_AARCH64_ABS16): New macro.
60919         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
60920         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
60921         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
60922         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
60923         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
60924         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
60925         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
60926         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
60927         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
60928         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
60929         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
60930         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
60931         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
60932         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
60933         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
60934         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
60935         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
60936         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
60937         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
60938         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
60939         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
60940         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
60941         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
60942         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
60943         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
60944         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
60945         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
60946         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
60947         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
60948         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
60949         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
60950         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
60951         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
60952         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
60953         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
60954         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
60955         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
60956         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
60957         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
60958         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
60959         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
60960         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
60961         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
60962         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
60963         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
60964         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
60965         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
60966         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
60967         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
60968         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
60969         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
60970         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
60971         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
60972         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
60973         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
60974         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
60975         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
60976         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
60977         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
60978         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
60979         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
60980         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
60981         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
60982         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
60983         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
60984         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
60985         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
60986         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
60987         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
60988         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
60989         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
60990         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
60991         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
60992         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
60993         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
60994         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
60995         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
60996         (R_AARCH64_TLSDESC_LDR): Likewise.
60997         (R_AARCH64_TLSDESC_ADD): Likewise.
60998         (R_AARCH64_TLSDESC_CALL): Likewise.
60999
61000 2013-09-30  Andreas Schwab  <schwab@suse.de>
61001
61002         [BZ #15048]
61003         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
61004         the nss database lookup.
61005         * nscd/initgrcache.c (addinitgroupsX): Likewise.
61006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
61007
61008 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
61009
61010         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
61011
61012 2013-09-28  P. J. McDermott  <pj@pehjota.net>
61013
61014         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
61015         ${Bash-specific parameter/pattern/string} parameter expansion.
61016         * sysdeps/unix/make-syscalls.sh: Likewise.
61017
61018 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61019
61020         * sysdeps/sh/stackguard-macros.h: New file.
61021
61022 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
61023
61024         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
61025         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
61026         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
61027         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
61028         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
61029         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
61030
61031 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61032
61033         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
61034         Fix thread ID register.
61035
61036 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
61037
61038         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
61039         [POSIX || UNIX98]: Require rather than permitting all symbols from
61040         <time.h>.
61041         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
61042         element of struct sched_param.
61043         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
61044         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
61045         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
61046         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
61047         constant.
61048
61049 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
61050
61051         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
61052         argument calculation.
61053
61054 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
61055
61056         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
61057         Expect macro.
61058         [POSIX] (pthread_attr_t): Do not require type.
61059         [POSIX] (pthread_cond_t): Likewise.
61060         [POSIX] (pthread_condattr_t): Likewise.
61061         [POSIX] (pthread_key_t): Likewise.
61062         [POSIX] (pthread_mutex_t): Likewise.
61063         [POSIX] (pthread_mutexattr_t): Likewise.
61064         [POSIX] (pthread_once_t): Likewise.
61065         [POSIX] (pthread_t): Likewise.
61066         [POSIX-based standards] (pthread_atfork): Expect function.
61067
61068 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
61069             Richard Sandiford  <richard@codesourcery.com>
61070
61071         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
61072         (swap_endianness_p): New extern variable.
61073         (set_big_endian): New inline function.
61074         (maybe_swap_uint32): Likewise.
61075         (maybe_swap_uint32_array): Likewise.
61076         (maybe_swap_uint32_obstack): Likewise.
61077         * locale/programs/locfile.c: Include <stdbool.h>.
61078         (swap_endianness_p): New variable.
61079         (add_locale_uint32): Call maybe_swap_uint32.
61080         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
61081         (write_locale_data): Call maybe_swap_uint32_array.
61082         * locale/programs/ld-collate.c (obstack_int32_grow): Call
61083         maybe_swap_uint32.
61084         (obstack_int32_grow_fast): Likewise.
61085         (output_weightwc): Call maybe_swap_uint32_obstack.
61086         (collate_output): Likewise.
61087         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
61088         (OPT_LITTLE_ENDIAN): Likewise.
61089         (options): Add --little-endian and --big-endian options.
61090         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
61091         * locale/programs/locarchive.c: Include "locfile.h".
61092         (GET): New macro.
61093         (SET): Likewise.
61094         (INC): Likewise.
61095         (create_archive): Use the new macros to access fields of
61096         structures directly mapped from or written to locale archives.
61097         (oldlocrecentcmp): Likewise.
61098         (enlarge_archive): Likewise.
61099         (insert_name): Likewise.
61100         (add_alias): Likewise.
61101         (add_locale): Likewise.
61102         (delete_locales_from_archive): Likewise.
61103         (show_archive_content): Likewise.
61104         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
61105         locale data.
61106
61107 2013-09-24  Roland McGrath  <roland@hack.frob.com>
61108
61109         * manual/freemanuals.texi: Updated from (newly) canonical copy at
61110         http://www.gnu.org/doc/freemanuals.texi.
61111         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
61112
61113 2013-09-24  Will Newton  <will.newton@linaro.org>
61114
61115         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
61116         macro.
61117
61118 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
61119
61120         * locale/hashval.h (compute_hashval): Interpret bytes of key as
61121         unsigned char.
61122
61123 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
61124
61125         * manual/threads.texi (POSIX Threads): Fix a typo.
61126
61127 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
61128
61129         [BZ #14547]
61130         * string/tst-strcoll-overflow.c: New test case.
61131         * string/Makefile (xtests): Add tst-strcoll-overflow.
61132         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
61133         cache if string sizes may cause integer overflow.
61134
61135         [BZ #14547]
61136         * string/strcoll_l.c (coll_seq): New members rule, idx,
61137         save_idx and back_us.
61138         (get_next_seq_nocache): New function.
61139         (do_compare_nocache): New function.
61140         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
61141         when malloc fails.
61142
61143 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
61144
61145         [BZ #15754]
61146         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
61147         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
61148         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
61149
61150         [BZ #15754]
61151         * elf/Makefile (tests): Add tst-ptrguard1.
61152         (tests-static): Add tst-ptrguard1-static.
61153         (tst-ptrguard1-ARGS): Define.
61154         (tst-ptrguard1-static-ARGS): Define.
61155         * elf/tst-ptrguard1.c: New file.
61156         * elf/tst-ptrguard1-static.c: New file.
61157         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
61158         * sysdeps/i386/stackguard-macros.h: Likewise.
61159         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
61160         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
61161         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
61162         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
61163         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
61164         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
61165
61166 2013-09-23  Hector Marco  <hecmargi@upv.es>
61167             Ismael Ripoll  <iripoll@disca.upv.es>
61168             Carlos O'Donell  <carlos@redhat.com>
61169
61170         [BZ #15754]
61171         * sysdeps/generic/stackguard-macros.h: Define
61172         __pointer_chk_guard_local and POINTER_CHK_GUARD.
61173         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
61174         Define __pointer_chk_guard_local.
61175         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
61176         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
61177
61178 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
61179
61180         [BZ #15859]
61181         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
61182
61183 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
61184
61185         * include/string.h (__ffs): Declare as hidden.
61186         * string/ffs.c (__ffs): Define as hidden.
61187         * sysdeps/i386/ffs.c (__ffs): Likewise.
61188         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
61189         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
61190         * sysdeps/s390/ffs.c (__ffs): Likewise.
61191         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
61192
61193 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
61194
61195         * NEWS: Mention malloc probes.
61196
61197         * malloc/arena.c (new_heap): New memory_heap_new probe.
61198         (grow_heap): New memory_heap_more probe.
61199         (shrink_heap): New memory_heap_less probe.
61200         (heap_trim): New memory_heap_free probe.
61201         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
61202         (systrim): New memory_sbrk_less probe.
61203         * manual/probes.texi: Document them.
61204
61205         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
61206         * manual/probes.texi: Document it.
61207
61208         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
61209         (__libc_realloc): Add memory_realloc_retry probe.
61210         (__libc_memalign): Add memory_memalign_retry probe.
61211         (__libc_valloc): Add memory_valloc_retry probe.
61212         (__libc_pvalloc): Add memory_pvalloc_retry probe.
61213         (__libc_calloc): Add memory_calloc_retry probe.
61214         * manual/probes.texi: Document them.
61215
61216         * malloc/arena.c (get_free_list): Add probe
61217         memory_arena_reuse_free_list.
61218         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
61219         and memory_arena_reuse.
61220         (arena_get2) [!PER_THREAD]: Likewise.
61221         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
61222         memory_arena_reuse_realloc.
61223         * manual/probes.texi: Document them.
61224
61225         * malloc/malloc.c (__libc_free): Add
61226         memory_mallopt_free_dyn_thresholds probe.
61227         (__libc_mallopt): Add multiple memory_mallopt probes.
61228         * manual/probes.texi: Document them.
61229
61230         * malloc/malloc.c: Include stap-probe.h.
61231         (__libc_mallopt): Add memory_mallopt probe.
61232         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
61233         * manual/probes.texi: New.
61234         * manual/Makefile (chapters): Add probes.
61235         * manual/threads.texi: Set next node.
61236
61237 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
61238
61239         [BZ #15963, #13985]
61240         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
61241         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
61242         Add `Chinese' to `nan' entry name.
61243
61244 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
61245
61246         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
61247         (POLYNOMIAL): Likewise.
61248         (TAYLOR_SINCOS): Likewise.
61249         (TAYLOR_SLOW): Likewise.
61250         (__sin): Use TAYLOR_SINCOS.
61251         (__cos): Likewise.
61252         (slow): Use TAYLOR_SLOW.
61253         (sloww): Likewise.
61254         (bsloww): Likewise.
61255         (csloww): Likewise.
61256
61257 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
61258
61259         * stdlib/strtod_l.c: Fix buffer overrun.
61260
61261 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
61262
61263         * benchtests/Makefile (bench): Add sincos.
61264         * benchtests/bench-sincos.c: New file.
61265
61266         * math/libm-test.inc (cos_test_data): New test inputs.
61267         (sin_test_data): Likewise.
61268
61269         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
61270         macro.
61271         (__sin): Use it.
61272         (__cos): Likewise.
61273         (slow1): Likewise.
61274         (slow2): Likewise.
61275         (sloww1): Likewise.
61276         (sloww2): Likewise.
61277         (bsloww1): Likewise.
61278         (bsloww2): Likewise.
61279         (cslow2): Likewise.
61280         (csloww1): Likewise.
61281         (csloww2): Likewise.
61282
61283         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
61284         function.
61285         (__sin): Use it.
61286         (__cos): Likewise.
61287
61288         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
61289         gotos.
61290         (__cos): Likewise.
61291
61292 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
61293
61294         * config.h.in (HAVE_MIPS_NAN2008): New macro.
61295         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
61296         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
61297         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
61298         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
61299         * elf/cache.c (print_entry): Handle the new cache flags.
61300
61301 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
61302             Aldy Hernandez  <aldyh@redhat.com>
61303
61304         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
61305         Change condition to [_SOFT_FLOAT].
61306         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
61307         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
61308         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
61309         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
61310         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
61311         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
61312         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
61313         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
61314         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
61315         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
61316         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
61317         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
61318         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
61319         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
61320         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
61321         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
61322         declaration.
61323
61324 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
61325
61326         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
61327         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
61328         (__longjmp): Use LOAD_GP to load saved GPRs.
61329         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
61330         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
61331         (__sigsetjmp): Use SAVE_GP to save GPRs.
61332
61333         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
61334         Do not append -msoft-float.
61335         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
61336
61337 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
61338
61339         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
61340
61341 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
61342
61343         [BZ #15966]
61344         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
61345         (_FPU_GETCW): Use initial "__" on variable and field names but not
61346         on macro parameter name.
61347         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
61348         parentheses around reference to macro parameter.
61349
61350 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
61351
61352         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
61353         prototype.
61354         (ctype_startup): Use uint32_t in cast and sizeof for
61355         ctype->charnames.
61356
61357 2013-09-11  Jia Liu  <proljc@gmail.com>
61358
61359         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
61360         __daddr_t_defined.
61361         [__FreeBSD__]: Likewise.
61362
61363 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
61364
61365         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
61366         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
61367         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
61368         (strchr): Remove __strchr_sse42 ifunc selection.
61369         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
61370         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
61371
61372 2013-09-11  Will Newton  <will.newton@linaro.org>
61373
61374         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
61375         parameter to RES. Remove hardcoded 1000 value.
61376         * benchtests/bench-skeleton.c (main): Pass RES parameter
61377         to TIMING_INIT and multiply result by 1000.
61378
61379 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61380
61381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61382
61383 2013-09-11  Andreas Schwab  <schwab@suse.de>
61384
61385         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
61386         if not defined.
61387         (O_TMPFILE) [__USE_GNU]: Define.
61388         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
61389         Define.
61390
61391 2013-09-11  Will Newton  <will.newton@linaro.org>
61392
61393         [BZ #15857]
61394         * malloc/malloc.c (__libc_memalign): Check the value of bytes
61395         does not overflow.
61396
61397 2013-09-11  Will Newton  <will.newton@linaro.org>
61398
61399         [BZ #15856]
61400         * malloc/malloc.c (__libc_valloc): Check the value of bytes
61401         does not overflow.
61402
61403 2013-09-11  Will Newton  <will.newton@linaro.org>
61404
61405         [BZ #15855]
61406         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
61407         does not overflow.
61408
61409 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
61410
61411         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
61412         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
61413         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
61414         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
61415         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
61416
61417 2013-09-10  Allan McRae  <allan@archlinux.org>
61418
61419         [BZ #15748]
61420         * manual/arith.texi (Parsing of Floats): Clarify
61421         cross-reference.
61422
61423         [BZ #15849]
61424         * manual/install.texi (Running make install): Mention
61425         --enable-pt-chown.
61426         * INSTALL: Regenerated.
61427
61428 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
61429
61430         * csu/init-first.c (_init): Remove the !SHARED condition around
61431         FPU control word initialization.
61432         * elf/dl-support.c (_dl_fpu_control): New variable.
61433         (_dl_aux_init) <AT_FPUCW>: Initialize it.
61434         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
61435         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
61436         * math/test-fpucw-static.c: New file.
61437         * math/test-fpucw-ieee.c: New file.
61438         * math/test-fpucw-ieee-static.c: New file.
61439         * math/Makefile (tests): Add `test-fpucw-ieee' and
61440         `$(tests-static)'.
61441         (tests-static): New variable.
61442         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
61443         dependency to...
61444         [($(build-shared),yes)]
61445         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
61446         ... this.
61447         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
61448         New dependency.
61449
61450 2013-09-09  Allan McRae  <allan@archlinux.org>
61451
61452         [BZ #15939]
61453         * manual/string.texi (Collation Functions): Fix typo in
61454         strcoll example.
61455         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
61456
61457         [BZ #15893]
61458         * stdlib/isomac.c (get_null_defines): Fix memory leak.
61459
61460         [BZ #15892]
61461         * libio/memstream.c (open_memstream): Fix memory leak.
61462         * libio/wmemstream.c (open_wmemstream): Likewise.
61463
61464         [BZ #15895]
61465         * nscd/netgroupcache.c: Fix nesting of ifdefs.
61466
61467 2013-09-09  Will Newton  <will.newton@linaro.org>
61468
61469         * malloc/Makefile: Add tst-realloc to tests.
61470         * malloc/tst-realloc.c: New file.
61471
61472 2013-09-09  Allan McRae  <allan@archlinux.org>
61473
61474         [BZ #15844]
61475         * COPYING: Update from GNU website to fix FSF address.
61476         * COPYING.LIB: Likewise.
61477
61478 2013-09-06  David S. Miller  <davem@davemloft.net>
61479
61480         * po/zh_TW.po: Update Chinese (traditional) translation from
61481         translation project.
61482
61483 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
61484             Joseph Myers  <joseph@codesourcery.com>
61485
61486         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
61487         "localeinfo.h".
61488         (obstack_chunk_alloc): New macro.
61489         (obstack_chunk_free): Likewise.
61490         (record_offset): New function.
61491         (init_locale_data): Likewise.
61492         (align_locale_data): Likewise.
61493         (add_locale_empty): Likewise.
61494         (add_locale_raw_data): Likewise.
61495         (add_locale_raw_obstack): Likewise.
61496         (add_locale_string): Likewise.
61497         (add_locale_wstring): Likewise.
61498         (add_locale_uint32): Likewise.
61499         (add_locale_uint32_array): Likewise.
61500         (add_locale_char): Likewise.
61501         (start_locale_structure): Likewise.
61502         (end_locale_structure): Likewise.
61503         (start_locale_prelude): Likewise.
61504         (end_locale_prelude): Likewise.
61505         (write_locale_data): Take locale_file structure rather than an
61506         iovec.
61507         * locale/programs/locfile.h: Include "obstack.h".
61508         (struct locale_file): Change to store locale file contents instead
61509         of header.
61510         (init_locale_data): New prototype.
61511         (align_locale_data): Likewise.
61512         (add_locale_empty): Likewise.
61513         (add_locale_raw_data): Likewise.
61514         (add_locale_raw_obstack): Likewise.
61515         (add_locale_string): Likewise.
61516         (add_locale_wstring): Likewise.
61517         (add_locale_uint32): Likewise.
61518         (add_locale_uint32_array): Likewise.
61519         (add_locale_char): Likewise.
61520         (start_locale_structure): Likewise.
61521         (end_locale_structure): Likewise.
61522         (start_locale_prelude): Likewise.
61523         (end_locale_prelude): Likewise.
61524         (write_locale_data): Update prototype.
61525         * locale/programs/3level.h (struct TABLE): Remove result field.
61526         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
61527         Use new locale_file interface.
61528         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
61529         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
61530         * locale/programs/ld-address.c (address_output): Use new
61531         locale_file interface.
61532         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
61533         NO_ADD_LOCALE.
61534         (collate_finish): Don't call collseq_table_finalize.
61535         (collate_output): Use new locale_file interface.
61536         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
61537         in file.
61538         (NO_FINALIZE): Change to NO_ADD_LOCALE.
61539         (TABLE): Move defines earlier in file.
61540         (ELEMENT): Likewise.
61541         (DEFAULT): Likewise.
61542         (wctrans_table_add): Move macro and inline function earlier in
61543         file.
61544         (struct wctype_table): Move type earlier in file.
61545         (add_locale_wctype_table): New static prototype.
61546         (struct locale_ctype_t): Use logical types instead of struct iovec
61547         pointers for members.
61548         (ctype_output): Use new locale_file interface.
61549         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
61550         new locale_file interface.
61551         (allocate_arrays): Update for use of new locale_file interface.
61552         * locale/programs/ld-identification.c (identification_output): Use
61553         new locale_file interface.
61554         * locale/programs/ld-measurement.c (measurement_output): Likewise.
61555         * locale/programs/ld-messages.c (messages_output): Likewise.
61556         * locale/programs/ld-monetary.c (monetary_output): Likewise.
61557         * locale/programs/ld-name.c (name_output): Likewise.
61558         * locale/programs/ld-numeric.c (numeric_output): Likewise.
61559         * locale/programs/ld-paper.c (paper_output): Likewise.
61560         * locale/programs/ld-telephone.c (telephone_output): Likewise.
61561         * locale/programs/ld-time.c (time_output): Likewise.
61562
61563 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61564
61565         * benchtests/Makefile: Add memrchr benchmark.
61566         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
61567         benchmark as memrchr.
61568         * benchtests/bench-memrchr-ifunc.c: New file.
61569         * benchtests/bench-memrchr.c: New file.
61570
61571 2013-09-06   Will Newton  <will.newton@linaro.org>
61572
61573         * benchtests/Makefile (string-bench): Add memcpy.
61574
61575 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
61576             Cong Wang  <amwang@redhat.com>
61577
61578         [BZ #15850]
61579         * sysdeps/unix/sysv/linux/bits/in.h
61580         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
61581         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
61582         before __USE_KERNEL_IPV6_DEFS uses.
61583         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
61584         IPPROTO_BEETPH.
61585         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
61586         sockaddr_in6, or ipv6_mreq.
61587
61588 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61589
61590         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
61591         memory access for final bytes in some large inputs.
61592         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
61593
61594 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61595
61596         * string/test-memrchr.c: New file.
61597         * string/test-memrchr-ifunc.c: New file.
61598         * string/Makefile: Add new memrchr testcase.
61599
61600 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
61601
61602         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
61603         fanotify_init returns EPERM.
61604
61605 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
61606
61607         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
61608         errors.
61609         (top level): Treat second token from macro or constant entries for
61610         allowed headers as allowed.
61611         * include/complex.h: Condition internal declarations on
61612         [!_ISOMAC].
61613         * include/fenv.h: Condition include of <stdbool.h> and internal
61614         declarations on [!_ISOMAC].
61615
61616 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
61617
61618         [BZ #15923]
61619         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
61620
61621 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
61622
61623         * configure.in (--enable-versioning): Remove configure option.
61624         (libc_cv_asm_symver_directive): Remove configure test.
61625         (libc_cv_ld_version_script_option): Likewise.
61626         (VERSIONING): Remove variable and AC_SUBST.
61627         (DO_VERSIONING): Remove AC_DEFINE.
61628         * configure: Regenerated.
61629         * config.h.in (DO_VERSIONING): Remove macro.
61630         * Makerules [$(versioning) = yes]: Change conditionals to
61631         [$(build-shared) = yes].
61632         * config.make.in (versioning): Remove variable.
61633         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
61634         [$(build-shared) = yes].
61635         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
61636         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
61637         * elf/Makefile [$(versioning) = yes]: Change conditionals to
61638         [$(build-shared) = yes].
61639         * extra-lib.mk [$(versioning) = yes]: Likewise.
61640         * hurd/Makefile [$(versioning) = yes]: Likewise.
61641         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
61642         [SHARED].
61643         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
61644         [SHARED].
61645         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
61646         [SHARED && !NO_HIDDEN].
61647         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
61648         [SHARED].
61649         [SHARED && DO_VERSIONING]: Likewise..
61650         * libio/Makefile [$(versioning) = yes]: Change conditionals to
61651         [$(build-shared) = yes].
61652         * manual/install.texi (--disable-versioning): Remove
61653         documentation.
61654         * INSTALL: Regenerated.
61655         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
61656         to [SHARED].
61657         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
61658         [$(build-shared) = yes].
61659         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
61660         * sysdeps/i386/i686/multiarch/strstr-c.c
61661         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
61662         [SHARED && !NO_HIDDEN].
61663         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
61664         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
61665         * sysdeps/powerpc/powerpc32/dl-machine.c
61666         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
61667         * sysdeps/powerpc/powerpc32/sysdep.h
61668         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
61669         to [SHARED && PIC && !NO_HIDDEN].
61670         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
61671         conditional to [SHARED].
61672
61673 2013-09-04   Will Newton  <will.newton@linaro.org>
61674
61675         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
61676         * benchtests/bench-string.h: Include bench-timing.h instead
61677         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
61678         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
61679         call to HP_TIMING_DIFF_INIT.
61680         * benchtests/bench-memccpy.c: Use bench-timing.h macros
61681         instead of hp-timing.h macros.
61682         * benchtests/bench-memchr.c: Likewise.
61683         * benchtests/bench-memcmp.c: Likewise.
61684         * benchtests/bench-memcpy.c: Likewise.
61685         * benchtests/bench-memmem.c: Likewise.
61686         * benchtests/bench-memmove.c: Likewise.
61687         * benchtests/bench-memset.c: Likewise.
61688         * benchtests/bench-rawmemchr.c: Likewise.
61689         * benchtests/bench-strcasecmp.c: Likewise.
61690         * benchtests/bench-strcasestr.c: Likewise.
61691         * benchtests/bench-strcat.c: Likewise.
61692         * benchtests/bench-strchr.c: Likewise.
61693         * benchtests/bench-strcmp.c: Likewise.
61694         * benchtests/bench-strcpy.c: Likewise.
61695         * benchtests/bench-strcpy_chk.c: Likewise.
61696         * benchtests/bench-strlen.c: Likewise.
61697         * benchtests/bench-strncasecmp.c: Likewise.
61698         * benchtests/bench-strncat.c: Likewise.
61699         * benchtests/bench-strncmp.c: Likewise.
61700         * benchtests/bench-strncpy.c: Likewise.
61701         * benchtests/bench-strnlen.c: Likewise.
61702         * benchtests/bench-strpbrk.c: Likewise.
61703         * benchtests/bench-strrchr.c: Likewise.
61704         * benchtests/bench-strspn.c: Likewise.
61705         * benchtests/bench-strstr.c: Likewise.
61706
61707 2013-09-04  Will Newton  <will.newton@linaro.org>
61708
61709         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
61710
61711 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
61712
61713         [BZ #15427]
61714         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
61715         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
61716         * math/libm-test.inc (lgamma_test_data): Add more tests.
61717         * sysdeps/i386/fpu/libm-test-ulps: Update.
61718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61719
61720 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
61721
61722         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
61723         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
61724         Add ifunc.
61725         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
61726         Add strcmp-sse2-unaligned
61727         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
61728
61729 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
61730
61731         * Versions.def (libc): Add GLIBC_2.19.
61732
61733 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
61734
61735         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
61736         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
61737
61738 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
61739
61740         [BZ #14155]
61741         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
61742         intermediate calculations in recurrence.
61743         (__ieee754_ynf): Likewise.
61744         * math/libm-test.inc (jn_test_data): Do not allow spurious
61745         underflow exception.  Add more tests.
61746         (yn_test_data): Add more tests.
61747         * sysdeps/i386/fpu/libm-test-ulps: Update.
61748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61749
61750 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
61751
61752         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
61753
61754 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
61755
61756         * csu/init-first.c: Fix then/than typos.
61757         * locale/programs/ld-collate.c: Likewise.
61758         * locale/programs/linereader.h: Likewise.
61759         * manual/charset.texi: Likewise.
61760         * manual/filesys.texi: Likewise.
61761         * manual/stdio.texi: Likewise.
61762         * manual/string.texi: Likewise.
61763         * stdlib/fmtmsg.c: Likewise.
61764         * sysdeps/i386/stpncpy.S: Likewise.
61765         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
61766         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
61767         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
61768         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
61769
61770 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
61771
61772         * elf/dl-open.c: Fix typos.
61773         * iconvdata/gbbig5.c: Likewise.
61774         * iconvdata/iso-2022-jp.c: Likewise.
61775         * iconv/gconv_int.h: Likewise.
61776         * iconv/loop.c: Likewise.
61777         * nis/rpcsvc/nis.h: Likewise.
61778         * resolv/ns_name.c: Likewise.
61779         * stdio-common/vfscanf.c: Likewise.
61780         * streams/stropts.h: Likewise.
61781         * sunrpc/rpc_thread.c: Likewise.
61782         * sysdeps/i386/strpbrk.S: Likewise.
61783         * sysdeps/ieee754/k_standard.c: Likewise.
61784         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
61785         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
61786         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
61787         * sysdeps/mach/hurd/profil.c: Likewise.
61788         * sysdeps/s390/dl-procinfo.h: Likewise.
61789         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
61790         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
61791         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
61792         * sysdeps/x86_64/dl-trampoline.S: Likewise.
61793         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
61794
61795 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
61796
61797         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
61798         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
61799
61800 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
61801
61802         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
61803         aix specific files.
61804         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
61805         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
61806         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
61807         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
61808         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
61809         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
61810         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
61811         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
61812
61813 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
61814             Roland McGrath  <roland@hack.frob.com>
61815
61816         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
61817         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
61818
61819 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
61820
61821         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
61822         __executable_start symbol instead of _start.
61823
61824 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
61825
61826         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
61827         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
61828         Move macros to...
61829         * sysdeps/gnu/ldsodefs.h: ... this new file.
61830
61831         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
61832         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
61833         instead of ELFOSABI_LINUX.
61834
61835         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
61836         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
61837         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
61838         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
61839         Likewise.
61840         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
61841         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
61842         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
61843         Likewise.
61844         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
61845         (ibm_extended_long_double): Add ieee_nan member.
61846         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
61847         (do_test): New function.
61848
61849         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
61850         TEST_TRUNC.
61851         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
61852         functions, renamed from truncdfsf_test, trunctfsf_test,
61853         trunctfdf_test.
61854         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
61855         functions.
61856         (do_test): Run all these.
61857
61858 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
61859
61860         * argp/argp-help.c: Fix typos.
61861         * argp/argp-parse.c: Likewise.
61862         * debug/backtracesyms.c: Likewise.
61863         * elf/elf.h: Likewise.
61864         * malloc/malloc.c: Likewise.
61865         * nis/nis_print.c: Likewise.
61866         * resolv/res_comp.c: Likewise.
61867         * stdlib/stdlib.h: Likewise.
61868         * sunrpc/clnt_tcp.c: Likewise.
61869         * sunrpc/clnt_udp.c: Likewise.
61870         * sunrpc/clnt_unix.c: Likewise.
61871         * sysdeps/unix/bsd/ptsname.c: Likewise.
61872         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
61873         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
61874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
61875         Likewise.
61876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
61877         Likewise.
61878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
61879         Likewise.
61880         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
61881
61882 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
61883
61884         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
61885         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
61886
61887 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
61888
61889         [BZ #15897]
61890         * dlfcn/Makefile (tests): Add bug-dl-leaf.
61891         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
61892         ($(objpfx)bug-dl-leaf): New rule.
61893         ($(objpfx)bug-dl-leaf.so): Likewise.
61894         ($(objpfx)bug-dl-leaf.out): Likewise.
61895         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
61896         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
61897         * dlfcn/bug-dl-leaf.c: New test.
61898         * dlfcn/bug-dl-leaf-lib.c: Likewise.
61899         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
61900         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
61901         (dlclose): Likewise.
61902         (dlmopen): Likewise.
61903
61904 2013-08-27  Roland McGrath  <roland@hack.frob.com>
61905
61906         * include/netdb.h [!_ISOMAC]:
61907         Don't include <tls.h>.
61908         (h_errno, __libc_h_errno): Move declaration and macros out of
61909         [_LIBC_REENTRANT].
61910
61911         * include/resolv.h [_RESOLV_H_]:
61912         Don't include <tls.h>.
61913         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
61914         * resolv/res_libc.c: Don't include <tls.h>.
61915         (_res): Use __attribute__ ((nocommon)) in place of
61916         __attribute__ ((section (".bss"))).
61917
61918         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
61919         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
61920
61921         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
61922
61923         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
61924         only under [SIOCGIFCONF && SIOCGIFNETMASK].
61925
61926         * resolv/res_mkquery.c: Include <sys/time.h>.
61927
61928         * inet/ifreq.c: Moved to ...
61929         * sysdeps/unix/ifreq.c: ... here.
61930         * inet/ifreq.c: New file, true stub version.
61931
61932         * socket/sa_len.c: New file.
61933         * socket/Makefile (aux): Add it.
61934         * sysdeps/unix/sysv/linux/Makefile
61935         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
61936         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
61937         and #include <socket/sa_len.c>.
61938         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
61939         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
61940
61941         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
61942         * bits/socket.h: ... here.
61943
61944         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
61945         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
61946         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
61947
61948 2013-08-27  Andreas Schwab  <schwab@suse.de>
61949
61950         [BZ #15736]
61951         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
61952         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
61953         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
61954         * string/test-strcasecmp.c (test_main): Run tests in several
61955         locales.
61956         * string/test-strncasecmp.c (test_main): Likewise.
61957
61958         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
61959         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
61960         to __strcasecmp_nonascii and __strncasecmp_nonascii.
61961         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
61962         (__strncasecmp_ssse3) [PIC]: Likewise.
61963
61964 2013-08-26  Roland McGrath  <roland@hack.frob.com>
61965
61966         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
61967
61968         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
61969         instead of explicitly declaring xdecrypt.
61970         * nis/nss_nis/nis-publickey.c: Likewise.
61971
61972 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61973
61974         [BZ #15890]
61975         * nscd/aicache.c: Include res_hconf.h.
61976         (addhstaiX): Initialize res_hconf.
61977
61978 2013-08-26  Andreas Schwab  <schwab@suse.de>
61979
61980         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
61981         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
61982
61983 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61984
61985         * nscd/aicache.c (addhstaiX): Fix indentation.
61986
61987 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
61988
61989         * configure.ac: Quote $build_pt_chown test.
61990         * configure: Regenerated.
61991
61992 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
61993
61994         [BZ #15532]
61995         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
61996         * math/s_cexpf.c (__cexpf): Likewise.
61997         * math/s_cexpl.c (__cexpl): Likewise.
61998         * math/libm-test.inc (cexp_test_data): Correct expected return
61999         value for NaN + i0.  Add another test.
62000
62001 2013-08-22  David S. Miller  <davem@davemloft.net>
62002
62003         * po/ca.po: Update Catalan translation from translation project.
62004         * po/uk.po: Add Ukrainian translations from translation project.
62005
62006 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
62007
62008         [BZ #15797]
62009         * math/s_fdim.c (__fdim): Check for infinite arguments if result
62010         is infinite, not alongside NaN test.
62011         * math/s_fdimf.c (__fdimf): Likewise.
62012         * math/s_fdiml.c (__fdiml): Likewise.
62013         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
62014         errno is unchanged.
62015
62016 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
62017
62018         * argp/argp-help.c: Fix typos.
62019         * crypt/speeds.c: Likewise.
62020         * csu/check_fds.c: Likewise.
62021         * elf/dl-load.c: Likewise.
62022         * elf/dl-open.c: Likewise.
62023         * elf/reldep3.c: Likewise.
62024         * elf/reldep.c: Likewise.
62025         * elf/sprof.c: Likewise.
62026         * iconv/iconv_charmap.c: Likewise.
62027         * iconv/skeleton.c: Likewise.
62028         * iconv/strtab.c: Likewise.
62029         * io/lockf64.c: Likewise.
62030         * libio/libioP.h: Likewise.
62031         * resolv/gai_notify.c: Likewise.
62032         * resolv/ns_name.c: Likewise.
62033         * resolv/ns_samedomain.c: Likewise.
62034         * resolv/res_send.c: Likewise.
62035         * stdlib/random.c: Likewise.
62036         * sunrpc/rpc/xdr.h: Likewise.
62037         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
62038         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
62039         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
62040         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
62041         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
62042         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
62043         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
62044         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
62045         * sysdeps/mach/hurd/check_fds.c: Likewise.
62046         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
62047         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
62048         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
62049         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
62050         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
62051         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
62052         * sysdeps/pthread/aio_notify.c: Likewise.
62053         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
62054         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
62055         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
62056         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
62057         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
62058
62059 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
62060
62061         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
62062         version if bit_Slow_SSE4_2 is set.
62063         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
62064         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
62065
62066 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62067
62068         [BZ #15867]
62069         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
62070         trampoline stack frame information.
62071         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
62072         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
62073         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
62074         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
62075         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
62076         * sysdeps/unix/sysv/linux/powerpc/init-first.c
62077         (_libc_vdso_platform_setup): Initialize the signal trampolines.
62078         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
62079         sa_flags value.
62080         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
62081         interrupting a syscall and set with option SA_SIGINFO.
62082
62083 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
62084
62085         [BZ #15531]
62086         * math/s_cproj.c (__cproj): Only return an infinity if one part of
62087         argument is infinite.
62088         * math/s_cprojf.c (__cprojf): Likewise.
62089         * math/s_cprojl.c (__cprojl): Likewise.
62090         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
62091         * math/libm-test.inc (cproj_test_data): Add more tests.
62092
62093         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
62094
62095         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
62096         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
62097         size.  Use __ffs to determine corresponding shift.
62098
62099 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
62100             Roland McGrath  <roland@hack.frob.com>
62101
62102         * Makefile (INSTALL): Remove trailing blank lines from output of
62103         makeinfo.
62104
62105 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
62106
62107         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
62108         Align 32 bit compat elf_greg to 8 bytes.
62109
62110 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
62111
62112         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
62113
62114 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
62115
62116         * string/strcoll_l.c (coll_seq): New structure.
62117         (get_next_seq_cached): New function.
62118         (get_next_seq): New function.
62119         (do_compare): New function.
62120         (STRCOLL): Use GNU style definition.  Simplify implementation
62121         by using get_next_seq, get_next_seq_cached and do_compare.
62122
62123 2013-08-16  Florian Weimer  <fweimer@redhat.com>
62124
62125         [BZ #14699]
62126         CVE-2013-4237
62127         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
62128         member.
62129         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
62130         member.
62131         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
62132         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
62133         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
62134         conditional.
62135         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
62136         GETDENTS_64BIT_ALIGNED.
62137         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
62138         * manual/filesys.texi (Reading/Closing Directory): Document
62139         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
62140         strongly.
62141         * manual/conf.texi (Limits for Files): Add portability note to
62142         NAME_MAX, PATH_MAX.
62143         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
62144
62145 2013-08-13  Andreas Schwab  <schwab@suse.de>
62146
62147         [BZ #15749]
62148         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
62149         of fabs.
62150         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
62151         LDBL_MAX_EXP >= 16384]: Add tests for it.
62152
62153 2013-08-12  David S. Miller  <davem@davemloft.net>
62154
62155         * version.h (RELEASE): Set to "development".
62156         (VERSION): Set to "2.18.90".
62157         * NEWS: Add 2.19 section.
62158
62159 2013-08-03  David S. Miller  <davem@davemloft.net>
62160
62161         * po/ko.po: Update Korean translation from translation project.
62162
62163 2013-08-01  David S. Miller  <davem@davemloft.net>
62164
62165         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
62166         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
62167         Bilka.
62168
62169 2013-07-30  David S. Miller  <davem@davemloft.net>
62170
62171         * po/fr.po: Update French translation from translation project.
62172
62173 2013-07-28  David S. Miller  <davem@davemloft.net>
62174
62175         * po/cs.po: Update Czech translation from translation project.
62176
62177         * po/sv.po: Update Swedish translation from translation project.
62178
62179 2013-07-27  David S. Miller  <davem@davemloft.net>
62180
62181         * po/eo.po: Update Esperanto translation from translation project.
62182
62183         * po/vi.po: Update Vietnamese translation from translation project.
62184
62185         * po/de.po: Update German translation from translation project.
62186
62187 2013-07-26  David S. Miller  <davem@davemloft.net>
62188
62189         * po/bg.po: Update Bulgarian translation from translation project.
62190
62191         * po/nl.po: Update Dutch translation from translation project.
62192         * po/pl.po: Update Polish translation from translation project.
62193         * po/ru.po: Update Russian translation from translation project.
62194
62195 2013-07-24  David S. Miller  <davem@davemloft.net>
62196
62197         * po/libc.pot: Update.
62198
62199 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62200
62201         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
62202         variable page size.
62203         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
62204         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
62205         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
62206
62207 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
62208
62209         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
62210
62211 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
62212             Andreas Schwab  <schwab@suse.de>
62213             Roland McGrath  <roland@hack.frob.com>
62214             Joseph Myers  <joseph@codesourcery.com>
62215             Carlos O'Donell  <carlos@redhat.com>
62216
62217         [BZ #15755]
62218         * config.h.in: Define HAVE_PT_CHOWN.
62219         * config.make.in (build-pt-chown): New variable.
62220         * configure.in (--enable-pt_chown): New configure option.
62221         * configure: Regenerate.
62222         * login/Makefile: Include Makeconfig.  Build pt_chown only if
62223         build-pt-chown is enabled.
62224         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
62225         pt_chown to fix pty ownership.
62226         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
62227         CLOSE_ALL_FDS.
62228         * manual/install.texi (Configuring and compiling): Mention
62229         --enable-pt_chown. Add @findex for grantpt.
62230         * INSTALL: Regenerate.
62231
62232 2013-07-20  David S. Miller  <davem@davemloft.net>
62233
62234         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
62235         difference between 32-bit and 64-bit.
62236
62237 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
62238
62239         [BZ #15711]
62240         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
62241         Avoid system header dependency with -ffreestanding.
62242         ($(objpfx)bits/syscall%d): Likewise.
62243
62244 2013-07-13  David S. Miller  <davem@davemloft.net>
62245
62246         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
62247         underflows from atanl/atan2l due to bug 15319.
62248         (casinh_test_data): Likewise.
62249
62250 2013-07-07  David S. Miller  <davem@davemloft.net>
62251
62252         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
62253
62254 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
62255
62256         * sysdeps/i386/fpu/libm-test-ulps: Update.
62257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62258
62259 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
62260
62261         * configure.in (--enable-lock-elision): Fix message text.
62262         * INSTALL: Regenerate.
62263         * configure: Regenerate.
62264
62265 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62266
62267         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62268
62269 2013-07-03  Andreas Jaeger  <aj@suse.de>
62270
62271         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
62272         define.
62273         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
62274         (ptrace_peeksiginfo_args): Add.
62275         (__ptrace_peeksiginfo_flags): Add.
62276         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
62277         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
62278         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
62279
62280 2013-07-03  Allan McRae  <allan@archlinux.org>
62281
62282         * sysdeps/i386/fpu/libm-test-ulps: Update.
62283
62284 2013-07-02  David S. Miller  <davem@davemloft.net>
62285
62286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62287
62288 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
62289
62290         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62291
62292 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
62293
62294         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
62295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62296
62297 2013-07-02  Andi Kleen <ak@linux.intel.com>
62298
62299         * config.h.in (ENABLE_LOCK_ELISION): Add.
62300         * configure.in (--enable-lock-elision): Add option.
62301         * manual/install.texi: Document --enable lock elision.
62302         * configure: Regenerate
62303         * INSTALL: Regenerate.
62304
62305 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
62306
62307         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
62308         SSE4.2 strcasecmp for libc.a.
62309         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
62310
62311 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
62312
62313         [BZ #13304]
62314         * soft-fp/op-common.h (_FP_FMA): New macro.
62315         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
62316         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
62317         (_FP_MUL_MEAT_1_imm): ... here.
62318         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
62319         (_FP_MUL_MEAT_1_wide): ... here.
62320         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
62321         (_FP_MUL_MEAT_1_hard): ... here.
62322         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
62323         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
62324         (_FP_MUL_MEAT_2_wide): ... here.
62325         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
62326         (_FP_MUL_MEAT_2_wide_3mul): ... here.
62327         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
62328         (_FP_MUL_MEAT_2_gmp): ... here.
62329         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
62330         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
62331         (_FP_MUL_MEAT_4_wide): ... here.
62332         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
62333         (_FP_MUL_MEAT_4_gmp): ... here.
62334         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
62335         (_FP_WFRACBITS_DW_S): Likewise.
62336         (_FP_WFRACXBITS_DW_S): Likewise.
62337         (_FP_HIGHBIT_DW_S): Likewise.
62338         (FP_FMA_S): Likewise.
62339         (_FP_FRAC_HIGH_DW_S): Likewise.
62340         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
62341         (_FP_WFRACBITS_DW_D): Likewise.
62342         (_FP_WFRACXBITS_DW_D): Likewise.
62343         (_FP_HIGHBIT_DW_D): Likewise.
62344         (FP_FMA_D): Likewise.
62345         (_FP_FRAC_HIGH_DW_D): Likewise.
62346         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
62347         (_FP_WFRACBITS_DW_E): Likewise.
62348         (_FP_WFRACXBITS_DW_E): Likewise.
62349         (_FP_HIGHBIT_DW_E): Likewise.
62350         (FP_FMA_E): Likewise.
62351         (_FP_FRAC_HIGH_DW_E): Likewise.
62352         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
62353         (_FP_WFRACBITS_DW_Q): Likewise.
62354         (_FP_WFRACXBITS_DW_Q): Likewise.
62355         (_FP_HIGHBIT_DW_Q): Likewise.
62356         (FP_FMA_Q): Likewise.
62357         (_FP_FRAC_HIGH_DW_Q): Likewise.
62358         * soft-fp/fmasf4.c: New file.
62359         * soft-fp/fmadf4.c: Likewise.
62360         * soft-fp/fmatf4.c: Likewise.
62361
62362 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
62363
62364         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
62365         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
62366         Silvermont.
62367         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
62368         macro.
62369         (index_Slow_SSE4_2): Likewise.
62370         (index_Prefer_PMINUB_for_stringop): Likewise.
62371         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
62372         bit_Slow_SSE4_2 is set.
62373         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
62374         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
62375
62376 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
62377
62378         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
62379         rtld_global._dl_hwcap2.
62380         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
62381         POWER8.
62382         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
62383         POWER8 feature descriptions defined in _dl_hwcap2.
62384         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
62385         string handling for POWER8 feature bits.
62386         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
62387         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
62388         _dl_powerpc_cap_flags.
62389         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
62390         * sysdeps/powerpc/rtld-global-offsets.sym
62391         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
62392         _dl_hwcap2 in the rtld_global_ro structure.
62393
62394 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
62395
62396         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
62397         hardware capabilities in support of AT_HWCAP2.
62398         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
62399         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
62400         GLRO(dl_hwcap2).
62401         (_dl_show_auxv): Add support for calling _dl_procinfo to display
62402         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
62403         explicitly the unknown a_type display mechanism is used.
62404         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
62405         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
62406         struct member.
62407         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
62408         to macro prototype for AT_HWCAP2 support.
62409         * sysdeps/i386/dl-procinfo.h: Likewise.
62410         * sysdeps/s390/dl-procinfo.h: Likewise.
62411         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
62412         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
62413         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
62414         return -1 for unknown a_type display fallback.
62415         * sysdeps/sparc/dl-procinfo.h: Likewise.
62416         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
62417         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
62418
62419 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
62420
62421         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
62422         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
62423
62424 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
62425
62426         [BZ #12492]
62427         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
62428         mprotect making __stack_prot writable.
62429
62430 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
62431             Joseph Myers  <joseph@codesourcery.com>
62432
62433         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
62434         as being properly aligned.
62435
62436 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
62437
62438         * dlfcn/modstatic5.c: New file.
62439         * dlfcn/tststatic5.c: New file.
62440         * dlfcn/Makefile (tests): Add tststatic5.
62441         (tests-static): Likewise.
62442         (modules-names): Add modstatic5.
62443         (tststatic5-ENV): New variable.
62444         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
62445
62446         [BZ #15022]
62447         * elf/dl-support.c (_dl_main_map): New variable.
62448         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
62449         (_dl_nns, _dl_load_adds): Set to 1.
62450         (_dl_initial_searchlist): Refer to _dl_main_map.
62451         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
62452         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
62453         call to _dl_get_origin.
62454         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
62455         around call_map.
62456         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
62457         * dlfcn/modstatic3.c: New file.
62458         * dlfcn/tststatic3.c: New file.
62459         * dlfcn/tststatic4.c: New file.
62460         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
62461         (tests-static): Likewise.
62462         (modules-names): Add modstatic3.
62463         (tststatic3-ENV, tststatic4-ENV): New variables.
62464         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
62465         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
62466
62467 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
62468
62469         * configure.in (CC): Require GCC version 4.4 or later.
62470         * configure: Regenerated.
62471         * manual/install.texi (Tools for Compilation): Update GCC version
62472         requirement.
62473         * INSTALL: Regenerated.
62474
62475 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
62476
62477         [BZ #15674]
62478         * string/test-memcmp.c (check2): New.
62479         (main): Call check2.
62480
62481         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
62482
62483 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
62484
62485         [BZ #15022]
62486         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
62487         over to...
62488         (dl_open_worker) [!SHARED]: ... here.
62489
62490 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
62491
62492         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
62493
62494 2013-06-25  Richard Henderson  <rth@redhat.com>
62495
62496         * locale/programs/locarchive.c: Include <libc-internal.h>
62497
62498 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
62499
62500         * manual/texinfo.tex: Update to version 2013-06-21.17, with
62501         trailing whitespace removed.
62502
62503 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
62504
62505         [BZ #10283]
62506         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
62507         * locale/programs/locarchive.c: Include libc-mmap.h.
62508         (prepare_address_space): Take two new outputs (the mmap base and len).
62509         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
62510         values.
62511         (create_archive): Declare new mmap base and len values for
62512         prepare_address_space, and store the result in ah.
62513         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
62514         (enlarge_archive): If ah->mmap_base is not NULL, use that and
62515         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
62516         Declare new mmap base and len values for
62517         prepare_address_space, and store the result in new_ah.
62518         (open_archive): Declare new mmap base and len values for
62519         prepare_address_space, and store the result in ah.
62520         (close_archive): If ah->mmap_base is not NULL, use that and
62521         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
62522         * sysdeps/generic/libc-mmap.h: New file.
62523
62524 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
62525
62526         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
62527         (ALIGN_UP): Likewise.
62528         (PTR_ALIGN_DOWN): Likewise.
62529         (PTR_ALIGN_UP): Likewise.
62530
62531 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
62532
62533         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
62534         entry mapped to PPC_PLATFORM_POWER8.
62535         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
62536         POWER8.
62537         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
62538         (_dl_string_platform): Add case for exporting platform position for
62539         POWER8.
62540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
62541         search path to sysdeps/powerpc/powerpc32/power8 directory.
62542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
62543         search path to sysdeps/powerpc/powerpc64/power8 directory.
62544         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
62545         power7 directories.
62546         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
62547         power7 directories.
62548
62549 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
62550
62551         * INSTALL: Regenerate.
62552
62553         * nscd/connections.c (nscd_init): Fix comment.
62554
62555 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
62556
62557         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
62558
62559         [BZ #15667]
62560         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
62561         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
62562
62563 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
62564
62565         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
62566         DL_DST_REQ_STATIC.
62567         (DL_DST_REQ_STATIC): Remove macro.
62568
62569 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
62570
62571         [BZ #7006]
62572         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
62573         with a shift of 0 bits.
62574
62575 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
62576
62577         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
62578         $(tststatic-ENV).
62579
62580 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
62581
62582         [BZ #15655]
62583         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
62584
62585 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62586
62587         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
62588         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
62589         accepts -fno-tree-loop-distribute-patterns.
62590         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
62591         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
62592         recursive call.
62593         * string/memset.c (memset): Likewise.
62594         * string/test-memmove.c (simple_memmove): Disable loop transformation
62595         to library calls.
62596         * string/test-memset.c (simple_memset): Likewise.
62597         * benchtests/bench-memmove.c (simple_memmove): Likewise.
62598         * benchtests/bench-memset.c (simple_memset): Likewise.
62599         * configure: Regenerated.
62600
62601 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
62602
62603         * math/test-misc.c (main): Ignore fesetround failure when failures
62604         of subsequent rounding tests would be ignored.
62605
62606         [BZ #15654]
62607         * math/fedisblxcpt.c (fedisableexcept): Return 0.
62608         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
62609         * math/fegetenv.c (__fegetenv): Return 0.
62610         * math/fegetexcept.c (fegetexcept): Return 0.
62611         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
62612         FE_TONEAREST.
62613         * math/feholdexcpt.c (feholdexcept): Return 0.
62614         * math/fesetenv.c (__fesetenv): Return 0.
62615         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
62616         argument FE_TONEAREST.
62617         * math/feupdateenv.c (__feupdateenv): Return 0.
62618         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
62619
62620 2013-06-18  Roland McGrath  <roland@hack.frob.com>
62621
62622         * elf/rtld-Rules (rtld-compile-command.S): New variable.
62623         (rtld-compile-command.s, rtld-compile-command.c): New variables.
62624         ($(objpfx)rtld-%.os rules): Use them.
62625
62626 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62627
62628         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
62629         fields.
62630
62631 2013-06-17  Roland McGrath  <roland@hack.frob.com>
62632
62633         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
62634         length of target pattern, then descending length of dependency pattern.
62635         * configure.in (AWK): Require gawk 3.1.2 or newer.
62636         * manual/install.texi (Tools for Compilation): Say that we do.
62637         * configure: Regenerated.
62638
62639         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
62640         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
62641         * scripts/sysd-rules.awk: ... this new script.
62642         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
62643         than a glob-style pattern.
62644
62645 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
62646
62647         * math/test-misc.c (main): Do not treat incorrectly rounded
62648         conversions as failure unless ROUNDING_TESTS passes.
62649
62650 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
62651
62652         [BZ #15631]
62653         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
62654         restore exception state around main square root computation, then
62655         check for inexactness explicitly.
62656
62657         * math/libm-test.inc (fma_test_data): Add another test.
62658
62659 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62660
62661         * manual/threads.texi (Non-POSIX Extensions): New document
62662         node.  Document pthread_getattr_default_np and
62663         pthread_setattr_default_np.
62664
62665         * Versions.def (libpthread): Add GLIBC_2.18.
62666         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
62667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
62668         Likewise.
62669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
62670         Likewise.
62671         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
62672         Likewise.
62673         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
62674         Likewise.
62675         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
62676         Likewise.
62677         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
62678         Likewise.
62679         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
62680         Likewise.
62681         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
62682         Likewise.
62683         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62684         Likewise.
62685
62686 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
62687
62688         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62689         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
62690
62691 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
62692             H.J. Lu  <hjl.tools@gmail.com>
62693
62694         [BZ #15627]
62695         * sysdeps/x86_64/rtld-memset.c: Remove file.
62696         * sysdeps/x86_64/rtld-memset.S: New file.
62697
62698 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
62699
62700         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
62701         (test_in_one_mode): Take arguments for whether the rounding mode
62702         is supported for each floating-point type.
62703         (do_test): Pass new arguments to test_in_one_mode using
62704         ROUNDING_TESTS.
62705
62706 2013-06-13  Roland McGrath  <roland@hack.frob.com>
62707
62708         * posix/tst-waitid.c (do_test): Distinguish different instances of
62709         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
62710         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
62711         before entering the kernel for waitpid.
62712
62713 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
62714
62715         * NEWS: Fix note on clock function precision.  Text by Roland
62716         McGrath.
62717
62718 2013-06-13  Roland McGrath  <roland@hack.frob.com>
62719
62720         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
62721         it into place only when and if the sanity check passes.
62722
62723 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
62724
62725         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
62726         output for whether conversion result is exact.  Take argument
62727         indicating whether type is IBM long double.
62728         (round_for_all): Change need_exact field to ibm_ld.
62729         * stdlib/tst-strtod-round.c (struct exactness): New type.
62730         (struct test): Change bool ld_ok field to struct exactness exact.
62731         (TEST): Update all definitions for change to field.
62732         (tests): Regenerate array contents.
62733         (test_in_one_mode): Take pointer to new field instead of old ld_ok
62734         field value.  Check for IBM long double here.
62735         (do_test): Update calls to test_in_one_mode.
62736
62737 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
62738
62739         [BZ #12515]
62740         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
62741         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
62742
62743 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62744
62745         [BZ #15605]
62746         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
62747         generated by the compiler on loop optimizations.
62748         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
62749         general definitions.
62750
62751 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
62752
62753         * math/bug-nextafter.c: Include <math-tests.h>.
62754         (main): Only test for exceptions if EXCEPTION_TESTS is true for
62755         the relevant type.
62756         * math/bug-nexttoward.c: Include <math-tests.h>.
62757         (main): Only test for exceptions if EXCEPTION_TESTS is true for
62758         the relevant type.
62759         * math/test-misc.c: Include <math-tests.h>.
62760         (main): Only test for exceptions if EXCEPTION_TESTS is true for
62761         the relevant type.
62762
62763 2013-06-12  Andreas Jaeger  <aj@suse.de>
62764
62765         * po/ia.po: Update Interlingua translation from translation
62766         project.
62767
62768 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
62769
62770         * include/fenv.h: Include stdbool.h.
62771         (struct rm_ctx): New structure.
62772         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
62773         Define macro.
62774         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
62775         (SET_RESTORE_ROUNDF): Likewise.
62776         (SET_RESTORE_ROUNDL): Likewise.
62777         (SET_RESTORE_ROUND_NOEX): Likewise.
62778         (SET_RESTORE_ROUND_NOEXF): Likewise.
62779         (SET_RESTORE_ROUND_NOEXL): Likewise.
62780         (SET_RESTORE_ROUND_53BIT): Likewise.
62781         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
62782         (libc_feresetround_noexf_ctx): Likewise.
62783         (libc_feresetround_noexl_ctx): Likewise.
62784         (libc_feholdsetround_53bit_ctx): Likewise.
62785         (libc_feresetround_53bit_ctx): Likewise.
62786         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
62787         (libc_feholdexcept_setround_sse_ctx): New function.
62788         (libc_fesetenv_sse_ctx): Likewise.
62789         (libc_feupdateenv_sse_ctx): Likewise.
62790         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
62791         (libc_feholdexcept_setround_387_ctx): Likewise.
62792         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
62793         (libc_feholdsetround_387_prec_ctx): Likewise.
62794         (libc_feholdsetround_387_ctx): Likewise.
62795         (libc_feholdsetround_387_53bit_ctx): Likewise.
62796         (libc_feholdsetround_sse_ctx): Likewise.
62797         (libc_feresetround_sse_ctx): Likewise.
62798         (libc_feresetround_387_ctx): Likewise.
62799         (libc_feupdateenv_387_ctx): Likewise.
62800         (libc_feholdexcept_setroundf_ctx): Define macro.
62801         (libc_fesetenvf_ctx): Likewise.
62802         (libc_feupdateenvf_ctx): Likewise.
62803         (libc_feholdsetroundf_ctx): Likewise.
62804         (libc_feresetroundf_ctx): Likewise.
62805         (libc_feholdexcept_setround_ctx): Likewise.
62806         (libc_fesetenv_ctx): Likewise.
62807         (libc_feupdateenv_ctx): Likewise.
62808         (libc_feholdsetround_ctx): Likewise.
62809         (libc_feresetround_ctx): Likewise.
62810         (libc_feholdexcept_setroundl_ctx): Likewise.
62811         (libc_feupdateenvl_ctx): Likewise.
62812         (libc_feholdsetroundl_ctx): Likewise.
62813         (libc_feresetroundl_ctx): Likewise.
62814         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
62815         (libc_feresetround_53bit_ctx): Likewise.
62816
62817 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
62818
62819         * locale/iso-639.def: Convert to UTF-8.
62820
62821 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
62822
62823         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
62824         (EXCEPTION_TESTS_double): Likewise.
62825         (EXCEPTION_TESTS_long_double): Likewise.
62826         (EXCEPTION_TESTS): Likewise.
62827         * math/libm-test.inc (test_exceptions): Only test exceptions if
62828         EXCEPTION_TESTS (FLOAT).
62829
62830 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
62831
62832         * benchtests/Makefile (string-bench): Add strcpy_chk and
62833         stpcpy_chk.
62834         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
62835         * benchtests/bench-stpcpy_chk.c: New file.
62836         * benchtests/bench-strcpy_chk-ifunc.c: New file.
62837         * benchtests/bench-strcpy_chk.c: New file.
62838         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
62839         code.
62840         (do_test): Likewise.
62841
62842 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
62843
62844         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
62845         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
62846         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
62847         with tabs where appropriate.
62848         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
62849         dl-procinfo.h.
62850         [PPC_PLATFORM_PPC440]: Likewise.
62851         [PPC_PLATFORM_PPC464]: Likewise.
62852         [PPC_PLATFORM_PPC476]: Likewise.
62853         (_dl_string_platform): Add support for detecting ppc405, ppc440,
62854         ppc464, and ppc476 platform strings merging from ports/
62855         dl-procinfo.h.
62856
62857 2013-06-11  Andreas Schwab  <schwab@suse.de>
62858
62859         [BZ #14991]
62860         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
62861         (from_ucs4_idx): Regenerate.
62862         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
62863         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
62864         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
62865         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
62866         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
62867         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
62868         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
62869         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
62870         from FROM_LOOP and TO_LOOP specific macros.
62871         (BODY): Handle combining characters.
62872         * iconvdata/BIG5HKSCS.irreversible: Update.
62873         * iconvdata/BIG5HKSCS.precomposed: New file.
62874         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
62875         characters.
62876         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
62877
62878 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
62879
62880         * include/sys/time.h: Fix indentation and add copyright header.
62881
62882         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
62883         (do_test): Likewise.
62884         * string/test-memchr.c (do_one_test): Likewise.
62885         (do_test): Likewise.
62886         * string/test-memcmp.c (do_one_test): Likewise.
62887         (do_test): Likewise.
62888         * string/test-memcpy.c (do_one_test): Likewise.
62889         (do_test): Likewise.
62890         * string/test-memmem.c (do_one_test): Likewise.
62891         (do_test): Likewise.
62892         (do_random_tests): Likewise.
62893         * string/test-memmove.c (do_one_test): Likewise.
62894         (do_test): Likewise.
62895         * string/test-memset.c (do_one_test): Likewise.
62896         (do_test): Likewise.
62897         * string/test-rawmemchr.c (do_one_test): Likewise.
62898         (do_test): Likewise.
62899         * string/test-strcasecmp.c (do_one_test): Likewise.
62900         (do_test): Likewise.
62901         * string/test-strcasestr.c (do_one_test): Likewise.
62902         (do_test): Likewise.
62903         * string/test-strcat.c (do_one_test): Likewise.
62904         (do_test): Likewise.
62905         * string/test-strchr.c (do_one_test): Likewise.
62906         (do_test): Likewise.
62907         * string/test-strcmp.c (do_one_test): Likewise.
62908         (do_test): Likewise.
62909         * string/test-strcpy.c (do_one_test): Likewise.
62910         (do_test): Likewise.
62911         * string/test-string.h: Likewise.
62912         (test_init): Likewise.
62913         * string/test-strlen.c (do_one_test): Likewise.
62914         (do_test): Likewise.
62915         * string/test-strncasecmp.c (do_one_test): Likewise.
62916         (do_test): Likewise.
62917         * string/test-strncat.c (do_one_test): Likewise.
62918         (do_test): Likewise.
62919         * string/test-strncmp.c (do_one_test): Likewise.
62920         (do_test_limit): Likewise.
62921         (do_test): Likewise.
62922         * string/test-strncpy.c (do_one_test): Likewise.
62923         (do_test): Likewise.
62924         * string/test-strnlen.c (do_one_test): Likewise.
62925         (do_test): Likewise.
62926         * string/test-strpbrk.c (do_one_test): Likewise.
62927         (do_test): Likewise.
62928         * string/test-strrchr.c (do_one_test): Likewise.
62929         (do_test): Likewise.
62930         * string/test-strspn.c (do_one_test): Likewise.
62931         (do_test): Likewise.
62932         * string/test-strstr.c (do_one_test): Likewise.
62933         (do_test): Likewise.
62934
62935         * benchtests/Makefile (string-bench): Add string benchmarks.
62936         * benchtests/bench-bcopy-ifunc.c: New file.
62937         * benchtests/bench-bcopy.c: New file.
62938         * benchtests/bench-bzero-ifunc.c: New file.
62939         * benchtests/bench-bzero.c: New file.
62940         * benchtests/bench-memccpy-ifunc.c: New file.
62941         * benchtests/bench-memccpy.c: New file.
62942         * benchtests/bench-memchr-ifunc.c: New file.
62943         * benchtests/bench-memchr.c: New file.
62944         * benchtests/bench-memcmp-ifunc.c: New file.
62945         * benchtests/bench-memcmp.c: New file.
62946         * benchtests/bench-memmem-ifunc.c: New file.
62947         * benchtests/bench-memmem.c: New file.
62948         * benchtests/bench-memmove-ifunc.c: New file.
62949         * benchtests/bench-memmove.c: New file.
62950         * benchtests/bench-mempcpy-ifunc.c: New file.
62951         * benchtests/bench-mempcpy.c: New file.
62952         * benchtests/bench-memset-ifunc.c: New file.
62953         * benchtests/bench-memset.c: New file.
62954         * benchtests/bench-rawmemchr-ifunc.c: New file.
62955         * benchtests/bench-rawmemchr.c: New file.
62956         * benchtests/bench-stpcpy-ifunc.c: New file.
62957         * benchtests/bench-stpcpy.c: New file.
62958         * benchtests/bench-stpncpy-ifunc.c: New file.
62959         * benchtests/bench-stpncpy.c: New file.
62960         * benchtests/bench-strcasecmp-ifunc.c: New file.
62961         * benchtests/bench-strcasecmp.c: New file.
62962         * benchtests/bench-strcasestr-ifunc.c: New file.
62963         * benchtests/bench-strcasestr.c: New file.
62964         * benchtests/bench-strcat-ifunc.c: New file.
62965         * benchtests/bench-strcat.c: New file.
62966         * benchtests/bench-strchr-ifunc.c: New file.
62967         * benchtests/bench-strchr.c: New file.
62968         * benchtests/bench-strchrnul-ifunc.c: New file.
62969         * benchtests/bench-strchrnul.c: New file.
62970         * benchtests/bench-strcmp-ifunc.c: New file.
62971         * benchtests/bench-strcmp.c: New file.
62972         * benchtests/bench-strcpy-ifunc.c: New file.
62973         * benchtests/bench-strcpy.c: New file.
62974         * benchtests/bench-strcspn-ifunc.c: New file.
62975         * benchtests/bench-strcspn.c: New file.
62976         * benchtests/bench-strlen-ifunc.c: New file.
62977         * benchtests/bench-strlen.c: New file.
62978         * benchtests/bench-strncasecmp-ifunc.c: New file.
62979         * benchtests/bench-strncasecmp.c: New file.
62980         * benchtests/bench-strncat-ifunc.c: New file.
62981         * benchtests/bench-strncat.c: New file.
62982         * benchtests/bench-strncmp-ifunc.c: New file.
62983         * benchtests/bench-strncmp.c: New file.
62984         * benchtests/bench-strncpy-ifunc.c: New file.
62985         * benchtests/bench-strncpy.c: New file.
62986         * benchtests/bench-strnlen-ifunc.c: New file.
62987         * benchtests/bench-strnlen.c: New file.
62988         * benchtests/bench-strpbrk-ifunc.c: New file.
62989         * benchtests/bench-strpbrk.c: New file.
62990         * benchtests/bench-strrchr-ifunc.c: New file.
62991         * benchtests/bench-strrchr.c: New file.
62992         * benchtests/bench-strspn-ifunc.c: New file.
62993         * benchtests/bench-strspn.c: New file.
62994         * benchtests/bench-strstr-ifunc.c: New file.
62995         * benchtests/bench-strstr.c: New file.
62996
62997         * benchtests/Makefile: Disable parallel execution of targets.
62998         (string-bench): Add memcpy.
62999         (benchset): New variable to store a list of benchmark sets.
63000         (bench-func): Renamed from bench.
63001         (bench-set): New target.
63002         (bench): Depend on bench-func and bench-set.
63003         * benchtests/README: Add section on benchmark sets.
63004         * benchtests/bench-memcpy-ifunc.c: New file.
63005         * benchtests/bench-memcpy.c: New file.
63006         * benchtests/bench-string.h: New file.
63007
63008 2013-06-11  Andreas Schwab  <schwab@suse.de>
63009
63010         [BZ #15577]
63011         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
63012         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
63013         values in the triple.
63014         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
63015         terminator in the group key.
63016
63017 2013-06-11  Andreas Jaeger  <aj@suse.de>
63018
63019         * po/zh_TW.po: Update Chinese (traditional) translation from
63020         translation project.
63021
63022 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
63023
63024         * include/time.h (__clock_gettime): Add libc_hidden_proto.
63025         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
63026         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
63027         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
63028         (clock_getcpuclockid): Likewise.
63029         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
63030         Add weak_alias and libc_hidden_def.
63031         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
63032         * rt/clock_gettime.c (clock_gettime): Rename to
63033         __clock_gettime.  Add weak_alias and libc_hidden_def.
63034         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
63035         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
63036         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
63037         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
63038         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
63039         Likewise.
63040         * rt/clock_settime.c (clock_settime): Rename to
63041         __clock_settime.  Add weak_alias and libc_hidden_def.
63042         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
63043
63044 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
63045
63046         * mach/err_boot.sub: Remove trailing whitespace.
63047         * mach/err_ipc.sub: Likewise.
63048         * mach/err_mach.sub: Likewise.
63049
63050         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
63051         (ROUNDING_TESTS_double): Likewise.
63052         (ROUNDING_TESTS_long_double): Likewise.
63053         (ROUNDING_TESTS): Likewise.
63054         * math/libm-test.inc: Include <math-tests.h>.
63055         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
63056         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
63057         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
63058         (IF_ROUND_INIT_FE_UPWARD): Likewise.
63059
63060 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
63061
63062         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
63063         of assigning.
63064
63065 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
63066
63067         * sysdeps/gnu/errlist.awk: Do not generate space at end of
63068         otherwise empty TRANS lines.
63069         * sysdeps/gnu/errlist.c: Regenerated.
63070
63071         * catgets/gencat.c (error_print): Use (void) in function
63072         definition.
63073         * crypt/crypt_util.c (__init_des): Likewise.
63074         * crypt/speeds.c (Stop): Likewise.
63075         (main): Likewise.
63076         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
63077         * inet/ruserpass.c (token): Likewise.
63078         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
63079         * intl/localealias.c (extend_alias_table): Likewise.
63080         * intl/plural-exp.c (init_germanic_plural): Likewise.
63081         * libio/fcloseall.c (__fcloseall): Likewise.
63082         * libio/genops.c (_IO_flush_all): Likewise.
63083         (_IO_flush_all_linebuffered): Likewise.
63084         (_IO_cleanup): Likewise.
63085         (_IO_iter_begin): Likewise.
63086         (_IO_iter_end): Likewise.
63087         (_IO_list_lock): Likewise.
63088         (_IO_list_unlock): Likewise.
63089         (_IO_list_resetlock): Likewise.
63090         * libio/getchar.c (getchar): Likewise.
63091         * libio/getchar_u.c (getchar_unlocked): Likewise.
63092         * libio/getwchar.c (getwchar): Likewise.
63093         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
63094         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
63095         * login/getpt.c (__getpt): Likewise.
63096         * login/tst-utmp.c (main): Likewise.
63097         * malloc/hooks.c (__malloc_check_init): Likewise.
63098         * malloc/malloc.c (__malloc_stats): Likewise.
63099         * malloc/mtrace.c (tr_break): Likewise.
63100         (mtrace): Likewise.
63101         (muntrace): Likewise.
63102         * misc/fstab.c (endfsent): Likewise.
63103         * misc/getclktck.c (__getclktck): Likewise.
63104         * misc/getdtsz.c (__getdtablesize): Likewise.
63105         * misc/gethostid.c (gethostid): Likewise.
63106         * misc/getpagesize.c (__getpagesize): Likewise.
63107         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
63108         (__get_nprocs): Likewise.
63109         (__get_phys_pages): Likewise.
63110         (__get_avphys_pages): Likewise.
63111         * misc/getttyent.c (getttyent): Likewise.
63112         (setttyent): Likewise.
63113         (endttyent): Likewise.
63114         * misc/getusershell.c (getusershell): Likewise.
63115         (endusershell): Likewise.
63116         (setusershell): Likewise.
63117         (initshells): Likewise.
63118         * misc/hsearch.c (__hdestroy): Likewise.
63119         * misc/sync.c (sync): Likewise.
63120         * misc/syslog.c (closelog_internal): Likewise.
63121         (closelog): Likewise.
63122         * misc/ttyslot.c (ttyslot): Likewise.
63123         * misc/vhangup.c (vhangup): Likewise.
63124         * posix/fork.c (__fork): Likewise.
63125         * posix/getegid.c (__getegid): Likewise.
63126         * posix/geteuid.c (__geteuid): Likewise.
63127         * posix/getgid.c (__getgid): Likewise.
63128         * posix/getpid.c (__getpid): Likewise.
63129         * posix/getppid.c (__getppid): Likewise.
63130         * posix/getuid.c (__getuid): Likewise.
63131         * posix/pause.c (pause): Likewise.
63132         * posix/setpgrp.c (setpgrp): Likewise.
63133         * posix/setsid.c (__setsid): Likewise.
63134         * posix/test-vfork.c (noop): Likewise.
63135         * resolv/gethnamaddr.c (_endhtent): Likewise.
63136         (_gethtent): Likewise.
63137         (ht_endhostent): Likewise.
63138         (gethostent): Likewise.
63139         (dns_service): Likewise.
63140         * stdlib/drand48.c (drand48): Likewise.
63141         * stdlib/lrand48.c (lrand48): Likewise.
63142         * stdlib/mrand48.c (mrand48): Likewise.
63143         * stdlib/rand.c (rand): Likewise.
63144         * stdlib/random.c (__random): Likewise.
63145         * stdlib/setenv.c (clearenv): Likewise.
63146         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
63147         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
63148         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
63149         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
63150         (__get_nprocs): Likewise.
63151         (__get_phys_pages): Likewise.
63152         (__get_avphys_pages): Likewise.
63153         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
63154         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
63155         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
63156         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
63157         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
63158         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
63159         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
63160         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
63161         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
63162         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
63163         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
63164         * sysdeps/mach/hurd/sync.c (sync): Likewise.
63165         * sysdeps/posix/clock.c (clock): Likewise.
63166         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
63167         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
63168         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
63169         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
63170         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
63171         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
63172         (__get_nprocs_conf): Likewise.
63173         (__get_phys_pages): Likewise.
63174         (__get_avphys_pages): Likewise.
63175         * time/clock.c (clock): Likewise.
63176         * time/tzset.c (__tzname_max): Likewise.
63177
63178 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
63179
63180         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
63181         (__bswap_32): Do not use "register".
63182         * crypt/crypt.c (_ufc_doit_r): Likewise.
63183         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
63184         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
63185         * gmon/gmon.c (__monstartup): Likewise.
63186         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
63187         * hurd/hurdmalloc.c (more_memory): Likewise.
63188         (malloc): Likewise.
63189         (free): Likewise.
63190         (realloc): Likewise.
63191         (malloc_fork_prepare): Likewise.
63192         (malloc_fork_parent): Likewise.
63193         (malloc_fork_child): Likewise.
63194         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
63195         (_svcauth_des): Likewise.
63196         * inet/inet_lnaof.c (inet_lnaof): Likewise.
63197         * inet/inet_net.c (inet_network): Likewise.
63198         * inet/inet_netof.c (inet_netof): Likewise.
63199         * inet/rcmd.c (__validuser2_sa): Likewise.
63200         * io/fts.c (fts_open): Likewise.
63201         (fts_load): Likewise.
63202         (fts_close): Likewise.
63203         (fts_read): Likewise.
63204         (fts_children): Likewise.
63205         (fts_build): Likewise.
63206         (fts_stat): Likewise.
63207         (fts_sort): Likewise.
63208         (fts_alloc): Likewise.
63209         (fts_lfree): Likewise.
63210         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
63211         (_IO_file_xsgetn): Likewise.
63212         (_IO_file_xsgetn_mmap): Likewise.
63213         * libio/iofopncook.c (_IO_cookie_read): Likewise.
63214         (_IO_cookie_write): Likewise.
63215         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
63216         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
63217         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
63218         * malloc/obstack.c (_obstack_begin): Likewise.
63219         (_obstack_begin_1): Likewise.
63220         (_obstack_newchunk): Likewise.
63221         (_obstack_allocated_p): Likewise.
63222         (obstack_free): Likewise.
63223         (_obstack_memory_used): Likewise.
63224         * misc/getttyent.c (getttynam): Likewise.
63225         (getttyent): Likewise.
63226         (skip): Likewise.
63227         (value): Likewise.
63228         * misc/getusershell.c (initshells): Likewise.
63229         * misc/syslog.c (__vsyslog_chk): Likewise.
63230         * misc/ttyslot.c (ttyslot): Likewise.
63231         * nis/nis_hash.c (__nis_hash): Likewise.
63232         * posix/fnmatch_loop.c (FCT): Likewise.
63233         * posix/getconf.c (print_all): Likewise.
63234         (main): Likewise.
63235         * posix/getopt.c (exchange): Likewise.
63236         * posix/glob.c (globfree): Likewise.
63237         (prefix_array): Likewise.
63238         (__glob_pattern_type): Likewise.
63239         * resolv/arpa/nameser.h (NS_GET16): Likewise.
63240         (NS_GET32): Likewise.
63241         (NS_PUT16): Likewise.
63242         (NS_PUT32): Likewise.
63243         * resolv/gethnamaddr.c (getanswer): Likewise.
63244         (gethostbyname2): Likewise.
63245         (gethostbyaddr): Likewise.
63246         (_gethtent): Likewise.
63247         (_gethtbyname2): Likewise.
63248         (_gethtbyaddr): Likewise.
63249         * resolv/ns_print.c (dst_s_get_int16): Likewise.
63250         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
63251         * resolv/res_init.c (__res_vinit): Likewise.
63252         (net_mask): Likewise.
63253         * resolv/res_mkquery.c (outchar): Likewise.
63254         (PRINT): Likewise.
63255         * stdio-common/printf_fp.c (outchar): Likewise.
63256         (PRINT): Likewise.
63257         * stdio-common/printf_fphex.c (outchar): Likewise.
63258         (PRINT): Likewise.
63259         * stdio-common/printf_size.c (outchar): Likewise.
63260         (PRINT): Likewise.
63261         * stdio-common/test_rdwr.c (main): Likewise.
63262         * stdio-common/tfformat.c (matches): Likewise.
63263         * stdio-common/vfprintf.c (outchar): Likewise.
63264         (printf_unknown): Likewise.
63265         (buffered_vfprintf): Likewise.
63266         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
63267         * stdio-common/xbug.c (AppendToBuffer): Likewise.
63268         (ReadFile): Likewise.
63269         * stdlib/qsort.c (SWAP): Likewise.
63270         (_quicksort): Likewise.
63271         * stdlib/setenv.c (__add_to_environ): Likewise.
63272         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
63273         * stdlib/strtol_l.c (__strtol_l): Likewise.
63274         * stdlib/tst-strtod.c (main): Likewise.
63275         * stdlib/tst-strtol.c (main): Likewise.
63276         * stdlib/tst-strtoll.c (main): Likewise.
63277         * string/bits/string2.h (__strcmp_cc): Likewise.
63278         (__strcmp_cg): Likewise.
63279         (__strcspn_c1): Likewise.
63280         (__strcspn_c2): Likewise.
63281         (__strcspn_c3): Likewise.
63282         (__strspn_c1): Likewise.
63283         (__strspn_c2): Likewise.
63284         (__strspn_c3): Likewise.
63285         (__strsep_1c): Likewise.
63286         (__strsep_2c): Likewise.
63287         (__strsep_3c): Likewise.
63288         * string/memccpy.c (__memccpy): Likewise.
63289         * string/stpcpy.c (__stpcpy): Likewise.
63290         * string/strcmp.c (strcmp): Likewise.
63291         * string/strrchr.c (strrchr): Likewise.
63292         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
63293         Likewise.
63294         * sysdeps/mach/hurd/getcwd.c
63295         (_hurd_canonicalize_directory_name_internal): Likewise.
63296         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
63297         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
63298         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
63299         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
63300         Likewise, in both definitions.
63301         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
63302         definitions.
63303         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
63304         64] (__bswap_64): Likewise.
63305         * time/test_time.c (main): Likewise.
63306         * time/tzfile.c (__tzfile_read): Likewise.
63307         (__tzfile_compute): Likewise.
63308         * time/tzset.c (__tzset_parse_tz): Likewise.
63309         (tzset_internal): Likewise.
63310         (compute_change): Likewise.
63311         * wcsmbs/wcscat.c (__wcscat): Likewise.
63312         * wcsmbs/wcschr.c (wcschr): Likewise.
63313         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
63314         * wcsmbs/wcscspn.c (wcscspn): Likewise.
63315         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
63316         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
63317         * wcsmbs/wcsspn.c (wcsspn): Likewise.
63318         * wcsmbs/wcsstr.c (wcsstr): Likewise.
63319         * wcsmbs/wmemchr.c (wmemchr): Likewise.
63320         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
63321         * wcsmbs/wmemset.c (wmemset): Likewise.
63322
63323 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
63324
63325         * scripts/config.guess: Update to version 2013-05-16.
63326         * scripts/config.sub: Update to version 2013-04-24.
63327         * scripts/install-sh: Update to version 2011-11-20.07.
63328         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
63329         * scripts/move-if-change: Update to version 2012-01-06 07:23.
63330
63331 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
63332
63333         * debug/fgetws_u_chk.c: Fix leading whitespaces.
63334         * elf/sln.c: Likewise.
63335         * hurd/hurd/ioctl.h: Likewise.
63336         * hurd/hurdmalloc.c: Likewise.
63337         * hurd/xattr.c: Likewise.
63338         * include/shlib-compat.h: Likewise.
63339         * inet/ruserpass.c: Likewise.
63340         * libio/iofgets_u.c: Likewise.
63341         * libio/iofgetws_u.c: Likewise.
63342         * locale/programs/ld-identification.c: Likewise.
63343         * locale/programs/ld-time.c: Likewise.
63344         * mach/msg-destroy.c: Likewise.
63345         * nss/nss_files/files-netgrp.c: Likewise.
63346         * resolv/res_data.c: Likewise.
63347         * soft-fp/op-1.h: Likewise.
63348         * soft-fp/op-2.h: Likewise.
63349         * soft-fp/op-4.h: Likewise.
63350         * soft-fp/op-common.h: Likewise.
63351         * stdio-common/printf_fphex.c: Likewise.
63352         * stdlib/strtod_l.c: Likewise.
63353         * sunrpc/rpc/clnt.h: Likewise.
63354         * sysdeps/generic/framestate.c: Likewise.
63355         * sysdeps/i386/bsd-_setjmp.S: Likewise.
63356         * sysdeps/i386/bsd-setjmp.S: Likewise.
63357         * sysdeps/i386/__longjmp.S: Likewise.
63358         * sysdeps/i386/setjmp.S: Likewise.
63359         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
63360         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
63361         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
63362         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
63363         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
63364         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
63365         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
63366         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
63367         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
63368         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
63369         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
63370         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
63371         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
63372         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
63373         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
63374         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
63375         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
63376         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
63377         * sysdeps/ieee754/support.c: Likewise.
63378         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
63379         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
63380         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
63381         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
63382         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
63383         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
63384         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
63385         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
63386         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
63387         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
63388         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
63389         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
63390         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
63391         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
63392         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
63393         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
63394         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
63395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
63396
63397 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
63398
63399         * posix/transbug.c: Remove executable mode.
63400
63401 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
63402
63403         * crypt/speeds.c: Remove trailing whitespace.
63404         * dlfcn/default.c: Likewise.
63405         * elf/ifuncdep2.c: Likewise.
63406         * elf/ifuncmain1.c: Likewise.
63407         * elf/ifuncmain1vis.c: Likewise.
63408         * elf/testobj.h: Likewise.
63409         * elf/tst-stackguard1.c: Likewise.
63410         * gmon/sys/gmon.h: Likewise.
63411         * hurd/hurdmsg.c: Likewise.
63412         * hurd/new-fd.c: Likewise.
63413         * hurd/ports-get.c: Likewise.
63414         * iconvdata/ibm1008_420.c: Likewise.
63415         * inet/tst-getni1.c: Likewise.
63416         * inet/tst-getni2.c: Likewise.
63417         * libio/ioungetc.c: Likewise.
63418         * libio/wfiledoalloc.c: Likewise.
63419         * manual/libm-err-tab.pl: Likewise.
63420         * math/w_dremf.c: Likewise.
63421         * misc/ftruncate.c: Likewise.
63422         * posix/bug-glob2.c: Likewise.
63423         * posix/tst-pcre.c: Likewise.
63424         * posix/wait4.c: Likewise.
63425         * resolv/README: Likewise.
63426         * resolv/res_debug.h: Likewise.
63427         * resolv/tst-inet_ntop.c: Likewise.
63428         * setjmp/bug269-setjmp.c: Likewise.
63429         * soft-fp/extended.h: Likewise.
63430         * soft-fp/op-1.h: Likewise.
63431         * soft-fp/op-2.h: Likewise.
63432         * soft-fp/op-4.h: Likewise.
63433         * soft-fp/op-8.h: Likewise.
63434         * soft-fp/testit.c: Likewise.
63435         * stdio-common/bug16.c: Likewise.
63436         * stdlib/random.c: Likewise.
63437         * sunrpc/rpcsvc/rquota.x: Likewise.
63438         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
63439         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
63440         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
63441         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
63442         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
63443         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
63444         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
63445         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
63446         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
63447         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
63448         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
63449         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
63450         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
63451         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
63452         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
63453         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
63454         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
63455         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
63456         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
63457         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
63458         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
63459         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
63460         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
63461         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
63462         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
63463         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
63464         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
63465         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
63466         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
63467         * sysdeps/ieee754/s_lib_version.c: Likewise.
63468         * sysdeps/mach/hurd/check_fds.c: Likewise.
63469         * sysdeps/mach/hurd/getsockname.c: Likewise.
63470         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
63471         * sysdeps/mach/hurd/recvfrom.c: Likewise.
63472         * sysdeps/powerpc/bits/link.h: Likewise.
63473         * sysdeps/powerpc/dl-procinfo.c: Likewise.
63474         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
63475         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
63476         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
63477         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
63478         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
63479         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
63480         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
63481         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
63482         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
63483         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
63484         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
63485         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
63486         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
63487         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
63488         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
63489         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
63490         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
63491         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
63492         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
63493         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
63494         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
63495         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
63496         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
63497         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
63498         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
63499         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
63500         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
63501         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
63502         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
63503         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
63504         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
63505         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
63506         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
63507         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
63508         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
63509         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
63510         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
63511         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
63512         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
63513         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
63514         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
63515         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
63516         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
63517         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
63518         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
63519         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
63520         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
63521         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
63522         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
63523         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
63524         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
63525         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
63526         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
63527         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
63528         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
63529         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
63530         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
63531         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
63532         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
63533         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
63534         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
63535         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
63536         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
63537         * sysdeps/powerpc/sysdep.h: Likewise.
63538         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
63539         * sysdeps/s390/s390-64/sub_n.S: Likewise.
63540         * sysdeps/sh/dl-trampoline.S: Likewise.
63541         * sysdeps/sh/memset.S: Likewise.
63542         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
63543         * sysdeps/sh/strlen.S: Likewise.
63544         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
63545         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
63546         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
63547         * sysdeps/sparc/sparc32/rem.S: Likewise.
63548         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
63549         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
63550         * sysdeps/sparc/sparc32/strchr.S: Likewise.
63551         * sysdeps/sparc/sparc32/udiv.S: Likewise.
63552         * sysdeps/sparc/sparc32/urem.S: Likewise.
63553         * sysdeps/sparc/sparc64/add_n.S: Likewise.
63554         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
63555         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
63556         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
63557         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
63558         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
63559         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
63560         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
63561         * sysdeps/unix/bsd/times.c: Likewise.
63562         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
63563         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
63564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
63565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
63566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
63567         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
63568         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
63569         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
63570         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
63571         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
63572         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
63573         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
63574         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
63575         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
63576         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
63577         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
63578         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
63579         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
63580         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
63581         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
63582         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
63583         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
63584         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
63585         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
63586         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
63587         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
63588         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
63589         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
63590         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
63591         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
63592         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
63593         * sysdeps/x86_64/strcspn.S: Likewise.
63594
63595 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
63596
63597         * locale/C-translit.h: Revert #include <stdint.h> because this is a
63598         generated file.  Regenerate properly from gen-translit.pl.
63599         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
63600         locale/C-translit.h.
63601
63602 2013-06-05  Andreas Schwab  <schwab@suse.de>
63603
63604         [BZ #15100]
63605         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
63606         week as 6 instead of -1.
63607         * time/tst-strptime.c (day_tests): Add test case.
63608
63609 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
63610
63611         * sysdeps/generic/math_private.h
63612         (libc_feholdexcept_setround_53bit): Replace with
63613         libc_feholdsetround_53bit.
63614         (libc_feupdateenv_53bit): Replace with
63615         libc_feresetround_53bit.
63616         (SET_RESTORE_ROUND_53BIT): Adjust.
63617
63618 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
63619
63620         * string/test-strchrnul.c: Add copyright header.
63621
63622         * posix/tst-getaddrinfo4.c: Increase test timeout.
63623
63624 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
63625
63626         [BZ #15536]
63627         * math/libm-test.inc (MAX_EXP): Remove
63628         (MIN_EXP): Define.
63629         (ulp): Use MIN_EXP - MANT_DIG.
63630         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
63631
63632 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
63633
63634         * po/be.po: Revert last change.
63635         * po/zh_CN.po: Likewise.
63636         * po/header.pot: Likewise.
63637
63638 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
63639
63640         * Makefile ($(common-objpfx)linkobj/libc.so): Define
63641         link-libc-deps to empty as target-specific variable.
63642         * Makerules (link-libc-args): New variable.
63643         (libc-for-link): Likewise.
63644         (link-libc-deps): Likewise.
63645         (lib%.so): Depend on $(link-libc-deps).  Link with
63646         $(link-libc-args).
63647         (build-module): Link with $(link-libc-args).
63648         (build-module-asneeded): Likewise.
63649         (build-module-helper-objlist): Filter out $(link-libc-deps) from
63650         list of objects.
63651         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
63652         target-specific variable.
63653         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
63654         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
63655         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
63656         libc.
63657         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
63658         libc and ld.so.
63659         ($(objpfx)libpcprofile.so): Likewise.
63660         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
63661         libc_nonshared.a.
63662         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
63663         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
63664         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
63665         $(link-libc-deps).
63666         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
63667         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
63668         * login/Makefile ($(objpfx)libutil.so): Likewise.
63669         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
63670         * math/Makefile ($(objpfx)libm.so): Likewise.
63671         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
63672         $(objpfx)libnsl.so): Define libc-for-link as target-specific
63673         variable instead of depending directly on libc.
63674         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
63675         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
63676         $(link-libc-deps).
63677         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
63678         libc.
63679         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
63680         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
63681         ($(objpfx)libanl.so): Likewise.
63682         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
63683         ld.so.
63684         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
63685         $(link-libc-deps).
63686         * sysdeps/i386/fpu/Makefile: Remove file.
63687         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
63688         ($(objpfx)libm.so): Remove dependency on ld.so.
63689
63690 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
63691
63692         [BZ # 15553]
63693         * nis/yp_xdr.c (XDRMAXNAME): Define.
63694         (XDRMAXRECORD): Define.
63695         (xdr_domainname): Use XDRMAXNAME.
63696         (xdr_mapname): Likewise.
63697         (xdr_peername): Likewise.
63698         (xdr_keydat): Use XDRMAXRECORD.
63699         (xdr_valdat): Likewise.
63700
63701 2013-05-30  Jeff Law  <law@redhat.com>
63702
63703         [BZ #14256]
63704         * manual/errno.texi (ESTALE): Update to account for more than
63705         just NFS file systems.
63706         * sysdeps/gnu/errlist.c: Regenerated.
63707
63708 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
63709
63710         [BZ #15465]
63711         * elf/Makefile (tests): Add tst-null-argv.
63712         (modules-names):  Add tst-null-argv-lib.
63713         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
63714         (tst-null-argv-ENV): Set environment for tst-null-argv.
63715         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
63716         (RTLD_PROGNAME): New macro.
63717         * elf/tst-null-argv.c: New test case.
63718         * elf/tst-null-argv-lib.c: Library for test case.
63719         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
63720         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
63721         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
63722         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
63723         * elf/dl-init.c (call_init): Likewise.
63724         (_dl_init): Likewise.
63725         * elf/dl-load.c (print_search_path): Likewise.
63726         (_dl_map_object): Likewise.
63727         * elf/dl-lookup.c (do_lookup_x): Likewise.
63728         (add_dependency): Likewise.
63729         (_dl_lookup_symbol_x): Likewise.
63730         (_dl_debug_bindings): Likewise.
63731         * elf/dl-open.c (_dl_show_scope): Likewise.
63732         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
63733         * elf/dl-version.c (match_symbol): Likewise.
63734         (_dl_check_map_versions): Likewise.
63735         * elf/rtld.c (dl_main): Likewise.
63736         (print_unresolved): Use RTLD_PROGNAME.
63737         (print_missing_version): Likewise.
63738         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
63739         (elf_machine_rela): Likewise.
63740         * sysdeps/powerpc/powerpc32/dl-machine.c
63741         (__process_machine_rela): Likewise.
63742         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
63743         Likewise.
63744         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
63745         Likewise.
63746         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
63747         Likewise.
63748         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
63749         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
63750         Likewise.
63751         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
63752         Likewise.
63753         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
63754
63755 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
63756
63757         * po/be.po: Add descriptive title.
63758         * po/zh_CN.po: Likewise.
63759         * po/header.pot: Likewise.
63760
63761 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
63762
63763         * locale/programs/locarchive.c (create_archive): Inlucde fname in
63764         error message.
63765         (enlarge_archive): Likewise.
63766
63767 2013-05-28  Ben North  <ben@redfrontdoor.org>
63768
63769         * manual/arith.texi (frexp): It is the magnitude of the return
63770         value which lies in [0.5, 1), not the return value itself.
63771
63772 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63773
63774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63775
63776 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
63777
63778         * stdio-common/bug26.c (main): Correct fscanf template.
63779
63780         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
63781         declare _dl_skip_args.
63782
63783         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
63784         Don't declare.
63785
63786         * manual/platform.texi: Add missing @end deftypefun.
63787
63788 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
63789
63790         [BZ #15529]
63791         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
63792         bit of mantissa of 2^16382.
63793         * math/libm-test.inc (hypot_test_data): Add more tests.
63794
63795         * math/libm-test.inc: Add drem and pow10 to list of tested
63796         functions.
63797         (pow10_test): New function.
63798         (drem_test): Likewise.
63799         (drem_test_tonearest): Likewise.
63800         (drem_test_towardzero): Likewise.
63801         (drem_test_downward): Likewise.
63802         (drem_test_upward): Likewise.
63803         (main): Call the new functions.
63804
63805         * math/libm-test.inc (finite_test_data): Remove.
63806         (finite_test): Run tests from isfinite_test_data.
63807         (gamma_test_data): Remove.
63808         (gamma_test): Run tests from lgamma_test_data.
63809         * sysdeps/i386/fpu/libm-test-ulps: Update.
63810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63811
63812 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63813
63814         * manual/platform.texi: Add PowerPC PPR function set documentation.
63815         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
63816         implementation.
63817
63818 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
63819
63820         * math/libm-test.inc (MAX_EXP): Define.
63821         (ULPDIFF): Define.
63822         (ulp): New function.
63823         (check_float_internal): Use ULPDIFF.
63824         (cpow_test): Disable failing test.
63825         (check_ulp): Test ulp() implementation.
63826         (main): Call check_ulp before starting tests.
63827
63828 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
63829
63830         * math/gen-libm-test.pl (generate_testfile): Do not handle
63831         START_DATA and END_DATA.
63832         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
63833         END_DATA.
63834         (acos_tonearest_test_data): Likewise.
63835         (acos_towardzero_test_data): Likewise.
63836         (acos_downward_test_data): Likewise.
63837         (acos_upward_test_data): Likewise.
63838         (acosh_test_data): Likewise.
63839         (asin_test_data): Likewise.
63840         (asin_tonearest_test_data): Likewise.
63841         (asin_towardzero_test_data): Likewise.
63842         (asin_downward_test_data): Likewise.
63843         (asin_upward_test_data): Likewise.
63844         (asinh_test_data): Likewise.
63845         (atan_test_data): Likewise.
63846         (atanh_test_data): Likewise.
63847         (atan2_test_data): Likewise.
63848         (cabs_test_data): Likewise.
63849         (cacos_test_data): Likewise.
63850         (cacosh_test_data): Likewise.
63851         (carg_test_data): Likewise.
63852         (casin_test_data): Likewise.
63853         (casinh_test_data): Likewise.
63854         (catan_test_data): Likewise.
63855         (catanh_test_data): Likewise.
63856         (cbrt_test_data): Likewise.
63857         (ccos_test_data): Likewise.
63858         (ccosh_test_data): Likewise.
63859         (ceil_test_data): Likewise.
63860         (cexp_test_data): Likewise.
63861         (cimag_test_data): Likewise.
63862         (clog_test_data): Likewise.
63863         (clog10_test_data): Likewise.
63864         (conj_test_data): Likewise.
63865         (copysign_test_data): Likewise.
63866         (cos_test_data): Likewise.
63867         (cos_tonearest_test_data): Likewise.
63868         (cos_towardzero_test_data): Likewise.
63869         (cos_downward_test_data): Likewise.
63870         (cos_upward_test_data): Likewise.
63871         (cosh_test_data): Likewise.
63872         (cosh_tonearest_test_data): Likewise.
63873         (cosh_towardzero_test_data): Likewise.
63874         (cosh_downward_test_data): Likewise.
63875         (cosh_upward_test_data): Likewise.
63876         (cpow_test_data): Likewise.
63877         (cproj_test_data): Likewise.
63878         (creal_test_data): Likewise.
63879         (csin_test_data): Likewise.
63880         (csinh_test_data): Likewise.
63881         (csqrt_test_data): Likewise.
63882         (ctan_test_data): Likewise.
63883         (ctan_tonearest_test_data): Likewise.
63884         (ctan_towardzero_test_data): Likewise.
63885         (ctan_downward_test_data): Likewise.
63886         (ctan_upward_test_data): Likewise.
63887         (ctanh_test_data): Likewise.
63888         (ctanh_tonearest_test_data): Likewise.
63889         (ctanh_towardzero_test_data): Likewise.
63890         (ctanh_downward_test_data): Likewise.
63891         (ctanh_upward_test_data): Likewise.
63892         (erf_test_data): Likewise.
63893         (erfc_test_data): Likewise.
63894         (exp_test_data): Likewise.
63895         (exp_tonearest_test_data): Likewise.
63896         (exp_towardzero_test_data): Likewise.
63897         (exp_downward_test_data): Likewise.
63898         (exp_upward_test_data): Likewise.
63899         (exp10_test_data): Likewise.
63900         (exp2_test_data): Likewise.
63901         (expm1_test_data): Likewise.
63902         (fabs_test_data): Likewise.
63903         (fdim_test_data): Likewise.
63904         (finite_test_data): Likewise.
63905         (floor_test_data): Likewise.
63906         (fma_test_data): Likewise.
63907         (fma_towardzero_test_data): Likewise.
63908         (fma_downward_test_data): Likewise.
63909         (fma_upward_test_data): Likewise.
63910         (fmax_test_data): Likewise.
63911         (fmin_test_data): Likewise.
63912         (fmod_test_data): Likewise.
63913         (fpclassify_test_data): Likewise.
63914         (frexp_test_data): Likewise.
63915         (gamma_test_data): Likewise.
63916         (hypot_test_data): Likewise.
63917         (ilogb_test_data): Likewise.
63918         (isfinite_test_data): Likewise.
63919         (isgreater_test_data): Likewise.
63920         (isgreaterequal_test_data): Likewise.
63921         (isinf_test_data): Likewise.
63922         (isless_test_data): Likewise.
63923         (islessequal_test_data): Likewise.
63924         (islessgreater_test_data): Likewise.
63925         (isnan_test_data): Likewise.
63926         (isnormal_test_data): Likewise.
63927         (issignaling_test_data): Likewise.
63928         (isunordered_test_data): Likewise.
63929         (j0_test_data): Likewise.
63930         (j1_test_data): Likewise.
63931         (jn_test_data): Likewise.
63932         (ldexp_test_data): Likewise.
63933         (lgamma_test_data): Likewise.
63934         (lrint_test_data): Likewise.
63935         (lrint_tonearest_test_data): Likewise.
63936         (lrint_towardzero_test_data): Likewise.
63937         (lrint_downward_test_data): Likewise.
63938         (lrint_upward_test_data): Likewise.
63939         (llrint_test_data): Likewise.
63940         (llrint_tonearest_test_data): Likewise.
63941         (llrint_towardzero_test_data): Likewise.
63942         (llrint_downward_test_data): Likewise.
63943         (llrint_upward_test_data): Likewise.
63944         (log_test_data): Likewise.
63945         (log10_test_data): Likewise.
63946         (log1p_test_data): Likewise.
63947         (log2_test_data): Likewise.
63948         (logb_test_data): Likewise.
63949         (logb_downward_test_data): Likewise.
63950         (lround_test_data): Likewise.
63951         (llround_test_data): Likewise.
63952         (modf_test_data): Likewise.
63953         (nearbyint_test_data): Likewise.
63954         (nextafter_test_data): Likewise.
63955         (nexttoward_test_data): Likewise.
63956         (pow_test_data): Likewise.
63957         (pow_tonearest_test_data): Likewise.
63958         (pow_towardzero_test_data): Likewise.
63959         (pow_downward_test_data): Likewise.
63960         (pow_upward_test_data): Likewise.
63961         (remainder_test_data): Likewise.
63962         (remainder_tonearest_test_data): Likewise.
63963         (remainder_towardzero_test_data): Likewise.
63964         (remainder_downward_test_data): Likewise.
63965         (remainder_upward_test_data): Likewise.
63966         (remquo_test_data): Likewise.
63967         (rint_test_data): Likewise.
63968         (rint_tonearest_test_data): Likewise.
63969         (rint_towardzero_test_data): Likewise.
63970         (rint_downward_test_data): Likewise.
63971         (rint_upward_test_data): Likewise.
63972         (round_test_data): Likewise.
63973         (scalb_test_data): Likewise.
63974         (scalbn_test_data): Likewise.
63975         (scalbln_test_data): Likewise.
63976         (signbit_test_data): Likewise.
63977         (sin_test_data): Likewise.
63978         (sin_tonearest_test_data): Likewise.
63979         (sin_towardzero_test_data): Likewise.
63980         (sin_downward_test_data): Likewise.
63981         (sin_upward_test_data): Likewise.
63982         (sincos_test_data): Likewise.
63983         (sinh_test_data): Likewise.
63984         (sinh_tonearest_test_data): Likewise.
63985         (sinh_towardzero_test_data): Likewise.
63986         (sinh_downward_test_data): Likewise.
63987         (sinh_upward_test_data): Likewise.
63988         (sqrt_test_data): Likewise.
63989         (tan_test_data): Likewise.
63990         (tan_tonearest_test_data): Likewise.
63991         (tan_towardzero_test_data): Likewise.
63992         (tan_downward_test_data): Likewise.
63993         (tan_upward_test_data): Likewise.
63994         (tanh_test_data): Likewise.
63995         (tgamma_test_data): Likewise.
63996         (trunc_test_data): Likewise.
63997         (y0_test_data): Likewise.
63998         (y1_test_data): Likewise.
63999         (yn_test_data): Likewise.
64000         (significand_test_data): Likewise.
64001
64002         * math/gen-libm-test.pl (@functions): Remove variable.
64003         (generate_testfile): Don't handle START and END lines.
64004         * math/libm-test.inc (START): New macro.
64005         (END): Likewise.
64006         (END_COMPLEX): Likewise.
64007         (acos_test): Use END macro without arguments.
64008         (acos_test_tonearest): Likewise.
64009         (acos_test_towardzero): Likewise.
64010         (acos_test_downward): Likewise.
64011         (acos_test_upward): Likewise.
64012         (acosh_test): Likewise.
64013         (asin_test): Likewise.
64014         (asin_test_tonearest): Likewise.
64015         (asin_test_towardzero): Likewise.
64016         (asin_test_downward): Likewise.
64017         (asin_test_upward): Likewise.
64018         (asinh_test): Likewise.
64019         (atan_test): Likewise.
64020         (atanh_test): Likewise.
64021         (atan2_test): Likewise.
64022         (cabs_test): Likewise.
64023         (cacos_test): Use END_COMPLEX macro without arguments.
64024         (cacosh_test): Likewise.
64025         (carg_test): Use END macro without arguments.
64026         (casin_test): Use END_COMPLEX macro without arguments.
64027         (casinh_test): Likewise.
64028         (catan_test): Likewise.
64029         (catanh_test): Likewise.
64030         (cbrt_test): Use END macro without arguments.
64031         (ccos_test): Use END_COMPLEX macro without arguments.
64032         (ccosh_test): Likewise.
64033         (ceil_test): Use END macro without arguments.
64034         (cexp_test): Use END_COMPLEX macro without arguments.
64035         (cimag_test): Use END macro without arguments.
64036         (clog_test): Use END_COMPLEX macro without arguments.
64037         (clog10_test): Likewise.
64038         (conj_test): Likewise.
64039         (copysign_test): Use END macro without arguments.
64040         (cos_test): Likewise.
64041         (cos_test_tonearest): Likewise.
64042         (cos_test_towardzero): Likewise.
64043         (cos_test_downward): Likewise.
64044         (cos_test_upward): Likewise.
64045         (cosh_test): Likewise.
64046         (cosh_test_tonearest): Likewise.
64047         (cosh_test_towardzero): Likewise.
64048         (cosh_test_downward): Likewise.
64049         (cosh_test_upward): Likewise.
64050         (cpow_test): Use END_COMPLEX macro without arguments.
64051         (cproj_test): Likewise.
64052         (creal_test): Use END macro without arguments.
64053         (csin_test): Use END_COMPLEX macro without arguments.
64054         (csinh_test): Likewise.
64055         (csqrt_test): Likewise.
64056         (ctan_test): Likewise.
64057         (ctan_test_tonearest): Likewise.
64058         (ctan_test_towardzero): Likewise.
64059         (ctan_test_downward): Likewise.
64060         (ctan_test_upward): Likewise.
64061         (ctanh_test): Likewise.
64062         (ctanh_test_tonearest): Likewise.
64063         (ctanh_test_towardzero): Likewise.
64064         (ctanh_test_downward): Likewise.
64065         (ctanh_test_upward): Likewise.
64066         (erf_test): Use END macro without arguments.
64067         (erfc_test): Likewise.
64068         (exp_test): Likewise.
64069         (exp_test_tonearest): Likewise.
64070         (exp_test_towardzero): Likewise.
64071         (exp_test_downward): Likewise.
64072         (exp_test_upward): Likewise.
64073         (exp10_test): Likewise.
64074         (exp2_test): Likewise.
64075         (expm1_test): Likewise.
64076         (fabs_test): Likewise.
64077         (fdim_test): Likewise.
64078         (finite_test): Likewise.
64079         (floor_test): Likewise.
64080         (fma_test): Likewise.
64081         (fma_test_towardzero): Likewise.
64082         (fma_test_downward): Likewise.
64083         (fma_test_upward): Likewise.
64084         (fmax_test): Likewise.
64085         (fmin_test): Likewise.
64086         (fmod_test): Likewise.
64087         (fpclassify_test): Likewise.
64088         (frexp_test): Likewise.
64089         (gamma_test): Likewise.
64090         (hypot_test): Likewise.
64091         (ilogb_test): Likewise.
64092         (isfinite_test): Likewise.
64093         (isgreater_test): Likewise.
64094         (isgreaterequal_test): Likewise.
64095         (isinf_test): Likewise.
64096         (isless_test): Likewise.
64097         (islessequal_test): Likewise.
64098         (islessgreater_test): Likewise.
64099         (isnan_test): Likewise.
64100         (isnormal_test): Likewise.
64101         (issignaling_test): Likewise.
64102         (isunordered_test): Likewise.
64103         (j0_test): Likewise.
64104         (j1_test): Likewise.
64105         (jn_test): Likewise.
64106         (ldexp_test): Likewise.
64107         (lgamma_test): Likewise.
64108         (lrint_test): Likewise.
64109         (lrint_test_tonearest): Likewise.
64110         (lrint_test_towardzero): Likewise.
64111         (lrint_test_downward): Likewise.
64112         (lrint_test_upward): Likewise.
64113         (llrint_test): Likewise.
64114         (llrint_test_tonearest): Likewise.
64115         (llrint_test_towardzero): Likewise.
64116         (llrint_test_downward): Likewise.
64117         (llrint_test_upward): Likewise.
64118         (log_test): Likewise.
64119         (log10_test): Likewise.
64120         (log1p_test): Likewise.
64121         (log2_test): Likewise.
64122         (logb_test): Likewise.
64123         (logb_test_downward): Likewise.
64124         (lround_test): Likewise.
64125         (llround_test): Likewise.
64126         (modf_test): Likewise.
64127         (nearbyint_test): Likewise.
64128         (nextafter_test): Likewise.
64129         (nexttoward_test): Likewise.
64130         (pow_test): Likewise.
64131         (pow_test_tonearest): Likewise.
64132         (pow_test_towardzero): Likewise.
64133         (pow_test_downward): Likewise.
64134         (pow_test_upward): Likewise.
64135         (remainder_test): Likewise.
64136         (remainder_test_tonearest): Likewise.
64137         (remainder_test_towardzero): Likewise.
64138         (remainder_test_downward): Likewise.
64139         (remainder_test_upward): Likewise.
64140         (remquo_test): Likewise.
64141         (rint_test): Likewise.
64142         (rint_test_tonearest): Likewise.
64143         (rint_test_towardzero): Likewise.
64144         (rint_test_downward): Likewise.
64145         (rint_test_upward): Likewise.
64146         (round_test): Likewise.
64147         (scalb_test): Likewise.
64148         (scalbn_test): Likewise.
64149         (scalbln_test): Likewise.
64150         (signbit_test): Likewise.
64151         (sin_test): Likewise.
64152         (sin_test_tonearest): Likewise.
64153         (sin_test_towardzero): Likewise.
64154         (sin_test_downward): Likewise.
64155         (sin_test_upward): Likewise.
64156         (sincos_test): Likewise.
64157         (sinh_test): Likewise.
64158         (sinh_test_tonearest): Likewise.
64159         (sinh_test_towardzero): Likewise.
64160         (sinh_test_downward): Likewise.
64161         (sinh_test_upward): Likewise.
64162         (sqrt_test): Likewise.
64163         (tan_test): Likewise.
64164         (tan_test_tonearest): Likewise.
64165         (tan_test_towardzero): Likewise.
64166         (tan_test_downward): Likewise.
64167         (tan_test_upward): Likewise.
64168         (tanh_test): Likewise.
64169         (tgamma_test): Likewise.
64170         (trunc_test): Likewise.
64171         (y0_test): Likewise.
64172         (y1_test): Likewise.
64173         (yn_test): Likewise.
64174         (significand_test): Likewise.
64175
64176 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
64177
64178         [BZ #15381]
64179         * libio/genops.c (_IO_no_init): Initialize wide struct info.
64180
64181 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
64182
64183         [BZ #14894]
64184         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
64185         __ppc_mdoio and __ppc_mdoom.
64186         * manual/platform.texi: Document new functions __ppc_yield,
64187         __ppc_mdoio and __ppc_mdoom.
64188
64189 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
64190
64191         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
64192         (main): Mention "tls" pseudo-hwcap is legacy.
64193         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
64194
64195 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
64196
64197         * math/gen-libm-test.pl (parse_args): Output only string of
64198         arguments as text for test name, not full call or descriptions of
64199         tests for extra outputs.
64200         (generate_testfile): Do not pass function name to parse_args.
64201         Generate this_func variable from START.
64202         * math/libm-test.inc (struct test_f_f_data): Rename test_name
64203         field to arg_str.
64204         (struct test_ff_f_data): Likewise.
64205         (test_ff_f_data_nexttoward): Likewise.
64206         (struct test_fi_f_data): Likewise.
64207         (struct test_fl_f_data): Likewise.
64208         (struct test_if_f_data): Likewise.
64209         (struct test_fff_f_data): Likewise.
64210         (struct test_c_f_data): Likewise.
64211         (struct test_f_f1_data): Likewise.  Remove field extra_name.
64212         (struct test_fF_f1_data): Likewise.
64213         (struct test_ffI_f1_data): Likewise.
64214         (struct test_c_c_data): Rename test_name field to arg_str.
64215         (struct test_cc_c_data): Likewise.
64216         (struct test_f_i_data): Likewise.
64217         (struct test_ff_i_data): Likewise.
64218         (struct test_f_l_data): Likewise.
64219         (struct test_f_L_data): Likewise.
64220         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
64221         and extra2_name.
64222         (COMMON_TEST_SETUP): New macro.
64223         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
64224         (COMMON_TEST_CLEANUP): Likewise.
64225         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
64226         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
64227         macros.
64228         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
64229         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
64230         macros.
64231         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
64232         (RUN_TEST_fff_f): Take argument string.  Call new setup and
64233         cleanup macros.
64234         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
64235         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
64236         macros.
64237         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
64238         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
64239         macros.
64240         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
64241         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
64242         cleanup macros.
64243         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
64244         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
64245         cleanup macros.
64246         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
64247         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
64248         cleanup macros.
64249         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
64250         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
64251         macros.
64252         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
64253         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
64254         macros.
64255         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
64256         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
64257         macros.
64258         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
64259         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
64260         cleanup macros.
64261         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
64262         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
64263         cleanup macros.
64264         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
64265         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
64266         macros.
64267         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
64268         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
64269         cleanup macros.
64270         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
64271         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
64272         macros.
64273         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
64274         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
64275         macros.
64276         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
64277         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
64278         cleanup macros.
64279         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
64280
64281 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
64282
64283         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
64284         to _sifields.sigfault.
64285         (si_addr_lsb): Define new macro.
64286         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
64287         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
64288         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
64289
64290 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
64291
64292         [BZ #15441]
64293         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
64294         returns -1.
64295         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
64296         null return -1.
64297         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
64298         loading the domain.
64299
64300 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
64301
64302         * math/gen-libm-test.pl (parse_args): Do not include expected
64303         result in test name.
64304         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
64305         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
64306         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
64307         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
64308         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
64309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64310
64311 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
64312
64313         * benchtests/Makefile: Sort function entries.
64314
64315         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
64316         tanh, asinh, acosh, atanh.
64317         * benchtests/acos-inputs: New file.
64318         * benchtests/acosh-inputs: New file.
64319         * benchtests/asin-inputs: New file.
64320         * benchtests/asinh-inputs: New file.
64321         * benchtests/atanh-inputs: New file.
64322         * benchtests/cosh-inputs: New file.
64323         * benchtests/log-inputs: New file.
64324         * benchtests/sinh-inputs: New file.
64325         * benchtests/tanh-inputs: New file.
64326
64327 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
64328
64329         [BZ #15339]
64330         * posix/tst-getaddrinfo4.c: New test.
64331         * posix/Makefile (tests): Add it.
64332
64333 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64334
64335         [BZ #15339]
64336         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
64337         when no services were used.
64338         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
64339         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
64340
64341 2013-05-21  Andreas Schwab  <schwab@suse.de>
64342
64343         [BZ #15014]
64344         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
64345         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
64346         successful.
64347         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
64348         redundant variable declarations and reallocation of buffer when
64349         parsing as IPv6 address.  Always set NSS status when called from
64350         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
64351         buffer too small.  Correct computation of needed size.
64352         * nss/Makefile (tests): Add test-digits-dots.
64353         * nss/test-digits-dots.c: New test.
64354
64355 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64356
64357         * benchtests/Makefile: Remove instructions for adding
64358         benchmark tests.
64359         * benchtests/README: New file to explain how to execute and
64360         enhance the benchmark tests.
64361
64362 2013-05-21  Andreas Schwab  <schwab@suse.de>
64363
64364         [BZ #15493]
64365         * setjmp/Makefile (tests): Add tst-sigsetjmp.
64366         * setjmp/tst-sigsetjmp.c: New test.
64367
64368 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
64369
64370         * sysdeps/x86_64/memset.S (memset): New implementation.
64371         (__bzero): Likewise.
64372         (__memset_tail): New function.
64373
64374 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
64375
64376         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
64377         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
64378         __memcpy_sse2_unaligned ifunc selection.
64379         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
64380         Add memcpy-sse2-unaligned.S.
64381         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
64382         Add: __memcpy_sse2_unaligned.
64383
64384 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
64385
64386         [BZ #15490]
64387         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
64388         math_force_eval before restoring floating-point envrionment.
64389         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
64390         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
64391         Likewise.
64392         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
64393         <math_private.h>.
64394         (__nearbyintl): Use math_force_eval before restoring
64395         floating-point environment.
64396         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
64397
64398         * math/gen-libm-test.pl (special_functions): Remove.
64399         (parse_args): Don't handle TEST_extra.  Handle functions with no
64400         return value.
64401         * math/libm-test.inc (struct test_sincos_data): Replace with
64402         struct test_fFF_11_data.
64403         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
64404         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
64405         (sincos_test_data): Change element type to struct
64406         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
64407         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
64408         RUN_TEST_LOOP_sincos.
64409         * math/README.libm-test: Don't mention special handling of
64410         individual functions.
64411         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
64412         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
64413         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
64414         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
64415         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
64416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64417
64418         * math/gen-libm-test.pl (get_variable): Remove function.
64419         (parse_args): Don't show pointer parameters to call in test
64420         names.  Use "extra output N" in test names for extra outputs
64421         rather than naming variables.
64422
64423 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
64424
64425         [BZ #15488]
64426         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
64427         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
64428         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
64429         double tests.
64430         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
64431         disable.
64432         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
64433         check_long_double.
64434
64435         * math/gen-libm-test.pl (@tests): Remove variable.
64436         ($count): Likewise.
64437         (new_test): Remove function.
64438         (show_exceptions): New function.
64439         (special_functions): Use show_exceptions instead of new_test.
64440         (parse_args): Likewise.
64441         (generate_testfile): Pass only function name in generated call to
64442         print_max_error or print_complex_max_error.
64443         (get_ulps): Do not handle complex tests specially.
64444         (output_test): Rename to ...
64445         (get_all_ulps_for_test): ... this.  Return a string rather than
64446         printing to a file.  Require ulps to be present.
64447         (output_ulps): Generate arrays rather than #defines.
64448         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
64449         (struct ulp_data): New type.
64450         (BUILD_COMPLEX_ULP): Remove macro.
64451         (compare_ulp_data): New function.
64452         (find_ulps): Likewise.
64453         (find_test_ulps): Likewise.
64454         (find_function_ulps): Likewise.
64455         (find_complex_function_ulps): Likewise.
64456         (print_max_error): Determine allowed ulps using
64457         find_function_ulps.
64458         (print_complex_max_error): Determine allowed ulps using
64459         find_complex_function_ulps.
64460         (check_float_internal): Determine max ulps using find_test_ulps.
64461         (check_float): Do not take max_ulp parameter.  Update call to
64462         check_float_internal.
64463         (check_complex): Likewise.
64464         (check_int): Do not take max_ulp parameter.
64465         (check_long): Likewise.
64466         (check_bool): Likewise.
64467         (check_longlong): Likewise.
64468         (struct test_f_f_data): Remove max_ulp field.
64469         (struct test_ff_f_data): Likewise.
64470         (struct test_ff_f_data_nexttoward): Likewise.
64471         (struct test_fi_f_data): Likewise.
64472         (struct test_fl_f_data): Likewise.
64473         (struct test_if_f_data): Likewise.
64474         (struct test_fff_f_data): Likewise.
64475         (struct test_c_f_data): Likewise.
64476         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
64477         (struct test_fF_f1_data): Likewise.
64478         (struct test_ffI_f1_data): Likewise.
64479         (struct test_c_c_data): Remove max_ulp field.
64480         (struct test_cc_c_data): Likewise.
64481         (struct test_f_i_data): Likewise.
64482         (struct test_ff_i_data): Likewise.
64483         (struct test_f_l_data): Likewise.
64484         (struct test_f_L_data): Likewise.
64485         (struct test_sincos_data): Likewise.
64486         (RUN_TEST_f_f): Do not handle ulps.
64487         (RUN_TEST_LOOP_f_f): Likewise.
64488         (RUN_TEST_2_f): Likewise.
64489         (RUN_TEST_LOOP_2_f): Likewise.
64490         (RUN_TEST_fff_f): Likewise.
64491         (RUN_TEST_LOOP_fff_f): Likewise.
64492         (RUN_TEST_c_f): Likewise.
64493         (RUN_TEST_LOOP_c_f): Likewise.
64494         (RUN_TEST_f_f1): Likewise.
64495         (RUN_TEST_LOOP_f_f1): Likewise.
64496         (RUN_TEST_fF_f1): Likewise.
64497         (RUN_TEST_LOOP_fF_f1): Likewise.
64498         (RUN_TEST_fI_f1): Likewise.
64499         (RUN_TEST_LOOP_fI_f1): Likewise.
64500         (RUN_TEST_ffI_f1): Likewise.
64501         (RUN_TEST_LOOP_ffI_f1): Likewise.
64502         (RUN_TEST_c_c): Likewise.
64503         (RUN_TEST_LOOP_c_c): Likewise.
64504         (RUN_TEST_cc_c): Likewise.
64505         (RUN_TEST_LOOP_cc_c): Likewise.
64506         (RUN_TEST_f_i): Likewise.
64507         (RUN_TEST_LOOP_f_i): Likewise.
64508         (RUN_TEST_f_i_tg): Likewise.
64509         (RUN_TEST_LOOP_f_i_tg): Likewise.
64510         (RUN_TEST_ff_i_tg): Likewise.
64511         (RUN_TEST_LOOP_ff_i_tg): Likewise.
64512         (RUN_TEST_f_b): Likewise.
64513         (RUN_TEST_LOOP_f_b): Likewise.
64514         (RUN_TEST_f_b_tg): Likewise.
64515         (RUN_TEST_LOOP_f_b_tg): Likewise.
64516         (RUN_TEST_f_l): Likewise.
64517         (RUN_TEST_LOOP_f_l): Likewise.
64518         (RUN_TEST_f_L): Likewise.
64519         (RUN_TEST_LOOP_f_L): Likewise.
64520         (RUN_TEST_sincos): Likewise.
64521         (RUN_TEST_LOOP_sincos): Likewise.
64522
64523 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
64524
64525         [BZ #15480]
64526         [BZ #15485]
64527         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
64528         main case of finite arguments, set rounding mode to FE_TONEAREST
64529         and discard exceptions.
64530         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
64531         exceptions.
64532         (remainder_tonearest_test_data): New variable.
64533         (remainder_test_tonearest): New function.
64534         (remainder_towardzero_test_data): New variable.
64535         (remainder_test_towardzero): New function.
64536         (remainder_downward_test_data): New variable.
64537         (remainder_test_downward): New function.
64538         (remainder_upward_test_data): New variable.
64539         (remainder_test_upward): New function.
64540         (main): Call the new test functions.
64541
64542         * math/libm-test.inc (struct test_f_f1_data): Remove field
64543         extra_init.
64544         (struct test_fF_f1_data): Likewise.
64545         (struct test_ffI_f1_data): Likewise.
64546         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
64547         based on value of EXTRA_EXPECTED.
64548         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
64549         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
64550         EXTRA_VAR based on value of EXTRA_EXPECTED.
64551         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
64552         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
64553         EXTRA_VAR based on value of EXTRA_EXPECTED.
64554         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
64555         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
64556         EXTRA_VAR based on value of EXTRA_EXPECTED.
64557         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
64558         * math/gen-libm-test.pl (parse_args): Don't output initializers
64559         for extra output values.
64560
64561         * math/libm-test.inc (check_int): Expect result to be exactly
64562         equal to expected value and do not handle ulps.
64563         (check_long): Likewise.
64564         (check_longlong): Likewise.
64565
64566         * math/libm-test.inc (ceil_test_data): Test for "inexact"
64567         exceptions.
64568         (cimag_test_data): Likewise.
64569         (conj_test_data): Likewise.
64570         (copysign_test_data): Likewise.
64571         (cproj_test_data): Likewise.
64572         (creal_test_data): Likewise.
64573         (fabs_test_data): Likewise.
64574         (fdim_test_data): Likewise.
64575         (finite_test_data): Likewise.
64576         (floor_test_data): Likewise.
64577         (fmax_test_data): Likewise.
64578         (fmin_test_data): Likewise.
64579         (fmod_test_data): Likewise.
64580         (fpclassify_test_data): Likewise.
64581         (frexp_test_data): Likewise.
64582         (ilogb_test_data): Likewise.
64583         (isfinite_test_data): Likewise.
64584         (isgreater_test_data): Likewise.
64585         (isgreaterequal_test_data): Likewise.
64586         (isinf_test_data): Likewise.
64587         (isless_test_data): Likewise.
64588         (islessequal_test_data): Likewise.
64589         (islessgreater_test_data): Likewise.
64590         (isnan_test_data): Likewise.
64591         (isnormal_test_data): Likewise.
64592         (issignaling_test_data): Likewise.
64593         (isunordered_test_data): Likewise.
64594         (ldexp_test_data): Likewise.
64595         (lrint_test_data): Likewise.
64596         (lrint_test_data) [TEST_FLOAT]: Disable one test.
64597         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
64598         (lrint_tonearest_test_data): Test for "inexact" exceptions.
64599         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
64600         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
64601         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
64602         test input.
64603         (lrint_towardzero_test_data): Test for "inexact" exceptions.
64604         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
64605         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
64606         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
64607         that test input.
64608         (lrint_downward_test_data): Test for "inexact" exceptions.
64609         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
64610         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
64611         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
64612         test input.
64613         (lrint_upward_test_data): Test for "inexact" exceptions.
64614         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
64615         test input.
64616         (llrint_test_data): Test for "inexact" exceptions.
64617         (llrint_test_data) [TEST_FLOAT]: Disable one test.
64618         (llrint_tonearest_test_data): Test for "inexact" exceptions.
64619         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
64620         (llrint_towardzero_test_data): Test for "inexact" exceptions.
64621         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
64622         (llrint_downward_test_data): Test for "inexact" exceptions.
64623         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
64624         (llrint_upward_test_data): Test for "inexact" exceptions.
64625         (logb_test_data): Likewise.
64626         (logb_downward_test_data): Likewise.
64627         (nextafter_test_data): Likewise.
64628         (nexttoward_test_data): Likewise.
64629         (remainder_test_data): Likewise.
64630         (remquo_test_data): Likewise.
64631         (scalbn_test_data): Likewise.
64632         (scalbln_test_data): Likewise.
64633         (signbit_test_data): Likewise.
64634         (sqrt_test_data): Likewise.
64635         (significand_test_data): Likewise.
64636
64637 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
64638
64639         [BZ #15424]
64640         * benchtests/bench-modf.c (struct args): Mark arg0 as
64641         volatile.
64642         * scripts/bench.pl: Mark members of struct args as volatile.
64643
64644 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64645
64646         [BZ # 15497]
64647         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
64648         negative infinity on POWER6 or lower.
64649         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
64650
64651 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
64652
64653         [BZ #15442]
64654         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
64655         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
64656         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
64657         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
64658         (_FP_SETQNAN): New macro.
64659         (_FP_SETQNAN_SEMIRAW): Likewise.
64660         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
64661         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
64662         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
64663         (FP_EXTEND): Use _FP_FRAC_SNANP.
64664         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
64665         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
64666         into account.
64667         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
64668         New macro.
64669         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
64670         Likewise.
64671
64672 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
64673
64674         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
64675         with DIVIDE_BY_ZERO_EXCEPTION.
64676         (gamma_test_data): Likewise.
64677         (lgamma_test_data): Likewise.
64678         (log_test_data): Likewise.
64679         (log10_test_data): Likewise.
64680         (log2_test_data): Likewise.
64681         (tgamma_test_data): Likewise.
64682
64683         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
64684         (acos_test_tonearest): Likewise.
64685         (acos_test_towardzero): Likewise.
64686         (acos_test_downward): Likewise.
64687         (acos_test_upward): Likewise.
64688         (acosh_test): Likewise.
64689         (asin_test): Likewise.
64690         (asin_test_tonearest): Likewise.
64691         (asin_test_towardzero): Likewise.
64692         (asin_test_downward): Likewise.
64693         (asin_test_upward): Likewise.
64694         (asinh_test): Likewise.
64695         (atan_test): Likewise.
64696         (atanh_test): Likewise.
64697         (atan2_test): Likewise.
64698         (cabs_test): Likewise.
64699         (cacos_test): Likewise.
64700         (cacosh_test): Likewise.
64701         (casin_test): Likewise.
64702         (casinh_test): Likewise.
64703         (catan_test): Likewise.
64704         (catanh_test): Likewise.
64705         (cbrt_test): Likewise.
64706         (ccos_test): Likewise.
64707         (ccosh_test): Likewise.
64708         (cexp_test): Likewise.
64709         (clog_test): Likewise.
64710         (clog10_test): Likewise.
64711         (cos_test): Likewise.
64712         (cos_test_tonearest): Likewise.
64713         (cos_test_towardzero): Likewise.
64714         (cos_test_downward): Likewise.
64715         (cos_test_upward): Likewise.
64716         (cosh_test): Likewise.
64717         (cosh_test_tonearest): Likewise.
64718         (cosh_test_towardzero): Likewise.
64719         (cosh_test_downward): Likewise.
64720         (cosh_test_upward): Likewise.
64721         (cpow_test): Likewise.
64722         (csin_test): Likewise.
64723         (csinh_test): Likewise.
64724         (csqrt_test): Likewise.
64725         (ctan_test): Likewise.
64726         (ctan_test_tonearest): Likewise.
64727         (ctan_test_towardzero): Likewise.
64728         (ctan_test_downward): Likewise.
64729         (ctan_test_upward): Likewise.
64730         (ctanh_test): Likewise.
64731         (ctanh_test_tonearest): Likewise.
64732         (ctanh_test_towardzero): Likewise.
64733         (ctanh_test_downward): Likewise.
64734         (ctanh_test_upward): Likewise.
64735         (erf_test): Likewise.
64736         (erfc_test): Likewise.
64737         (exp_test): Likewise.
64738         (exp_test_tonearest): Likewise.
64739         (exp_test_towardzero): Likewise.
64740         (exp_test_downward): Likewise.
64741         (exp_test_upward): Likewise.
64742         (exp10_test): Likewise.
64743         (exp2_test): Likewise.
64744         (expm1_test): Likewise.
64745         (fmod_test): Likewise.
64746         (gamma_test): Likewise.
64747         (hypot_test): Likewise.
64748         (j0_test): Likewise.
64749         (j1_test): Likewise.
64750         (jn_test): Likewise.
64751         (lgamma_test): Likewise.
64752         (log_test): Likewise.
64753         (log10_test): Likewise.
64754         (log1p_test): Likewise.
64755         (log2_test): Likewise.
64756         (logb_test_downward): Likewise.
64757         (pow_test): Likewise.
64758         (pow_test_tonearest): Likewise.
64759         (pow_test_towardzero): Likewise.
64760         (pow_test_downward): Likewise.
64761         (pow_test_upward): Likewise.
64762         (remainder_test): Likewise.
64763         (remquo_test): Likewise.
64764         (sin_test): Likewise.
64765         (sin_test_tonearest): Likewise.
64766         (sin_test_towardzero): Likewise.
64767         (sin_test_downward): Likewise.
64768         (sin_test_upward): Likewise.
64769         (sincos_test): Likewise.
64770         (sinh_test): Likewise.
64771         (sinh_test_tonearest): Likewise.
64772         (sinh_test_towardzero): Likewise.
64773         (sinh_test_downward): Likewise.
64774         (sinh_test_upward): Likewise.
64775         (sqrt_test): Likewise.
64776         (tan_test): Likewise.
64777         (tan_test_tonearest): Likewise.
64778         (tan_test_towardzero): Likewise.
64779         (tan_test_downward): Likewise.
64780         (tan_test_upward): Likewise.
64781         (tanh_test): Likewise.
64782         (tgamma_test): Likewise.
64783         (y0_test): Likewise.
64784         (y1_test): Likewise.
64785         (yn_test): Likewise.
64786
64787         * math/gen-libm-test.pl (adjust_arg): Remove function.
64788         (special_function): Remove argument $in_func.  Only handle
64789         generating output for tables of tests, not inside functions.
64790         (parse_args): Likewise.
64791         (generate_testfile): Remove variable $in_func.  Update call to
64792         parse_args.
64793         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
64794         (MINUS_ZERO_INIT): Rename macro to minus_zero.
64795         (PLUS_INFTY_INIT): Rename macro to plus_infty.
64796         (MINUS_INFTY_INIT): Rename macro to minus_infty.
64797         (QNAN_VALUE_INIT): Rename macro to qnan_value.
64798         (MAX_VALUE_INIT): Rename macro to max_value.
64799         (MIN_VALUE_INIT): Rename macro to min_value.
64800         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
64801         (plus_zero): Remove variable.
64802         (minus_zero): Likewise.
64803         (plus_infty): Likewise.
64804         (minus_infty): Likewise.
64805         (qnan_value): Likewise.
64806         (max_value): Likewise.
64807         (min_value): Likewise.
64808         (min_subnorm_value): Likewise.
64809
64810 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64811
64812         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
64813         uint64_t or uint32_t usage.
64814         * crypt/sha256-block.c: Likewise.
64815         * crypt/sha256-crypt.c: Likewise.
64816         * crypt/sha256.c: Likewise.
64817         * crypt/sha512-block.c: Likewise.
64818         * crypt/sha512-crypt.c: Likewise.
64819         * crypt/sha512.c: Likewise.
64820         * debug/backtrace-tst.c: Likewise.
64821         * debug/pcprofiledump.c: Likewise.
64822         * elf/cache.c: Likewise.
64823         * elf/dl-cache.c: Likewise.
64824         * elf/dl-misc.c: Likewise.
64825         * elf/dl-profile.c: Likewise.
64826         * elf/dl-support.c: Likewise.
64827         * elf/ldconfig.c: Likewise.
64828         * elf/sprof.c: Likewise.
64829         * iconv/dummy-repertoire.c: Likewise.
64830         * iconv/iconv_charmap.c: Likewise.
64831         * iconv/skeleton.c: Likewise.
64832         * iconvdata/8bit-generic.c: Likewise.
64833         * iconvdata/cp737.h: Likewise.
64834         * iconvdata/cp775.h: Likewise.
64835         * iconvdata/ibm1008.h: Likewise.
64836         * iconvdata/ibm1025.h: Likewise.
64837         * iconvdata/ibm1046.h: Likewise.
64838         * iconvdata/ibm1097.h: Likewise.
64839         * iconvdata/ibm1112.h: Likewise.
64840         * iconvdata/ibm1122.h: Likewise.
64841         * iconvdata/ibm1123.h: Likewise.
64842         * iconvdata/ibm1124.h: Likewise.
64843         * iconvdata/ibm1129.h: Likewise.
64844         * iconvdata/ibm1130.h: Likewise.
64845         * iconvdata/ibm1132.h: Likewise.
64846         * iconvdata/ibm1133.h: Likewise.
64847         * iconvdata/ibm1137.h: Likewise.
64848         * iconvdata/ibm1140.h: Likewise.
64849         * iconvdata/ibm1141.h: Likewise.
64850         * iconvdata/ibm1142.h: Likewise.
64851         * iconvdata/ibm1143.h: Likewise.
64852         * iconvdata/ibm1144.h: Likewise.
64853         * iconvdata/ibm1145.h: Likewise.
64854         * iconvdata/ibm1146.h: Likewise.
64855         * iconvdata/ibm1147.h: Likewise.
64856         * iconvdata/ibm1148.h: Likewise.
64857         * iconvdata/ibm1149.h: Likewise.
64858         * iconvdata/ibm1153.h: Likewise.
64859         * iconvdata/ibm1154.h: Likewise.
64860         * iconvdata/ibm1155.h: Likewise.
64861         * iconvdata/ibm1156.h: Likewise.
64862         * iconvdata/ibm1157.h: Likewise.
64863         * iconvdata/ibm1158.h: Likewise.
64864         * iconvdata/ibm1160.h: Likewise.
64865         * iconvdata/ibm1161.h: Likewise.
64866         * iconvdata/ibm1162.h: Likewise.
64867         * iconvdata/ibm1163.h: Likewise.
64868         * iconvdata/ibm1164.h: Likewise.
64869         * iconvdata/ibm1166.h: Likewise.
64870         * iconvdata/ibm1167.h: Likewise.
64871         * iconvdata/ibm12712.h: Likewise.
64872         * iconvdata/ibm1390.h: Likewise.
64873         * iconvdata/ibm1399.h: Likewise.
64874         * iconvdata/ibm16804.h: Likewise.
64875         * iconvdata/ibm4517.h: Likewise.
64876         * iconvdata/ibm4899.h: Likewise.
64877         * iconvdata/ibm4909.h: Likewise.
64878         * iconvdata/ibm4971.h: Likewise.
64879         * iconvdata/ibm5347.h: Likewise.
64880         * iconvdata/ibm803.h: Likewise.
64881         * iconvdata/ibm856.h: Likewise.
64882         * iconvdata/ibm901.h: Likewise.
64883         * iconvdata/ibm902.h: Likewise.
64884         * iconvdata/ibm9030.h: Likewise.
64885         * iconvdata/ibm9066.h: Likewise.
64886         * iconvdata/ibm921.h: Likewise.
64887         * iconvdata/ibm922.h: Likewise.
64888         * iconvdata/ibm9448.h: Likewise.
64889         * iconvdata/isiri-3342.h: Likewise.
64890         * iconvdata/jis0201.h: Likewise.
64891         * include/link.h: Likewise.
64892         * include/netdb.h: Likewise.
64893         * inet/check_native.c: Likewise.
64894         * inet/check_pf.c: Likewise.
64895         * inet/getipv4sourcefilter.c: Likewise.
64896         * inet/getnameinfo.c: Likewise.
64897         * inet/getsourcefilter.c: Likewise.
64898         * inet/htonl.c: Likewise.
64899         * inet/setipv4sourcefilter.c: Likewise.
64900         * inet/setsourcefilter.c: Likewise.
64901         * inet/test-inet6_opt.c: Likewise.
64902         * inet/tst-network.c: Likewise.
64903         * locale/C-collate.c: Likewise.
64904         * locale/C-ctype.c: Likewise.
64905         * locale/C-time.c: Likewise.
64906         * locale/C-translit.h: Likewise.
64907         * locale/loadarchive.c: Likewise.
64908         * locale/programs/3level.h: Likewise.
64909         * locale/programs/charmap.c: Likewise.
64910         * locale/programs/charmap.h: Likewise.
64911         * locale/programs/ld-address.c: Likewise.
64912         * locale/programs/ld-collate.c: Likewise.
64913         * locale/programs/ld-ctype.c: Likewise.
64914         * locale/programs/ld-identification.c: Likewise.
64915         * locale/programs/ld-measurement.c: Likewise.
64916         * locale/programs/ld-messages.c: Likewise.
64917         * locale/programs/ld-monetary.c: Likewise.
64918         * locale/programs/ld-name.c: Likewise.
64919         * locale/programs/ld-numeric.c: Likewise.
64920         * locale/programs/ld-paper.c: Likewise.
64921         * locale/programs/ld-telephone.c: Likewise.
64922         * locale/programs/ld-time.c: Likewise.
64923         * locale/programs/linereader.c: Likewise.
64924         * locale/programs/locale.c: Likewise.
64925         * locale/programs/locarchive.c: Likewise.
64926         * locale/programs/locfile.h: Likewise.
64927         * locale/programs/repertoire.c: Likewise.
64928         * locale/programs/simple-hash.c: Likewise.
64929         * locale/programs/simple-hash.h: Likewise.
64930         * malloc/memusage.c: Likewise.
64931         * malloc/memusagestat.c: Likewise.
64932         * nis/nis_defaults.c: Likewise.
64933         * nis/nis_hash.c: Likewise.
64934         * nis/nis_print.c: Likewise.
64935         * nis/nis_xdr.c: Likewise.
64936         * nscd/connections.c: Likewise.
64937         * nscd/hstcache.c: Likewise.
64938         * nscd/nscd_gethst_r.c: Likewise.
64939         * nscd/nscd_getserv_r.c: Likewise.
64940         * nscd/nscd_helper.c: Likewise.
64941         * nscd/servicescache.c: Likewise.
64942         * nss/makedb.c: Likewise.
64943         * nss/nss_db/db-XXX.c: Likewise.
64944         * nss/nss_db/db-initgroups.c: Likewise.
64945         * nss/nss_db/db-netgrp.c: Likewise.
64946         * nss/nss_files/files-network.c: Likewise.
64947         * nss/nss_files/files-parse.c: Likewise.
64948         * posix/bug-regex5.c: Likewise.
64949         * posix/fnmatch_loop.c: Likewise.
64950         * posix/regcomp.c: Likewise.
64951         * posix/regexec.c: Likewise.
64952         * posix/tst-rfc3484-2.c: Likewise.
64953         * posix/tst-rfc3484-3.c: Likewise.
64954         * posix/tst-rfc3484.c: Likewise.
64955         * resolv/nss_dns/dns-canon.c: Likewise.
64956         * resolv/nss_dns/dns-network.c: Likewise.
64957         * resolv/res_init.c: Likewise.
64958         * resolv/res_mkquery.c: Likewise.
64959         * resolv/tst-aton.c: Likewise.
64960         * stdlib/cxa_atexit.c: Likewise.
64961         * stdlib/cxa_finalize.c: Likewise.
64962         * stdlib/gen-fpioconst.c: Likewise.
64963         * stdlib/strtol_l.c: Likewise.
64964         * string/tst-endian.c: Likewise.
64965         * sunrpc/auth_des.c: Likewise.
64966         * sunrpc/clnt_udp.c: Likewise.
64967         * sunrpc/rtime.c: Likewise.
64968         * sunrpc/svcauth_des.c: Likewise.
64969         * sunrpc/xdr.c: Likewise.
64970         * sunrpc/xdr_intXX_t.c: Likewise.
64971         * sunrpc/xdr_rec.c: Likewise.
64972         * sysdeps/generic/ldconfig.h: Likewise.
64973         * sysdeps/generic/ldsodefs.h: Likewise.
64974         * sysdeps/generic/memusage.h: Likewise.
64975         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
64976         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
64977         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
64978         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
64979         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
64980         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
64981         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
64982         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
64983         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
64984         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
64985         * sysdeps/posix/getaddrinfo.c: Likewise.
64986         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
64987         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
64988         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
64989         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
64990         * sysdeps/powerpc/test-gettimebase.c: Likewise.
64991         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
64992         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
64993         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
64994         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
64995         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
64996         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
64997         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
64998         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
64999         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
65000         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
65001         * sysdeps/x86_64/dl-tls.h: Likewise.
65002         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
65003         * time/alt_digit.c: Likewise.
65004         * time/era.c: Likewise.
65005         * wcsmbs/tst-c16c32-1.c: Likewise.
65006
65007 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
65008
65009         * math/libm-test.inc (struct test_sincos_data): New type.
65010         (RUN_TEST_LOOP_sincos): New macro.
65011         (sincos_test_data): New variable.
65012         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
65013
65014 2013-05-16  Richard Henderson  <rth@redhat.com>
65015
65016         * math/atest-exp2.c (LIMB64): New macro.
65017         (CONSTSZ): New macro.
65018         (mp_exp1, mp_exp_m1, mp_log2): New variables.
65019         (hexdig): Move ...
65020         (print_mpn_fp): ... to function scope.
65021         (read_mpn_hex): Remove.
65022         (get_log2): Remove.
65023         (exp2_mpn): Use mp_log2.
65024         (main): Use mp_exp1.
65025
65026 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
65027
65028         * math/libm-test.inc: Remove comment about not testing "inexact"
65029         exceptions.
65030         (INEXACT_EXCEPTION): New macro.
65031         (NO_INEXACT_EXCEPTION): Likewise.
65032         (INVALID_EXCEPTION_OK): Update value.
65033         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
65034         (OVERFLOW_EXCEPTION_OK): Likewise.
65035         (UNDERFLOW_EXCEPTION_OK): Likewise.
65036         (IGNORE_ZERO_INF_SIGN): Likewise.
65037         (ERRNO_UNCHANGED): Likewise.
65038         (ERRNO_EDOM): Likewise.
65039         (ERRNO_ERANGE): Likewise.
65040         (test_exceptions): Handle testing "inexact" exceptions.
65041         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
65042         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
65043         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
65044         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
65045         INEXACT_EXCEPTION.
65046         (rint_towardzero_test_data): Likewise.
65047         (rint_downward_test_data): Likewise.
65048         (rint_upward_test_data): Likewise.
65049
65050         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
65051         with OVERFLOW_EXCEPTION.
65052         (exp10_test_data): Likewise.
65053         (exp2_test_data): Likewise.
65054         (expm1_test_data): Likewise.
65055         (lgamma_test_data): Likewise.
65056         (pow_test_data): Likewise.
65057         (tgamma_test_data): Likewise.
65058         (yn_test_data): Remove duplicate test of overflow.
65059
65060         * math/libm-test.inc (struct test_cc_c_data): New type.
65061         (RUN_TEST_LOOP_cc_c): New macro.
65062         (cpow_test_data): New variable.
65063         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
65064
65065         * math/libm-test.inc (struct test_f_L_data): New type.
65066         (RUN_TEST_LOOP_f_L): New macro.
65067         (llrint_test_data): New variable.
65068         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
65069         (llrint_tonearest_test_data): New variable.
65070         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
65071         (llrint_towardzero_test_data): New variable.
65072         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
65073         (llrint_downward_test_data): New variable.
65074         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
65075         (llrint_upward_test_data): New variable.
65076         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
65077         (llround_test_data): New variable.
65078         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
65079
65080 2013-05-13  Peter Collingbourne  <pcc@google.com>
65081
65082         * math/atest-exp2.c (get_log2): Remove const attribute.
65083
65084 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
65085
65086         * math/libm-test.inc (struct test_f_l_data): New type.
65087         (RUN_TEST_LOOP_f_l): New macro.
65088         (lrint_test_data): New variable.
65089         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
65090         (lrint_tonearest_test_data): New variable.
65091         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
65092         (lrint_towardzero_test_data): New variable.
65093         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
65094         (lrint_downward_test_data): New variable.
65095         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
65096         (lrint_upward_test_data): New variable.
65097         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
65098         (lround_test_data): New variable.
65099         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
65100
65101 2013-05-15  Peter Collingbourne  <pcc@google.com>
65102
65103         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
65104         (EXTRACT_WORDS64) Use where appropriate.
65105         (INSERT_WORDS64) Likewise.
65106
65107         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
65108         constraints with x constraints.
65109         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
65110
65111         * malloc/obstack.c (_obstack_compat): Add initializer.
65112
65113 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
65114
65115         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
65116         si_trapno and add si_addr_lsb to _sifields.sigfault.
65117         (si_trapno): Remove macro.
65118         (si_addr_lsb): Define new macro.
65119         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
65120
65121 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
65122
65123         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
65124         instead of TEST_f_l.
65125         (llrint_test_tonearest): Likewise.
65126         (llrint_test_towardzero): Likewise.
65127         (llrint_test_downward): Likewise.
65128         (llrint_test_upward): Likewise.
65129         (llround_test): Likewise.
65130
65131         * math/libm-test.inc (struct test_f_i_data): Add comment.
65132         (RUN_TEST_LOOP_f_b): New macro.
65133         (RUN_TEST_LOOP_f_b_tg): Likewise.
65134         (finite_test_data): New variable.
65135         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
65136         (isfinite_test_data): New variable.
65137         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
65138         (isinf_test_data): New variable.
65139         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
65140         (isnan_test_data): New variable.
65141         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
65142         (isnormal_test_data): New variable.
65143         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
65144         (issignaling_test_data): New variable.
65145         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
65146         (signbit_test_data): New variable.
65147         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
65148
65149         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
65150         with INVALID_EXCEPTION.
65151         (acosh_test_data): Likewise.
65152         (asin_test_data): Likewise.
65153         (atanh_test_data): Likewise.
65154         (fmod_test_data): Likewise.
65155         (log_test_data): Likewise.
65156         (log10_test_data): Likewise.
65157         (log2_test_data): Likewise.
65158         (pow_test_data): Likewise.
65159         (sqrt_test_data): Likewise.
65160         (y0_test_data): Likewise.
65161         (y1_test_data): Likewise.
65162         (yn_test_data): Likewise.
65163
65164         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
65165         function contents.
65166
65167         * math/libm-test.inc (struct test_ff_i_data): New type.
65168         (RUN_TEST_LOOP_ff_i_tg): New macro.
65169         (isgreater_test_data): New variable.
65170         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
65171         (isgreaterequal_test_data): New variable.
65172         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
65173         (isless_test_data): New variable.
65174         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
65175         (islessequal_test_data): New variable.
65176         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
65177         (islessgreater_test_data): New variable.
65178         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
65179         (isunordered_test_data): New variable.
65180         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
65181
65182 2013-05-14  David S. Miller  <davem@davemloft.net>
65183
65184         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65185
65186 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
65187
65188         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
65189
65190         * math/libm-test.inc (struct test_fF_f1_data): Change type of
65191         extra_test to int.
65192         (struct test_f_i_data): Change type of max_ulp to int.
65193
65194         * math/libm-test.inc (test_ffI_f1_data): New type.
65195         (RUN_TEST_LOOP_ffI_f1): New macro.
65196         (remquo_test_data): New variable.
65197         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
65198
65199         * setjmp/tst-setjmp-fp.c: New file.
65200         * setjmp/Makefile (tests): Add tst-setjmp-fp.
65201         (link-libm): New variable.
65202         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
65203
65204         * math/libm-test.inc (struct test_f_i_data): New type.
65205         (RUN_TEST_LOOP_f_i): New macro.
65206         (RUN_TEST_LOOP_f_i_tg): Likewise.
65207         (fpclassify_test_data): New variable.
65208         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
65209         (ilogb_test_data): New variable.
65210         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
65211
65212         * math/libm-test.inc (scalbln_test): Correct function name in END
65213         call.
65214
65215         * math/libm-test.inc (struct test_f_f1_data): Add comment.
65216         (RUN_TEST_LOOP_fI_f1): New macro.
65217         (frexp_test_data): New variable.
65218         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
65219
65220         * math/libm-test.inc (struct test_fF_f1_data): New type.
65221         (RUN_TEST_LOOP_fF_f1): New macro.
65222         (modf_test_data): New variable.
65223         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
65224
65225         * math/libm-test.inc (struct test_f_f1_data): New type.
65226         (RUN_TEST_LOOP_f_f1): New macro.
65227         (gamma_test_data): New variable.
65228         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
65229         (lgamma_test_data): New variable.
65230         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
65231
65232 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
65233
65234         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
65235         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
65236         (main): Comment "tls" pseudo-hwcap.
65237
65238 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
65239
65240         * math/libm-test.inc (struct test_fl_f_data): New type.
65241         (RUN_TEST_LOOP_fl_f): New variable.
65242         (scalbln_test_data): New variable.
65243         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
65244
65245         * math/libm-test.inc (struct test_fi_f_data): New type.
65246         (RUN_TEST_LOOP_fi_f): New macro.
65247         (ldexp_test_data): New variable.
65248         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
65249         (scalbn_test_data): New variable.
65250         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
65251
65252         * math/libm-test.inc (struct test_c_f_data): New type.
65253         (RUN_TEST_LOOP_c_f): New macro.
65254         (cabs_test_data): New variable.
65255         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
65256         (carg_test_data): New variable.
65257         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
65258         (cimag_test_data): New variable.
65259         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
65260         (creal_test_data): New variable.
65261         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
65262
65263         * math/libm-test.inc (struct test_if_f_data): New type.
65264         (RUN_TEST_LOOP_if_f): New macro.
65265         (jn_test_data): New variable.
65266         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
65267         (yn_test_data): New variable.
65268         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
65269
65270         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
65271
65272 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65273
65274         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
65275         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
65276
65277 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
65278
65279         * benchtests/Makefile (CPPFLAGS-nonlib): Add
65280         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
65281         (bench-deps): Add bench-timing.h.
65282         * benchtests-bench-skeleton.c: Include bench-timing.h.
65283         (main): Use TIMING_* macros instead of clock_gettime.
65284         * benchtests/bench-timing.h: New file.
65285
65286         [BZ #14582]
65287         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
65288         Renamed from _LIB_VERSION.
65289         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
65290
65291 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
65292
65293         * math/libm-test.inc (struct test_fff_f_data): New type.
65294         (RUN_TEST_LOOP_fff_f): New macro.
65295         (fma_test_data): New variable.
65296         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
65297         (fma_towardzero_test_data): New variable.
65298         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
65299         (fma_downward_test_data): New variable.
65300         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
65301         (fma_upward_test_data): New variable.
65302         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
65303
65304         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
65305         (struct test_c_c_data): New type.
65306         (RUN_TEST_LOOP_c_c): New macro.
65307         (cacos_test_data): New variable.
65308         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
65309         (cacosh_test_data): New variable.
65310         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
65311         (casin_test_data): New variable.
65312         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
65313         (casinh_test_data): New variable.
65314         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
65315         (catan_test_data): New variable.
65316         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
65317         (catanh_test_data): New variable.
65318         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
65319         (ccos_test_data): New variable.
65320         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
65321         (ccosh_test_data): New variable.
65322         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
65323         (cexp_test_data): New variable.
65324         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
65325         (clog_test_data): New variable.
65326         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
65327         (clog10_test_data): New variable.
65328         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
65329         (conj_test_data): New variable.
65330         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
65331         (cproj_test_data): New variable.
65332         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
65333         (csin_test_data): New variable.
65334         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
65335         (csinh_test_data): New variable.
65336         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
65337         (csqrt_test_data): New variable.
65338         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
65339         (ctan_test_data): New variable.
65340         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
65341         (ctan_tonearest_test_data): New variable.
65342         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
65343         (ctan_towardzero_test_data): New variable.
65344         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
65345         (ctan_downward_test_data): New variable.
65346         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
65347         (ctan_upward_test_data): New variable.
65348         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
65349         (ctanh_test_data): New variable.
65350         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
65351         (ctanh_tonearest_test_data): New variable.
65352         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
65353         (ctanh_towardzero_test_data): New variable.
65354         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
65355         (ctanh_downward_test_data): New variable.
65356         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
65357         (ctanh_upward_test_data): New variable.
65358         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
65359         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
65360         of BUILD_COMPLEX.
65361
65362         * math/libm-test.inc (struct test_ff_f_data): New type.
65363         (struct test_ff_f_data_nexttoward): Likewise.
65364         (RUN_TEST_LOOP_2_f): New macro.
65365         (RUN_TEST_LOOP_ff_f): Likewise.
65366         (atan2_test_data): New variable.
65367         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
65368         (copysign_test_data): New variable.
65369         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
65370         (fdim_test_data): New variable.
65371         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
65372         (fmax_test_data): New variable.
65373         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
65374         (fmin_test_data): New variable.
65375         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
65376         (fmod_test_data): New variable.
65377         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
65378         (hypot_test_data): New variable.
65379         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
65380         (nextafter_test_data): New variable.
65381         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
65382         (nexttoward_test_data): New variable.
65383         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
65384         (pow_test_data): New variable.
65385         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
65386         (pow_tonearest_test_data): New variable.
65387         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
65388         (pow_towardzero_test_data): New variable.
65389         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
65390         (pow_downward_test_data): New variable.
65391         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
65392         (pow_upward_test_data): New variable.
65393         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
65394         (remainder_test_data): New variable.
65395         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
65396         (scalb_test_data): New variable.
65397         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
65398         * sysdeps/i386/fpu/libm-test-ulps: Update.
65399
65400 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
65401
65402         * math/libm-test.inc (fma_test): Use max_value instead of local
65403         variable fltmax.
65404         (nextafter_test): Likewise.
65405
65406         * math/libm-test.inc (acos_towardzero_test_data): New variable.
65407         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65408         (acos_downward_test_data): New variable.
65409         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65410         (acos_upward_test_data): New variable.
65411         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65412         (acosh_test_data): New variable.
65413         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
65414         (asin_test_data): New variable.
65415         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
65416         (asin_tonearest_test_data): New variable.
65417         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65418         (asin_towardzero_test_data): New variable.
65419         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65420         (asin_downward_test_data): New variable.
65421         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65422         (asin_upward_test_data): New variable.
65423         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65424         (asinh_test_data): New variable.
65425         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
65426         (atan_test_data): New variable.
65427         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
65428         (atanh_test_data): New variable.
65429         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
65430         (cbrt_test_data): New variable.
65431         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
65432         (ceil_test_data): New variable.
65433         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
65434         (cos_test_data): New variable.
65435         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
65436         (cos_tonearest_test_data): New variable.
65437         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65438         (cos_towardzero_test_data): New variable.
65439         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65440         (cos_downward_test_data): New variable.
65441         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65442         (cos_upward_test_data): New variable.
65443         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65444         (cosh_test_data): New variable.
65445         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
65446         (cosh_tonearest_test_data): New variable.
65447         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65448         (cosh_towardzero_test_data): New variable.
65449         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65450         (cosh_downward_test_data): New variable.
65451         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65452         (cosh_upward_test_data): New variable.
65453         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65454         (erf_test_data): New variable.
65455         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
65456         (erfc_test_data): New variable.
65457         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
65458         (exp_test_data): New variable.
65459         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
65460         (exp_tonearest_test_data): New variable.
65461         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65462         (exp_towardzero_test_data): New variable.
65463         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65464         (exp_downward_test_data): New variable.
65465         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65466         (exp_upward_test_data): New variable.
65467         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65468         (exp10_test_data): New variable.
65469         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
65470         (exp2_test_data): New variable.
65471         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
65472         (expm1_test_data): New variable.
65473         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
65474         (fabs_test_data): New variable.
65475         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
65476         (floor_test_data): New variable.
65477         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
65478         (j0_test_data): New variable.
65479         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
65480         (j1_test_data): New variable.
65481         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
65482         (log_test_data): New variable.
65483         (log_test): Run tests with RUN_TEST_LOOP_f_f.
65484         (log10_test_data): New variable.
65485         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
65486         (log1p_test_data): New variable.
65487         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
65488         (log2_test_data): New variable.
65489         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
65490         (logb_test_data): New variable.
65491         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
65492         (logb_downward_test_data): New variable.
65493         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65494         (nearbyint_test_data): New variable.
65495         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
65496         (rint_test_data): New variable.
65497         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
65498         (rint_tonearest_test_data): New variable.
65499         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65500         (rint_towardzero_test_data): New variable.
65501         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65502         (rint_downward_test_data): New variable.
65503         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65504         (rint_upward_test_data): New variable.
65505         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65506         (round_test_data): New variable.
65507         (round_test): Run tests with RUN_TEST_LOOP_f_f.
65508         (sin_test_data): New variable.
65509         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
65510         (sin_tonearest_test_data): New variable.
65511         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65512         (sin_towardzero_test_data): New variable.
65513         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65514         (sin_downward_test_data): New variable.
65515         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65516         (sin_upward_test_data): New variable.
65517         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65518         (sinh_test_data): New variable.
65519         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
65520         (sinh_tonearest_test_data): New variable.
65521         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65522         (sinh_towardzero_test_data): New variable.
65523         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65524         (sinh_downward_test_data): New variable.
65525         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65526         (sinh_upward_test_data): New variable.
65527         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65528         (sqrt_test_data): New variable.
65529         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
65530         (tan_test_data): New variable.
65531         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
65532         (tan_tonearest_test_data): New variable.
65533         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65534         (tan_towardzero_test_data): New variable.
65535         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
65536         (tan_downward_test_data): New variable.
65537         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
65538         (tan_upward_test_data): New variable.
65539         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
65540         (tanh_test_data): New variable.
65541         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
65542         (tgamma_test_data): New variable.
65543         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
65544         (trunc_test_data): New variable.
65545         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
65546         (y0_test_data): New variable.
65547         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
65548         (y1_test_data): New variable.
65549         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
65550         (significand_test_data): New variable.
65551         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
65552
65553 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
65554
65555         [BZ #12387]
65556         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
65557
65558 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
65559
65560         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
65561
65562 2013-05-10  Andreas Jaeger  <aj@suse.de>
65563
65564         [BZ #15448]
65565         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
65566         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
65567
65568 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
65569
65570         * math/gen-libm-test.pl (adjust_arg): New function.
65571         (special_functions): Handle generating output in both functions
65572         and arrays.
65573         (parse_args): Likewise.
65574         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
65575         $in_func argument to parse_args.
65576         * math/libm-test.inc (struct test_f_f_data): New type.
65577         (IF_ROUND_INIT_): New macro.
65578         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
65579         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
65580         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
65581         (IF_ROUND_INIT_FE_UPWARD): Likewise.
65582         (ROUND_RESTORE_): Likewise.
65583         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
65584         (ROUND_RESTORE_FE_TONEAREST): Likewise.
65585         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
65586         (ROUND_RESTORE_FE_UPWARD): Likewise.
65587         (RUN_TEST_LOOP_f_f): New macro.
65588         (acos_test_data): New variable.
65589         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
65590         (acos_tonearest_test_data): New variable.
65591         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
65592
65593 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65594
65595         * benchtests/bench-skeleton.c (startup): Fix coding style.
65596
65597 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
65598
65599         [BZ #6809]
65600         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
65601         negative infinity argument.
65602         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
65603         negative infinity argument.
65604         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
65605         negative infinity argument.
65606         * math/libm-test.inc (tgamma_test): Expect errno to be set for
65607         domain errors.
65608
65609 2013-05-10  Florian Weimer  <fweimer@redhat.com>
65610
65611         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
65612         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
65613         * iconv/iconv_prog.c (main): Likewise.
65614         * locale/programs/charmap-dir.c (charmap_readdir)
65615         (fopen_uncompressed): Likewise.
65616         * locale/programs/locfile.c (siblings_uncached)
65617         (write_locale_data): Use lstat64 instead of lstat.
65618         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
65619         stat.
65620
65621 2013-05-10  Andreas Jaeger  <aj@suse.de>
65622
65623         [BZ #15395]
65624         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
65625         localization.
65626         Include <locale.h>.
65627
65628 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
65629
65630         * elf/dl-close.c (_dl_close_worker): Add comments.
65631
65632 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
65633
65634         [BZ #15359]
65635         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
65636         high part of pi/2.
65637         (__ieee754_rem_pio2l): Update comments.
65638
65639         [BZ #15429]
65640         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
65641         high part of pi/2.
65642         (__ieee754_rem_pio2l): Update comments.
65643
65644         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
65645         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
65646
65647         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
65648         M_PI_4l.
65649
65650         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
65651         (M_PI_34_LOG10El): Likewise.
65652         (M_PI2_LOG10El): Likewise.
65653         (M_PI4_LOG10El): Likewise.
65654         (M_PI_LOG10El): Likewise.
65655
65656 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65657
65658         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65659
65660 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
65661
65662         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
65663         (MINUS_ZERO_INIT): Likewise.
65664         (PLUS_INFTY_INIT): Likewise.
65665         (MINUS_INFTY_INIT): Likewise.
65666         (QNAN_VALUE_INIT): Likewise.
65667         (MAX_VALUE_INIT): Likewise.
65668         (MIN_VALUE_INIT): Likewise.
65669         (MIN_SUBNORM_VALUE_INIT): Likewise.
65670         (plus_zero): Initialize with PLUS_ZERO_INIT.
65671         (minus_zero): Initialize with MINUS_ZERO_INIT.
65672         (plus_infty): Initialize with PLUS_INFTY_INIT.
65673         (minus_infty): Initialize with MINUS_INFTY_INIT.
65674         (qnan_value): Initialize with QNAN_VALUE_INIT.
65675         (max_value): Initialize with MAX_VALUE_INIT.
65676         (min_value): Initialize with MIN_VALUE_INIT.
65677         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
65678
65679         * math/libm-test.inc (RUN_TEST_if_f): New macro.
65680         (jn_test): Use TEST_if_f instead of TEST_ff_f.
65681         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
65682         (yn_test): Use TEST_if_f instead of TEST_ff_f.
65683
65684         * math/libm-test.inc (RUN_TEST_f_f): New macro.
65685         (RUN_TEST_2_f): Likewise.
65686         (RUN_TEST_ff_f): Likewise.
65687         (RUN_TEST_fi_f): Likewise.
65688         (RUN_TEST_fl_f): Likewise.
65689         (RUN_TEST_fff_f): Likewise.
65690         (RUN_TEST_c_f): Likewise.
65691         (RUN_TEST_f_f1): Likewise.
65692         (RUN_TEST_fF_f1): Likewise.
65693         (RUN_TEST_fI_f1): Likewise.
65694         (RUN_TEST_ffI_f1): Likewise.
65695         (RUN_TEST_c_c): Likewise.
65696         (RUN_TEST_cc_c): Likewise.
65697         (RUN_TEST_f_i): Likewise.
65698         (RUN_TEST_f_i_tg): Likewise.
65699         (RUN_TEST_ff_i_tg): Likewise.
65700         (RUN_TEST_f_b): Likewise.
65701         (RUN_TEST_f_b_tg): Likewise.
65702         (RUN_TEST_f_l): Likewise.
65703         (RUN_TEST_f_L): Likewise.
65704         (RUN_TEST_sincos): Likewise.
65705         * math/gen-libm-test.pl (new_test): Take new argument to indicate
65706         whether to show exceptions.  Do not include ");\n" in return
65707         value.
65708         (special_functions): Output call to RUN_TEST_sincos instead of
65709         check_float calls.  Update calls to new_test.
65710         (parse_args): Output call to single RUN_TEST_* macro instead of
65711         check_* calls and other assignments.  Update calls to new_test.
65712
65713         [BZ #2546]
65714         [BZ #2560]
65715         [BZ #5159]
65716         [BZ #15426]
65717         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
65718         input to result for tgamma overflow.
65719         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
65720         (gamma_coeff): New variable.
65721         (NCOEFF): New macro.
65722         (gamma_positive): New function.
65723         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
65724         underflow here.  Use gamma_positive instead of exp (lgamma) for
65725         other arguments.
65726         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
65727         (gamma_coeff): New variable.
65728         (NCOEFF): New macro.
65729         (gammaf_positive): New function.
65730         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
65731         underflow here.  Use gamma_positive instead of exp (lgamma) for
65732         other arguments.
65733         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
65734         (gamma_coeff): New variable.
65735         (NCOEFF): New macro.
65736         (gammal_positive): New function.
65737         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
65738         underflow here.  Use gamma_positive instead of exp (lgamma) for
65739         other arguments.
65740         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
65741         (gamma_coeff): New variable.
65742         (NCOEFF): New macro.
65743         (gammal_positive): New function.
65744         (__ieee754_gammal_r): Handle positive infinity, overflow and
65745         underflow here.  Handle NaN the same as positive infinity.  Remove
65746         check x < 0xffffffff for negative integers.  Use gamma_positive
65747         instead of exp (lgamma) for other arguments.
65748         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
65749         (gamma_coeff): New variable.
65750         (NCOEFF): New macro.
65751         (gammal_positive): New function.
65752         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
65753         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
65754         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
65755         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
65756         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
65757         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
65758         * sysdeps/generic/math_private.h (__gamma_productf): New
65759         prototype.
65760         (__gamma_product): Likewise.
65761         (__gamma_productl): Likewise.
65762         * math/Makefile (libm-calls): Add gamma_product.
65763         * math/libm-test.inc (tgamma_test): Add more tests.
65764         * sysdeps/i386/fpu/libm-test-ulps: Update.
65765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65766
65767 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
65768
65769         * benchtests/bench-skeleton.c (main): Preheat CPU.
65770
65771 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
65772
65773         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
65774
65775 2013-05-07  Roland McGrath  <roland@hack.frob.com>
65776
65777         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
65778         and _dl_skip_args_internal.
65779
65780 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
65781
65782         * manual/message.texi (Message Translation): Talk about users.
65783         Message to key mapping impacts design.
65784
65785 2013-05-06  Roland McGrath  <roland@hack.frob.com>
65786
65787         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
65788
65789         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
65790
65791         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
65792         * sysdeps/wordsize-64/glob64.c: ... here.
65793
65794         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
65795         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
65796         New macros.
65797
65798         * debug/getlogin_r_chk.c: Moved to ...
65799         * login/getlogin_r_chk.c: ... here.
65800         * debug/Makefile (routines): Move getlogin_r_chk to ...
65801         * login/Makefile (routines): ... here.
65802         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
65803         * login/Versions (libc: GLIBC_2.4): ... here.
65804
65805         * io/poll.c (__poll): Renamed from poll.
65806         Add libc_hidden_def.
65807         (poll): Define as weak alias.
65808
65809         * debug/ptsname_r_chk.c: Moved to ...
65810         * login/ptsname_r_chk.c: ... here.
65811         * debug/Makefile (routines): Move ptsname_r_chk to ...
65812         * login/Makefile (routines): ... here.
65813         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
65814         * login/Versions (libc: GLIBC_2.4): ... here.
65815
65816         * posix/getlogin.c: Moved to ...
65817         * login/getlogin.c: ... here.
65818         * posix/getlogin_r.c: Moved to ...
65819         * login/getlogin_r.c: ... here.
65820         * posix/getlogin_r.c: Moved to ...
65821         * login/getlogin_r.c: ... here.
65822         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
65823         * login/Makefile (routines): ... here.
65824         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
65825         * login/Versions (libc: GLIBC_2.0): ... here.
65826
65827         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
65828         (setrlimit): Define as weak alias.
65829
65830         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
65831         Call __ names for open, ftruncate, and close.
65832         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
65833         (truncate): Define as weak alias.
65834
65835 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
65836
65837         * math/gen-libm-test.pl (parse_args): Initialize x before each
65838         test of frexp, modf and remquo.
65839
65840         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
65841         test signgam value.
65842
65843 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65844
65845         [BZ #15418]
65846         [BZ #15419]
65847         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
65848         internal tests.
65849         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
65850
65851 2013-05-06  Roland McGrath  <roland@hack.frob.com>
65852
65853         * elf/dl-writev.h: New file.
65854         * elf/dl-misc.c: Include it.
65855         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
65856         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
65857
65858 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
65859
65860         * math/libm-test.inc (noXFails): Remove variable.
65861         (noXPasses): Likewise.
65862         (BUILD_COMPLEX_INT): Remove macro.
65863         (print_screen): Remove xfail argument.
65864         (print_screen_max_error): Likewise.
65865         (update_stats): Likewise.
65866         (print_max_error): Likewise.  Update calls to other affected
65867         functions.
65868         (print_complex_max_error): Likewise.
65869         (test_single_exception): Update calls to print_screen.
65870         (test_single_errno): Likewise.
65871         (check_float_internal): Remove xfail argument.  Update calls to
65872         other affected functions.
65873         (check_float): Likewise.
65874         (check_complex): Likewise.
65875         (check_int): Likewise.
65876         (check_long): Likewise.
65877         (check_bool): Likewise.
65878         (check_longlong): Likewise.
65879         (main): Don't print noXFails and noXPasses.
65880         * math/gen-libm-test.pl (top level): Don't mention expected
65881         failure handling in comment.
65882         (new_test): Don't handle expected failures.
65883         (parse_args): Don't mention expected failure handling in comment.
65884         (generate_testfile): Don't handle expected failures.
65885         (parse_ulps): Likewise.
65886         (print_ulps_file): Likewise.
65887         (get_failure): Remove function.
65888         (output_test): Don't handle expected failures.
65889         * make/README.libm-test: Don't mention expected failure handling.
65890
65891         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
65892         (minus_zero): Likewise.
65893         (plus_infty): Likewise.
65894         (minus_infty): Likewise.
65895         (qnan_value): Likewise.
65896         (max_value): Likewise.
65897         (min_value): Likewise.
65898         (min_subnorm_value): Likewise.
65899         (initialize): Do not initialize those variables dynamically.
65900
65901 2013-05-03  Roland McGrath  <roland@hack.frob.com>
65902
65903         * io/open.c (__open_2): Moved to ...
65904         * io/open_2.c: ... this new file.
65905         * io/open64.c (__open64_2): Moved to ...
65906         * io/open64_2.c: ... this new file.
65907         * io/openat.c (__openat_2): Moved to ...
65908         * io/openat_2.c: ... this new file.
65909         * io/openat64.c (__openat64_2): Moved to ...
65910         * io/openat64_2.c: ... this new file.
65911         * io/Makefile (routines): Add them.
65912         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
65913         * sysdeps/unix/sysv/linux/open_2.c: File removed.
65914         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
65915         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
65916         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
65917         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
65918         (__openat64): Add hidden_ver.
65919         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
65920         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
65921
65922         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
65923         Separately conditionalize setting of GLRO(dl_sysinfo) so
65924         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
65925         as well, but the actual setting is only under [NEED_DL_SYSINFO].
65926
65927 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65928
65929         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
65930         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
65931         definition.
65932         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
65933         * sysdeps/unix/sysv/linux/powerpc/init-first.c
65934         (_libc_vdso_platform_setup): Add __vdso_time initialization.
65935         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
65936         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
65937
65938 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
65939
65940         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
65941         test signgam value.
65942
65943         * math/libm-test.inc (hypot_test): Do not use
65944         IGNORE_ZERO_INF_SIGN.
65945
65946 2013-05-03  Andreas Jaeger  <aj@suse.de>
65947
65948         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
65949         Linux 3.9.
65950         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
65951         (PF_MAX): Adjust for VSOCK change.
65952
65953 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65954
65955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65956
65957 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
65958
65959         [BZ #15264]
65960         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
65961         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
65962         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
65963
65964 2013-05-02  David S. Miller  <davem@davemloft.net>
65965
65966         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65967
65968 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
65969
65970         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
65971
65972 2013-05-01  Roland McGrath  <roland@hack.frob.com>
65973
65974         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
65975
65976 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
65977
65978         [BZ #14952]
65979         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
65980         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
65981         Use __attribute__ ((__gnu_inline__)).
65982         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
65983         Don't use __attribute__ ((__gnu_inline__)).
65984
65985 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
65986
65987         [BZ #15423]
65988         * math/s_catan.c (__catan): Handle small real or imaginary part of
65989         input specially to avoid spurious underflow.
65990         * math/s_catanf.c (__catanf): Likewise.
65991         * math/s_catanh.c (__catanh): Likewise.
65992         * math/s_catanhf.c (__catanhf): Likewise.
65993         * math/s_catanhl.c (__catanhl): Likewise.
65994         * math/s_catanl.c (__catanl): Likewise.
65995         * math/libm-test.inc (catan_test): Add more tests.
65996         (catanh_test): Likewise.
65997         * sysdeps/i386/fpu/libm-test-ulps: Update.
65998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65999
66000 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66001
66002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66003
66004 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
66005
66006         [BZ #15416]
66007         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
66008         accurately for denominator in atan2.
66009         * math/s_catanf.c (__catanf): Likewise.
66010         * math/s_catanh.c (__catanh): Likewise.
66011         * math/s_catanhf.c (__catanhf): Likewise.
66012         * math/s_catanhl.c (__catanhl): Likewise.
66013         * math/s_catanl.c (__catanl): Likewise.
66014         * math/libm-test.inc (catan_test): Add more tests.
66015         (catanh_test): Likewise.
66016         * sysdeps/i386/fpu/libm-test-ulps: Update.
66017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66018
66019 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66020
66021         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
66022
66023         * benchtests/Makefile (bench): Remove slow benchmarks.
66024         * benchtests/atan-inputs: Add slow benchmark inputs.
66025         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
66026         (BENCH_FUNC): Accept variant offset.
66027         (VARIANT): Define.
66028         * benchtests/bench-skeleton.c (main): Run benchmark for each
66029         variant.
66030         * benchtests/cos-inputs: Add slow benchmark inputs.
66031         * benchtests/exp-inputs: Likewise.
66032         * benchtests/pow-inputs: Likewise.
66033         * benchtests/sin-inputs: Likewise.
66034         * benchtests/slowatan-inputs: Remove.
66035         * benchtests/slowatan.c: Remove.
66036         * benchtests/slowcos-inputs: Remove.
66037         * benchtests/slowcos.c: Remove.
66038         * benchtests/slowexp-inputs: Remove.
66039         * benchtests/slowexp.c: Remove.
66040         * benchtests/slowpow-inputs: Remove.
66041         * benchtests/slowpow.c: Remove.
66042         * benchtests/slowsin-inputs: Remove.
66043         * benchtests/slowsin.c: Remove.
66044         * benchtests/slowtan-inputs: Remove.
66045         * benchtests/slowtan.c: Remove.
66046         * benchtests/tan-inputs: Add slow benchmark inputs.
66047         * scripts/bench.pl: Parse comments and directives.
66048
66049         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
66050         in CPPFLAGS.
66051         ($(objpfx)bench-%.c): Remove *-ITER.
66052         * benchtests/bench-modf.c: Remove definition of ITER.
66053         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
66054         (main): Loop for DURATION seconds instead of fixed number of
66055         iterations.
66056         * scripts/bench.pl: Don't expect iterations in parameters.
66057
66058 2013-04-29  Roland McGrath  <roland@hack.frob.com>
66059
66060         * io/fchdir.c (__fchdir): Renamed from fchdir.
66061         (fchdir): Define as weak alias.
66062
66063 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
66064
66065         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
66066         (ERRNO_EDOM): Likewise.
66067         (ERRNO_ERANGE): Likewise.
66068         (noErrnoTests): New variable.
66069         (init_max_error): Set errno to 0.
66070         (test_single_errno): New function.
66071         (test_errno): Likewise.
66072         (check_float_internal): Call test_errno.  Set errno to 0.
66073         (check_complex): Refer to errno tests in comment.
66074         (check_int): Call test_errno.  Set errno to 0.
66075         (check_long): Likewise.
66076         (check_bool): Likewise.
66077         (check_longlong): Likewise.
66078         (cos_test): Use ERRNO_* flags for errno tests instead of
66079         check_int.
66080         (expm1_test): Likewise.
66081         (fmod_test): Likewise.
66082         (ilogb_test): Likewise.
66083         (lgamma_test): Likewise.
66084         (pow_test): Likewise.
66085         (remainder_test): Likewise.
66086         (sin_test): Likewise.
66087         (tan_test): Likewise.
66088         (yn_test): Likewise.
66089         (initialize): Set errno to 0.
66090         (main): Print number of errno tests.
66091         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
66092
66093 2013-04-29  Andreas Jaeger  <aj@suse.de>
66094
66095         [BZ #15084]
66096         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
66097         and RES_USEVC.
66098
66099         [BZ #15085]
66100         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
66101         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
66102         unimplemented.
66103
66104         [BZ #15380]
66105         * stdlib/random.c (__initstate): Return NULL if
66106         __initstate fails.
66107
66108         [BZ #15086]
66109         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
66110         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
66111         RES_SNGLKUPREOP.
66112
66113 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66114
66115         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66116
66117 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
66118
66119         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
66120         of individual tests.
66121         (casin_test): Likewise.
66122         (casinh_test): Likewise.
66123
66124 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
66125
66126         [BZ #15409]
66127         * math/s_catan.c (__catan): Handle arguments with large real or
66128         imaginary part separately without squaring.
66129         * math/s_catanf.c (__catanf): Likewise.
66130         * math/s_catanh.c (__catanh): Likewise.
66131         * math/s_catanhf.c (__catanhf): Likewise.
66132         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
66133         and redefine.
66134         (__catanhl): Handle arguments with large real or imaginary part
66135         separately without squaring.
66136         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
66137         and redefine.
66138         (__catanl): Handle arguments with large real or imaginary part
66139         separately without squaring.
66140         * math/libm-test.inc (catan_test): Add more tests.
66141         (catanh_test): Likewise.
66142         * sysdeps/i386/fpu/libm-test-ulps: Update.
66143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66144
66145 2013-04-27  Andreas Jaeger  <aj@suse.de>
66146
66147         [BZ #15007]
66148         * stdlib/stdlib.h: Update guards for qecvt.
66149         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
66150         <stdlib.h>.
66151
66152 2013-04-27  Allan McRae  <allan@archlinux.org>
66153
66154         * sysdeps/i386/fpu/libm-test-ulps: Update.
66155
66156 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
66157
66158         [BZ #15406]
66159         * math/s_catan.c: Include <float.h>.
66160         (__catan): Ensure underflow exception occurs for underflowed
66161         result.
66162         * math/s_catanf.c: Include <float.h>.
66163         (__catanf): Ensure underflow exception occurs for underflowed
66164         result.
66165         * math/s_catanh.c: Include <float.h>.
66166         (__catanh): Ensure underflow exception occurs for underflowed
66167         result.
66168         * math/s_catanhf.c: Include <float.h>.
66169         (__catanhf): Ensure underflow exception occurs for underflowed
66170         result.
66171         * math/s_catanhl.c: Include <float.h>.
66172         (__catanhl): Ensure underflow exception occurs for underflowed
66173         result.
66174         * math/s_catanl.c: Include <float.h>.
66175         (__catanl): Ensure underflow exception occurs for underflowed
66176         result.
66177         * math/libm-test.inc (catan_test): Add more tests.
66178         (catanh_test): Likewise.
66179
66180         [BZ #15405]
66181         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
66182         underflowed result.
66183         * math/s_ccoshf.c (__ccoshf): Likewise.
66184         * math/s_ccoshl.c (__ccoshl): Likewise.
66185         * math/s_csin.c (__csin): Likewise.
66186         * math/s_csinf.c (__csinf): Likewise.
66187         * math/s_csinh.c (__csinh): Likewise.
66188         * math/s_csinhf.c (__csinhf): Likewise.
66189         * math/s_csinhl.c (__csinhl): Likewise.
66190         * math/s_csinl.c (__csinl): Likewise.
66191         * math/libm-test.inc (ccos_test): Add more tests.
66192         (ccosh_test): Likewise.
66193         (csin_test): Likewise.
66194         (csinh_test): Likewise.
66195
66196 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66197
66198         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
66199         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
66200         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
66201         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
66202         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
66203         powerpc/power5+/fpu folders.
66204         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
66205
66206
66207 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
66208
66209         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
66210
66211 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
66212
66213         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
66214         additions to variable.
66215         [$(config-machine) = x86_64] (modules-names): Likewise.
66216         ($(objpfx)tst-audit3): Remove dependency.
66217         ($(objpfx)tst-audit3.out): Likewise.
66218         ($(objpfx)tst-audit4): Likewise.
66219         ($(objpfx)tst-audit4.out): Likewise.
66220         ($(objpfx)tst-audit5): Likewise.
66221         ($(objpfx)tst-audit5.out): Likewise.
66222         ($(objpfx)tst-audit6): Likewise.
66223         ($(objpfx)tst-audit6.out): Likewise.
66224         ($(objpfx)tst-audit7): Likewise.
66225         ($(objpfx)tst-audit7.out): Likewise.
66226         (tst-audit3-ENV): Remove variable.
66227         (tst-audit4-ENV): Likewise.
66228         (tst-audit5-ENV): Likewise.
66229         (tst-audit6-ENV): Likewise.
66230         (tst-audit7-ENV): Likewise.
66231         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
66232         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
66233         addition to variable.
66234         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
66235         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
66236         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
66237         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
66238         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
66239         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
66240         tst-audit3, tst-audit4 and tst-audit5.
66241         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
66242         tst-audit6 and tst-audit7.
66243         [$(subdir) = elf] (modules-names): Add audit modules for those
66244         tests.
66245         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
66246         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
66247         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
66248         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
66249         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
66250         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
66251         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
66252         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
66253         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
66254         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
66255         [$(subdir) = elf] (tst-audit3-ENV): New variable.
66256         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
66257         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
66258         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
66259         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
66260         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
66261         Likewise.
66262         [$(subdir) = elf && $(config-cflags-avx) = yes]
66263         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
66264         [$(subdir) = elf && $(config-cflags-avx) = yes]
66265         (CFLAGS-tst-auditmod4a.c): Likewise.
66266         [$(subdir) = elf && $(config-cflags-avx) = yes]
66267         (CFLAGS-tst-auditmod4b.c): Likewise.
66268         [$(subdir) = elf && $(config-cflags-avx) = yes]
66269         (CFLAGS-tst-auditmod6b.c): Likewise.
66270         [$(subdir) = elf && $(config-cflags-avx) = yes]
66271         (CFLAGS-tst-auditmod6c.c): Likewise.
66272         [$(subdir) = elf && $(config-cflags-avx) = yes]
66273         (CFLAGS-tst-auditmod7b.c): Likewise.
66274         * elf/tst-audit3.c: Move to ...
66275         * sysdeps/x86_64/tst-audit3.c: ... here.
66276         * elf/tst-audit4.c: Move to ...
66277         * sysdeps/x86_64/tst-audit4.c: ... here.
66278         * elf/tst-audit5.c: Move to ...
66279         * sysdeps/x86_64/tst-audit5.c: ... here.
66280         * elf/tst-audit6.c: Move to ...
66281         * sysdeps/x86_64/tst-audit6.c: ... here.
66282         * elf/tst-audit7.c: Move to ...
66283         * sysdeps/x86_64/tst-audit7.c: ... here.
66284         * elf/tst-auditmod3a.c: Move to ...
66285         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
66286         * elf/tst-auditmod3b.c: Move to ...
66287         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
66288         * elf/tst-auditmod4a.c: Move to ...
66289         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
66290         * elf/tst-auditmod4b.c: Move to ...
66291         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
66292         * elf/tst-auditmod5a.c: Move to ...
66293         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
66294         * elf/tst-auditmod5b.c: Move to ...
66295         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
66296         * elf/tst-auditmod6a.c: Move to ...
66297         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
66298         * elf/tst-auditmod6b.c: Move to ...
66299         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
66300         * elf/tst-auditmod6c.c: Move to ...
66301         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
66302         * elf/tst-auditmod7a.c: Move to ...
66303         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
66304         * elf/tst-auditmod7b.c: Move to ...
66305         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
66306
66307 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
66308
66309         [BZ #15366]
66310         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
66311         define unconditionally.
66312         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
66313         define unconditionally.
66314         (INT8_C, INT16_C, etc.): Likewise.
66315
66316 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
66317
66318         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
66319         __ehdr_start with hidden visibility.
66320
66321         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
66322
66323 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
66324
66325         * math/libm-test.inc (cos_test): Use accurate hex constants.
66326         (sincost_test): Likewise.
66327
66328 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
66329
66330         * math/libm-test.inc (catan_test): Add more tests.
66331         (catanh_test): Likewise.
66332
66333         * math/s_catanf.c (__catanf): Use suffixed floating-point
66334         constants.
66335         * math/s_catanhf.c (__catanhf): Likewise.
66336         * math/s_catanhl.c (__catanhl): Likewise.
66337         * math/s_catanl.c (__catanl): Likewise.
66338
66339         [BZ #15394]
66340         * math/s_catan.c (__catan): Calculate imaginary part of result
66341         with log1p not log unless computing log of number close to 0.
66342         * math/s_catanf.c (__catanf): Likewise.
66343         * math/s_catanl.c (__catanl): Likewise.
66344         * math/s_catanh.c (__catanh): Calculate real part of result with
66345         log1p not log unless computing log of number close to 0.
66346         * math/s_catanhf.c (__catanhf): Likewise.
66347         * math/s_catanhl.c (__catanhl): Likewise.
66348         * math/libm-test.inc (catan_test): Add more tests.
66349         (catanh_test): Likewise.
66350         * sysdeps/i386/fpu/libm-test-ulps: Update.
66351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66352
66353 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
66354
66355         * benchtests/Makefile: Mention files in which fast and slow
66356         paths of math functions are implemented.
66357
66358 2013-04-23  Roland McGrath  <roland@hack.frob.com>
66359
66360         * sysdeps/posix/timespec_get.c: New file.
66361
66362 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66363
66364         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
66365         POWER.
66366         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
66367         for POWER.
66368         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
66369         powerpc/power5/fpu folders.
66370         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
66371         * benchtests/Makefile: Add modf testcase.
66372         * benchtests/bench-modf.c: New file: Benchmark test for mo
66373
66374 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
66375
66376         [BZ #14888]
66377         * time/Makefile (tests): Add tst-strptime-whitespace.
66378         * time/strptime_l.c (get_number): Use ISSPACE.
66379         (__strptime_internal): Likewise.
66380         * time/tst-strptime-whitespace.c: New test case.
66381
66382 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
66383
66384         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
66385         member.
66386         (_nss_files_init): Set it here.
66387
66388 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
66389
66390         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
66391         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
66392         unsigned.
66393
66394 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
66395
66396         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
66397
66398 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66399
66400         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
66401         size just once.
66402
66403 2013-04-21  David S. Miller  <davem@davemloft.net>
66404
66405         * po/ru.po: Update Russion translation from translation project.
66406
66407 2013-04-17  Adam Conrad  <adconrad@0c3.net>
66408
66409         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
66410         and setfsgid.
66411
66412 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
66413
66414         * configure.in: Remove i386 configure warning. Remove i386 case.
66415         * configure: Regenerate.
66416         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
66417         Add example to error message.
66418         * sysdeps/i386/configure: Regenerate.
66419
66420 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
66421
66422         * benchtests/Makefile (bench): Add cos, tan, slowcos and
66423         slowtan.
66424         * benchtests/cos-inputs: New file.
66425         * benchtests/slowcos-inputs: New file.
66426         * benchtests/slowcos.c: New file.
66427         * benchtests/slowtan-inputs: New file.
66428         * benchtests/slowtan.c: New file.
66429         * benchtests/tan-inputs: New file.
66430
66431 2013-04-16  Roland McGrath  <roland@hack.frob.com>
66432
66433         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
66434         considered kosher.
66435
66436 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66437
66438         * benchtests/Makefile: Include cppflags-iterator.mk to add
66439         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
66440
66441         * Makefile.in (bench-clean): New target.
66442         * benchtests/Makefile (bench-clean): Likewise.
66443
66444 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
66445
66446         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
66447
66448 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
66449
66450         * stdio-common/tstdiomisc.c: Fix coding-style violation.
66451
66452 2013-04-15  Andreas Schwab  <schwab@suse.de>
66453
66454         * nscd/grpcache.c (cache_addgr): Properly check for short write.
66455         * nscd/initgrcache.c (addinitgroupsX): Likewise.
66456         * nscd/pwdcache.c (cache_addpw): Likewise.
66457         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
66458         more than recsize.
66459
66460 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
66461
66462         * benchtests/Makefile (bench): Write all output to
66463         bench-out.tmp together.
66464
66465 2013-04-15  Andreas Schwab  <schwab@suse.de>
66466
66467         * nscd/nscd.c (main): Don't fork again after closing files.
66468
66469 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
66470
66471         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
66472
66473         * benchtests/Rules (bench-deps): Collect dependencies into a
66474         single variable.  Add Makefile to dependencies.
66475         ($(objpfx)bench-%.c): Depend on bench-deps.
66476
66477 2013-04-12  Roland McGrath  <roland@hack.frob.com>
66478             Xavier Roche  <roche+kml2@exalead.com>
66479
66480         [BZ #15361]
66481         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
66482         just that it's a file descriptor.
66483         * manual/llio.texi (Synchronizing AIO Operations): Update description
66484         for EBADF error from aio_fsync.
66485
66486 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
66487
66488         * Rules (bench): Move target definition...
66489         * benchtests/Makefile: ... here.
66490
66491 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
66492
66493         * math/libm-test.inc (cos_test): Fix PI/2 test.
66494         (sincos_test): Likewise.
66495         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
66496         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
66497
66498 2013-04-11  Andreas Schwab  <schwab@suse.de>
66499
66500         [BZ #13988]
66501         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
66502         accept exponent character only when digits were seen.
66503         * stdio-common/Makefile (tests): Add bug26.
66504         * stdio-common/bug26.c: New file.
66505
66506         [BZ #14293]
66507         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
66508         non-freeable.
66509
66510 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
66511
66512         * Makeconfig (rtld-prefix): Define built linker prefix.
66513         * Rules (run-bench): Use it.
66514         * math/Makefile (run-regen-ulps): Likewise.
66515
66516         * Rules (bench): Remove eval.
66517
66518 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66519             Roland McGrath  <roland@hack.frob.com>
66520             Ondrej Bilka  <neleai@seznam.cz>
66521
66522         [BZ #15346]
66523         * time/getdate.c: Include ctype.h and alloca.h.
66524         (__getdate_r): Trim leading and trailing spaces of input.
66525         * time/tst-getdate.c (tests): Add tests with leading and
66526         trailing spaces.
66527
66528 2013-04-08  Roland McGrath  <roland@hack.frob.com>
66529
66530         [BZ #14280]
66531         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
66532         when computing value.
66533
66534 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
66535
66536         * math/README.libm-test (How can I generate "libm-test-ulps"?):
66537         Use testrun.sh to run libm tests.
66538
66539         [BZ #15309]
66540         * elf/dl-open.c (dl_open_worker): memset all of seen array.
66541
66542 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
66543
66544         [BZ #15264]
66545         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
66546
66547 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
66548
66549         * Makefile.in (regen-ulps): New target.
66550         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
66551         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
66552         [ifneq (no,$(PERL)] (regen-ulps): New target.
66553         [ifeq (no,$(PERL)] (regen-ulps): New target.
66554         * math/libm-test.inc (ulps_file_name): Define.
66555         (output_dir): New variable.
66556         (options): Add "output-dir" option.
66557         (parse_opt): Handle 'o' case.
66558         (main): If output_dir is non-NULL use it as a prefix
66559         otherwise use "".
66560         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
66561
66562 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
66563
66564         [BZ #10060, #10062]
66565         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
66566         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
66567         fail configure if __sync_val_compare_and_swap is not inlined.
66568         * sysdeps/i386/configure: Regenerate.
66569         * configure.in: Build for i686 when configured for i386.
66570         * configure: Regenerate.
66571         * README: Remove i386 reference.
66572
66573 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
66574
66575         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
66576         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66577
66578 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66579
66580         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
66581         (lmsnanval): New variables.
66582         (F): Add conversion tests.
66583         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
66584         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
66585
66586         * stdio-common/tstdiomisc.c (F): Properly collect individual
66587         tests' results.
66588
66589         [BZ #14686, #15336]
66590         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
66591         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
66592         Instead, use input NaN values or generate a qNaN by arithmetic
66593         operation.  Also fix bugs to comply with the standard.
66594         * math/libm-test.inc (remainder_test): Add more tests.
66595
66596         [BZ #15335, #15342]
66597         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
66598         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
66599         input NaN values or generate a qNaN by arithmetic operation.
66600
66601         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
66602         unreachable code.
66603
66604         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
66605         definitions.
66606
66607 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
66608
66609         [BZ #14478]
66610         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
66611         underflowed result.
66612         * math/s_cexpf.c (__cexpf): Likewise.
66613         * math/s_cexpl.c (__cexpl): Likewise.
66614         * math/libm-test.inc (cexp_test): Add more tests.
66615
66616 2013-04-03  Andreas Schwab  <schwab@suse.de>
66617
66618         [BZ #15330]
66619         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
66620         order arrays from heap if bigger than alloca cutoff.
66621
66622 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
66623
66624         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
66625         (SNAN_TESTS_double): Refer to GCC PR56831.
66626         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
66627         GCC PR56828.
66628
66629 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
66630
66631         * Rules (bench): Move bench.out after the run is complete.
66632
66633         * Rules (bench): Echo currently running benchmark.
66634
66635         * benchtests/Makefile (bench): Add atan and slowatan.
66636         * benchtests/atan-inputs: New file.
66637         * benchtests/slowatan-inputs: New file.
66638         * benchtests/slowatan.c: New file.
66639
66640         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
66641         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
66642         its value.
66643
66644         [BZ #15305]
66645         * sysdeps/unix/sysv/linux/kernel-features.h
66646         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
66647         __ASSUME_XFS_RESTRICTED_CHOWN.
66648         * sysdeps/unix/sysv/linux/pathconf.c
66649         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
66650         Save and restore errno.
66651
66652 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
66653
66654         [BZ #15327]
66655         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
66656         arguments using __kernel_casinh.
66657         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
66658         arguments using __kernel_casinhf.
66659         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
66660         arguments using __kernel_casinhl.
66661         * math/libm-test.inc (cacosh_test): Add more tests.
66662         * sysdeps/i386/fpu/libm-test-ulps: Update.
66663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66664
66665 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
66666
66667         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
66668         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
66669
66670         * bench/Makefile (bench): Add sin and slowsin.
66671         * benchtests/sin-inputs: New file.
66672         * benchtests/slowsin-inputs: New file.
66673         * benchtests/slowsin.c: New file.
66674
66675         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
66676         (bench): Add slowexp and slowpow.
66677         (exp-ITER): Increase iterations.
66678         (pow-ITER): Likewise.
66679         * benchtests/exp-inputs: Change input.
66680         * benchtests/pow-inputs: Likewise.
66681         * benchtests/slowexp-inputs: New file.
66682         * benchtests/slowexp.c: New file.
66683         * benchtests/slowpow-inputs: New file.
66684         * benchtests/slowpow.c: New file.
66685
66686 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66687
66688         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
66689         instructions.
66690         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
66691         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
66692         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
66693         * benchtests/Makefile: Add rint benchtest.
66694         * benchtests/rint-inputs: Input for rint benchtest.
66695
66696 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66697
66698         * Versions.def (libm): Add GLIBC_2.18.
66699         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
66700         hidden libm prototypes.
66701         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
66702         * math/Makefile (libm-calls): Add s_issignaling.
66703         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
66704         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
66705         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
66706         declaration.
66707         * math/math.h [__USE_GNU] (issignaling): New macro.
66708         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
66709         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
66710         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
66711         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
66712         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
66713         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
66714         * manual/arith.texi (issignaling): New section.
66715         * manual/libm-err-tab.pl (@all_functions): Update comment.
66716         * math/gen-libm-test.pl (parse_args): Apply special handling for
66717         issignaling.
66718         * math/libm-test.inc (print_float, issignaling_test): New
66719         functions.
66720         (check_float_internal): Add issignaling checks.
66721         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
66722         default definition.
66723         * sysdeps/powerpc/math-tests.h: New file.
66724         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
66725         tests.
66726         * math/test-snan.c (TEST_FUNC): Likewise.
66727
66728 2013-03-30  David S. Miller  <davem@davemloft.net>
66729
66730         * po/de.po: Update from translation team.
66731
66732 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
66733
66734         [BZ #10357]
66735         * math/k_casinh.c (__kernel_casinh): Handle arguments with
66736         imaginary part less than 1.0 and real part less than 0.5
66737         specially.
66738         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66739         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66740         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
66741         (cacos_test): Add more tests.
66742         (casin_test): Likewise.
66743         (casinh_test): Likewise.
66744         * sysdeps/i386/fpu/libm-test-ulps: Update.
66745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66746
66747 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
66748
66749         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
66750         ONE with its value.
66751
66752         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
66753         (__pow_mp): Replace ONE and MONE with their values.
66754         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
66755         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
66756         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
66757         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
66758         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
66759         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
66760
66761         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
66762
66763         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
66764         (__pow_mp): Replace ZERO and MZERO with their values.
66765         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
66766         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
66767         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
66768         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
66769         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
66770         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
66771         (__sqr): Likewise.
66772
66773         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
66774
66775         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
66776
66777 2013-03-28  Roland McGrath  <roland@hack.frob.com>
66778
66779         * include/stdlib.h [!SHARED] (__call_tls_dtors):
66780         Declare with __attribute__ ((weak)).
66781         * stdlib/exit.c (__libc_atexit) [!SHARED]:
66782         Call __call_tls_dtors only if it's not NULL.
66783
66784 2013-03-28  Roland McGrath  <roland@hack.frob.com>
66785
66786         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
66787         didn't do it already, then set _dl_phdr and _dl_phnum based on the
66788         magic __ehdr_start linker symbol if it's defined.
66789         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
66790         them up here if it was already done.
66791
66792         * elf/dl-support.c (_dl_phdr): Make pointer to const.
66793         (_dl_aux_init): Use const in cast when setting it.
66794         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
66795         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
66796         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
66797
66798         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
66799         Declare them here.
66800         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
66801         * csu/libc-tls.c: Nor here.
66802         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
66803
66804         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
66805         (__libc_message): Never call vsyslog.
66806
66807 2013-03-28  Alan Modra  <amodra@gmail.com>
66808
66809         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
66810         Define as empty.
66811         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
66812         Likewise.
66813
66814 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66815
66816         [BZ #15214]
66817         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
66818         underflow.
66819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66820
66821 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66822
66823         [BZ #15304]
66824         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
66825         Don't add gid passed as argument.
66826
66827         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
66828
66829 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
66830
66831         [BZ #15307]
66832         * math/k_casinh.c (__kernel_casinh): Handle arguments with
66833         imaginary part between 1.0 and 1.5 and real part less than 0.5
66834         specially.
66835         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66836         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66837         * math/libm-test.inc (cacos_test): Add more tests.
66838         (casin_test): Likewise.
66839         (casinh_test): Likewise.
66840         * sysdeps/i386/fpu/libm-test-ulps: Update.
66841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66842
66843 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
66844
66845         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
66846         constants.
66847         (norm): Likewise.
66848         (denorm): Likewise.
66849         (__dbl_mp): Likewise.
66850         (add_magnitudes): Likewise.
66851         (sub_magnitudes): Likewise.
66852         (__add): Likewise.
66853         (__sub): Likewise.
66854         (__mul): Likewise.
66855         (__sqr): Likewise.
66856         (__inv): Likewise.
66857         (__dvd): Likewise.
66858
66859         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
66860         commented code.
66861         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
66862         (__dubcos): Likewise.
66863         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
66864         (__ieee754_acos): Likewise.
66865         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
66866         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
66867         (__exp1): Likewise.
66868         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
66869         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66870         (log1): Likewise.
66871         (my_log2): Likewise.
66872         (checkint): Likewise.
66873         * sysdeps/ieee754/dbl-64/e_remainder.c
66874         (__ieee754_remainder): Likewise.
66875         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
66876         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
66877         (bsloww): Likewise.
66878         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
66879
66880         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
66881         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
66882         MANTISSA_STORE_T to store computations on mantissa.  Use
66883         macros for rounding and division.
66884         (denorm): Likewise.
66885         (__dbl_mp): Likewise.
66886         (add_magnitudes): Likewise.
66887         (sub_magnitudes): Likewise.
66888         (__mul): Likewise.
66889         (__sqr): Likewise.
66890         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
66891         powers of two in terms of TWOPOW macro.
66892         (mp_no): Make type of mantissa as MANTISSA_T.
66893         [!RADIXI]: Define RADIXI.
66894         [!TWO52]: Define TWO52.
66895         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
66896
66897 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66898
66899         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
66900         llroundl symbol when building for PPC32.
66901
66902 2013-03-24  Mark H Weaver  <mhw@netris.org>
66903
66904         * manual/arith.texi (Normalization Functions): Fix prototypes for
66905         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
66906
66907 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66908
66909         [BZ #13889]
66910         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
66911         high value to check if expl overflow.
66912         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
66913         to check for underflow and overflow.
66914         * math/libm-test.inc: Add exp test.
66915
66916 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
66917
66918         [BZ #11120]
66919         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
66920         with NOT_IN_libc.
66921
66922 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66923
66924         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
66925         symbol.
66926
66927 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66928
66929         * math/gen-libm-test.pl (parse_args, special_functions): Properly
66930         wrap blocks consisting of several statements.
66931
66932         * sysdeps/generic/math-tests.h: New file.
66933         * sysdeps/i386/fpu/math-tests.h: Likewise.
66934         * math/test-snan.c: Include it.
66935         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
66936
66937 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
66938
66939         [BZ #15285]
66940         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
66941         (__ieee754_j0l): Do not improve calculations using cos of twice
66942         input for inputs above LDBL_MAX / 2.0L.
66943         (__ieee754_y0l): Likewise.
66944         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
66945         (__ieee754_j1l): Do not improve calculations using cos of twice
66946         input for inputs above LDBL_MAX / 2.0L.
66947         (__ieee754_y1l): Likewise.
66948         * math/libm-test.inc (j0_test): Add another test.
66949         (j1_test): Likewise.
66950         (y0_test): Likewise.
66951         (y1_test): Likewise.
66952         * sysdeps/i386/fpu/libm-test-ulps: Update.
66953
66954 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
66955
66956         * Rules ($(objpfx)bench-%.c): Include code from a C source
66957         file.
66958
66959 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
66960
66961         [BZ #15287]
66962         * math/k_casinh.c (__kernel_casinh): Handle arguments with
66963         imaginary part 1.0 and real part less than 0.5 specially.
66964         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66965         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66966         * math/libm-test.inc (cacos_test): Add more tests.
66967         (casin_test): Likewise.
66968         (casinh_test): Likewise.
66969         * sysdeps/i386/fpu/libm-test-ulps: Update.
66970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66971
66972 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
66973
66974         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
66975         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
66976
66977 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
66978
66979         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
66980         * config.make.in (config-cflags-sse4): Remove variable.
66981         (config-cflags-avx): Likewise.
66982         (config-cflags-sse2avx): Likewise.
66983         (config-cflags-novzeroupper): Likewise.
66984         (config-asflags-i686): Likewise.
66985         (have-mfma4): Likewise.
66986         (have-as-vis3): Likewise.
66987         (MIG): Likewise.
66988         * configure.in (MIG): Do not AC_SUBST.
66989         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
66990         (libc_cv_cc_sse4): Do not AC_SUBST.
66991         (libc_cv_cc_avx): Likewise.
66992         (libc_cv_cc_sse2avx): Likewise.
66993         (libc_cv_cc_novzeroupper): Likewise.
66994         (libc_cv_cc_fma4): Likewise.
66995         (libc_cv_as_i686): Likewise.
66996         (libc_cv_sparc_as_vis3): Likewise.
66997         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
66998         LIBC_CONFIG_VAR.
66999         (config-asflags-i686): Likewise.
67000         (config-cflags-avx): Likewise.
67001         (config-cflags-sse2avx): Likewise.
67002         (have-mfma4): Likewise.
67003         (config-cflags-novzeroupper): Likewise.
67004         * sysdeps/mach/configure.in (MIG): Likewise.
67005         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
67006         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
67007         LIBC_CONFIG_VAR.
67008         (config-cflags-avx): Likewise.
67009         (config-cflags-sse2avx): Likewise.
67010         (have-mfma4): Likewise.
67011         (config-cflags-novzeroupper): Likewise.
67012         * configure: Regenerated.
67013         * sysdeps/i386/configure: Likewise.
67014         * sysdeps/mach/configure: Likewise.
67015         * sysdeps/sparc/configure: Likewise.
67016         * sysdeps/x86_64/configure: Likewise.
67017
67018 2013-03-20  Roland McGrath  <roland@hack.frob.com>
67019
67020         [BZ #14812]
67021         * locale/programs/localedef.c (options): Put N_ translation marker
67022         on argument names, not just descriptions.
67023
67024 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67025
67026         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
67027
67028 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
67029
67030         [BZ #14176]
67031         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
67032
67033 2013-03-19  Roland McGrath  <roland@hack.frob.com>
67034
67035         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
67036         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
67037         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
67038         [!BEFORE_ABORT] (before_abort): New function.
67039         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
67040         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
67041         (writev_for_fatal): New function.
67042         (WRITEV_FOR_FATAL): New macro; call that.
67043         (backtrace_and_maps): New function.
67044         (BEFORE_ABORT): New macro; call that.
67045         (struct str_list): Type removed.
67046         (__libc_message, __libc_fatal): Functions removed.
67047         Include <sysdeps/posix/libc_fatal.c> instead.
67048
67049 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
67050
67051         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
67052         constants.
67053         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
67054         double constants.
67055
67056 2013-03-19  Andreas Schwab  <schwab@suse.de>
67057
67058         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
67059         * sysdeps/gnu/configure: Regenerate.
67060
67061         * configure.in: Substitute libc_cv_rtlddir.
67062         * configure: Regenerate.
67063         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
67064         * Makeconfig (rtlddir, inst_rtlddir): New variables.
67065         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
67066         * elf/Makefile (install-others, CFLAGS-interp.c)
67067         (ldso_install, common-ldd-rewrite): Likewise.
67068         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
67069         $(inst_slibdir)/$(rtld-installed-name).
67070         * scripts/rellns-sh: Add -p option.
67071         * Makerules (make-shlib-link): Use rellns-sh to get relative name
67072         for source.
67073
67074 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
67075
67076         * manual/nptl.texi: Renamed to ...
67077         * manual/threads.texi: ... this.
67078         * manual/Makefile (chapters): Update.
67079
67080 2013-03-18  Roland McGrath  <roland@hack.frob.com>
67081
67082         [BZ #14812]
67083         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
67084         on argument names, not just descriptions.
67085         * malloc/memusagestat.c (options): Likewise.
67086         * nss/getent.c (options): Likewise.
67087
67088 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
67089
67090         [BZ #14812]
67091         * iconv/iconv_prog.c (options): Put N_ translation marker
67092         on argument names, not just descriptions.
67093         * iconv/iconvconfig.c (options): Likewise.
67094
67095 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
67096
67097         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
67098         implementation which is faster on all x86_64 architectures.
67099         Tested on AMD, Intel Nehalem, SNB, IVB.
67100         * sysdeps/x86_64/strnlen.S: Likewise.
67101
67102         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
67103         Remove all multiarch strlen and strnlen versions.
67104         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
67105         Remove strlen and strnlen related parts.
67106
67107         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
67108         Inline strlen part.
67109         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
67110
67111         * sysdeps/x86_64/multiarch/strlen.S: Remove.
67112         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
67113         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
67114         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
67115         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
67116         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
67117
67118 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
67119
67120         * manual/memory.texi (Malloc Tunable Parameters):
67121         Sort parameters alphabetically. Add comments for missing entries.
67122
67123 2013-03-17  David S. Miller  <davem@davemloft.net>
67124
67125         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67126
67127 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
67128
67129         [BZ #15283]
67130         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
67131         for arguments at most half maximum finite value.
67132         * math/libm-test.inc (j0_test): Add more tests.
67133         (j1_test): Likewise.
67134         (y0_test): Likewise.
67135         (y1_test): Likewise.
67136         * sysdeps/i386/fpu/libm-test-ulps: Update.
67137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67138
67139         [BZ #14155]
67140         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
67141         1 / x and functions P and Q for arguments above 0x1p256L.
67142         (__ieee754_y0l): Likewise.
67143         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
67144         (__ieee754_y1l): Likewise.
67145         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
67146         (j1_test): Likewise.
67147         (y0_test): Likewise.
67148         (y1_test): Likewise.
67149
67150 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
67151
67152         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
67153         variable.
67154
67155 2013-03-15  Roland McGrath  <roland@hack.frob.com>
67156
67157         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
67158         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
67159         zero since it's initialized to EXEC_PAGESIZE.
67160
67161         * sysdeps/unix/sysv/linux/ldsodefs.h
67162         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
67163         * sysdeps/generic/ldsodefs.h: ... here.
67164
67165 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
67166
67167         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
67168
67169         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
67170         math/test-snan.c.
67171         * math/test-snan.c: Renamed from
67172         sysdeps/powerpc/fpu/test-powerpc-snan.c.
67173         * math/Makefile (tests): Add test-snan.
67174         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
67175         test-powerpc-snan.
67176
67177         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
67178         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
67179         functions.
67180         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
67181         __builtin_nan family of functions.
67182         * math/libm-test.inc (initialize): Initialize qnan_value with
67183         __builtin_nan family of functions.
67184         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
67185         Remove variables.
67186         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
67187         Remove functions.
67188         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
67189         storage class.  Initialize qNaN_var and sNaN_var with
67190         __builtin_nan and __builtin_nans families of functions,
67191         respectively.
67192
67193         * math/libm-test.inc (acosh_test): Also test with qNaN input.
67194         (sqrt_test): Remove duplicate test with qNaN input.
67195         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
67196         (round_test, signbit_test, significand_test): Note missing +/-Inf
67197         as well as qNaN tests.
67198
67199         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
67200         qNaN_var.  Fix a few strings, too.
67201         * math/libm-test.inc (nan_value): Rename to qnan_value.
67202         * math/gen-libm-test.pl (%beautify): Adjust to that.
67203         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
67204         * math/test-misc.c (main): Likewise.
67205         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
67206         to __qnan_bytes, and __qnan_union, respectively.
67207         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
67208         Likewise.
67209         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
67210         and lqnanval, respectively.
67211         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
67212         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
67213         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
67214         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
67215
67216         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
67217         * math/test-misc.c (main) [__x86_64__]: Enable test for long
67218         doubles.
67219
67220         * math/test-misc.c (main): Fix copy'n'pastos.
67221         * misc/tst-efgcvt.c (special): Likewise.
67222
67223         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
67224         Remove declarations.
67225
67226 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
67227
67228         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
67229         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
67230         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
67231         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
67232
67233 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67234
67235         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
67236         macro to return vdso values correctly in IFUNC implementations.
67237         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
67238         Optimization by using IFUNC.
67239
67240 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
67241             Richard Henderson  <rth@redhat.com>
67242             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
67243
67244         * Makefile.in (bench): New target.
67245         * NEWS: Mention the benchmark framework.
67246         * Rules (bench): Likewise.
67247         (binaries-bench): Generate binaries for functions to
67248         benchmark.
67249         * benchtests/Makefile: New makefile for benchmark tests.
67250         * benchtests/bench-skeleton.c: New skeleton file for benchmark
67251         programs.
67252         * benchtests/exp-inputs: New input file for EXP function.
67253         * benchtests/pow-inputs: New input file for POW function.
67254         * scripts/bench.pl: New script to generate source files for
67255         benchmark programs.
67256
67257 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
67258
67259         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
67260         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
67261         computations on mantissa.  Use macros for rounding and
67262         division.
67263         (denorm): Likewise.
67264         (__dbl_mp): Likewise.
67265         (add_magnitudes): Likewise.
67266         (sub_magnitudes): Likewise.
67267         (__mul): Likewise.
67268         (__sqr): Likewise.
67269         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
67270         powers of two in terms of TWOPOW macro.
67271         (mp_no): Make type of mantissa as MANTISSA_T.
67272         [!RADIXI]: Define RADIXI.
67273         [!TWO52]: Define TWO52.
67274         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
67275
67276         * manual/nptl.texi (cindex): Modify threads to pthreads.
67277
67278 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
67279
67280         * sysdeps/x86_64/preconfigure: Regenerated.
67281
67282 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
67283
67284         [BZ #14155]
67285         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
67286         0x1p28 and above.
67287         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
67288         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
67289         0x1p28 and above.
67290         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
67291         * math/libm-test.inc (j0_test): Do not allow one spurious
67292         underflow exception.
67293         (y1_test): Likewise.
67294
67295 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
67296
67297         * manual/Makefile (chapters): Add nptl.
67298         * manual/debug.texi (Debugging Support): Add link to Threads
67299         chapter.
67300         * manual/nptl.texi: New file.
67301
67302         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
67303
67304 2013-03-14  Petr Baudis  <pasky@ucw.cz>
67305
67306         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
67307         for non-NULL pointer before the memory validity test. Pointed
67308         out by Holger Brunck <holger.brunck@keymile.com>.
67309
67310 2013-03-13  Andreas Schwab  <schwab@suse.de>
67311
67312         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
67313         instead of .os.
67314
67315 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
67316
67317         * timezone/zic.c: Update from tzcode 2013b.
67318
67319 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
67320
67321         * manual/install.texi (Configuring and compiling):
67322         Mention i686 and i586.
67323         * INSTALL: Regenerate.
67324
67325 2013-03-12  Roland McGrath  <roland@hack.frob.com>
67326
67327         * sysdeps/init_array/elf-init.c: New file.
67328         * csu/elf-init.c
67329         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
67330         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
67331
67332         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
67333         __gmon_start__ as global, but as static with a .preinit_array pointer.
67334         * sysdeps/init_array/gmon-start.c: New file.  Use that.
67335         * sysdeps/init_array/crti.S: New file, empty except for comments.
67336         * sysdeps/init_array/crtn.S: Likewise.
67337
67338 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
67339
67340         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
67341         definining bcopy.
67342         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
67343         Remove Prefer_SSE_for_memop.
67344         * sysdeps/x86_64/multiarch/init-arch.h: Remove
67345         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
67346         HAS_PREFER_SSE_FOR_MEMOP.
67347         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
67348         memset-x86-64.
67349         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
67350         Remove bzero, memset ifunc support.
67351         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
67352         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
67353         * sysdeps/x86_64/multiarch/memset.S: Likewise.
67354         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
67355
67356 2013-03-11  Andreas Schwab  <schwab@suse.de>
67357
67358         [BZ #15234]
67359         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
67360         by SHLIB_COMPAT.
67361         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
67362         (GLIBC_2.16): Remove pthread_atfork.
67363
67364 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
67365
67366         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
67367         (ptestcases.h): Likewise.
67368
67369 2013-03-08  Roland McGrath  <roland@hack.frob.com>
67370
67371         * Makeconfig ($(common-objpfx)config.status): Depend on
67372         sysdeps/*/preconfigure{,.in} too.
67373
67374 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
67375
67376         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
67377         (__free_hook): Use void * instead of __malloc_ptr_t.
67378         (__malloc_hook): Likewise.
67379         (__realloc_hook): Likewise.
67380         (__memalign_hook): Likewise.
67381         (__after_morecore_hook): Likewise.
67382         * malloc/arena.c (save_malloc_hook): Likewise.
67383         (save_free_hook): Likewise.
67384         * malloc/hooks.c (malloc_hook_ini): Likewise.
67385         (realloc_hook_ini): Likewise.
67386         (memalign_hook_ini): Likewise.
67387         * malloc/malloc.c (malloc_hook_ini): Likewise.
67388         (realloc_hook_ini): Likewise.
67389         (memalign_hook_ini): Likewise.
67390         (__free_hook): Likewise.
67391         (__malloc_hook): Likewise.
67392         (__realloc_hook): Likewise.
67393         (__memalign_hook): Likewise.
67394         (__libc_malloc): Likewise.
67395         (__libc_free): Likewise.
67396         (__libc_realloc): Likewise.
67397         (__libc_memalign): Likewise.
67398         (__libc_valloc): Likewise.
67399         (__libc_pvalloc): Likewise.
67400         (__libc_calloc): Likewise.
67401         (__posix_memalign): Likewise.
67402         * malloc/morecore.c (__sbrk): Likewise.
67403         (__default_morecore): Likewise.
67404
67405         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
67406
67407         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
67408         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
67409         __malloc_ptrdiff_t.
67410
67411         * malloc/malloc.h (__malloc_size_t): Remove macro.
67412         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
67413         __malloc_size_t.
67414         (old_memalign_hook): Likewise.
67415         (old_realloc_hook): Likewise.
67416         (struct hdr): Likewise.
67417         (flood): Likewise.
67418         (mallochook): Likewise.
67419         (memalignhook): Likewise.
67420         (reallochook): Likewise.
67421         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
67422         (tr_old_realloc_hook): Likewise.
67423         (tr_old_memalign_hook): Likewise.
67424         (tr_mallochook): Likewise.
67425         (tr_reallochook): Likewise.
67426         (tr_memalignhook): Likewise.
67427
67428 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67429
67430         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
67431         default_ldbl_pack and using as default implementation.
67432         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
67433         implementation.
67434         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
67435         redundant definition.
67436         (ldbl_insert_mantissa): Likewise.
67437         (ldbl_canonicalize): Likewise.
67438         (ldbl_nearbyint): Likewise.
67439         (ldbl_pack): Rename to ldbl_pack_ppc.
67440         (ldbl_unpack): Rename to ldbl_unpack_ppc.
67441         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
67442         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
67443
67444 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
67445
67446         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
67447         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
67448         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
67449         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
67450         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
67451         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
67452         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
67453         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
67454
67455 2013-03-07  Andreas Jaeger  <aj@suse.de>
67456
67457         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67458         bits/mman-linux.h.
67459
67460 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
67461
67462         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
67463         Include mpa.h and declare __MPEXP.
67464         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
67465         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
67466         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
67467         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
67468         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
67469         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
67470         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
67471
67472         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
67473         (__slowpow): Use long double EXPL and LOGL functions to
67474         compute POW.
67475         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
67476         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
67477         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
67478         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
67479         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
67480         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
67481
67482         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
67483         intermediate variable to calculate exponent.
67484         (__sqr): Likewise.
67485         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
67486         Likewise.
67487         (__sqr): Likewise.
67488
67489         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
67490         [!NO__SQR]: Define __sqr.
67491         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
67492         and NO__SQR.  Remove all code except __mul and __sqr.  Include
67493         sysdeps/ieee754/dbl-64/mpa.c.
67494         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67495
67496         [BZ #12723]
67497         * posix/Makefile (tests): Add tst-pathconf.
67498         * posix/tst-pathconf.c: New test case.
67499         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
67500         _PC_PIPE_BUF.
67501         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
67502
67503 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
67504
67505         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
67506
67507 2013-03-06  Andreas Jaeger  <aj@suse.de>
67508
67509         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
67510         definition via __MAP_ANONYMOUS.
67511
67512         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
67513         it's not part of Linux headers.
67514
67515         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
67516         (MAP_HUGE_MASK): Define.
67517
67518         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
67519         Define.
67520         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
67521         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
67522         Define.
67523         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
67524         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
67525         Define.
67526         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
67527         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
67528         Define.
67529         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
67530
67531         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
67532         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
67533         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
67534         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
67535         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
67536         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
67537
67538         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
67539         Handle f2fs.
67540
67541         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
67542         Handle f2fs and efivarfs.
67543
67544         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
67545         f2fs.
67546
67547         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
67548         (EFIVARFS_MAGIC): Add.
67549         (F2FS_LINK_MAX): Add.
67550
67551 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
67552
67553         * stdio-common/vfprintf.c: Replace __builtin_expect with
67554         __glibc_unlikely.
67555
67556 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
67557
67558         [BZ #13550]
67559         * sysdeps/generic/bp-sym.h: Remove file.
67560         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
67561         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
67562         <bp-sym.h> and <bp-asm.h>.
67563         (__longjmp): Don't use BP_SYM.
67564         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
67565         and <bp-asm.h>.
67566         (memcpy): Don't use BP_SYM.
67567         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
67568         <bp-sym.h> and <bp-asm.h>.
67569         (memcpy): Don't use BP_SYM.
67570         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
67571         <bp-asm.h>.
67572         (memcpy): Don't use BP_SYM.
67573         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
67574         <bp-asm.h>.
67575         (memset): Don't use BP_SYM.
67576         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
67577         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
67578         (__bzero): Don't use BP_SYM.
67579         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
67580         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
67581         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
67582         <bp-sym.h> and <bp-asm.h>.
67583         (memcmp): Don't use BP_SYM.  Remove comment about bounded
67584         pointers.
67585         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
67586         <bp-sym.h> and <bp-asm.h>.
67587         (memcpy): Don't use BP_SYM.
67588         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
67589         <bp-sym.h> and <bp-asm.h>.
67590         (memset): Don't use BP_SYM.
67591         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
67592         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
67593         (__bzero): Don't use BP_SYM.
67594         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
67595         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
67596         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
67597         <bp-sym.h> and <bp-asm.h>.
67598         (strncmp): Don't use BP_SYM.  Remove comment about bounded
67599         pointers.
67600         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
67601         <bp-sym.h> and <bp-asm.h>.
67602         (memcpy): Don't use BP_SYM.
67603         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
67604         <bp-sym.h> and <bp-asm.h>.
67605         (memset): Don't use BP_SYM.
67606         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
67607         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
67608         (__bzero): Don't use BP_SYM.
67609         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
67610         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
67611         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
67612         <bp-sym.h> and <bp-asm.h>.
67613         (__memchr): Don't use BP_SYM.
67614         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
67615         <bp-sym.h> and <bp-asm.h>.
67616         (memcmp): Don't use BP_SYM.  Remove comment about bounded
67617         pointers.
67618         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
67619         <bp-sym.h> and <bp-asm.h>.
67620         (memcpy): Don't use BP_SYM.
67621         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
67622         <bp-sym.h> and <bp-asm.h>.
67623         (__mempcpy): Don't use BP_SYM.
67624         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
67625         <bp-sym.h> and <bp-asm.h>.
67626         (__memrchr): Don't use BP_SYM.
67627         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
67628         <bp-sym.h> and <bp-asm.h>.
67629         (memset): Don't use BP_SYM.
67630         (__bzero): Likewise.
67631         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
67632         <bp-sym.h> and <bp-asm.h>.
67633         (__rawmemchr): Don't use BP_SYM.
67634         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
67635         <bp-sym.h> and <bp-asm.h>.
67636         (__STRCMP): Don't use BP_SYM.
67637         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
67638         <bp-sym.h> and <bp-asm.h>.
67639         (strchr): Don't use BP_SYM.
67640         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
67641         <bp-sym.h> and <bp-asm.h>.
67642         (__strchrnul): Don't use BP_SYM.
67643         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
67644         <bp-sym.h> and <bp-asm.h>.
67645         (strlen): Don't use BP_SYM.
67646         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
67647         <bp-sym.h> and <bp-asm.h>.
67648         (strncmp): Don't use BP_SYM.  Remove comment about bounded
67649         pointers.
67650         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
67651         <bp-sym.h> and <bp-asm.h>.
67652         (__strnlen): Don't use BP_SYM.
67653         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
67654         <bp-sym.h> and <bp-asm.h>.
67655         (__GI__setjmp): Don't use BP_SYM.
67656         (_setjmp): Likewise.
67657         (__sigsetjmp): Likewise.
67658         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
67659         (L(start_addresses)): Don't use BP_SYM.
67660         (_start): Likewise.
67661         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
67662         <bp-asm.h>.
67663         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
67664         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
67665         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
67666         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
67667         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
67668         <bp-asm.h>.
67669         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
67670         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
67671         about bounded pointers.
67672         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
67673         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
67674         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
67675         <bp-asm.h>.
67676         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
67677         about bounded pointers.  Remove GKM FIXME comments.
67678         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
67679         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
67680         <bp-asm.h>.
67681         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
67682         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
67683         Remove GKM FIXME comments.
67684         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
67685         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
67686         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
67687         <bp-asm.h>.
67688         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
67689         about bounded pointers.  Remove GKM FIXME comment.
67690         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
67691         and <bp-asm.h>.
67692         (strncmp): Don't use BP_SYM.  Remove comment about bounded
67693         pointers.
67694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
67695         <bp-sym.h> and <bp-asm.h>.
67696         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
67697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
67698         <bp-sym.h> and <bp-asm.h>.
67699         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
67700         comment.
67701
67702 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
67703
67704         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
67705         call free(NULL).
67706
67707 2013-03-05  David S. Miller  <davem@davemloft.net>
67708
67709         * po/es.po: Update from translation team.
67710
67711 2013-03-05  Andreas Jaeger  <aj@suse.de>
67712
67713         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
67714         <bits/mman-linux.h>.
67715         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
67716         is fine.
67717         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
67718         <bits/mman-linux.h> to end of file.
67719         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
67720         is fine.
67721         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
67722         <bits/mman-linux.h> to end of file.
67723         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
67724         is fine.
67725         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
67726         <bits/mman-linux.h> to end of file.
67727
67728         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
67729         (MCL_CURRENT, MCL_FUTURE): Define here.
67730
67731 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67732
67733         [BZ #15232]
67734         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
67735         attribute_hidden.
67736         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
67737
67738 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67739
67740         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
67741         fourth parameter needed for rt_sigprocmask syscall.
67742         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
67743         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
67744         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
67745         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
67746         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
67747         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
67748
67749 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
67750
67751         [BZ #13550]
67752         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
67753         comment about bounded pointers.
67754         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
67755         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
67756
67757 2013-03-04  Andreas Jaeger  <aj@suse.de>
67758
67759         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
67760         common definitions.
67761
67762         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
67763         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
67764         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
67765         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
67766         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
67767         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
67768
67769 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67770
67771         [BZ #15055]
67772         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
67773         __ieee754_sqrl instead of __sqrl.
67774
67775 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
67776
67777         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
67778         * sysdeps/powerpc/fpu_control.h: ... here.
67779         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
67780         * sysdeps/powerpc/bits/fenvinline.h: ... here.
67781         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
67782         * sysdeps/powerpc/bits/mathinline.h: ... here.
67783
67784 2013-03-01  Roland McGrath  <roland@hack.frob.com>
67785
67786         * elf/dl-hwcaps.c (_dl_important_hwcaps):
67787         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
67788         to just [NEED_DL_SYSINFO_DSO].
67789         * elf/dl-support.c: Likewise.
67790         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
67791         * elf/rtld.c (dl_main): Likewise.
67792         * elf/setup-vdso.h (setup_vdso): Likewise.
67793         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
67794         * sysdeps/unix/sysv/linux/dl-sysdep.c
67795         (_dl_discover_osversion): Likewise.
67796
67797 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
67798
67799         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
67800         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
67801
67802 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
67803
67804         * NEWS: Mention libm performance improvements and non-x86 PI
67805         futex support.
67806
67807         * csu/libc-start.c (__pthread_initialize_minimal): Change
67808         function arguments.
67809         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
67810
67811 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
67812
67813         [BZ #13550]
67814         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
67815         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
67816         <bp-sym.h> and <bp-asm.h>.
67817         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
67818         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
67819         and <bp-asm.h>.
67820         (memcpy): Don't use BP_SYM.
67821         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
67822         <bp-asm.h>.
67823         (__mpn_add_n): Don't use BP_SYM.
67824         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
67825         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
67826         and <bp-asm.h>.
67827         (__mpn_addmul_1): Don't use BP_SYM.
67828         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
67829         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
67830         <bp-sym.h>.
67831         (_setjmp): Don't use BP_SYM.
67832         (__novmx_setjmp): Likewise.
67833         (__GI__setjmp): Likewise.
67834         (__vmx_setjmp): Likewise.
67835         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
67836         <bp-sym.h>.
67837         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
67838         (__bzero): Don't use BP_SYM.
67839         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
67840         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
67841         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
67842         <bp-sym.h> and <bp-asm.h>.
67843         (memcpy): Don't use BP_SYM.
67844         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
67845         <bp-sym.h> and <bp-asm.h>.
67846         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
67847         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
67848         <bp-sym.h> and <bp-asm.h>.
67849         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
67850         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
67851         <bp-asm.h>.
67852         (__mpn_lshift): Don't use BP_SYM.
67853         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
67854         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
67855         <bp-asm.h>.
67856         (memset): Don't use BP_SYM.
67857         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
67858         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
67859         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
67860         <bp-asm.h>.
67861         (__mpn_mul_1): Don't use BP_SYM.
67862         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
67863         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
67864         <bp-sym.h> and <bp-asm.h>.
67865         (memcmp): Don't use BP_SYM.
67866         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
67867         <bp-sym.h> and <bp-asm.h>.
67868         (memcpy): Don't use BP_SYM.
67869         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
67870         <bp-sym.h> and <bp-asm.h>.
67871         (memset): Don't use BP_SYM.
67872         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
67873         <bp-sym.h> and <bp-asm.h>.
67874         (strncmp): Don't use BP_SYM.
67875         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
67876         <bp-sym.h> and <bp-asm.h>.
67877         (memcpy): Don't use BP_SYM.
67878         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
67879         <bp-sym.h> and <bp-asm.h>.
67880         (memset): Don't use BP_SYM.
67881         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
67882         <bp-sym.h> and <bp-asm.h>.
67883         (__memchr): Don't use BP_SYM.
67884         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
67885         <bp-sym.h> and <bp-asm.h>.
67886         (memcmp): Don't use BP_SYM.
67887         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
67888         <bp-sym.h> and <bp-asm.h>.
67889         (memcpy): Don't use BP_SYM.
67890         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
67891         <bp-sym.h> and <bp-asm.h>.
67892         (__mempcpy): Don't use BP_SYM.
67893         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
67894         <bp-sym.h> and <bp-asm.h>.
67895         (__memrchr): Don't use BP_SYM.
67896         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
67897         <bp-sym.h> and <bp-asm.h>.
67898         (memset): Don't use BP_SYM.
67899         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
67900         <bp-sym.h> and <bp-asm.h>.
67901         (__rawmemchr): Don't use BP_SYM.
67902         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
67903         <bp-sym.h> and <bp-asm.h>.
67904         (__STRCMP): Don't use BP_SYM.
67905         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
67906         <bp-sym.h> and <bp-asm.h>.
67907         (strchr): Don't use BP_SYM.
67908         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
67909         <bp-sym.h> and <bp-asm.h>.
67910         (__strchrnul): Don't use BP_SYM.
67911         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
67912         <bp-sym.h> and <bp-asm.h>.
67913         (strlen): Don't use BP_SYM.
67914         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
67915         <bp-sym.h> and <bp-asm.h>.
67916         (strncmp): Don't use BP_SYM.
67917         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
67918         <bp-sym.h> and <bp-asm.h>.
67919         (__strnlen): Don't use BP_SYM.
67920         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
67921         <bp-asm.h>.
67922         (__mpn_rshift): Don't use BP_SYM.
67923         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
67924         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
67925         <bp-sym.h> and <bp-asm.h>.
67926         (__sigsetjmp): Don't use BP_SYM.
67927         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
67928         (L(start_addresses)): Don't use BP_SYM.
67929         (_start): Likewise.
67930         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
67931         <bp-asm.h>.
67932         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
67933         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
67934         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
67935         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
67936         <bp-asm.h>.
67937         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
67938         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
67939         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
67940         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
67941         <bp-asm.h>.
67942         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
67943         comments.
67944         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
67945         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
67946         <bp-asm.h>.
67947         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
67948         FIXME comments.
67949         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
67950         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
67951         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
67952         <bp-asm.h>.
67953         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
67954         comment.
67955         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
67956         and <bp-asm.h>.
67957         (strncmp): Don't use BP_SYM,
67958         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
67959         <bp-asm.h>.
67960         (__mpn_sub_n): Don't use BP_SYM.
67961         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
67962         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
67963         and <bp-asm.h>.
67964         (__mpn_submul_1): Don't use BP_SYM.
67965         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
67966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
67967         <bp-sym.h> and <bp-asm.h>.
67968         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
67969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
67970         <bp-sym.h> and <bp-asm.h>.
67971         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
67972         comment.
67973
67974 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67975
67976         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
67977         Use ZK to minimize writes to Z.
67978         (sub_magnitudes): Simplify code a bit.
67979         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
67980         Use ZK to minimize writes to Z.
67981         (sub_magnitudes): Simplify code a bit.
67982
67983 2013-02-27  Roland McGrath  <roland@hack.frob.com>
67984
67985         * csu/gmon-start.c: Add special exception to license text.
67986
67987 2013-02-27  Richard Henderson  <rth@redhat.com>
67988
67989         * scripts/config.guess: Update from config.git.
67990         * scripts/config.sub: Likewise.
67991
67992 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67993
67994         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
67995
67996         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
67997
67998         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
67999
68000         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
68001
68002         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
68003
68004 2013-02-26  Roland McGrath  <roland@hack.frob.com>
68005
68006         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
68007         [$(build-shared = yes].
68008
68009 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
68010
68011         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
68012         (__mul): Reduce iterations for calculating mantissa.
68013
68014         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
68015         MPTWO.
68016         (__mpranred): Likewise.
68017
68018         [BZ #15160]
68019         * malloc/memusagestat.c (main): Draw graphs for heap and stack
68020         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
68021
68022 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68023
68024         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
68025         Define __attribute__.
68026
68027 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
68028
68029         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
68030         unused.
68031         * posix/regex_internal.h (__attribute): Remove.
68032         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
68033         (re_string_context_at): Likewise.
68034         (bitset_not): Use __attribute__ and mark function as possibly
68035         unused.
68036         (bitset_merge): Likewise.
68037         (bitset_mask): Likewise.
68038         (re_string_char_size_at): Likewise.
68039         (re_string_wchar_at): Likewise.
68040         (re_string_elem_size_at): Likewise.
68041
68042 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
68043
68044         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
68045         code.
68046         (cc32): Likewise.
68047
68048         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
68049         (__acr): Likewise.
68050         (__cpy): Likewise.
68051         (norm): Likewise.
68052         (denorm): Likewise.
68053         (__dbl_mp): Likewise.
68054         (add_magnitudes): Likewise.
68055         (sub_magnitudes): Likewise.
68056         (__mul): Likewise.
68057         (__inv): Likewise.
68058
68059         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
68060         style.
68061
68062         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
68063         style.
68064
68065         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
68066         code.
68067
68068         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
68069         up changes with default code.
68070         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
68071         Likewise.
68072
68073 2013-02-24  Allan McRae  <allan@archlinux.org>
68074
68075         * manual/socket.texi (The Internet Namespace): Order menu items
68076         to match that in the file.
68077
68078         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
68079         node listing of the info page menu.
68080
68081 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
68082
68083         [BZ #13550]
68084         * sysdeps/i386/bp-asm.h: Remove file.
68085         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
68086         (PARMS): Do not use macros from bp-asm.h.
68087         (S1): Likewise.
68088         (S2): Likewise.
68089         (SIZE): Likewise.
68090         (__mpn_add_n): Do not use BP_SYM
68091         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
68092         "bp-asm.h".
68093         (PARMS): Do not use macros from bp-asm.h.
68094         (S1): Likewise.
68095         (SIZE): Likewise.
68096         (__mpn_addmul_1): Do not use BP_SYM
68097         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
68098         "bp-asm.h".
68099         (PARMS): Do not use macros from bp-asm.h.
68100         (SIGMSK): Likewise.
68101         (_setjmp): Likewise.  Do not use BP_SYM.
68102         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
68103         "bp-asm.h".
68104         (PARMS): Do not use macros from bp-asm.h.
68105         (SIGMSK): Likewise.
68106         (setjmp): Likewise.  Do not use BP_SYM.
68107         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
68108         "bp-asm.h".
68109         (PARMS): Do not use macros from bp-asm.h.
68110         (__frexp): Do not use BP_SYM.
68111         (frexp): Likewise.
68112         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
68113         "bp-asm.h".
68114         (PARMS): Do not use macros from bp-asm.h.
68115         (__frexpf): Do not use BP_SYM.
68116         (frexpf): Likewise.
68117         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
68118         "bp-asm.h".
68119         (PARMS): Do not use macros from bp-asm.h.
68120         (__frexpl): Do not use BP_SYM.
68121         (frexpl): Likewise.
68122         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
68123         "bp-asm.h".
68124         (PARMS): Do not use macros from bp-asm.h.
68125         (__remquo): Do not use BP_SYM.
68126         (remquo): Likewise.
68127         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
68128         "bp-asm.h".
68129         (PARMS): Do not use macros from bp-asm.h.
68130         (__remquof): Do not use BP_SYM.
68131         (remquof): Likewise.
68132         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
68133         "bp-asm.h".
68134         (PARMS): Do not use macros from bp-asm.h.
68135         (__remquol): Do not use BP_SYM.
68136         (remquol): Likewise.
68137         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
68138         "bp-asm.h".
68139         (PARMS): Do not use macros from bp-asm.h.
68140         (DEST): Likewise.
68141         (SRC): Likewise.
68142         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
68143         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
68144         "bp-asm.h".
68145         (PARMS): Do not use macros from bp-asm.h.
68146         (strlen): Do not use BP_SYM.
68147         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
68148         "bp-asm.h".
68149         (PARMS): Do not use macros from bp-asm.h.
68150         (S1): Likewise.
68151         (S2): Likewise.
68152         (SIZE): Likewise.
68153         (__mpn_add_n): Do not use BP_SYM.
68154         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
68155         "bp-asm.h".
68156         (PARMS): Do not use macros from bp-asm.h.
68157         (S1): Likewise.
68158         (SIZE): Likewise.
68159         (__mpn_addmul_1): Do not use BP_SYM.
68160         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
68161         weak_alias.
68162         (bzero): Likewise.
68163         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
68164         "bp-asm.h".
68165         (PARMS): Do not use macros from bp-asm.h.
68166         (S): Likewise.
68167         (SIZE): Likewise.
68168         (__mpn_lshift): Do not use BP_SYM.
68169         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
68170         "bp-asm.h".
68171         (PARMS): Do not use macros from bp-asm.h.
68172         (DEST): Likewise.
68173         (SRC): Likewise.
68174         (LEN): Likewise.
68175         (memcpy): Likewise.  Do not use BP_SYM.
68176         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
68177         libc_hidden_def and weak_alias.
68178         (mempcpy): Do not use BP_SYM in weak_alias.
68179         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
68180         "bp-asm.h".
68181         (PARMS): Do not use macros from bp-asm.h.
68182         (DEST): Likewise.
68183         (LEN): Likewise.
68184         [!BZERO_P] (CHR): Likewise.
68185         (memset): Likewise.  Do not use BP_SYM.
68186         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
68187         "bp-asm.h".
68188         (PARMS): Do not use macros from bp-asm.h.
68189         (S1): Likewise.
68190         (SIZE): Likewise.
68191         (__mpn_mul_1): Do not use BP_SYM.
68192         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
68193         "bp-asm.h".
68194         (PARMS): Do not use macros from bp-asm.h.
68195         (S): Likewise.
68196         (SIZE): Likewise.
68197         (__mpn_rshift): Do not use BP_SYM.
68198         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
68199         "bp-asm.h".
68200         (PARMS): Do not use macros from bp-asm.h.
68201         (STR): Likewise.
68202         (CHR): Likewise.
68203         (strchr): Likewise.  Do not use BP_SYM.
68204         (index): Do not use BP_SYM in weak_alias.
68205         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
68206         "bp-asm.h".
68207         (PARMS): Do not use macros from bp-asm.h.
68208         (DEST): Likewise.
68209         (SRC): Likewise.
68210         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
68211         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
68212         "bp-asm.h".
68213         (PARMS): Do not use macros from bp-asm.h.
68214         (strlen): Do not use BP_SYM.
68215         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
68216         "bp-asm.h".
68217         (PARMS): Do not use macros from bp-asm.h.
68218         (S1): Likewise.
68219         (S2): Likewise.
68220         (SIZE): Likewise.
68221         (__mpn_sub_n): Do not use BP_SYM.
68222         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
68223         "bp-asm.h".
68224         (PARMS): Do not use macros from bp-asm.h.
68225         (S1): Likewise.
68226         (SIZE): Likewise.
68227         (__mpn_submul_1): Do not use BP_SYM.
68228         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
68229         "bp-asm.h".
68230         (PARMS): Do not use macros from bp-asm.h.
68231         (S1): Likewise.
68232         (S2): Likewise.
68233         (SIZE): Likewise.
68234         (__mpn_add_n): Do not use BP_SYM.
68235         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
68236         weak_alias.
68237         (bzero): Likewise.
68238         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
68239         "bp-asm.h".
68240         (PARMS): Do not use macros from bp-asm.h.
68241         (BLK2): Likewise.
68242         (LEN): Likewise.
68243         (memcmp): Do not use BP_SYM.
68244         (bcmp): Do not use BP_SYM in weak_alias.
68245         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
68246         "bp-asm.h".
68247         (PARMS): Do not use macros from bp-asm.h.
68248         (DEST): Likewise.
68249         (SRC): Likewise.
68250         (LEN): Likewise.
68251         (memcpy): Likewise.  Do not use BP_SYM.
68252         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
68253         "bp-asm.h".
68254         (PARMS): Do not use macros from bp-asm.h.
68255         (DEST): Likewise.
68256         (SRC): Likewise.
68257         (LEN): Likewise.
68258         (memmove): Likewise.  Do not use BP_SYM.
68259         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
68260         "bp-asm.h".
68261         (PARMS): Do not use macros from bp-asm.h.
68262         (DEST): Likewise.
68263         (SRC): Likewise.
68264         (LEN): Likewise.
68265         (__mempcpy): Likewise.  Do not use BP_SYM.
68266         (mempcpy): Do not use BP_SYM in weak_alias.
68267         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
68268         "bp-asm.h".
68269         (PARMS): Do not use macros from bp-asm.h.
68270         (DEST): Likewise.
68271         (LEN): Likewise.
68272         [!BZERO_P] (CHR): Likewise.
68273         (memset): Likewise.  Do not use BP_SYM.
68274         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
68275         "bp-asm.h".
68276         (PARMS): Do not use macros from bp-asm.h.
68277         (STR2): Likewise.
68278         (strcmp): Do not use BP_SYM.
68279         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
68280         "bp-asm.h".
68281         (PARMS): Do not use macros from bp-asm.h.
68282         (STR): Likewise.
68283         (DELIM): Likewise.
68284         [USE_AS_STRTOK_R] (SAVE): Likewise.
68285         (FUNCTION): Likewise.  Do not use BP_SYM.
68286         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
68287         aliases.
68288         (strtok_r): Likewise.
68289         (__GI___strtok_r): Likewise.
68290         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
68291         (PARMS): Do not use macros from bp-asm.h.
68292         (S): Likewise.
68293         (SIZE): Likewise.
68294         (__mpn_lshift): Do not use BP_SYM.
68295         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
68296         (PARMS): Do not use macros from bp-asm.h.
68297         (STR): Likewise.
68298         (CHR): Likewise.
68299         (__memchr): Do not use BP_SYM.
68300         (memchr): Do not use BP_SYM in weak_alias.
68301         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
68302         (PARMS): Do not use macros from bp-asm.h.
68303         (BLK2): Likewise.
68304         (LEN): Likewise.
68305         (memcmp): Do not use BP_SYM.
68306         (bcmp): Do not use BP_SYM in weak_alias.
68307         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
68308         (PARMS): Do not use macros from bp-asm.h.
68309         (S1): Likewise.
68310         (SIZE): Likewise.
68311         (__mpn_mul_1): Do not use BP_SYM.
68312         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
68313         "bp-asm.h".
68314         (PARMS): Do not use macros from bp-asm.h.
68315         (STR): Likewise.
68316         (CHR): Likewise.
68317         (__rawmemchr): Do not use BP_SYM.
68318         (rawmemchr): Do not use BP_SYM in weak_alias.
68319         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
68320         (PARMS): Do not use macros from bp-asm.h.
68321         (S): Likewise.
68322         (SIZE): Likewise.
68323         (__mpn_rshift): Do not use BP_SYM.
68324         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
68325         (PARMS): Do not use macros from bp-asm.h.
68326         (SIGMSK): Likewise.
68327         (__sigsetjmp): Likewise.  Do not use BP_SYM.
68328         * sysdeps/i386/start.S: Do not include "bp-sym.h".
68329         (_start): Do not use BP_SYM.
68330         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
68331         (PARMS): Do not use macros from bp-asm.h.
68332         (DEST): Likewise.
68333         (SRC): Likewise.
68334         (__stpcpy): Likewise.  Do not use BP_SYM.
68335         (stpcpy): Do not use BP_SYM in weak_alias.
68336         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
68337         "bp-asm.h".
68338         (PARMS): Do not use macros from bp-asm.h.
68339         (DEST): Likewise.
68340         (SRC): Likewise.
68341         (LEN): Likewise.
68342         (__stpncpy): Likewise.  Do not use BP_SYM.
68343         (stpncpy): Do not use BP_SYM in weak_alias.
68344         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
68345         (PARMS): Do not use macros from bp-asm.h.
68346         (STR): Likewise.
68347         (CHR): Likewise.
68348         (strchr): Likewise.  Do not use BP_SYM.
68349         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
68350         "bp-asm.h".
68351         (PARMS): Do not use macros from bp-asm.h.
68352         (STR): Likewise.
68353         (CHR): Likewise.
68354         (__strchrnul): Likewise.  Do not use BP_SYM.
68355         (strchrnul): Do not use BP_SYM in weak_alias.
68356         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
68357         "bp-asm.h".
68358         (PARMS): Do not use macros from bp-asm.h.
68359         (STOP): Likewise.
68360         (strcspn): Do not use BP_SYM.
68361         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
68362         "bp-asm.h".
68363         (PARMS): Do not use macros from bp-asm.h.
68364         (STR): Likewise.
68365         (STOP): Likewise.
68366         (strpbrk): Likewise.  Do not use BP_SYM.
68367         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
68368         "bp-asm.h".
68369         (PARMS): Do not use macros from bp-asm.h.
68370         (STR): Likewise.
68371         (CHR): Likewise.
68372         (strrchr): Likewise.  Do not use BP_SYM.
68373         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
68374         (PARMS): Do not use macros from bp-asm.h.
68375         (SKIP): Likewise.
68376         (strspn): Do not use BP_SYM.
68377         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
68378         (PARMS): Do not use macros from bp-asm.h.
68379         (STR): Likewise.
68380         (DELIM): Likewise.
68381         (SAVE): Likewise.
68382         (FUNCTION): Likewise.  Do not use BP_SYM.
68383         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
68384         aliases.
68385         (strtok_r): Likewise.
68386         (__GI___strtok_r): Likewise.
68387         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
68388         (PARMS): Do not use macros from bp-asm.h.
68389         (S1): Likewise.
68390         (S2): Likewise.
68391         (SIZE): Likewise.
68392         (__mpn_sub_n): Do not use BP_SYM.
68393         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
68394         "bp-asm.h".
68395         (PARMS): Do not use macros from bp-asm.h.
68396         (S1): Likewise.
68397         (SIZE): Likewise.
68398         (__mpn_submul_1): Do not use BP_SYM.
68399         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
68400         <bp-sym.h>.
68401         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
68402         and <bp-asm.h>.
68403         (PARMS): Do not use macros from bp-asm.h.
68404         (FLAGS): Likewise.
68405         (PTID): Likewise.
68406         (TLS): Likewise.
68407         (CTID): Likewise.
68408         (__clone): Do not use BP_SYM.
68409         (clone): Do not use BP_SYM in weak_alias.
68410         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
68411         and <bp-asm.h>.
68412         (PARMS): Do not use macros from bp-asm.h.
68413         (LEN): Likewise.
68414         (__mmap64): Do not use BP_SYM.
68415         (mmap64): Do not use BP_SYM in weak_alias.
68416         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
68417         <bp-sym.h> and <bp-asm.h>.
68418         (PARMS): Do not use macros from bp-asm.h.
68419         (__posix_fadvise64_l64): Do not use BP_SYM.
68420         * sysdeps/unix/sysv/linux/i386/semtimedop.S
68421         (PARMS): Do not use macros from bp-asm.h.
68422         (NSOPS): Likewise.
68423         (semtimedop): Do not use BP_SYM.
68424         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
68425         and <bp-asm.h>.
68426
68427 2013-02-21  Allan McRae  <allan@archlinux.org>
68428
68429         * manual/message.texi (Charset conversion in gettext):
68430         Move @end statement to beginning of line.
68431
68432 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
68433
68434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
68435         static.
68436         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
68437         Likewise.
68438
68439         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
68440         (denorm): Likewise.
68441         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
68442         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
68443
68444 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68445
68446         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
68447         tail-call to the resolved function if pltexit isn't needed.
68448
68449 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
68450
68451         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
68452         or Y being zero as being unlikely.
68453         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
68454         Likewise.
68455
68456 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
68457
68458         * manual/nss.texi (System Databases and Name Service Switch):
68459         Remove frobnicate @pxref.
68460
68461 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
68462
68463         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
68464         __attribute__ ((unused)) to __attribute__ ((__unused__)).
68465
68466 2013-02-20  Petr Machata  <pmachata@redhat.com>
68467
68468         * elf/elf.h (R_ARM_TARGET1): New macro.
68469         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
68470         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
68471         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
68472         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
68473         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
68474         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
68475         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
68476         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
68477         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
68478         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
68479         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
68480         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
68481         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
68482         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
68483         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
68484         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
68485         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
68486         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
68487         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
68488         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
68489         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
68490         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
68491         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
68492         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
68493         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
68494         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
68495         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
68496         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
68497         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
68498         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
68499         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
68500         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
68501         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
68502         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
68503         (R_ARM_THM_GOT_BREL12): Likewise.
68504         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
68505         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
68506         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
68507         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
68508         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
68509         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
68510         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
68511         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
68512         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
68513
68514 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
68515
68516         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
68517         __attribute_used__ to __attribute__ ((unused)).
68518
68519 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
68520
68521         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
68522         powerpc mpa.c.
68523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
68524         comment formatting.
68525         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
68526
68527 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
68528
68529         [BZ #13550]
68530         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
68531         Remove macro.
68532         (ENTER): Remove both macro definitions.
68533         (LEAVE): Likewise.
68534         (CHECK_BOUNDS_LOW): Likewise.
68535         (CHECK_BOUNDS_HIGH): Likewise.
68536         (CHECK_BOUNDS_BOTH): Likewise.
68537         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
68538         (RETURN_BOUNDED_POINTER): Likewise.
68539         (RETURN_NULL_BOUNDED_POINTER): Likewise.
68540         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
68541         (POP_ERRNO_LOCATION_RETURN): Likewise.
68542         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
68543         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
68544         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
68545         macros.
68546         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
68547         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
68548         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
68549         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
68550         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
68551         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
68552         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
68553         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
68554         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
68555         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
68556         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
68557         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
68558         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
68559         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
68560         removed macros.
68561         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
68562         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
68563         macros.
68564         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
68565         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
68566         * sysdeps/i386/i586/memset.S (memset): Likewise.
68567         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
68568         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
68569         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
68570         macros.
68571         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
68572         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
68573         Change uses of L(2) to L(out).
68574         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
68575         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
68576         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
68577         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
68578         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
68579         removed macros.
68580         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
68581         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
68582         macros.
68583         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
68584         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
68585         (RETURN): Do not use macro LEAVE.
68586         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
68587         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
68588         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
68589         * sysdeps/i386/i686/memset.S (memset): Likewise.
68590         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
68591         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
68592         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
68593         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
68594         Likewise.
68595         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
68596         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
68597         L(1_2) and L(1_3) into L(1).
68598         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
68599         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
68600         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
68601         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
68602         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
68603         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
68604         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
68605         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
68606         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
68607         macros.
68608         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
68609         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
68610         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
68611         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
68612         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
68613         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
68614         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
68615         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
68616         * sysdeps/i386/strcspn.S (strcspn): Likewise.
68617         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
68618         * sysdeps/i386/strrchr.S (strrchr): Likewise.
68619         * sysdeps/i386/strspn.S (strspn): Likewise.
68620         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
68621         conditional code.
68622         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
68623         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
68624         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
68625         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
68626         L(1_3) into L(1_1).
68627         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
68628         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
68629         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
68630         macros.
68631         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
68632
68633 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
68634
68635         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
68636         macro.
68637
68638 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
68639
68640         * math/atest-exp.c (exp_mpn): Remove ROUND.
68641         * math/atest-exp2.c (exp_mpn): Likewise.
68642         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
68643
68644         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
68645         * stdlib/tst-tls-atexit-lib.c: Likewise.
68646         * stdlib/tst-tls-atexit.c: Likewise.
68647
68648 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
68649
68650         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
68651         and __attribute_alloc_size__.
68652
68653 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
68654
68655         * include/programs/xmalloc.h: Change __attribute_alloc_size to
68656         __attribute_alloc_size__.
68657         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
68658         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
68659
68660 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
68661
68662         * include/programs/xmalloc.h: New file.
68663         * catgets/gencat.c: Include it.
68664         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
68665         * elf/pldd.c: Likewise.
68666         * iconv/iconv_charmap.c: Likewise.
68667         * iconv/iconvconfig.c: Likewise.
68668         * iconv/strtab.c: Likewise.
68669         * locale/programs/locale.c: Likewise.
68670         * locale/programs/localedef.h: Likewise.
68671         * locale/programs/simple-hash.c: Likewise.
68672         * nscd/nscd.h: Likewise.
68673         * nss/makedb.c: Likewise.
68674         * sysdeps/generic/ldconfig.h: Likewise.
68675
68676 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
68677
68678         * Versions.def: Add GLIBC_2.18.
68679         * include/link.h (struct link_map): New member l_tls_dtor_count.
68680         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
68681         (__call_tls_dtors): Likewise.
68682         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
68683         __cxa_thread_atexit_impl.
68684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68685         Likewise.
68686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
68687         Likewise.
68688         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
68689         Likewise.
68690         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
68691         Likewise.
68692         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
68693         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
68694         Likewise.
68695         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
68696         Likewise.
68697         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
68698         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
68699         Likewise.
68700         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
68701         (tests): Add test case tst-tls-atexit.
68702         (modules-names): Add shared library for tst-tls-atexit.
68703         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
68704         (GLIBC_PRIVATE): Add __call_tls_dtors.
68705         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
68706         for libstdc++.
68707         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
68708         * stdlib/tst-tls-atexit.c: New test case.
68709         * stdlib/tst-tls-atexit-lib.c: New test case.
68710
68711         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
68712
68713         * elf/Versions (ld): Add _dl_find_dso_for_object.
68714         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
68715         * elf/dl-open.c (_dl_find_dso_for_object): New function.
68716         (dl_open_worker): Use _dl_find_dso_for_object.
68717         * elf/dl-sym.c (do_sym): Likewise.
68718         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
68719
68720 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68721
68722         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
68723         Syntactic changes only.
68724         (_dl_runtime_profile): Do a tail-call to the resolved function.
68725
68726 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
68727
68728         [BZ #13550]
68729         * sysdeps/x86_64/bp-asm.h: Remove file.
68730         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
68731         <bp-sym.h> and <bp-asm.h>.
68732         (__clone): Do not use BP_SYM.
68733         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
68734         <bp-sym.h> and <bp-asm.h>.
68735         * sysdeps/unix/x86_64/sysdep.S: Likewise.
68736         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
68737         "bp-asm.h".
68738         (_setjmp): Do not use BP_SYM.
68739         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
68740         "bp-asm.h".
68741         (setjmp): Do not use BP_SYM.
68742         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
68743         libc_hidden_def.
68744         (mempcpy): Do not use BP_SYM in weak_alias.
68745         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
68746         "bp-asm.h".
68747         (strchr): Do not use BP_SYM.
68748         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
68749         "bp-asm.h".
68750         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
68751         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
68752         (_start): Do not use BP_SYM.
68753         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
68754         "bp-asm.h".
68755         (strcat): Do not use BP_SYM.
68756         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
68757         "bp-asm.h".
68758         (STRCMP): Do not use BP_SYM.
68759         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
68760         "bp-asm.h".
68761         (STRCPY): Do not use BP_SYM.
68762         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
68763         "bp-asm.h".
68764         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
68765         "bp-asm.h".
68766         (FUNCTION): Do not use BP_SYM.
68767         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
68768         weak_alias.
68769         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
68770
68771 2013-02-17  Andreas Jaeger  <aj@suse.de>
68772
68773         * time/Versions: Sort entries.
68774         * string/Versions: Likewise.
68775         * resolv/Versions: Likewise.
68776         * posix/Versions: Likewise.
68777         * iconv/Versions: Likewise.
68778         * elf/Versions: Likewise.
68779         * wcsmbs/Versions: Likewise.
68780
68781 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
68782
68783         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
68784         loop termination condition.
68785
68786         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
68787         variable to calculate EZ.
68788         (__sqr): Likewise.
68789
68790         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
68791         the lower precision input.
68792
68793 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
68794
68795         [BZ #13550]
68796         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
68797         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
68798         (run-via-rtld-prefix): Do not handle %-bp tests.
68799         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
68800         (all-object-suffixes): Remove .ob.
68801         (bppfx): Remove variable.
68802         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
68803         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
68804         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
68805         [$(build-bounded) = yes] (libtype.ob): Likewise.
68806         * Makerules (elide-routines.ob): Remove variable.
68807         (do-tests-clean): Do not handle *-bp.out.
68808         (common-mostlyclean): Do not handle *-bp and *-bp.out.
68809         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
68810         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
68811         (tests): Do not include $(tests-bp.out).
68812         (xtests): Do not include $(xtests-bp.out).
68813         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
68814         [$(build-bounded) = yes] ($(addprefix
68815         $(objpfx),$(binaries-bounded))): Remove rule.
68816         ($(objpfx)%-bp.out): Remove rule.
68817         * config.make.in (build-bounded): Remove variable.
68818         * crypt/Makefile [$(build-bounded) = yes]
68819         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
68820         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
68821         append to variable.
68822         [$(build-bounded) = yes] (install-lib): Likewise.
68823         [$(build-bounded) = yes] (generated): Likewise.
68824         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
68825         Remove rule.
68826         * intl/Makefile [$(build-bounded) = yes]
68827         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
68828         * math/Makefile [$(build-bounded) = yes]
68829         ($(tests:%=$(objpfx)%-bp): Likewise.
68830         * misc/Makefile [$(build-bounded) = yes]
68831         ($(objpfx)tst-tsearch-bp): Likewise.
68832         * nptl/Makeconfig (bounded-thread-library): Remove variable.
68833         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
68834         Remove dependency.
68835         * string/Makefile (o-objects.ob): Remove variable.
68836         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
68837         (CFLAGS-.ob): Remove variable.
68838         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
68839         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
68840         both definitions of variable.
68841         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
68842         (ASFLAGS-.ob): Remove variable.
68843
68844 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
68845
68846         [BZ #13550]
68847         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
68848         Remove __BOUNDED_POINTERS__ from condition.
68849         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
68850         * string/bits/string2.h [!__NO_STRING_INLINES &&
68851         !__BOUNDED_POINTERS__]: Likewise.
68852         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
68853         Likewise.
68854         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
68855         Remove conditional code.
68856         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
68857         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
68858         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
68859         condition.
68860
68861         [BZ #13550]
68862         * csu/libc-start.c: Do not include <bp-sym.h>.
68863         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
68864         * elf/dl-open.c: Do not include <bp-sym.h>.
68865         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
68866         * math/fegetenv.c: Do not include <bp-sym.h>.
68867         (fegetenv): Do not use BP_SYM in versioned symbols.
68868         * nptl/sysdeps/pthread/bits/libc-lockP.h
68869         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
68870         <bp-sym.h>.
68871         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68872         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
68873         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68874         (__pthread_mutex_destroy): Likewise.
68875         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68876         (__pthread_mutex_lock): Likewise.
68877         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68878         (__pthread_mutex_trylock): Likewise.
68879         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68880         (__pthread_mutex_unlock): Likewise.
68881         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68882         (__pthread_mutexattr_init): Likewise.
68883         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68884         (__pthread_mutexattr_destroy): Likewise.
68885         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68886         (__pthread_mutexattr_settype): Likewise.
68887         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68888         (__pthread_rwlock_init): Likewise.
68889         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68890         (__pthread_rwlock_destroy): Likewise.
68891         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68892         (__pthread_rwlock_rdlock): Likewise.
68893         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68894         (__pthread_rwlock_tryrdlock): Likewise.
68895         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68896         (__pthread_rwlock_wrlock): Likewise.
68897         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68898         (__pthread_rwlock_trywrlock): Likewise.
68899         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68900         (__pthread_rwlock_unlock): Likewise.
68901         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68902         (__pthread_key_create): Likewise.
68903         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68904         (__pthread_setspecific): Likewise.
68905         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68906         (__pthread_getspecific): Likewise.
68907         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
68908         Likewise.
68909         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68910         (_pthread_cleanup_push_defer): Likewise.
68911         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68912         (_pthread_cleanup_pop_restore): Likewise.
68913         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
68914         (pthread_setcancelstate): Likewise.
68915         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
68916         <bp-sym.h>.
68917         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
68918         (memchr): Do not use BP_SYM in weak_alias.
68919         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
68920         (fegetenv): Do not use BP_SYM in versioned symbols.
68921         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
68922         (fesetenv): Do not use BP_SYM in versioned symbols.
68923         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
68924         (feupdateenv): Do not use BP_SYM in versioned symbols.
68925         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
68926         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
68927         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
68928         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
68929         (open64): Do not use BP_SYM in weak_alias.
68930         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
68931         (fegetenv): Do not use BP_SYM in versioned symbols.
68932         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
68933         (fesetenv): Do not use BP_SYM in versioned symbols.
68934         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
68935         (feupdateenv): Do not use BP_SYM in versioned symbols.
68936         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
68937         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
68938         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
68939         (feraiseexcept): Do not use BP_SYM in versioned symbols.
68940         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
68941         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
68942         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
68943         <bp-sym.h>.
68944         (__libc_start_main): Do not use BP_SYM.
68945
68946 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
68947
68948         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
68949         redundant return line.
68950         (norm): Likewise.
68951         (denorm): Likewise.
68952         (dbl_mp): Likewise.
68953         (sub_magnitudes): Likewise.
68954         (__add): Likewise.
68955         (__sub): Likewise.
68956         (__mul): Likewise.
68957         (__inv): Likewise.
68958         (__dvd): Likewise.
68959         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
68960         (norm): Likewise.
68961         (denorm): Likewise.
68962         (dbl_mp): Likewise.
68963         (sub_magnitudes): Likewise.
68964         (__add): Likewise.
68965         (__sub): Likewise.
68966         (__mul): Likewise.
68967         (__inv): Likewise.
68968         (__dvd): Likewise.
68969
68970         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
68971         instead of __mul.
68972         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
68973         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
68974         (cc32): Likewise.
68975
68976         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
68977         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
68978         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
68979         of __mul for squares.
68980         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
68981         function
68982         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
68983         Likewise.
68984         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
68985         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
68986
68987 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
68988
68989         [BZ #13550]
68990         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
68991         code.
68992         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
68993         prototype or function definition.  Rename ubp_* variables and
68994         parameters.  Remove argv definitions conditional on
68995         [__BOUNDED_POINTERS__].
68996         * debug/backtrace.c (__backtrace): Do not use __unbounded.
68997         * elf/dl-runtime.c (_dl_fixup): Likewise.
68998         * include/set-hooks.h (RUN_HOOK): Likewise.
68999         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
69000         definition.
69001         * string/strcpy.c (strcpy): Do not use __unbounded.
69002         * sysdeps/generic/frame.h (struct layout): Likewise.
69003         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
69004         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
69005         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
69006         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
69007         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
69008         (__backtrace): Likewise.
69009         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
69010         use __ptrvalue.
69011         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
69012         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
69013         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
69014         Likewise.
69015         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
69016         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
69017         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
69018         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
69019         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
69020         Do not use __unbounded.
69021         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
69022         Rename __unboundedrlimits parameter to rlimits in prototype.
69023         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
69024         Do not use __unbounded.
69025         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
69026         not use __ptrvalue.
69027         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
69028         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
69029         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
69030         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
69031         __ptrvalue or __unbounded.
69032         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
69033         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
69034         use __unbounded.
69035         (__new_msgctl): Do not use __ptrvalue.
69036         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
69037         __unbounded.
69038         (__libc_msgrcv): Do not use __ptrvalue.
69039         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
69040         startup_info): Do not use __unbounded.
69041         (__libc_start_main): Likewise.  Rename ubp_* variables and
69042         parameters.  Remove argv definitions conditional on
69043         [__BOUNDED_POINTERS__].
69044         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
69045         __ptrvalue.
69046         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
69047         use __unbounded.
69048         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
69049         or __ptrvalue.
69050         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
69051         use __unbounded.
69052         (__new_shmctl): Do not use __ptrvalue.
69053         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
69054         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
69055         Likewise.
69056         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
69057         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
69058         (__libc_sigaction): Likewise.
69059         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
69060         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
69061         Likewise.
69062         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
69063
69064 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
69065
69066         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
69067
69068         * string/mempcpy.c: Implement by calling memcpy.
69069
69070 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
69071
69072         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
69073
69074         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
69075         evaluation.
69076
69077         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
69078         values in the mantissa.
69079
69080         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
69081         minimize writes to Z.
69082         (sub_magnitudes): Simplify code a bit.
69083
69084 2013-02-12  Roland McGrath  <roland@hack.frob.com>
69085
69086         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
69087         from the message.  The linker prefixes all warnings with that already.
69088
69089 2013-02-12  Andreas Schwab  <schwab@suse.de>
69090
69091         [BZ #15078]
69092         * posix/regexec.c (extend_buffers): Add parameter min_len.
69093         (check_matching): Pass minimum needed length.
69094         (clean_state_log_if_needed): Likewise.
69095         (get_subexp): Likewise.
69096         * posix/Makefile (tests): Add bug-regex34.
69097         (bug-regex34-ENV): Define.
69098         * posix/bug-regex34.c: New file.
69099
69100         [BZ #11561]
69101         * posix/regcomp.c (parse_bracket_exp): When looking up collating
69102         elements compare against the byte sequence of it, not its name.
69103         * posix/Makefile (tests): Add bug-regex35.
69104         (bug-regex35-ENV): Define.
69105         * posix/bug-regex35.c: New file.
69106
69107 2013-02-11  Tom de Vries  <tom@codesourcery.com>
69108
69109         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
69110         comment.
69111         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
69112         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
69113         (CHECK_EOL): Add undef.
69114
69115 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
69116
69117         * bits/stdlib-bsearch.h: New file.
69118         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
69119         * stdlib/stdlib.h: Likewise.
69120
69121 2013-02-11  Roland McGrath  <roland@hack.frob.com>
69122
69123         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
69124         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
69125         declaration.
69126         * manual/search.texi (Array Search Function): Add missing const in
69127         lfind prototype.
69128         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
69129         declaration to use rlim_t.
69130         (Basic Scheduling Functions): Remove erroneous const from
69131         sched_getparam prototype.  Remove erroneous * from
69132         sched_get_priority_max and sched_get_priority_min prototypes.
69133         (Resource Usage): Fix summary @comment on vtimes to refer to
69134         sys/vtimes.h rather than vtimes.h.
69135         Add missing *s in vtimes prototype.
69136         (Limits on Resources): Fix ulimit prototype to return long int.
69137         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
69138         prototypes to use long int rather than double.
69139         (BSD Random): Fix initstate and setstate to use char *, not void *.
69140         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
69141         prototype to make second argument 'struct aiocb64 *const[]'.
69142         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
69143         (Status of AIO Operations): Remove erroneous const in aio_return and
69144         aio_return64 prototypes.
69145         (Synchronizing I/O): Fix sync prototype to return void.
69146         * manual/startup.texi (Suboptions): Remove an erroneous const in
69147         getsubopt prototype.
69148         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
69149         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
69150         use size_t rather than int.
69151         (Scanning All Users): Likewise for getpwent_r.
69152         (Setting Groups): Add missing const to setgroups prototype.
69153         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
69154         * manual/socket.texi (Host Names): Fix gethostbyaddr and
69155         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
69156         'const void *' rather than 'const char *'.
69157         (Host Address Functions): Likewise for inet_ntop.
69158         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
69159         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
69160         ssize_t for return value.
69161         (Sending Data): Likewise for send, sendto, sendmsg.
69162         (Socket Option Functions): Add a missing const in setsockopt prototype.
69163         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
69164         use wchar_t for the argument.
69165         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
69166         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
69167         take no arguments.
69168         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
69169         double/float/long double for second argument.
69170         Fix return types of significand, significandf, significandl.
69171         * manual/filesys.texi (Setting Permissions): Use mode_t for second
69172         argument in fchmod prototype.
69173         (File Owner): Use uid_t and gid_t in fchown prototype.
69174         (File Times): Add const to utimes, futimes, and lutimes prototypes.
69175         (Making Special Files): Use mode_t and dev_t in mknod prototype.
69176         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
69177         use 'const struct dirent **' as argument types to CMP function pointer
69178         argument.
69179         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
69180         (File Times): Fix summary magic @comment for struct utimbuf and utime
69181         to refer to utime.h, not time.h.
69182         * manual/string.texi (Argz Functions): Add missing const in
69183         argz_extract and argz_next prototypes.
69184         (Finding Tokens in a String): Likewise for basename.
69185         (String/Array Comparison): Fix typo in wcscasecmp prototype.
69186         (Copying and Concatenation): Fix typo in wmemmove prototype.
69187         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
69188         (Signal Stack): Remove erroneous const in sigstack prototype.
69189         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
69190         prototype.
69191         (Simple Calendar Time): Likewise for stime.
69192         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
69193         prototype.
69194         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
69195         say sys/sysctl.h instead.
69196         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
69197         and vsyslog prototypes.
69198
69199 2013-02-11  Tom de Vries  <tom@codesourcery.com>
69200
69201         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
69202         Remove.
69203
69204 2013-02-11  Roland McGrath  <roland@hack.frob.com>
69205
69206         * misc/sys/mman.h: Fix typo in mremap comment.
69207
69208 2013-02-08  Roland McGrath  <roland@hack.frob.com>
69209
69210         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
69211         the '\0' terminator.
69212
69213 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
69214
69215         [BZ #13550]
69216         * debug/segfault.c: Don't include <bp-checks.h>.
69217         * sysdeps/generic/bp-checks.h: Remove file.
69218         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
69219         (__GETDENTS): Don't use CHECK_N.
69220         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
69221         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
69222         (__getgroups): Don't use CHECK_N.
69223         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
69224         (setgroups): Don't use CHECK_N.
69225         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
69226         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
69227         (__libc_msgrcv): Don't use CHECK_N.
69228         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
69229         (__libc_msgsnd): Don't use CHECK_N.
69230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
69231         <bp-checks.h>.
69232         (__libc_pread): Don't use CHECK_N.
69233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
69234         include <bp-checks.h>.
69235         (__libc_pread64): Don't use CHECK_N.
69236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
69237         include <bp-checks.h>.
69238         (__libc_pwrite): Don't use CHECK_N.
69239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
69240         include <bp-checks.h>.
69241         (__libc_pwrite64): Don't use CHECK_N.
69242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
69243         <bp-checks.h>.
69244         (__libc_pread): Don't use CHECK_N.
69245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
69246         include <bp-checks.h>.
69247         (__libc_pread64): Don't use CHECK_N.
69248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
69249         include <bp-checks.h>.
69250         (__libc_pwrite): Don't use CHECK_N.
69251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
69252         include <bp-checks.h>.
69253         (__libc_pwrite64): Don't use CHECK_N.
69254         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
69255         (do_pread): Don't use CHECK_N.
69256         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
69257         (do_pread64): Don't use CHECK_N.
69258         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
69259         (do_pwrite): Don't use CHECK_N.
69260         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
69261         (do_pwrite64): Don't use CHECK_N.
69262         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
69263         (__libc_readv): Don't use CHECK_N.
69264         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
69265         (semop): Don't use CHECK_N.
69266         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
69267         <bp-checks.h>.
69268         (semtimedop): Don't use CHECK_N.
69269         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
69270         (__libc_pread): Don't use CHECK_N.
69271         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
69272         <bp-checks.h>.
69273         (__libc_pread64): Don't use CHECK_N.
69274         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
69275         <bp-checks.h>.
69276         (__libc_pwrite): Don't use CHECK_N.
69277         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
69278         <bp-checks.h>.
69279         (__libc_pwrite64): Don't use CHECK_N.
69280         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
69281         <bp-checks.h>.
69282         (__libc_msgrcv): Don't use CHECK_N.
69283         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
69284         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
69285         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
69286         (__libc_writev): Don't use CHECK_N.
69287
69288 2013-02-08  Roland McGrath  <roland@hack.frob.com>
69289
69290         * string/strcpy.c: Removed unused variable.
69291
69292         * Makeconfig (+sysdep-includes): Define with := rather than =.
69293         Use an existing include/ subdir of each sysdeps dir before it.
69294
69295 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
69296
69297         * nscd/connection.c (register_traced_file): Comment function.
69298         [HAVE_INOTIFY] (union __inev): Define.
69299         [HAVE_INOTIFY] (inotify_check_files): New function.
69300         [HAVE_INOTIFY] (clear_db_cache): Likewise.
69301         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
69302         clear_db_cache.
69303         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
69304
69305 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
69306
69307         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
69308         loaded if not already and that a failure is permanent.
69309
69310 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
69311
69312         [BZ #15006]
69313         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
69314         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
69315
69316 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
69317
69318         [BZ #13550]
69319         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
69320         (CHECK_1_NULL_OK): Likewise.
69321         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
69322         (__fxstat): Do not use CHECK_1.
69323         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
69324         <bp-checks.h>.
69325         (___fxstat64): Do not use CHECK_1.
69326         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
69327         <bp-checks.h>.
69328         (__fxstatat): Do not use CHECK_1.
69329         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
69330         <bp-checks.h>.
69331         (__fxstatat64): Do not use CHECK_1.
69332         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
69333         <bp-checks.h>.
69334         (__fxstat): Do not use CHECK_1.
69335         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
69336         <bp-checks.h>.
69337         (__fxstatat): Do not use CHECK_1.
69338         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
69339         <bp-checks.h>.
69340         (__getresgid): Do not use CHECK_1.
69341         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
69342         <bp-checks.h>.
69343         (__getresuid): Do not use CHECK_1.
69344         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
69345         <bp-checks.h>.
69346         (__lxstat): Do not use CHECK_1.
69347         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
69348         <bp-checks.h>.
69349         (__old_msgctl): Do not use CHECK_1.
69350         (__new_msgctl): Likewise.
69351         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
69352         <bp-checks.h>.
69353         (__new_setrlimit): Do not use CHECK_1.
69354         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
69355         <bp-checks.h>.
69356         (__old_shmctl): Do not use CHECK_1.
69357         (__new_shmctl): Likewise.
69358         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
69359         <bp-checks.h>.
69360         (__xstat): Do not use CHECK_1.
69361         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
69362         (__lxstat): Do not use CHECK_1.
69363         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
69364         <bp-checks.h>.
69365         (___lxstat64): Do not use CHECK_1.
69366         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
69367         (__old_msgctl): Do not use CHECK_1.
69368         (__new_msgctl): Likewise.
69369         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
69370         <bp-checks.h>.
69371         (__gettimeofday): Do not use CHECK_1.
69372         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
69373         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
69374         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
69375         <bp-checks.h>.
69376         (__gettimeofday): Do not use CHECK_1.
69377         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
69378         (__old_shmctl): Do not use CHECK_1_NULL_OK.
69379         (__new_shmctl): Do not use CHECK_1.
69380         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
69381         <bp-checks.h>.
69382         (do_sigtimedwait): Do not use CHECK_1.
69383         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
69384         <bp-checks.h>.
69385         (do_sigwaitinfo): Do not use CHECK_1.
69386         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
69387         <bp-checks.h>.
69388         (msgctl): Do not use CHECK_1.
69389         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
69390         <bp-checks.h>.
69391         (shmctl): Do not use CHECK_1.
69392         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
69393         (ustat): Do not use CHECK_1.
69394         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
69395         <bp-checks.h>.
69396         (__fxstat): Do not use CHECK_1.
69397         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
69398         <bp-checks.h>.
69399         (__fxstatat): Do not use CHECK_1.
69400         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
69401         <bp-checks.h>.
69402         (__lxstat): Do not use CHECK_1.
69403         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
69404         <bp-checks.h>.
69405         (__xstat): Do not use CHECK_1.
69406         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
69407         (__xstat): Do not use CHECK_1.
69408         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
69409         (___xstat64): Do not use CHECK_1.
69410
69411         [BZ #13550]
69412         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
69413         definitions.
69414         (CHECK_BOUNDS_HIGH): Likewise.
69415         * string/strcpy.c: Do not include <bp-checks.h>.
69416         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
69417
69418 2013-02-07  Roland McGrath  <roland@hack.frob.com>
69419
69420         * nscd/nscd-client.h (__nscd_drop_map_ref):
69421         Add __attribute__ ((unused)).
69422         * nis/nss-nisplus.h (niserr2nss): Likewise.
69423
69424         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
69425         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
69426
69427         * csu/libc-tls.c (init_static_tls, init_slotinfo):
69428         Remove inline keyword.
69429         * include/rounding-mode.h (round_away): Likewise.
69430         * libio/wfileops.c (adjust_wide_data): Likewise.
69431         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
69432         (__m128i_strloadu_tolower): Likewise.
69433         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
69434         (__m128i_strloadu_tolower): Likewise.
69435         * time/mktime.c (ydhms_diff): Likewise.
69436         * locale/elem-hash.h (elem_hash): Likewise.
69437         * locale/setlocale.c (setdata): Likewise.
69438         * posix/regex_internal.h (re_string_char_size_at): Likewise.
69439         (re_string_wchar_at): Likewise.
69440         (bitset_not, bitset_merge, bitset_mask): Likewise.
69441         [!(__GNUC__ > 3)] (inline): Remove macro.
69442         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
69443         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
69444         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
69445         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
69446         * string/memcmp.c (memcmp_bytes): Likewise.
69447         * locale/programs/locarchive.c (compute_hashval): Likewise.
69448         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
69449         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
69450         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
69451         * nss/getent.c (print_rpc, print_protocols): Likewise.
69452         (print_passwd, print_group, print_aliases): Likewise.
69453         * nis/nss-nisplus.h (niserr2nss): Likewise.
69454         * nscd/connections.c (restart_p): Likewise.
69455         Change return type to bool.
69456
69457 2013-02-05  Roland McGrath  <roland@hack.frob.com>
69458
69459         * Makeconfig (all-Depend-files): Add existing
69460         $(sorted-subdirs:=/Depend) files.
69461         (all-subdirs): Remove nss.
69462         * sysdeps/unix/inet/Subdirs: Add it here instead.
69463         * hesiod/Depend: New file.
69464
69465         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
69466         instead of calling alloca.
69467
69468         * io/lseek.c (__lseek): Rename to __libc_lseek.
69469         Define __lseek as an alias.
69470
69471         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
69472
69473 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
69474
69475         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
69476         else clause and remove check for non-standard endianness.
69477
69478 2013-02-04  David S. Miller  <davem@davemloft.net>
69479
69480         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69481
69482 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
69483
69484         [BZ #13550]
69485         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
69486         (__ubp_memchr): Remove prototype.
69487         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
69488         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
69489         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
69490         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
69491         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
69492         Remove alias.
69493         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
69494         (__ubp_memchr): Likewise.
69495         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
69496         (__ubp_memchr): Likewise.
69497         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
69498         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
69499         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
69500         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
69501         CHECK_STRING.
69502         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
69503         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
69504         (__getcwd): Do not use CHECK_STRING.
69505         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
69506         <bp-checks.h>.
69507         (__real_chown): Do not use CHECK_STRING.
69508         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
69509         <bp-checks.h>.
69510         (fchownat): Do not use CHECK_STRING.
69511         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
69512         CHECK_STRING.
69513         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
69514         <bp-checks.h>.
69515         (__lchown): Do not use CHECK_STRING.
69516         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
69517         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
69518         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
69519         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
69520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
69521         include <bp-checks.h>.
69522         (truncate64): Do not use CHECK_STRING.
69523         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
69524         <bp-checks.h>.
69525         (__real_chown): Do not use CHECK_STRING.
69526         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
69527         <bp-checks.h>.
69528         (__lchown): Do not use CHECK_STRING.
69529         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
69530         <bp-checks.h>.
69531         (__chown): Do not use CHECK_STRING.
69532         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
69533         <bp-checks.h>.
69534         (truncate64): Do not use CHECK_STRING.
69535         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
69536         Likewise.
69537         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
69538         (__xmknod): Do not use CHECK_STRING.
69539         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
69540         <bp-checks.h>.
69541         (__xmknodat): Do not use CHECK_STRING.
69542         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
69543         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
69544
69545 2013-02-04  Andreas Schwab  <schwab@suse.de>
69546
69547         [BZ #14142]
69548         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
69549         * include/netdb.h: Likewise for h_errno.
69550         * elf/tst-stackguard1.c: Include <tls.h>.
69551
69552 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
69553
69554         * elf/link.h (struct link_map): Extend the l_addr comment.
69555         * include/link.h (struct link_map): Likewise.
69556
69557 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
69558
69559         [BZ #13550]
69560         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
69561         (BOUNDED_1): Remove macro.
69562         * debug/backtrace.c: Don't include <bp-checks.h>.
69563         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
69564         (__backtrace): Likewise.
69565         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
69566         <bp-checks.h>.
69567         (__backtrace): Don't use BOUNDED_1.
69568         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
69569         <bp-checks.h>.
69570         (__backtrace): Don't use BOUNDED_1.
69571         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
69572         (__backtrace): Don't use BOUNDED_1.
69573         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
69574         (shmat): Don't use BOUNDED_N.
69575
69576 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
69577
69578         [BZ #13550]
69579         * sysdeps/generic/bp-start.h: Remove file.
69580         * csu/libc-start.c: Don't include <bp-start.h>.
69581         (LIBC_START_MAIN): Set up __environ directly instead of using
69582         INIT_ARGV_and_ENVIRON.
69583         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
69584         <bp-start.h>.
69585
69586         [BZ #13550]
69587         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
69588         definitions.
69589         (CHECK_FCNTL): Likewise.
69590         (CHECK_N_PAGES): Likewise.
69591
69592         [BZ #13550]
69593         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
69594         definitions.
69595         (CHECK_SIGSET_NULL_OK): Likewise.
69596         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
69597         <bp-checks.h>.
69598         (sigpending): Don't use CHECK_SIGSET.
69599         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
69600         <bp-checks.h>.
69601         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
69602         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
69603         <bp-checks.h>.
69604         (do_sigsuspend): Don't use CHECK_SIGSET.
69605         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
69606         use CHECK_SIGSET.
69607         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
69608         (do_sigwait): Don't use CHECK_SIGSET.
69609         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
69610         use CHECK_SIGSET.
69611         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
69612         include <bp-checks.h>.
69613         (sigpending): Don't use CHECK_SIGSET.
69614         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
69615         include <bp-checks.h>.
69616         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
69617         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
69618         <bp-checks.h>.
69619         (sigpending): Don't use CHECK_SIGSET.
69620         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
69621         <bp-checks.h>.
69622         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
69623
69624         [BZ #13550]
69625         * sysdeps/generic/bp-semctl.h: Remove file.
69626         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
69627         <bp-checks.h> and <bp-semctl.h>.
69628         (__old_semctl): Don't use CHECK_SEMCTL.
69629         (__new_semctl): Likewise.
69630         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
69631         and <bp-semctl.h>.
69632         (__old_semctl): Don't use CHECK_SEMCTL.
69633         (__new_semctl): Likewise.
69634         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
69635         <bp-checks.h> and <bp-semctl.h>.
69636         (__old_semctl): Don't use CHECK_SEMCTL.
69637         (__new_semctl): Likewise.
69638         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
69639         <bp-checks.h> and <bp-semctl.h>.
69640         (semctl): Don't use CHECK_SEMCTL.
69641
69642         [BZ #13550]
69643         * Makerules (elide-bp-thunks): Remove variable.
69644         (elide-routines.oS): Don't use $(elide-bp-thunks).
69645         (elide-routines.os): Likewise.
69646         (elide-routines.o): Likewise.
69647         (elide-routines.op): Likewise.
69648         (elide-routines.og): Likewise.
69649         (objects): Don't use $(bp-thunks).
69650         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
69651         include.
69652         (common-generated): Do not add s-proto-bp.d.
69653         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
69654         (int): Likewise.
69655         (typ): Likewise.
69656         Do not generate makefile rules for bounded-pointer thunks.
69657         * sysdeps/generic/bp-thunks.h: Remove file.
69658         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
69659         * sysdeps/unix/s-proto-bp.S: Likewise.
69660
69661         [BZ #15062]
69662         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
69663         parts of result separately when argument is not close to line from
69664         -i to i and one part of argument is small.
69665         * math/k_casinhf.c (__kernel_casinhf): Likewise.
69666         * math/k_casinhl.c (__kernel_casinhl): Likewise.
69667         * math/libm-test.inc (cacos_test): Add more tests.
69668         (casin_test): Likewise.
69669         (casinh_test): Likewise.
69670         * sysdeps/i386/fpu/libm-test-ulps: Update.
69671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69672
69673 2013-01-31  David S. Miller  <davem@davemloft.net>
69674
69675         * po/de.po: Update from translation team.
69676
69677 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
69678
69679         * time/tzfile.c: Include stdint.h for SIZE_MAX.
69680
69681 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
69682
69683         * configure.in (_AC_PROG_CC_C89): New definition.
69684         * configure: Regenerate.
69685
69686         * configure.in (AC_PROG_CPP): New definition.
69687         * configure: Regenerate.
69688
69689 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
69690
69691         * debug/tst-backtrace.h: New file.
69692         * debug/tst-backtrace2.c: Include tst-backtrace.h.
69693         (ret): Remove variable.
69694         (x): Likewise.
69695         (FAIL): Remove macro.
69696         (NO_INLINE): Likewise.
69697         (fn1): Use match function instead of strstr.
69698         * debug/tst-backtrace3.c: Include tst-backtrace.h.
69699         (ret): Remove variable.
69700         (x): Likewise.
69701         (FAIL): Remove macro.
69702         (NO_INLINE): Likewise.
69703         (fn): Use match function instead of strstr.
69704         * debug/tst-backtrace4.c: Include tst-backtrace.h.
69705         (ret): Remove variable.
69706         (x): Likewise.
69707         (FAIL): Remove macro.
69708         (NO_INLINE): Likewise.
69709         (handle_signal): Use match function instead of strstr.
69710         * debug/tst-backtrace5.c: Include tst-backtrace.h.
69711         (ret): Remove variable.
69712         (x): Likewise.
69713         (FAIL): Remove macro.
69714         (NO_INLINE): Likewise.
69715         (handle_signal): Use match function instead of strstr.
69716
69717 2013-01-23  Roland McGrath  <roland@hack.frob.com>
69718
69719         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
69720
69721 2013-01-23  David S. Miller  <davem@davemloft.net>
69722
69723         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
69724         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
69725         argument of CAS if possible.
69726         * sysdeps/sparc/sparc64/bits/atomic.h
69727         (__arch_compare_and_exchange_val_32_acq): Likewise.
69728         (__arch_compare_and_exchange_val_64_acq): Likewise.
69729
69730 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
69731
69732         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
69733         * sysdeps/posix/ulimit.c: ... this.
69734         Include <limits.h>.
69735         * sysdeps/unix/bsd/ulimit.c: Remove file.
69736
69737 2013-01-23  Adam Conrad  <adconrad@0c3.net>
69738
69739         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
69740         (LDFLAGS-tst-array5): Likewise.
69741
69742 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
69743
69744         [BZ #15036]
69745         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
69746         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
69747         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
69748         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
69749
69750 2013-01-21  David S. Miller  <davem@davemloft.net>
69751
69752         * sysdeps/sparc/backtrace.c: New file.
69753         * sysdeps/sparc/sparc32/backtrace.h: New file.
69754         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
69755         * sysdeps/sparc/sparc64/backtrace.h: New file.
69756         * sysdeps/sparc/sparc64/backtrace.c: Delete.
69757         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
69758         -funwind-tables.
69759
69760 2013-01-21  Andreas Schwab  <schwab@suse.de>
69761
69762         [BZ #15020]
69763         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
69764         closed its stdout.
69765
69766 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
69767
69768         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
69769         "mpa2.h".
69770         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
69771
69772 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
69773             Mark Mitchell  <mark@codesourcery.com>
69774             Tom de Vries  <tom@codesourcery.com>
69775             Paul Pluzhnikov  <ppluzhnikov@google.com>
69776
69777         * debug/tst-backtrace2.c: New file.
69778         * debug/tst-backtrace3.c: Likewise.
69779         * debug/tst-backtrace4.c: Likewise.
69780         * debug/tst-backtrace5.c: Likewise.
69781         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
69782         (CFLAGS-tst-backtrace3.c): Likewise.
69783         (CFLAGS-tst-backtrace4.c): Likewise.
69784         (CFLAGS-tst-backtrace5.c): Likewise.
69785         (LDFLAGS-tst-backtrace2): Likewise.
69786         (LDFLAGS-tst-backtrace3): Likewise.
69787         (LDFLAGS-tst-backtrace4): Likewise.
69788         (LDFLAGS-tst-backtrace5): Likewise.
69789         (tests): Add new tests tst-backtrace2, tst-backtrace3,
69790         tst-backtrace4 and tst-backtrace5.
69791
69792 2013-01-18  Anton Blanchard  <anton@samba.org>
69793             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
69794
69795         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
69796         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
69797         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
69798         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
69799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
69800         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
69801         "+r" and remove output regs list as redundant.  Add explicit inline
69802         asm to specify register of return val to work around compiler codegen
69803         bug.  Remove (int) cast on return value.  Add return type parameter to
69804         use in macro so that this macro does not truncate return value for
69805         64-bit values.
69806         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
69807         pass to INTERNAL_VSYSCALL_NCS.
69808         (INLINE_VSYSCALL): Add 'long int' as return type to
69809         INTERNAL_VSYSCALL_NCS macro invocation.
69810         (INTERNAL_VSYSCALL): Add 'long int' as return type to
69811         INTERNAL_VSYSCALL_NCS macro invocation.
69812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69813
69814 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
69815
69816         [BZ #14496]
69817         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
69818         Fix application of SIMD FP exception mask.
69819
69820         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
69821         mp_no from a power of two.
69822         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
69823         __mpexp_twomm1.  Use __pow_mp.
69824
69825         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
69826         multiplication.
69827
69828 2013-01-17  David S. Miller  <davem@davemloft.net>
69829
69830         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69831
69832 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
69833
69834         [BZ #15023]
69835         * include/complex.h: Condition contents on [!_COMPLEX_H].
69836         (__kernel_casinhf): New prototype.
69837         (__kernel_casinh): Likewise.
69838         (__kernel_casinhl): Likewise.
69839         * math/Makefile (libm_calls): Add k_casinh.
69840         * math/k_casinh.c: New file.
69841         * math/k_casinhf.c: Likewise.
69842         * math/k_casinhl.c: Likewise.
69843         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
69844         finite nonzero arguments.
69845         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
69846         finite nonzero arguments.
69847         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
69848         finite nonzero arguments.
69849         * math/s_casinh.c: Do not include <float.h>.
69850         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
69851         * math/s_casinhf.c: Do not include <float.h>.
69852         (__casinhf): Move code for finite nonzero arguments to
69853         k_casinhf.c.
69854         * math/s_casinhl.c: Do not include <float.h>.
69855         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
69856         redefine.
69857         (__casinhl): Move code for finite nonzero arguments to
69858         k_casinhl.c.
69859         * math/libm-test.inc (cacos_test): Add more tests.
69860         * sysdeps/i386/fpu/libm-test-ulps: Update.
69861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69862
69863 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
69864
69865         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
69866         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
69867         [!HAVE_MREMAP]: Remove [defined linux] case.
69868         * malloc/arena.c: Do not include <malloc-sysdep.h>.
69869
69870 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
69871
69872         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
69873
69874 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
69875
69876         * elf/elf.h (R_386_SIZE32): New relocation.
69877         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
69878         R_386_SIZE32.
69879         (elf_machine_rela): Likewise.
69880         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
69881         R_X86_64_SIZE64 and R_X86_64_SIZE32.
69882
69883 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
69884
69885         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
69886         (FP_FAST_FMA): Do not define.
69887         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
69888         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
69889         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
69890         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
69891         !_SOFT_FLOAT]: Likewise.
69892         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
69893         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
69894         value.
69895         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
69896         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
69897         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
69898         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
69899         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
69900         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
69901         file.
69902
69903 2013-01-16  Andreas Schwab  <schwab@suse.de>
69904
69905         [BZ #14327]
69906         * include/stdlib.h (__mktemp): Add declaration.
69907         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
69908         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
69909
69910 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
69911
69912         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
69913         definitions.
69914         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
69915         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
69916         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
69917         definitions here.
69918         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
69919         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
69920         definitions.
69921         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
69922         and ONE.
69923         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
69924         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
69925         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
69926         definitions.
69927         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
69928         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
69929         definitions.
69930         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
69931
69932         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
69933
69934 2013-01-15  David S. Miller  <davem@davemloft.net>
69935
69936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
69937         trunc{,f} to libm-sysdep_routes.
69938         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
69939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
69940         file.
69941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
69942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
69943         file.
69944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
69945         file.
69946         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
69947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
69948         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
69949         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
69950         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
69951         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
69952         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
69953         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
69954
69955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
69956         nearbyint{,f} to libm-sysdep_routes.
69957         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
69958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
69959         New file.
69960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
69961         file.
69962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
69963         New file.
69964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
69965         file.
69966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
69967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
69968         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
69969         file.
69970         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
69971         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
69972         file.
69973         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
69974         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
69975         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
69976
69977         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
69978         libc_feholdexcept and libc_fesetenv.
69979
69980 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
69981
69982         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
69983
69984 2013-01-14  David S. Miller  <davem@davemloft.net>
69985
69986         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
69987         (SPARC_ASM_VIS2_IFUNC): Likewise.
69988         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
69989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
69990         use of 'siam' instruction.
69991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
69992         Likewise.
69993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
69994         Likewise.
69995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
69996         Likewise.
69997         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
69998         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
69999         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
70000         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
70001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
70002         file.
70003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
70004         file.
70005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
70006         file.
70007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
70008         file.
70009         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
70010         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
70011         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
70012         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
70013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
70014         new VIS2 routines.
70015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
70016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
70017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
70018         Likewise.
70019         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
70020         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
70021         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
70022         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
70023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
70024         routines to libm-sysdep_routines.
70025         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
70026
70027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
70028         fdim/fdimf to libm-sysdep_routines.
70029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
70030         file.
70031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
70032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
70033         file.
70034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
70035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
70036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
70037         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
70038         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
70039         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
70040         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
70041
70042 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
70043
70044         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
70045         to optimize copies.
70046
70047         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
70048         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
70049         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
70050
70051         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
70052         local variable MPTWO.
70053         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
70054         Likewise.
70055
70056 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
70057
70058         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
70059         GLOB_NOESCAPE.
70060
70061 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
70062
70063         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
70064
70065 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
70066
70067         * manual/pattern.texi (glob_t): Document gl_flags.
70068         (glob64_t): Likewise.
70069
70070 2013-01-11  David S. Miller  <davem@davemloft.net>
70071
70072         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
70073         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
70074         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
70075         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
70076         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
70077         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
70078         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
70079         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
70080         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
70081         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
70082         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
70083         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
70084         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
70085
70086         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
70087         sparc V9 rather than using V8 code.
70088         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
70089         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
70090
70091         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
70092         Move to...
70093         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
70094         Here.
70095
70096 2013-01-11  Roland McGrath  <roland@hack.frob.com>
70097
70098         [BZ #14941]
70099         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
70100         not in the main loop.
70101         * configure: Regenerated.
70102
70103 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
70104
70105         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
70106         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
70107         to just #else.
70108         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
70109         [!__GLIBC_HAVE_LONG_LONG] case.
70110         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
70111         condition to just #else.
70112         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
70113         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
70114         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
70115         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
70116         unconditional.
70117         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
70118         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
70119         #elif condition to just #else.
70120         * sysdeps/unix/sysv/linux/sys/sysmacros.h
70121         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
70122         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
70123         #elif condition to just #else.
70124
70125 2013-01-11  Steve Ellcey  <sellcey@mips.com>
70126
70127         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
70128         (EF_MIPS_ARCH_64): Fix value.
70129         (EF_MIPS_ARCH_32R2): New.
70130         (EF_MIPS_ARCH_64R2): New.
70131
70132 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
70133
70134         * Makeconfig (+link-pie-before-libc): New.
70135         (+link-pie-after-libc): Likewise.
70136         (+link-pie-tests): Likewise.
70137         (+link-pie): Rewritten.
70138         (link-before-libc): Remove $(config-LDFLAGS).
70139         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
70140         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
70141         (config-LDFLAGS): Renamed to ...
70142         (rtld-LDFLAGS): This.
70143         (rtld-tests-LDFLAGS): New macro.
70144         (link-libc-rpath-link): Likewise.
70145         (link-libc-tests-rpath-link): Likewise.
70146         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
70147         (link-libc): Prepand $(link-libc-rpath-link).
70148         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
70149         (test-program-prefix): New macro.
70150         (test-via-rtld-prefix): Likewise.
70151         (test-program-cmd): Likewise.
70152         (host-test-program-cmd): Likewise.
70153         * Makefile ($(common-objpfx)testrun.sh): Replace
70154         $(run-program-prefix) with $(test-program-prefix).
70155         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
70156         $(rtld-LDFLAGS).
70157         ($(common-objpfx)shlib.lds): Likewise.
70158         (build-module-helper): Likewise.
70159         ($(common-objpfx)format.lds): Likewise.
70160         * Rules (binaries-pie-tests): New.
70161         (binaries-pie-notests): Likewise.
70162         (binaries-pie): Rewritten.
70163         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
70164         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
70165         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
70166         (make-test-out): Replace $(host-built-program-cmd) with
70167         $(host-test-program-cmd).
70168         * config.make.in (build-hardcoded-path-in-tests): New variable.
70169         * configure.in (--enable-hardcoded-path-in-tests): New configure
70170         option.
70171         (hardcoded_path_in_tests): New AC_SUBST.
70172         * configure: Regenerated.
70173         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
70174         $(built-program-cmd) with $(test-program-cmd).
70175         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
70176         (test_program_cmd): This.
70177         * elf/Makefile ($(objpfx)order.out): Run test with
70178         $(test-program-prefix).
70179         ($(objpfx)order2.out): Likewise.
70180         ($(objpfx)tst-initorder.out): Likewise.
70181         ($(objpfx)tst-initorder2.out): Likewise.
70182         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
70183         $(test-program-cmd).
70184         ($(objpfx)tst-array1-static.out): Likewise.
70185         ($(objpfx)tst-array2.out): Likewise.
70186         ($(objpfx)tst-array3.out): Likewise.
70187         ($(objpfx)tst-array4.out): Likewise.
70188         ($(objpfx)tst-array5.out): Likewise.
70189         ($(objpfx)tst-array5-static.out): Likewise.
70190         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
70191         $(test-program-cmd).
70192         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
70193         $(run-program-prefix) with $(test-program-prefix).
70194         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
70195         (test_program_prefix): This.
70196         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
70197         $(run-program-prefix) with $(test-program-prefix).
70198         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
70199         (test_program_prefix): This.
70200         * iconvdata/tst-tables.sh: Likewise.
70201         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
70202         $(run-program-prefix) with $(test-program-prefix).
70203         ($(objpfx)tst-translit.out): Likewise.
70204         ($(objpfx)tst-gettext2.out): Likewise.
70205         ($(objpfx)tst-gettext4.out): Likewise.
70206         ($(objpfx)tst-gettext6.out): Likewise.
70207         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
70208         (test_program_prefix): This.
70209         * intl/tst-gettext2.sh: Likewise.
70210         * intl/tst-gettext4.sh  Likewise.
70211         * intl/tst-gettext6.sh: Likewise.
70212         * intl/tst-translit.sh: Likewise.
70213         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
70214         with $(test-program-cmd).
70215         * libio/Makefile ($(objpfx)test-freopen.out): Replace
70216         $(run-program-prefix) with $(test-program-prefix).
70217         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
70218         (test_program_prefix): This.
70219         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
70220         $(run-program-prefix) with $(test-program-prefix).
70221         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
70222         (test_program_prefix): This.
70223         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
70224         * posix/Makefile ($(objpfx)globtest.out): Replace
70225         $(run-via-rtld-prefix) and $(test-wrapper) with
70226         $(test-program-prefix) and $(test-via-rtld-prefix).
70227         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
70228         $(test-program-prefix).
70229         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
70230         $(host-test-program-cmd).
70231         (tst-spawn-ARGS): Likewise.
70232         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
70233         $(test-program-prefix).
70234         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
70235         (test_via_rtld_prefix): This.
70236         (test_wrapper): Renamed to ...
70237         (test_program_prefix): This.
70238         (run_program_prefix): Replaced by test_program_prefix.
70239         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
70240         (test_program_prefix): This.
70241         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
70242         with $(host-test-program-cmd).
70243         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
70244         $(run-program-prefix) with $(test-program-prefix).
70245         ($(objpfx)tst-printf.out): Likewise.
70246         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
70247         $(test-program-cmd).
70248         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
70249         (test_program_prefix): This.
70250         * stdio-common/tst-unbputc.sh: Likewise.
70251         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
70252         $(run-program-prefix) with $(test-program-prefix).
70253         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
70254         (test_program_prefix): This.
70255         * string/Makefile ($(objpfx)tst-svc.out):  Replace
70256         $(built-program-cmd) with $(test-program-cmd).
70257
70258 2013-01-11  Andreas Jaeger  <aj@suse.de>
70259
70260         [BZ #15003]
70261         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
70262         value. Sync with Linux 3.7.
70263
70264 2013-01-10  David S. Miller  <davem@davemloft.net>
70265
70266         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
70267         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
70268         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
70269
70270 2013-01-10  Roland McGrath  <roland@hack.frob.com>
70271
70272         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
70273         never set.
70274         * configure: Regenerated.
70275
70276 2013-01-10  David S. Miller  <davem@davemloft.net>
70277
70278         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
70279         sparc V9 rather than using V8 code.
70280         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
70281         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
70282
70283 2013-01-10  Roland McGrath  <roland@hack.frob.com>
70284
70285         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
70286         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
70287         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
70288         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
70289         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
70290         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
70291         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
70292         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
70293         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
70294         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
70295         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
70296         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
70297         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
70298         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
70299         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
70300         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
70301         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
70302         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
70303         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
70304         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
70305         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
70306         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
70307         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
70308         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
70309         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
70310         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
70311         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
70312
70313 2013-01-10  David S. Miller  <davem@davemloft.net>
70314
70315         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70316
70317 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
70318
70319         * posix/Makefile (tests-static): New variable.
70320         (tests): Add $(tests-static).
70321         (tst-exec-static-ARGS): New variable.
70322         (tst-spawn-static-ARGS): Likewise.
70323         * posix/tst-exec-static.c: New file.
70324         * posix/tst-spawn-static.c: Likewise.
70325         * posix/tst-exec.c: Support run directly.
70326         * posix/tst-spawn.c: Likewise.
70327
70328 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
70329
70330         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
70331         long.
70332         * math/bits/mathcalls.h (llrint): Likewise.
70333         (llround): Likewise.
70334         * stdlib/stdlib.h (struct drand48_data): Likewise.
70335         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
70336         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
70337         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
70338         Likewise.
70339         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
70340         Likewise.
70341         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
70342         (elf_greg_t): Likewise.
70343         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
70344         (__jmp_buf): Likewise.
70345         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
70346         definitions.
70347         (llrint): Likewise, for all definitions.
70348         (llrintl): Likewise.
70349
70350         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
70351         Remove [__GNUC__] condition.
70352         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
70353         condition to just [__USE_ISOC99].
70354         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
70355
70356 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
70357
70358         [BZ #14200]
70359         * sysdeps/unix/sysv/linux/x86/bits/environments.h
70360         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
70361         defined.
70362         (_POSIX_V6_ILP32_OFF32): Likewise.
70363         (_XBS5_ILP32_OFF32): Likewise.
70364         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
70365         (__ILP32_OFFBIG_LDFLAGS): Likewise.
70366
70367 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
70368
70369         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
70370
70371         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
70372         doubles __mpexp_twomm1.  Adjust usage.
70373         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
70374         Remove.
70375
70376 2013-01-10  Andreas Schwab  <schwab@suse.de>
70377
70378         [BZ #14964]
70379         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
70380         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
70381
70382 2013-01-09  David S. Miller  <davem@davemloft.net>
70383
70384         [BZ #15003]
70385         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
70386         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
70387         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
70388         (TCP_FASTOPEN): Define.
70389         (tcp_repair_opt): New structure.
70390         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
70391         enum values.
70392         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
70393         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
70394         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
70395         (tcp_cookie_transactions): New structure.
70396
70397 2013-01-09  Anton Blanchard  <anton@samba.org>
70398
70399         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
70400         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
70401         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
70402         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
70403
70404 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
70405
70406         * include/features.h (__USE_ANSI): Remove.
70407
70408 2013-01-09  Roland McGrath  <roland@hack.frob.com>
70409
70410         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
70411
70412         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
70413
70414 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
70415
70416         * sysdeps/s390/fpu/libm-test-ulps: Update.
70417
70418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70419
70420         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
70421         (__acr): Likewise.
70422         (__cpy): Likewise.
70423         (norm): Likewise.
70424         (denorm): Likewise.
70425         (__mp_dbl): Likewise.
70426         (__dbl_mp): Likewise.
70427         (add_magnitudes): Likewise.
70428         (sub_magnitudes): Likewise.
70429         (__add): Likewise.
70430         (__sub): Likewise.
70431         (__mul): Likewise.
70432         (__inv): Likewise.
70433         (__dvd): Likewise.
70434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
70435         (__acr): Likewise.
70436         (__cpy): Likewise.
70437         (norm): Likewise.
70438         (denorm): Likewise.
70439         (__mp_dbl): Likewise.
70440         (__dbl_mp): Likewise.
70441         (add_magnitudes): Likewise.
70442         (sub_magnitudes): Likewise.
70443         (__add): Likewise.
70444         (__sub): Likewise.
70445         (__mul): Likewise.
70446         (__inv): Likewise.
70447         (__dvd): Likewise.
70448         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
70449         (__acr): Likewise.
70450         (__cpy): Likewise.
70451         (norm): Likewise.
70452         (denorm): Likewise.
70453         (__mp_dbl): Likewise.
70454         (__dbl_mp): Likewise.
70455         (add_magnitudes): Likewise.
70456         (sub_magnitudes): Likewise.
70457         (__add): Likewise.
70458         (__sub): Likewise.
70459         (__mul): Likewise.
70460         (__inv): Likewise.
70461         (__dvd): Likewise.
70462
70463 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
70464
70465         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
70466         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
70467         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
70468         2 && __USE_EXTERN_INLINES]: Likewise.
70469
70470 2013-01-08  Andreas Jaeger  <aj@suse.de>
70471
70472         [BZ #14985]
70473         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
70474         Remove.
70475         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
70476         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
70477
70478 2013-01-07  Anton Blanchard  <anton@samba.org>
70479
70480         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
70481         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
70482         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
70483         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
70484         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
70485         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
70486         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
70487         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
70488         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
70489         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
70490         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70491         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70492         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
70493         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
70494         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
70495         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70496         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70497         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
70498         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
70499         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
70500         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
70501         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
70502         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
70503         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
70504         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
70505         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
70506         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
70507         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
70508         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
70509         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
70510         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
70511         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
70512         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
70513         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
70514         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
70515         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
70516         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
70517         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
70518         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
70519         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
70520         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
70521         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
70522         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
70523
70524 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
70525
70526         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
70527         (__MALLOC_PMT): Likewise.
70528         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
70529         [__GNUC__], only on [_LIBC].
70530         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
70531         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
70532         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
70533         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
70534         forward declaration.
70535         (realloc_hook_ini): Likewise.
70536         (memalign_hook_ini): Likewise.
70537         (__libc_memalign): Do not use __MALLOC_PMT in variable
70538         declaration.
70539         (__libc_valloc): Likewise.
70540         (__libc_pvalloc): Likewise.
70541         (__libc_calloc): Likewise.
70542         (__posix_memalign): Likewise.
70543
70544         [BZ #14996]
70545         * math/s_casinh.c: Include <float.h>.
70546         (__casinh): Do not do computation with squaring and square root
70547         for large arguments.
70548         * math/s_casinhf.c: Include <float.h>.
70549         (__casinhf): Do not do computation with squaring and square root
70550         for large arguments.
70551         * math/s_casinhl.c: Include <float.h>.
70552         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
70553         (__casinhl): Do not do computation with squaring and square root
70554         for large arguments.
70555         * math/libm-test.inc (casin_test): Add more tests.
70556         (casinh_test): Likewise.
70557         * sysdeps/i386/fpu/libm-test-ulps: Update.
70558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70559
70560 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
70561
70562         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
70563         (__x86_64_raw_data_cache_size): Likewise.
70564         (__x86_64_data_cache_size_half): Likewise.
70565         (__x86_64_raw_data_cache_size_half): Likewise.
70566         (__x86_64_shared_cache_size): Likewise.
70567         (__x86_64_raw_shared_cache_size): Likewise.
70568         (__x86_64_shared_cache_size_half): Likewise.
70569         (__x86_64_raw_shared_cache_size_half): Likewise.
70570         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
70571         to ...
70572         (__x86_data_cache_size): This.
70573         (__x86_64_raw_data_cache_size): Renamed to ...
70574         (__x86_raw_data_cache_size): This.
70575         (__x86_64_data_cache_size_half): Renamed to ...
70576         (__x86_data_cache_size_half): This.
70577         (__x86_64_raw_data_cache_size_half): Renamed to ...
70578         (__x86_raw_data_cache_size_half): This.
70579         (__x86_64_shared_cache_size): Renamed to ...
70580         (__x86_shared_cache_size): This.
70581         (__x86_64_raw_shared_cache_size): Renamed to ...
70582         (__x86_raw_shared_cache_size): This.
70583         (__x86_64_shared_cache_size_half): Renamed to ...
70584         (__x86_shared_cache_size_half): This.
70585         (__x86_64_raw_shared_cache_size_half): Renamed to ...
70586         (__x86_raw_shared_cache_size_half): This.
70587         * sysdeps/x86_64/memcpy.S: Updated.
70588         * sysdeps/x86_64/memset.S: Likewise.
70589         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
70590         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
70591         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
70592
70593 2013-01-04  David S. Miller  <davem@davemloft.net>
70594
70595         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70596
70597 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
70598
70599         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
70600         1 to avoid redefinition warning.
70601         (__USE_GNU): Don't define.
70602         (init_signaling_nan): Protoize.
70603
70604         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70605
70606 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
70607
70608         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
70609         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
70610         (__cpymn): Likewise.
70611         (norm): Remove commented code.
70612         (denorm): Likewise.
70613         (__mp_dbl): Likewise.
70614         (__inv): Likewise.
70615         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
70616         (__cpymn): Likewise.
70617         (norm): Remove commented code.
70618         (denorm): Likewise.
70619         (__mp_dbl): Likewise.
70620         (__inv): Likewise.
70621
70622         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
70623         mp_no value for 1.0 and 2.0.
70624         (norm): Use RADIXI instead of radixi.d.
70625         (denorm): Likewise.
70626         (__mul): Use 0.0 instead of zero.d.
70627         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
70628         mp_no value for 1.0 and 2.0.
70629         (norm): Use RADIXI instead of radixi.d.
70630         (denorm): Likewise.
70631         (__mul): Use 0.0 instead of zero.d.
70632
70633 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
70634
70635         [BZ #14994]
70636         * math/s_casinh.c (__casinh): Reduce finite argument to first
70637         quadrant then set signs of results at the end.
70638         * math/s_casinhf.c (__casinhf): Likewise.
70639         * math/s_casinhl.c (__casinhl): Likewise.
70640         * math/libm-test.inc (casin_test): Add more tests.
70641         (casinh_test): Likewise.
70642         * sysdeps/i386/fpu/libm-test-ulps: Update.
70643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70644
70645 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
70646
70647         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
70648
70649         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
70650
70651         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
70652         declarations.
70653         (denorm): Likewise.
70654         (__mp_dbl): Likewise.
70655         (__inv): Likewise.
70656
70657         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
70658         and adjust the header comment.
70659
70660         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
70661         variable name from declaration.
70662
70663 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
70664
70665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
70666         Initialize COMMON_CPUID_INDEX_7 element.
70667         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
70668         (CPUID_RTM): Likewise.
70669         (HAS_RTM): Likewise.
70670         (COMMON_CPUID_INDEX_7): New enum.
70671
70672 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
70673
70674         [BZ #14981]
70675         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
70676         size is zero, record memory as freed.
70677
70678 2013-01-03  Andreas Jaeger  <aj@suse.de>
70679
70680         * po/ia.po: Add new Interlingua translation.
70681
70682 2012-01-03  Allan McRae  <allan@archlinux.org>
70683
70684         * locale/programs/localedef.c: Fix description of '--posix' flag.
70685
70686 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
70687
70688         * NEWS: Update dates in second copyright notice.
70689         * README: Update copyright dates in example.
70690         * manual/libc.texinfo: Update copyright dates.
70691         * scripts/test-installation.pl: Update copyright date in --version
70692         output.
70693
70694         * hurd/ctty-input.c: Fix copyright notice formatting.
70695         * hurd/ctty-output.c: Likewise.
70696         * hurd/dtable.c: Likewise.
70697         * hurd/hurd-raise.c: Likewise.
70698         * hurd/hurdprio.c: Likewise.
70699         * hurd/msgportdemux.c: Likewise.
70700         * misc/sys/file.h: Likewise.
70701         * misc/sys/ioctl.h: Likewise.
70702         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
70703         * sysdeps/mach/hurd/chdir.c: Likewise.
70704         * sysdeps/mach/hurd/fchdir.c: Likewise.
70705         * sysdeps/mach/hurd/rename.c: Likewise.
70706         * sysdeps/mach/hurd/rmdir.c: Likewise.
70707         * sysdeps/mach/hurd/seekdir.c: Likewise.
70708         * sysdeps/mach/hurd/setsid.c: Likewise.
70709         * sysdeps/posix/wait3.c: Likewise.
70710
70711         * All files with FSF copyright notices: Update copyright dates
70712         using scripts/update-copyrights.
70713         * intl/plural.c: Regenerated.
70714         * locale/programs/charmap-kw.h: Likewise.
70715         * locale/programs/locfile-kw.h: Likewise.
70716
70717 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
70718
70719         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
70720         four values.
70721
70722         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
70723         calculation loop and add branch prediction.
70724
70725         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
70726         check access beyond bounds of m1np.
70727
70728         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
70729         MPTWO.
70730         (__inv): Remove local variable MPTWO to use the global
70731         constant.
70732         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
70733         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
70734         variable MPTWO.
70735         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
70736         MP3HALFS static const.
70737
70738 2013-01-01  David S. Miller  <davem@davemloft.net>
70739
70740         * po/ca.po: Update from translation team.
70741
70742 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
70743
70744         * scripts/update-copyrights: New file.
70745         * Makeconfig: Reformat copyright notice.
70746         * ctype/ctype.h: Likewise.
70747         * debug/swprintf_chk.c: Likewise.
70748         * elf/dl-cache.c: Likewise.
70749         * elf/dl-debug.c: Likewise.
70750         * elf/dl-object.c: Likewise.
70751         * grp/initgroups.c: Likewise.
70752         * hurd/Makefile: Likewise.
70753         * hurd/hurd/signal.h: Likewise.
70754         * hurd/hurdfault.c: Likewise.
70755         * hurd/hurdioctl.c: Likewise.
70756         * hurd/hurdlookup.c: Likewise.
70757         * hurd/intr-msg.c: Likewise.
70758         * iconv/gconv_open.c: Likewise.
70759         * libio/swprintf.c: Likewise.
70760         * locale/lc-ctype.c: Likewise.
70761         * locale/nl_langinfo.c: Likewise.
70762         * mach/Machrules: Likewise.
70763         * mach/Makefile: Likewise.
70764         * malloc/obstack.h: Likewise.
70765         * manual/Makefile: Likewise.
70766         * manual/tsort.awk: Likewise.
70767         * misc/bits/stab.def: Likewise.
70768         * nis/nis_print_group_entry.c: Likewise.
70769         * nis/nis_table.c: Likewise.
70770         * nis/nss_compat/compat-pwd.c: Likewise.
70771         * nis/nss_compat/compat-spwd.c: Likewise.
70772         * po/Makefile: Likewise.
70773         * posix/fnmatch.c: Likewise.
70774         * posix/regex.h: Likewise.
70775         * resolv/Makefile: Likewise.
70776         * resolv/nss_dns/dns-network.c: Likewise.
70777         * resolv/res_hconf.c: Likewise.
70778         * scripts/gen-sorted.awk: Likewise.
70779         * soft-fp/soft-fp.h: Likewise.
70780         * stdio-common/printf.h: Likewise.
70781         * stdlib/monetary.h: Likewise.
70782         * stdlib/random.c: Likewise.
70783         * stdlib/random_r.c: Likewise.
70784         * sysdeps/generic/Makefile: Likewise.
70785         * sysdeps/gnu/Makefile: Likewise.
70786         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70787         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70788         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70789         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70790         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70791         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70792         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70793         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
70794         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
70795         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70796         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70797         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70798         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70799         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70800         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
70801         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70802         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70803         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70804         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70805         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70806         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70807         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70808         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70809         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
70810         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
70811         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
70812         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
70813         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
70814         * sysdeps/mach/hurd/errnos.awk: Likewise.
70815         * sysdeps/mach/hurd/fork.c: Likewise.
70816         * sysdeps/mach/hurd/getcwd.c: Likewise.
70817         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
70818         * sysdeps/mach/hurd/mmap.c: Likewise.
70819         * sysdeps/mach/hurd/utimes.c: Likewise.
70820         * sysdeps/mach/hurd/xmknod.c: Likewise.
70821         * sysdeps/posix/profil.c: Likewise.
70822         * sysdeps/posix/readdir_r.c: Likewise.
70823         * sysdeps/powerpc/bits/mathdef.h: Likewise.
70824         * sysdeps/powerpc/bits/setjmp.h: Likewise.
70825         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
70826         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
70827         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
70828         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
70829         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
70830         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
70831         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
70832         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
70833         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
70834         * sysdeps/pthread/lio_listio.c: Likewise.
70835         * sysdeps/sparc/dl-procinfo.h: Likewise.
70836         * sysdeps/unix/i386/sysdep.S: Likewise.
70837         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
70838         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
70839         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
70840         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
70841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
70842         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
70843         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
70844         * sysdeps/unix/sysv/linux/speed.c: Likewise.
70845         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
70846         * sysdeps/wordsize-32/divdi3.c: Likewise.
70847         * time/sys/time.h: Likewise.
70848         * wcsmbs/Makefile: Likewise.
70849
70850 2013-01-01  David S. Miller  <davem@davemloft.net>
70851
70852         * po/fr.po: Update from translation team.
70853
70854         * catgets/gencat.c: Update copyright year.
70855         * csu/version.c: Likewise.
70856         * debug/catchsegv.sh: Likewise.
70857         * debug/pcprofiledump.c: Likewise.
70858         * debug/xtrace.sh: Likewise.
70859         * elf/ldconfig.c: Likewise.
70860         * elf/ldd.bash.in: Likewise.
70861         * elf/pldd.c: Likewise.
70862         * elf/sotruss.ksh: Likewise.
70863         * elf/sprof.c: Likewise.
70864         * iconv/iconv_prog.c: Likewise.
70865         * iconv/iconvconfig.c: Likewise.
70866         * locale/programs/locale.c: Likewise.
70867         * locale/programs/localedef.c: Likewise.
70868         * login/programs/pt_chown.c: Likewise.
70869         * malloc/memusage.sh: Likewise.
70870         * malloc/memusagestat.c: Likewise.
70871         * malloc/mtrace.pl: Likewise.
70872         * nscd/nscd.c: Likewise.
70873         * nss/getent.c: Likewise.
70874         * nss/makedb.c: Likewise.
70875         * posix/getconf.c: Likewise.
70876
70877 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
70878
70879         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
70880         numbers.
70881
70882 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
70883
70884         * math/bits/mathcalls.h (modf): Use __nonnull.
70885
70886 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
70887
70888         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
70889         (split): Use macro CN instead of the bare value.
70890         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
70891         could be used.
70892         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
70893         instead of the bare value.
70894         (power1): Likewise.
70895
70896 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
70897
70898         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
70899         __ATAN_TWOM.
70900         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70901
70902         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
70903         their values.
70904         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
70905         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
70906         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
70907         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
70908
70909 2012-12-28  Andreas Jaeger  <aj@suse.de>
70910
70911         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
70912         values are from Linux 3.7.
70913
70914         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
70915         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
70916
70917 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
70918
70919         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
70920         TRUE case.
70921
70922         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
70923         (norm): Likewise.
70924         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
70925         variables with preprocessor constants.
70926         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70927         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70928         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70929
70930 2012-12-27  Bruno Haible  <bruno@clisp.org>
70931
70932         [BZ #14317]
70933         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
70934         only if needed.
70935
70936 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
70937
70938         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
70939         and use variable directly.
70940         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
70941
70942         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
70943         MPONE.
70944         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
70945         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
70946         variable MPONE.
70947         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
70948         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
70949         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
70950         include directive.  Remove local variable MPONE.
70951         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
70952         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
70953         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70954
70955 2012-12-25  David S. Miller  <davem@davemloft.net>
70956
70957         * version.h (RELEASE): Set to "development".
70958         (VERSION): Set to "2.17.90".
70959         * NEWS: Add 2.18 section.
70960
70961 2012-12-21  David S. Miller  <davem@davemloft.net>
70962
70963         * po/hr.po: Update from translation team.
70964
70965 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70966
70967         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
70968
70969 2012-12-19  Steve Ellcey  <sellcey@mips.com>
70970
70971         * NEWS:  Mention new memcpy for MIPS.
70972
70973 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
70974
70975         * manual/contrib.texi (Contributors): Spelling correction.
70976
70977 2012-12-15  David S. Miller  <davem@davemloft.net>
70978
70979         * po/ru.po: Update from translation team.
70980
70981 2012-12-13  David S. Miller  <davem@davemloft.net>
70982
70983         * NEWS: Mention IFUNC testsuite enhancements.
70984
70985         * po/pl.po: Update from translation team.
70986         * po/bg.po: Likewise.
70987
70988         * manual/contrib.texi (Contributors): Update entries for Hongjiu
70989         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
70990
70991 2012-12-11  David S. Miller  <davem@davemloft.net>
70992
70993         * po/sv.po: Update from translation team.
70994
70995         * po/vi.po: Update from translation team.
70996
70997         * po/cs.po: Update from translation team.
70998
70999         * po/de.po: Update from translation team.
71000         * po/eo.po: Likewise.
71001         * po/nl.po: Likewise.
71002
71003 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
71004
71005         [BZ #14246]
71006         * manual/argp.texi (Argp Helper Functions): Move node to follow
71007         Argp Parsing State.
71008
71009         [BZ #14872]
71010         * manual/conf.texi (Limits on File System Capacity): Mention if
71011         terminating null is included in the max size.
71012
71013 2012-12-10  Andreas Jaeger  <aj@suse.de>
71014
71015         * po/cs.po: Update from translation team.
71016
71017 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
71018
71019         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
71020         void pointer and cast to uintptr_t.
71021         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
71022         path.
71023         * sysdeps/s390/s390-64/memcpy.S: Likewise.
71024         * sysdeps/s390/s390-64/memset.S: Likewise.
71025
71026 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
71027
71028         [BZ #14833]
71029         * menual/message.texi (Message Translation): Fix typos.
71030         (Helper programs for gettext): Likewise.
71031
71032 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
71033
71034         [BZ #14898]
71035         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
71036         Change to -1.
71037
71038 2012-12-07  David S. Miller  <davem@davemloft.net>
71039
71040         * po/libc.pot: Update.
71041
71042 2012-12-07  Richard Henderson  <rth@redhat.com>
71043
71044         [BZ #10114]
71045         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
71046         normal/normal case to before the switch.
71047         (_FP_DIV): Likewise.
71048
71049 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
71050             Mike Frysinger  <vapier@gentoo.org>
71051
71052         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
71053         check for __NR_fadvise64_64.
71054
71055 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
71056
71057         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
71058         0, not just to plain "0" as a statement.
71059         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
71060         with cw.
71061
71062 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
71063
71064         * NEWS: Use sourceware.org in Bugzilla URL.
71065
71066 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
71067
71068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
71069         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
71070
71071         * stdio-common/tst-put-error.c (do_test): Add newline to the
71072         padded test to ensure flush.
71073
71074 2012-12-05  Jeff Law  <law@redhat.com>
71075
71076         * sunrpc/etc.rpc (fedfs_admin): Add entry.
71077
71078 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
71079
71080         * README: Don't refer to ports add-on as distributed separately.
71081         Mention AArch64 in list of systems supported in the ports add-on.
71082
71083         * LICENSES: Add more non-FSF copyright and license notices.
71084
71085         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
71086         ((unused)).
71087
71088         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
71089
71090         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
71091         10000 as width of padded output.
71092
71093 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
71094
71095         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
71096
71097         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
71098         variable LX with __attribute__ ((unused)).
71099         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
71100         Likewise.
71101         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
71102         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
71103         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
71104         with __attribute__ ((unused)).
71105
71106 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
71107
71108         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
71109
71110 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
71111
71112         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
71113         (CFLAGS-nldbl-acos.c): New variable.
71114         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
71115         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
71116         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
71117         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
71118         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
71119         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
71120         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
71121         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
71122         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
71123         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
71124         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
71125         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
71126         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
71127         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
71128         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
71129         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
71130         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
71131         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
71132         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
71133         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
71134         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
71135         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
71136         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
71137         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
71138         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
71139         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
71140         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
71141         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
71142         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
71143         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
71144         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
71145         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
71146         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
71147         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
71148         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
71149         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
71150         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
71151         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
71152         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
71153         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
71154         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
71155         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
71156         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
71157         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
71158         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
71159         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
71160         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
71161         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
71162         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
71163         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
71164         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
71165         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
71166         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
71167         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
71168         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
71169         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
71170         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
71171         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
71172         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
71173         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
71174         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
71175         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
71176         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
71177         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
71178         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
71179         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
71180         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
71181         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
71182         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
71183         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
71184         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
71185         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
71186         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
71187         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
71188         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
71189         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
71190         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
71191         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
71192         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
71193         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
71194         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
71195         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
71196         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
71197         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
71198         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
71199         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
71200         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
71201         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
71202         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
71203         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
71204         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
71205         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
71206         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
71207         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
71208         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
71209         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
71210         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
71211
71212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
71213         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
71214
71215         [BZ #14914]
71216         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
71217         whole low double instead of just low 47 bits when splitting values
71218         into two parts.
71219
71220 2012-12-03  Allan McRae  <allan@archlinux.org>
71221
71222         * manual/stdio.texi (Predefined Printf Handlers): Remove
71223         @hsep and @vsep usage.
71224
71225 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
71226
71227         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
71228         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
71229
71230 2012-12-03  Jeff Law  <law@redhat.com>
71231
71232         * time/sys/time.h (settimeofday): Do not mark TV argument
71233         as __nonnull.
71234
71235 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
71236
71237         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
71238         when currently writing and seek to current position when not.
71239         * libio/Makefile (tests): Remove bug-fclose1.
71240         * libio/bug-fclose1.c: Delete.
71241
71242 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
71243
71244         * manual/arith.texi (feenableexcept): Fix typo.
71245         (fedisableexcept): Likewise.
71246
71247 2012-11-30  Roland McGrath  <roland@hack.frob.com>
71248
71249         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
71250         second, differently-typed declaration, rather than a cast.
71251
71252 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
71253
71254         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
71255         * include/rpc/svc.h: ... here.
71256
71257 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
71258
71259         [BZ #13013]
71260         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
71261         depending n and resplen2 to catch cases where answer
71262         equals answerp2.
71263
71264 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
71265
71266         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
71267         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
71268
71269 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
71270
71271         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
71272
71273 2012-11-29  Roland McGrath  <roland@hack.frob.com>
71274
71275         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
71276
71277 2012-11-28  Jeff Law  <law@redhat.com>
71278
71279         [BZ #13761]
71280         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
71281         dataset_temporary.  Track alloca usage into alloca_used.
71282         If dataset is large allocate and release it via malloc/free.
71283
71284 2012-06-04  Florian Weimer  <fweimer@redhat.com>
71285
71286         [BZ #14197]
71287         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
71288
71289 2012-11-28  David S. Miller  <davem@davemloft.net>
71290
71291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71292
71293 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
71294
71295         [BZ #14803]
71296         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
71297         of pi/2 rounded to nearest to 64 bits.
71298         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
71299         nearest to 64 bits.
71300         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
71301         bits.
71302
71303 2012-11-28  Jeff Law <law@redhat.com>
71304             Martin Osvald <mosvald@redhat.com>
71305
71306         [BZ #14889]
71307         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
71308         * sunrpc/svc.c: Include time.h.
71309         (__svc_accept_failed): New function.
71310         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
71311         any reason other than EINTR, call __svc_accept_failed.
71312         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
71313         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
71314
71315 2012-11-28  Andreas Schwab  <schwab@suse.de>
71316
71317         * scripts/abilist.awk: Also handle indirect functions in .opd
71318         section.
71319
71320 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
71321
71322         [BZ #13881]
71323         * sysdeps/x86/fpu/powl_helper.c: New file.
71324         * sysdeps/x86/fpu/Makefile: Likewise.
71325         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
71326         (p3): New object.
71327         (__ieee754_powl): Use __powl_helper for finite arguments except
71328         integer exponents below 8.
71329         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
71330         (p3): New object.
71331         (__ieee754_powl): Use __powl_helper for finite arguments except
71332         integer exponents below 8.
71333         * math/libm-test.inc (pow_test): Add more tests and enable some
71334         previously disabled tests.
71335         * sysdeps/i386/fpu/libm-test-ulps: Update.
71336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71337
71338 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71339             Carlos O'Donell  <carlos_odonell@mentor.com>
71340
71341         * nss/makedb.c (is_prime): Assert that input is odd and greater
71342         than 4.  Note that fact in a comment too.
71343         (next_prime): Add 4 to input.
71344
71345 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
71346
71347         [BZ #11741]
71348         * libio/Makefile (tests): Add test case tst-fwrite-error.
71349         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
71350         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
71351         * libio/tst-fwrite-error.c: New test case.
71352
71353 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
71354
71355         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
71356         before casting to void *.
71357         * include/libc-internal.h (__pointer_type): New macro.
71358         (__integer_if_pointer_type_sub): Likewise.
71359         (__integer_if_pointer_type): Likewise.
71360         (cast_to_integer): Likewise.
71361         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
71362         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
71363         before casting to atomic64_t.
71364         (atomic_exchange_acq): Likewise.
71365         (__arch_exchange_and_add_body): Likewise.
71366         (__arch_add_body): Likewise.
71367         (atomic_add_negative): Likewise.
71368         (atomic_add_zero): Likewise.
71369
71370 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
71371
71372         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
71373         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
71374         (add_fdes): Likewise.
71375         (linear_search_fdes): Likewise.
71376         (binary_search_unencoded_fdes): Likewise.
71377
71378 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
71379
71380         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
71381
71382 2012-11-24  Adam Conrad  <adconrad@0c3.net>
71383
71384         * configure.in: Autodetect C++ header directories.
71385         * configure: Regenerated.
71386
71387 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
71388
71389         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
71390
71391 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
71392
71393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
71394
71395 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
71396
71397         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
71398         LDBL_MANT_DIG == 106]: Disable some tests.
71399         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
71400         Likewise.
71401         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
71402         Likewise.
71403
71404         [BZ #14871]
71405         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
71406         input for small inputs.  Return +/- pi/2 for large inputs.
71407         * math/libm-test.inc (atan_test): Add more tests.
71408
71409         * sysdeps/generic/unwind-dw2-fde-glibc.c
71410         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
71411         __attribute__ ((unused)).
71412
71413         [BZ #14645]
71414         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
71415         x * y if x and y are nonzero and z is zero.
71416
71417         [BZ #14811]
71418         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
71419         nonzero exponents with absolute value below 0x1p-117 to +/-
71420         0x1p-117.
71421
71422         [BZ #14869]
71423         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
71424         up arguments below 2**-450, not just those below 2**-500.
71425         * math/libm-test.inc (hypot_test): Add another test.
71426
71427         [BZ #14868]
71428         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
71429         Return a+b for ratio over 2**120, not 2**60.
71430         * math/libm-test.inc (hypot_test): Add another test.
71431
71432         * math/libm-test.inc (clog_test): Use
71433         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
71434         (clog10_test): Likewise.
71435
71436         [BZ #6778]
71437         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
71438
71439 2012-11-22  Andreas Schwab  <schwab@suse.de>
71440
71441         * sysdeps/i386/fpu/libm-test-ulps: Update.
71442
71443 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
71444
71445         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
71446         printf output with newline.
71447
71448 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
71449
71450         [BZ #14865]
71451         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
71452         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
71453         -z nodlopen, -z initfirst and -z execstack support.
71454         * configure: Regenerated.
71455
71456         * elf/elf.h (DF_1_NODIRECT): New macro.
71457         (DF_1_IGNMULDEF): Likewise.
71458         (DF_1_NOKSYMS): Likewise.
71459         (DF_1_NOHDR): Likewise.
71460         (DF_1_EDITED): Likewise.
71461         (DF_1_NORELOC): Likewise.
71462         (DF_1_SYMINTPOSE): Likewise.
71463         (DF_1_GLOBAUDIT): Likewise.
71464         (DF_1_SINGLETON): Likewise.
71465         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
71466         DT_1_SUPPORTED_MASK bits.
71467         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
71468
71469 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
71470
71471         * sysdeps/unix/make-syscalls.sh: Document prefixes.
71472
71473 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
71474
71475         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
71476         macro.
71477
71478         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
71479         (sendmmsg): Move declarations...
71480         * socket/sys/socket.h: ... here.
71481         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
71482         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
71483         include it from...
71484         * socket/recvmmsg.c: ... this new file.
71485         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
71486         (sendmmsg): Rename to __sendmmsg, create weak alias and make
71487         definition of __sendmmsg hidden.
71488         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
71489         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
71490         Move ENOSYS stub into and include it from...
71491         * socket/sendmmsg.c: ... this new file.
71492         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
71493         (sysdep_routines): Move recvmmsg and sendmmsg...
71494         * socket/Makefile (routines): ... here.
71495         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
71496         (GLIBC_PRIVATE): Add __sendmmsg.
71497         * include/sys/socket.h (__sendmmsg): Add declarations.
71498         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
71499         sendmmsg.
71500
71501 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
71502
71503         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
71504         variable I1 with __attribute__ ((unused)).
71505         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
71506
71507 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
71508
71509         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
71510         DUMMY variables with __attribute__ ((unused)).
71511
71512         * bits/byteswap.h: Include <bits/types.h>.
71513         (__bswap_64): Use __uint64_t instead of unsigned long long int.
71514
71515 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
71516
71517         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
71518         string_t.  Do not manually set errno.
71519         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
71520         length with __strnlen.  Make sure to both set errno and return it on
71521         failure.
71522
71523 2012-11-19  David S. Miller  <davem@davemloft.net>
71524
71525         With help from Joseph Myers.
71526         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
71527         very large arguments properly.
71528         * math/libm-test.inc (atan_test): New tests.
71529         (atan2_test): New tests.
71530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71531         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71532
71533 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
71534
71535         [BZ #14856]
71536         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
71537         Define to 3.
71538
71539         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
71540         [POSIX] (EADDRNOTAVAIL): Likewise.
71541         [POSIX] (EAFNOSUPPORT): Likewise.
71542         [POSIX] (EALREADY): Likewise.
71543         [POSIX] (ECONNABORTED): Likewise.
71544         [POSIX] (ECONNREFUSED): Likewise.
71545         [POSIX] (ECONNRESET): Likewise.
71546         [POSIX] (EDESTADDRREQ): Likewise.
71547         [POSIX] (EDQUOT): Likewise.
71548         [POSIX] (EHOSTUNREACH): Likewise.
71549         [POSIX] (EIDRM): Likewise.
71550         [POSIX] (EISCONN): Likewise.
71551         [POSIX] (ELOOP): Likewise.
71552         [POSIX] (EMULTIHOP): Likewise.
71553         [POSIX] (ENETDOWN): Likewise.
71554         [POSIX] (ENETUNREACH): Likewise.
71555         [POSIX] (ENOBUFS): Likewise.
71556         [POSIX] (ENODATA): Likewise.
71557         [POSIX] (ENOLINK): Likewise.
71558         [POSIX] (ENOMSG): Likewise.
71559         [POSIX] (ENOPROTOOPT): Likewise.
71560         [POSIX] (ENOSR): Likewise.
71561         [POSIX] (ENOSTR): Likewise.
71562         [POSIX] (ENOTCONN): Likewise.
71563         [POSIX] (ENOTSOCK): Likewise.
71564         [POSIX] (EOPNOTSUPP): Likewise.
71565         [POSIX] (EOVERFLOW): Likewise.
71566         [POSIX] (EPROTO): Likewise.
71567         [POSIX] (EPROTONOSUPPORT): Likewise.
71568         [POSIX] (EPROTOTYPE): Likewise.
71569         [POSIX] (ESTALE): Likewise.
71570         [POSIX] (ETIME): Likewise.
71571         [POSIX] (ETXTBSY): Likewise.
71572         [POSIX] (EWOULDBLOCK): Likewise.
71573         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
71574         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
71575         [POSIX] (SEEK_CUR): Likewise.
71576         [POSIX] (SEEK_END): Likewise.
71577         [POSIX || UNIX98] (mode_t): Do not require.
71578         [POSIX] (off_t): Likewise.
71579         [POSIX] (pid_t): Likewise.
71580         [POSIX] (sys/stat.h): Do not allow header.
71581         [POSIX] (unistd.h): Likewise.
71582         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
71583         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
71584         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
71585         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
71586         require.
71587         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
71588         sigevent): Specify elements.
71589         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
71590         entry.
71591         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
71592         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
71593
71594         * conform/data/cpio.h-data [POSIX]: Disable whole file.
71595         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
71596         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
71597         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
71598         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
71599         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
71600         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
71601         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
71602         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
71603         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
71604         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
71605         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
71606         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
71607         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
71608         Likewise.
71609         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
71610         Likewise.
71611         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
71612         Likewise.
71613         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
71614         Likewise.
71615         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
71616         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
71617         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
71618         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
71619         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
71620         Specify lower bound on value.
71621         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
71622         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
71623         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
71624         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
71625         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
71626         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
71627         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
71628         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
71629         value.
71630         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
71631         as optional.
71632         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
71633         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
71634         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
71635         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
71636         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
71637         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
71638         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
71639         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
71640         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
71641         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
71642         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
71643         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
71644         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
71645         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
71646         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
71647         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
71648         entry.
71649         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
71650         optional.
71651         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
71652         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
71653         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
71654         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
71655         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
71656         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
71657         Likewise.
71658         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
71659         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
71660         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
71661         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
71662         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
71663         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
71664         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
71665         as optional.
71666         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
71667         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
71668         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
71669         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
71670         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
71671         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
71672         specify as optional.
71673         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
71674         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
71675         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
71676         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
71677         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
71678         [XPG3] (NL_LANGMAX): Likewise.
71679         [POSIX || XPG3] (NL_MSGMAX): Likewise.
71680         [POSIX || XPG3] (NL_NMAX): Likewise.
71681         [POSIX || XPG3] (NL_SETMAX): Likewise.
71682         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
71683         [XPG3] (NZERO): Likewise.
71684         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
71685         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
71686         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
71687         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
71688         (REG_ERANGE): Expect.
71689         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
71690         optional-constant.
71691         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
71692         Use (void) in prototype.
71693         [POSIX] (*_t): Allow.
71694         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
71695         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
71696         (WRDE_BADVAL): Expect.
71697
71698         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
71699         expect.
71700         [XPG3 || XPG4] (O_RSYNC): Likewise.
71701         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
71702         Likewise.
71703         [XPG3 || XPG4] (pthread_sigmask): Likewise.
71704         [XPG3 || XPG4] (sigqueue): Likewise.
71705         [XPG3 || XPG4] (sigtimedwait): Likewise.
71706         [XPG3 || XPG4] (sigwaitinfo): Likewise.
71707         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
71708         [XPG3 || XPG4] (vsnprintf): Likewise.
71709         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
71710         Likewise.
71711         [XPG3 || XPG4] (blksize_t): Likewise.
71712         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
71713         Likewise.
71714         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
71715         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
71716         [XPG3 || XPG4] (struct itimerspec): Likewise.
71717         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
71718         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
71719         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
71720         [XPG3 || XPG4] (clockid_t): Likewise.
71721         [XPG3 || XPG4] (timer_t): Likewise.
71722         [XPG3 || XPG4] (clock_getres): Likewise.
71723         [XPG3 || XPG4] (clock_gettime): Likewise.
71724         [XPG3 || XPG4] (clock_settime): Likewise.
71725         [XPG3 || XPG4] (nanosleep): Likewise.
71726         [XPG3 || XPG4] (timer_create): Likewise.
71727         [XPG3 || XPG4] (timer_delete): Likewise.
71728         [XPG3 || XPG4] (timer_gettime): Likewise.
71729         [XPG3 || XPG4] (timer_getoverrun): Likewise.
71730         [XPG3 || XPG4] (timer_settime): Likewise.
71731         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
71732         [XPG3 || XPG4] (getlogin_r): Likewise.
71733         [XPG3 || XPG4] (pread): Likewise.
71734         [XPG3 || XPG4] (pthread_atfork): Likewise.
71735         [XPG3 || XPG4] (pwrite): Likewise.
71736
71737         [BZ #14835]
71738         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
71739         <bits/siginfo.h>.
71740
71741 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
71742
71743         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
71744         finalizing MALLSTREAM.
71745
71746         * sysdeps/mach/hurd/syncfs.c: New file.
71747
71748 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
71749
71750         [BZ #14719]
71751         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
71752         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
71753         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
71754         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
71755         (_nss_dns_gethostbyname4_r): Likewise.
71756         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
71757         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
71758
71759 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
71760
71761         [BZ #13763]
71762         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
71763
71764 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
71765
71766         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
71767         * elf/cache.c (print_entry): Print ",AArch64" for
71768         FLAG_AARCH64_LIB64
71769
71770         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
71771         * elf/cache.c (print_entry): Print ",hard-float" for
71772         FLAG_ARM_LIBHF.
71773
71774 2012-11-18  David S. Miller  <davem@davemloft.net>
71775
71776         With help from Joseph Myers.
71777         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
71778         cutoff to 2**-13.
71779         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
71780         cutoff to 2**-25.
71781         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
71782         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
71783         small.
71784         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
71785         * math/libm-test.inc (y0_test): New tests.
71786         (y1_test): New tests.
71787         * sysdeps/i386/fpu/libm-test-ulps: Update.
71788         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71790
71791 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
71792
71793         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
71794         64-bit targets.
71795         * configure: Regenerated.
71796
71797 2012-11-17  David S. Miller  <davem@davemloft.net>
71798
71799         [BZ #14811]
71800         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
71801         nonzero exponents with absolute value below 0x1p-128 to +/-
71802         0x1p-128.
71803
71804 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
71805
71806         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
71807
71808         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
71809
71810         * posix/getconf-speclist.c: New file.
71811         * posix/posix-envs.def: Likewise.
71812         * posix/confstr.c (START_ENV_GROUP): New macro.
71813         (END_ENV_GROUP): Likewise.
71814         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
71815         (KNOWN_PRESENT_ENV_STRING): Likewise.
71816         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
71817         (UNKNOWN_ENVIRONMENT): Likewise.
71818         (confstr): Include posix-envs.def instead of handling
71819         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
71820         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
71821         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
71822         (END_ENV_GROUP): Likewise.
71823         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
71824         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
71825         (UNKNOWN_ENVIRONMENT): Likewise.
71826         (__sysconf): Include posix-envs.def instead of handling associated
71827         cases directly here.
71828         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
71829         preprocessing getconf-speclist.c rather than running getconf or
71830         generating empty file.
71831
71832 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
71833
71834         * scripts/check-local-headers.sh: Ignore 'mach' headers.
71835
71836 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
71837
71838         [BZ #14672]
71839         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
71840
71841 2012-11-16  David S. Miller  <davem@davemloft.net>
71842
71843         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
71844         smaller than LDBL_EPSILON/2.0L, just return xm1.
71845
71846 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
71847
71848         * elf/tst-array1.c (init): Set constructor priority to 1000.
71849         (fini): Set destructor priority to 1000.
71850         * elf/tst-array2dep.c: Likewise.
71851
71852 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
71853
71854         [BZ #11741]
71855         * libio/fileops.c (_IO_new_file_write): Correctly return error.
71856         (_IO_new_file_xsputn): Also return EOF if none of the input
71857         data was written when overflow failed.
71858         * libio/iopadn.c (_IO_padn): Likewise.
71859         * libio/iowpadn.c (_IO_wpadn): Likewise.
71860         * stdio-common/tst-put-error.c: Add copyright notice.
71861         (do_test): Add case for printing padded string.
71862         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
71863         _IO_padn returned error.
71864         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
71865         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
71866         return EOF.
71867
71868 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
71869
71870         * libio/libioP.h: Add comment note that the references to C++
71871         bits are now obsolete.
71872
71873 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
71874
71875         * math/libm-test.inc (check_complex): Use asprintf.
71876
71877 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
71878
71879         * debug/pcprofiledump.c (print_version): Update copyright year.
71880         * malloc/memusagestat.c (print_version): Likewise.
71881
71882 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
71883
71884         [BZ #14831]
71885         * elf/Makefile (tests): Add tst-audit8.
71886         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
71887         ($(objpfx)tst-audit8.out): New target.
71888         (tst-audit8-ENV): New variable.
71889         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
71890         audit if l_reloc_result is NULL.
71891         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
71892         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
71893         * elf/tst-audit8.c: New file.
71894
71895 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
71896
71897         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
71898         * misc/Makefile (CFLAGS-select.c): Define.
71899         * posix/Makefile (CFLAGS-pause.c): Define.
71900
71901 2012-11-13  David S. Miller  <davem@davemloft.net>
71902
71903         * crypt/Makefile: Move test targets after toplevel Rules
71904         inclusion.  Grab any necessary sysdep routines when linking.
71905         * crypt/md5.c (md5_process_block): Remove define, we will always
71906         name it __md5_process_block.
71907         (md5_finish_ctx): Update md5_process_block call.
71908         (md5_stream): Likewise.
71909         (md5_process_bytes): Likewise.
71910         (md5_process_block): Rename to __md5_process_block and move to ...
71911         * crypt/md5-block.c: ... here.
71912         * crypt/sha256.c (sha256_process_block): Move to ...
71913         * crypt/sha256-block.c: ... here.
71914         * crypt/sha512.c (sha512_process_block): Move to ...
71915         * crypt/sha512-block.c: ... here.
71916         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
71917         path.
71918         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
71919         * sysdeps/sparc/sparc64/multiarch/Makefile
71920         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
71921         crypt subdir.
71922         (localedef-aux): Add md5 crypto assembler when in locale subdir.
71923         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
71924         multiarch changes.
71925         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
71926         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
71927         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
71928         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
71929         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
71930         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
71931         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
71932         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
71933         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
71934         file.
71935         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
71936         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
71937         file.
71938         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
71939
71940 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
71941
71942         * timezone/tzselect.ksh: Update from tzcode git revision
71943         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
71944         * timezone/zdump.c: Likewise.
71945         * timezone/zic.c: Likewise.
71946         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
71947         in TZVERSION setting, not $(PKGVERSION).
71948         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
71949         REPORT_BUGS_TO settings.
71950
71951         [BZ #14838]
71952         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
71953         macro.
71954
71955 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
71956
71957         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
71958         detection to immediately after _FP_ROUND().
71959         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
71960         bits are 0.
71961
71962 2012-11-11  David S. Miller  <davem@davemloft.net>
71963
71964         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
71965         inttypes.h
71966         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
71967         __close rather than their public counterparts.
71968
71969 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
71970
71971         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
71972         file.
71973         [UNIX98] (sem_timedwait): Do not expect.
71974         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
71975         [XPG4 || UNIX98] (sockatmark): Do not expect.
71976         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
71977         (clock_getcpuclockid): Do not expect.
71978         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
71979         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
71980         Do not expect.
71981         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
71982         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
71983         [UNIX98] (vwscanf): Likewise.
71984         [UNIX98] (vswscanf): Likewise.
71985
71986 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
71987
71988         * timezone/version.h: Remove file.
71989         * timezone/README: Do not refer to version.h.
71990         * timezone/Makefile ($(objpfx)zic.o): New dependency on
71991         $(objpfx)version.h.
71992         ($(objpfx)zdump.o): Likewise.
71993         ($(objpfx)version.h): New target.
71994
71995         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
71996         2012i.
71997         * timezone/README: Don't mention modification to tzselect.ksh.
71998         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
71999         work on unmodified tzselect.ksh.  Substitute version numbers in
72000         tzselect.ksh.
72001
72002         * Makefile (format-me): Remove.
72003         (INSTALL): Adjust indentation.  Use commands directly instead of
72004         using $(format-me).
72005
72006         * aclocal.m4 (ACX_PKGVERSION): New macro.
72007         (ACX_BUGURL): Likewise.
72008         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
72009         (PKGVERSION): New AC_DEFINE_UNQUOTED.
72010         (REPORT_BUGS_TO): Likewise.
72011         * configure: Regenerated.
72012         * config.h.in (PKGVERSION): New macro.
72013         (REPORT_BUGS_TO): Likewise.
72014         * config.make.in (PKGVERSION): New variable.
72015         (PKGVERSION_TEXI): Likewise.
72016         (REPORT_BUGS_TO): Likewise.
72017         (REPORT_BUGS_TEXI): Likewise.
72018         * Makefile (format-me): Use -I$(common-objpfx)manual.
72019         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
72020         ($(common-objpfx)manual/%): New target.
72021         (manual/%): Remove target.
72022         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
72023         (print_version): Use PKGVERSION.
72024         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
72025         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
72026         and REPORT_BUGS_TO.
72027         ($(objpfx)xtrace): Likewise.
72028         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
72029         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
72030         (print_version): Use PKGVERSION.
72031         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
72032         (do_version): Use PKGVERSION.
72033         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
72034         REPORT_BUGS_TO.
72035         (common-ldd-rewrite): Likewise.
72036         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
72037         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
72038         (print_version): Use PKGVERSION.
72039         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
72040         * elf/pldd.c (argp_program_bug_address): Remove variable.
72041         (more_help): New function.
72042         (argp): Use more_help.
72043         (print_version): Use PKGVERSION.
72044         * elf/sln.c (main): Use PKGVERSION.
72045         (usage): Use REPORT_BUGS_TO.
72046         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
72047         (top level): Use PKGVERSION.
72048         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
72049         (print_version): Use PKGVERSION.
72050         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
72051         (print_version): Use PKGVERSION.
72052         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
72053         (print_version): Use PKGVERSION.
72054         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
72055         (print_version): Use PKGVERSION.
72056         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
72057         (print_version): Use PKGVERSION.
72058         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
72059         (print_version): Use PKGVERSION.
72060         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
72061         and BUGURL.
72062         ($(objpfx)memusage): Likewise.
72063         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
72064         (do_version): Use PKGVERSION.
72065         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
72066         (print_version): Use PKGVERSION.
72067         * malloc/mtrace.pl ($PACKAGE): Remove variable.
72068         ($PKGVERSION): New variable.
72069         ($REPORT_BUGS_TO): Likewise.
72070         (usage): Use $REPORT_BUGS_TO.
72071         (top level): Use $PKGVERSION.
72072         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
72073         ($(objpfx)pkgvers.texi): New rule.
72074         ($(objpfx)stamp-pkgvers): Likewise.
72075         * manual/install.texi: Include pkgvers.texi.
72076         (--with-pkgversion): Document new configure option.
72077         (--with-bugurl): Likewise.
72078         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
72079         than necessarily for this particular distribution.  Use
72080         REPORT_BUGS_TO for where to report bugs.
72081         * INSTALL: Regenerated.
72082         * manual/libc.texinfo: Include pkgvers.texi.
72083         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
72084         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
72085         (print_version): Use PKGVERSION.
72086         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
72087         (print_version): Use PKGVERSION.
72088         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
72089         (print_version): Use PKGVERSION.
72090         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
72091         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
72092         macro.
72093         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
72094         (print_version): Use PKGVERSION.
72095         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
72096         (print_version): Use PKGVERSION.
72097         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
72098         and PKGVERSION.
72099
72100         * timezone/checktab.awk: Update from tzcode 2012i.
72101         * timezone/ialloc.c: Likewise.
72102         * timezone/private.h: Likewise.
72103         * timezone/scheck.c: Likewise.
72104         * timezone/tzfile.h: Likewise.
72105         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
72106         (TZVERSION): Hardcode tzcode version number.
72107         * timezone/zdump.c: Update from tzcode 2012i.
72108         * timezone/zic.c: Likewise.
72109         * timezone/version.h: New file.
72110         * timezone/README: Describe version.h.  Update upstream location.
72111
72112         [BZ #14824]
72113         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
72114         (mktemp): Enable declaration.
72115         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
72116         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
72117         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
72118         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
72119         Likewise.
72120         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
72121         Likewise.
72122         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
72123         Likewise.
72124         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
72125         Likewise.
72126         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
72127         Likewise.
72128         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
72129         Likewise.
72130
72131         [BZ #14821]
72132         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
72133         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
72134         for copies of such integer values.
72135         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
72136         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
72137
72138 2012-11-09  Andreas Jaeger  <aj@suse.de>
72139
72140         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
72141         definitions and declarations that are provided by
72142         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
72143
72144 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72145
72146         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
72147         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
72148         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
72149         definition.
72150
72151 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
72152
72153         * elf/elf.h: Update comment before AArch64 relocations.
72154
72155 2012-11-07  David S. Miller  <davem@davemloft.net>
72156
72157         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
72158         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
72159         (__start_context): Declare.
72160         (__makecontext_ret): Delete.
72161         (__makecontext): Hook up __start_context instead of
72162         __makecontext_ret.
72163         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
72164         (sysdep_routines): Add __start_context when in stdlib.
72165
72166 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
72167
72168         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
72169         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
72170         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
72171         hardcoded "nm".
72172         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
72173         (READELF): New variable.  Use it instead of hardcoded "readelf".
72174
72175 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
72176
72177         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
72178         * sysdeps/x86/Makefile: Here.
72179         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
72180         * sysdeps/x86/tst-xmmymm.sh: This.
72181
72182 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
72183
72184         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
72185         expectations.
72186         [UNIX98] (pthread_barrier_t): Do not expect.
72187         [UNIX98] (pthread_barrierattr_t): Likewise.
72188         [UNIX98] (pthread_spinlock_t): Likewise.
72189         [UNIX98] (pthread_barrier_destroy): Likewise.
72190         [UNIX98] (pthread_barrier_init): Likewise.
72191         [UNIX98] (pthread_barrier_wait): Likewise.
72192         [UNIX98] (pthread_barrierattr_destroy): Likewise.
72193         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
72194         [UNIX98] (pthread_barrierattr_init): Likewise.
72195         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
72196         [UNIX98] (pthread_getcpuclockid): Likewise.
72197         [UNIX98] (pthread_mutex_timedlock): Likewise.
72198         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
72199         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
72200         [UNIX98] (pthread_sigmask): Likewise.
72201         [UNIX98] (pthread_spin_destroy): Likewise.
72202         [UNIX98] (pthread_spin_init): Likewise.
72203         [UNIX98] (pthread_spin_lock): Likewise.
72204         [UNIX98] (pthread_spin_trylock): Likewise.
72205         [UNIX98] (pthread_spin_unlock): Likewise.
72206         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
72207         Do not expect.
72208         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
72209         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
72210         [XPG3 || XPG4] (pthread_cond_t): Likewise.
72211         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
72212         [XPG3 || XPG4] (pthread_key_t): Likewise.
72213         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
72214         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
72215         [XPG3 || XPG4] (pthread_once_t): Likewise.
72216         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
72217         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
72218         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
72219         [XPG3 || XPG4] (pthread_t): Likewise.
72220
72221         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
72222         not expect.
72223         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
72224
72225         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
72226         Change function return type to int.
72227
72228         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
72229         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
72230         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
72231         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
72232         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
72233         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
72234         [!POSIX] (posix_madvise): Likewise.
72235         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
72236         && !UNIX98].
72237         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
72238         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
72239         (mode_t): Likewise.
72240         (posix_mem_offset): Likewise.
72241         (posix_typed_mem_get_info): Likewise.
72242         (posix_typed_mem_open): Likewise.
72243
72244         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
72245         Change condition to [XOPEN2K8].
72246
72247         * conform/conformtest.pl: Preprocess allow-header data with -x c
72248         instead of from stdin.
72249         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
72250         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
72251         [C99-based standards] (cerfc): Likewise.
72252         [C99-based standards] (cexp2): Likewise.
72253         [C99-based standards] (cexpm1): Likewise.
72254         [C99-based standards] (clog10): Likewise.
72255         [C99-based standards] (clog1p): Likewise.
72256         [C99-based standards] (clog2): Likewise.
72257         [C99-based standards] (clgamma): Likewise.
72258         [C99-based standards] (ctgamma): Likewise.
72259         [C99-based standards] (cerff): Likewise.
72260         [C99-based standards] (cerfcf): Likewise.
72261         [C99-based standards] (cexp2f): Likewise.
72262         [C99-based standards] (cexpm1f): Likewise.
72263         [C99-based standards] (clog10f): Likewise.
72264         [C99-based standards] (clog1pf): Likewise.
72265         [C99-based standards] (clog2f): Likewise.
72266         [C99-based standards] (clgammaf): Likewise.
72267         [C99-based standards] (ctgammaf): Likewise.
72268         [C99-based standards] (cerfl): Likewise.
72269         [C99-based standards] (cerfcl): Likewise.
72270         [C99-based standards] (cexp2l): Likewise.
72271         [C99-based standards] (cexpm1l): Likewise.
72272         [C99-based standards] (clog10l): Likewise.
72273         [C99-based standards] (clog1pl): Likewise.
72274         [C99-based standards] (clog2l): Likewise.
72275         [C99-based standards] (clgammal): Likewise.
72276         [C99-based standards] (ctgammal): Likewise.
72277         * conform/data/inttypes.h-data [C99-based standards]: Include
72278         stdint.h-data.  Remove all expectations for stdint.h contents.
72279         [C99-based standards] (PRI*): Do not allow.
72280         [C99-based standards] (SCN*): Likewise.
72281         [C99-based standards] (*_t): Likewise.
72282         [C99-based-standards] (PRId8): Expect macro.
72283         [C99-based-standards] (PRIi8): Likewise.
72284         [C99-based-standards] (PRIo8): Likewise.
72285         [C99-based-standards] (PRIu8): Likewise.
72286         [C99-based-standards] (PRIx8): Likewise.
72287         [C99-based-standards] (PRIX8): Likewise.
72288         [C99-based-standards] (SCNd8): Likewise.
72289         [C99-based-standards] (SCNi8): Likewise.
72290         [C99-based-standards] (SCNo8): Likewise.
72291         [C99-based-standards] (SCNu8): Likewise.
72292         [C99-based-standards] (SCNx8): Likewise.
72293         [C99-based-standards] (PRIdLEAST8): Likewise.
72294         [C99-based-standards] (PRIiLEAST8): Likewise.
72295         [C99-based-standards] (PRIoLEAST8): Likewise.
72296         [C99-based-standards] (PRIuLEAST8): Likewise.
72297         [C99-based-standards] (PRIxLEAST8): Likewise.
72298         [C99-based-standards] (PRIXLEAST8): Likewise.
72299         [C99-based-standards] (SCNdLEAST8): Likewise.
72300         [C99-based-standards] (SCNiLEAST8): Likewise.
72301         [C99-based-standards] (SCNoLEAST8): Likewise.
72302         [C99-based-standards] (SCNuLEAST8): Likewise.
72303         [C99-based-standards] (SCNxLEAST8): Likewise.
72304         [C99-based-standards] (PRIdFAST8): Likewise.
72305         [C99-based-standards] (PRIiFAST8): Likewise.
72306         [C99-based-standards] (PRIoFAST8): Likewise.
72307         [C99-based-standards] (PRIuFAST8): Likewise.
72308         [C99-based-standards] (PRIxFAST8): Likewise.
72309         [C99-based-standards] (PRIXFAST8): Likewise.
72310         [C99-based-standards] (SCNdFAST8): Likewise.
72311         [C99-based-standards] (SCNiFAST8): Likewise.
72312         [C99-based-standards] (SCNoFAST8): Likewise.
72313         [C99-based-standards] (SCNuFAST8): Likewise.
72314         [C99-based-standards] (SCNxFAST8): Likewise.
72315         [C99-based-standards] (PRId16): Likewise.
72316         [C99-based-standards] (PRIi16): Likewise.
72317         [C99-based-standards] (PRIo16): Likewise.
72318         [C99-based-standards] (PRIu16): Likewise.
72319         [C99-based-standards] (PRIx16): Likewise.
72320         [C99-based-standards] (PRIX16): Likewise.
72321         [C99-based-standards] (SCNd16): Likewise.
72322         [C99-based-standards] (SCNi16): Likewise.
72323         [C99-based-standards] (SCNo16): Likewise.
72324         [C99-based-standards] (SCNu16): Likewise.
72325         [C99-based-standards] (SCNx16): Likewise.
72326         [C99-based-standards] (PRIdLEAST16): Likewise.
72327         [C99-based-standards] (PRIiLEAST16): Likewise.
72328         [C99-based-standards] (PRIoLEAST16): Likewise.
72329         [C99-based-standards] (PRIuLEAST16): Likewise.
72330         [C99-based-standards] (PRIxLEAST16): Likewise.
72331         [C99-based-standards] (PRIXLEAST16): Likewise.
72332         [C99-based-standards] (SCNdLEAST16): Likewise.
72333         [C99-based-standards] (SCNiLEAST16): Likewise.
72334         [C99-based-standards] (SCNoLEAST16): Likewise.
72335         [C99-based-standards] (SCNuLEAST16): Likewise.
72336         [C99-based-standards] (SCNxLEAST16): Likewise.
72337         [C99-based-standards] (PRIdFAST16): Likewise.
72338         [C99-based-standards] (PRIiFAST16): Likewise.
72339         [C99-based-standards] (PRIoFAST16): Likewise.
72340         [C99-based-standards] (PRIuFAST16): Likewise.
72341         [C99-based-standards] (PRIxFAST16): Likewise.
72342         [C99-based-standards] (PRIXFAST16): Likewise.
72343         [C99-based-standards] (SCNdFAST16): Likewise.
72344         [C99-based-standards] (SCNiFAST16): Likewise.
72345         [C99-based-standards] (SCNoFAST16): Likewise.
72346         [C99-based-standards] (SCNuFAST16): Likewise.
72347         [C99-based-standards] (SCNxFAST16): Likewise.
72348         [C99-based-standards] (PRId32): Likewise.
72349         [C99-based-standards] (PRIi32): Likewise.
72350         [C99-based-standards] (PRIo32): Likewise.
72351         [C99-based-standards] (PRIu32): Likewise.
72352         [C99-based-standards] (PRIx32): Likewise.
72353         [C99-based-standards] (PRIX32): Likewise.
72354         [C99-based-standards] (SCNd32): Likewise.
72355         [C99-based-standards] (SCNi32): Likewise.
72356         [C99-based-standards] (SCNo32): Likewise.
72357         [C99-based-standards] (SCNu32): Likewise.
72358         [C99-based-standards] (SCNx32): Likewise.
72359         [C99-based-standards] (PRIdLEAST32): Likewise.
72360         [C99-based-standards] (PRIiLEAST32): Likewise.
72361         [C99-based-standards] (PRIoLEAST32): Likewise.
72362         [C99-based-standards] (PRIuLEAST32): Likewise.
72363         [C99-based-standards] (PRIxLEAST32): Likewise.
72364         [C99-based-standards] (PRIXLEAST32): Likewise.
72365         [C99-based-standards] (SCNdLEAST32): Likewise.
72366         [C99-based-standards] (SCNiLEAST32): Likewise.
72367         [C99-based-standards] (SCNoLEAST32): Likewise.
72368         [C99-based-standards] (SCNuLEAST32): Likewise.
72369         [C99-based-standards] (SCNxLEAST32): Likewise.
72370         [C99-based-standards] (PRIdFAST32): Likewise.
72371         [C99-based-standards] (PRIiFAST32): Likewise.
72372         [C99-based-standards] (PRIoFAST32): Likewise.
72373         [C99-based-standards] (PRIuFAST32): Likewise.
72374         [C99-based-standards] (PRIxFAST32): Likewise.
72375         [C99-based-standards] (PRIXFAST32): Likewise.
72376         [C99-based-standards] (SCNdFAST32): Likewise.
72377         [C99-based-standards] (SCNiFAST32): Likewise.
72378         [C99-based-standards] (SCNoFAST32): Likewise.
72379         [C99-based-standards] (SCNuFAST32): Likewise.
72380         [C99-based-standards] (SCNxFAST32): Likewise.
72381         [C99-based-standards] (PRId64): Likewise.
72382         [C99-based-standards] (PRIi64): Likewise.
72383         [C99-based-standards] (PRIo64): Likewise.
72384         [C99-based-standards] (PRIu64): Likewise.
72385         [C99-based-standards] (PRIx64): Likewise.
72386         [C99-based-standards] (PRIX64): Likewise.
72387         [C99-based-standards] (SCNd64): Likewise.
72388         [C99-based-standards] (SCNi64): Likewise.
72389         [C99-based-standards] (SCNo64): Likewise.
72390         [C99-based-standards] (SCNu64): Likewise.
72391         [C99-based-standards] (SCNx64): Likewise.
72392         [C99-based-standards] (PRIdLEAST64): Likewise.
72393         [C99-based-standards] (PRIiLEAST64): Likewise.
72394         [C99-based-standards] (PRIoLEAST64): Likewise.
72395         [C99-based-standards] (PRIuLEAST64): Likewise.
72396         [C99-based-standards] (PRIxLEAST64): Likewise.
72397         [C99-based-standards] (PRIXLEAST64): Likewise.
72398         [C99-based-standards] (SCNdLEAST64): Likewise.
72399         [C99-based-standards] (SCNiLEAST64): Likewise.
72400         [C99-based-standards] (SCNoLEAST64): Likewise.
72401         [C99-based-standards] (SCNuLEAST64): Likewise.
72402         [C99-based-standards] (SCNxLEAST64): Likewise.
72403         [C99-based-standards] (PRIdFAST64): Likewise.
72404         [C99-based-standards] (PRIiFAST64): Likewise.
72405         [C99-based-standards] (PRIoFAST64): Likewise.
72406         [C99-based-standards] (PRIuFAST64): Likewise.
72407         [C99-based-standards] (PRIxFAST64): Likewise.
72408         [C99-based-standards] (PRIXFAST64): Likewise.
72409         [C99-based-standards] (SCNdFAST64): Likewise.
72410         [C99-based-standards] (SCNiFAST64): Likewise.
72411         [C99-based-standards] (SCNoFAST64): Likewise.
72412         [C99-based-standards] (SCNuFAST64): Likewise.
72413         [C99-based-standards] (SCNxFAST64): Likewise.
72414         [C99-based-standards] (PRIdMAX): Likewise.
72415         [C99-based-standards] (PRIiMAX): Likewise.
72416         [C99-based-standards] (PRIoMAX): Likewise.
72417         [C99-based-standards] (PRIuMAX): Likewise.
72418         [C99-based-standards] (PRIxMAX): Likewise.
72419         [C99-based-standards] (PRIXMAX): Likewise.
72420         [C99-based-standards] (SCNdMAX): Likewise.
72421         [C99-based-standards] (SCNiMAX): Likewise.
72422         [C99-based-standards] (SCNoMAX): Likewise.
72423         [C99-based-standards] (SCNuMAX): Likewise.
72424         [C99-based-standards] (SCNxMAX): Likewise.
72425         [C99-based-standards] (PRIdPTR): Likewise.
72426         [C99-based-standards] (PRIiPTR): Likewise.
72427         [C99-based-standards] (PRIoPTR): Likewise.
72428         [C99-based-standards] (PRIuPTR): Likewise.
72429         [C99-based-standards] (PRIxPTR): Likewise.
72430         [C99-based-standards] (PRIXPTR): Likewise.
72431         [C99-based-standards] (SCNdPTR): Likewise.
72432         [C99-based-standards] (SCNiPTR): Likewise.
72433         [C99-based-standards] (SCNoPTR): Likewise.
72434         [C99-based-standards] (SCNuPTR): Likewise.
72435         [C99-based-standards] (SCNxPTR): Likewise.
72436         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
72437         allow.
72438         * conform/data/stdint.h-data: Update comments to clarify
72439         requirements.
72440         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
72441         type.
72442         [C99-based standards] (INT8_MAX): Likewise.
72443         [C99-based standards] (INT16_MIN): Likewise.
72444         [C99-based standards] (INT16_MAX): Likewise.
72445         [C99-based standards] (INT32_MIN): Likewise.
72446         [C99-based standards] (INT32_MAX): Likewise.
72447         [C99-based standards] (INT64_MIN): Likewise.
72448         [C99-based standards] (INT64_MAX): Likewise.
72449         [C99-based standards] (UINT8_MAX): Likewise.
72450         [C99-based standards] (UINT16_MAX): Likewise.
72451         [C99-based standards] (UINT32_MAX): Likewise.
72452         [C99-based standards] (UINT64_MAX): Likewise.
72453         [C99-based standards] (INT_LEAST8_MIN): Likewise.
72454         [C99-based standards] (INT_LEAST8_MAX): Likewise.
72455         [C99-based standards] (INT_LEAST16_MIN): Likewise.
72456         [C99-based standards] (INT_LEAST16_MAX): Likewise.
72457         [C99-based standards] (INT_LEAST32_MIN): Likewise.
72458         [C99-based standards] (INT_LEAST32_MAX): Likewise.
72459         [C99-based standards] (INT_LEAST64_MIN): Likewise.
72460         [C99-based standards] (INT_LEAST64_MAX): Likewise.
72461         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
72462         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
72463         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
72464         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
72465         [C99-based standards] (INT_FAST8_MIN): Likewise.
72466         [C99-based standards] (INT_FAST8_MAX): Likewise.
72467         [C99-based standards] (INT_FAST16_MIN): Likewise.
72468         [C99-based standards] (INT_FAST16_MAX): Likewise.
72469         [C99-based standards] (INT_FAST32_MIN): Likewise.
72470         [C99-based standards] (INT_FAST32_MAX): Likewise.
72471         [C99-based standards] (INT_FAST64_MIN): Likewise.
72472         [C99-based standards] (INT_FAST64_MAX): Likewise.
72473         [C99-based standards] (UINT_FAST8_MAX): Likewise.
72474         [C99-based standards] (UINT_FAST16_MAX): Likewise.
72475         [C99-based standards] (UINT_FAST32_MAX): Likewise.
72476         [C99-based standards] (UINT_FAST64_MAX): Likewise.
72477         [C99-based standards] (INTPTR_MIN): Likewise.
72478         [C99-based standards] (INTPTR_MAX): Likewise.
72479         [C99-based standards] (UINTPTR_MAX): Likewise.
72480         [C99-based standards] (INTMAX_MIN): Likewise.
72481         [C99-based standards] (INTMAX_MAX): Likewise.
72482         [C99-based standards] (UINTMAX_MAX): Likewise.
72483         [C99-based standards] (PTRDIFF_MIN): Likewise.
72484         [C99-based standards] (PTRDIFF_MAX): Likewise.
72485         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
72486         [C99-based standards] (SIZE_MAX): Likewise.
72487         [C99-based standards] (WCHAR_MAX): Likewise.
72488         [C99-based standards] (WINT_MAX): Likewise.
72489         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
72490         constraint on value.
72491         [C99-based standards] (WCHAR_MIN): Likewise.
72492         [C99-based standards] (WINT_MIN): Likewise.
72493         [C99-based standards] (*_t): Allow.
72494         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
72495         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
72496         Include math.h-data and complex.h-data.  Remove all expectations
72497         of math.h and complex.h contents.
72498         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
72499         at end of line.
72500         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
72501         (struct tm): Expect tag.
72502         [C99-based-standards] (wcstof): Expect function.
72503         [C99-based-standards] (wcstold): Likewise.
72504         [C99-based-standards] (wcstoll): Likewise.
72505         [C99-based-standards] (wcstoull): Likewise.
72506         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
72507         macro-int-constant.  Specify type.
72508         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
72509         constraint on value.
72510         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
72511         Specify type.
72512         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
72513         Specify value.
72514         [ISO C standards]: Do not allow headers.
72515         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
72516         wcs[abcdefghijklmnopqrstuvwxyz]*.
72517         [ISO C standards] (*_t): Do not allow.
72518         * conform/data/wctype.h-data [C99-based standards] (iswblank):
72519         Expect function.
72520         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
72521         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
72522         Specify type.
72523         [ISO C standards]: Do not allow headers.
72524         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
72525         is[abcdefghijklmnopqrstuvwxyz]*.
72526         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
72527         to[abcdefghijklmnopqrstuvwxyz]*.
72528         [ISO C standards] (*_t): Do not allow.
72529         * conform/data/stdalign.h-data: New file.
72530         * conform/data/stdbool.h-data: Likewise.
72531         * conform/data/stdnoreturn.h-data: Likewise.
72532
72533 2012-11-07  Roland McGrath  <roland@hack.frob.com>
72534
72535         [BZ #14815]
72536         * manual/filesys.texi (Directory Entries): Typo fix.
72537         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
72538
72539 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
72540
72541         * elf/elf.h (EM_AARCH64): New macro.
72542         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
72543         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
72544         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
72545         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
72546         (R_AARCH64_TLSDESC): Likewise.
72547         (NT_ARM_TLS): Likewise.
72548         (NT_ARM_HW_BREAK): Likewise.
72549         (NT_ARM_HW_WATCH): Likewise.
72550
72551 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
72552
72553         [BZ #14811]
72554         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
72555         (__ieee754_powl): Saturate nonzero exponents with absolute value
72556         below 0x1p-79 to +/- 0x1p-79.
72557         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
72558         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
72559         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
72560         nonzero exponents with absolute value below 0x1p-32 to +/-
72561         0x1p-32.
72562         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
72563         (__ieee754_powl): Saturate nonzero exponents with absolute value
72564         below 0x1p-79 to +/- 0x1p-79.
72565         * math/libm-test.inc (pow_test): Add more tests.
72566
72567 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72568
72569         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
72570         _dl_s390_cap_flags with kernel. Increase string length.
72571         (_dl_s390_platforms): Add z196 and zEC12.
72572
72573 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
72574
72575         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
72576         Change XOPEN21K to XOPEN2K.
72577
72578 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
72579
72580         * string/memmove.c: Use memcpy when possible.
72581
72582 2012-11-06  Andreas Jaeger  <aj@suse.de>
72583
72584         * po/eo.po: Update from translation team.
72585
72586 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
72587
72588         [BZ #14793]
72589         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
72590         exponent and small x and y exponents, scale x or y up.  Increase
72591         by 2 the exponent used in scaling up.
72592         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
72593         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
72594         * math/libm-test.inc (fma_test): Add more tests.
72595         (fma_test_towardzero): Likewise.
72596         (fma_test_downward): Likewise.
72597         (fma_test_upward): Likewise.
72598
72599 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
72600
72601         [BZ #14805]
72602         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
72603         fenv_t *.
72604
72605         [BZ #14801]
72606         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
72607         namespace for names of struct fields.
72608         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
72609         fenv_t fields.
72610         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
72611         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
72612
72613 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72614
72615         [BZ #3665]
72616         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
72617
72618 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
72619
72620         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
72621         PTR_DEMANGLE.
72622
72623         [BZ #5246]
72624         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
72625         PTR_DEMANGLE.
72626
72627 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
72628
72629         [BZ #14797]
72630         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
72631         definitely overflow as x * y not x * y + z.
72632         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
72633         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
72634         * math/libm-test.inc (fma_test): Add more tests.
72635         (fma_test_towardzero): Likewise.
72636         (fma_test_downward): Likewise.
72637         (fma_test_upward): Likewise.
72638
72639 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
72640
72641         [BZ #157]
72642
72643         * include/stub-tag.h: Remove file.
72644         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
72645         '#include' of it.
72646         * manual/maint.texi (Porting): Don't reference it.
72647         * Makerules ($(objpfx)stubs): Likewise.
72648         * dirent/closedir.c: Don't include <stub-tag.h>.
72649         * dirent/dirfd.c: Likewise.
72650         * dirent/fdopendir.c: Likewise.
72651         * dirent/getdents.c: Likewise.
72652         * dirent/getdents64.c: Likewise.
72653         * dirent/opendir.c: Likewise.
72654         * dirent/readdir.c: Likewise.
72655         * dirent/readdir64.c: Likewise.
72656         * dirent/readdir64_r.c: Likewise.
72657         * dirent/readdir_r.c: Likewise.
72658         * dirent/rewinddir.c: Likewise.
72659         * dirent/seekdir.c: Likewise.
72660         * dirent/telldir.c: Likewise.
72661         * gmon/profil.c: Likewise.
72662         * grp/setgroups.c: Likewise.
72663         * inet/if_index.c: Likewise.
72664         * io/access.c: Likewise.
72665         * io/chdir.c: Likewise.
72666         * io/chmod.c: Likewise.
72667         * io/chown.c: Likewise.
72668         * io/close.c: Likewise.
72669         * io/dup.c: Likewise.
72670         * io/dup2.c: Likewise.
72671         * io/dup3.c: Likewise.
72672         * io/euidaccess.c: Likewise.
72673         * io/faccessat.c: Likewise.
72674         * io/fchdir.c: Likewise.
72675         * io/fchmod.c: Likewise.
72676         * io/fchmodat.c: Likewise.
72677         * io/fchown.c: Likewise.
72678         * io/fchownat.c: Likewise.
72679         * io/fcntl.c: Likewise.
72680         * io/flock.c: Likewise.
72681         * io/fstatfs.c: Likewise.
72682         * io/fstatfs64.c: Likewise.
72683         * io/fstatvfs.c: Likewise.
72684         * io/fstatvfs64.c: Likewise.
72685         * io/futimens.c: Likewise.
72686         * io/fxstat.c: Likewise.
72687         * io/fxstat64.c: Likewise.
72688         * io/fxstatat.c: Likewise.
72689         * io/fxstatat64.c: Likewise.
72690         * io/getcwd.c: Likewise.
72691         * io/isatty.c: Likewise.
72692         * io/lchmod.c: Likewise.
72693         * io/lchown.c: Likewise.
72694         * io/link.c: Likewise.
72695         * io/linkat.c: Likewise.
72696         * io/lseek.c: Likewise.
72697         * io/lseek64.c: Likewise.
72698         * io/lxstat64.c: Likewise.
72699         * io/mkdir.c: Likewise.
72700         * io/mkdirat.c: Likewise.
72701         * io/mkfifo.c: Likewise.
72702         * io/mkfifoat.c: Likewise.
72703         * io/open.c: Likewise.
72704         * io/open64.c: Likewise.
72705         * io/openat.c: Likewise.
72706         * io/openat64.c: Likewise.
72707         * io/pipe.c: Likewise.
72708         * io/pipe2.c: Likewise.
72709         * io/poll.c: Likewise.
72710         * io/posix_fadvise.c: Likewise.
72711         * io/posix_fadvise64.c: Likewise.
72712         * io/posix_fallocate.c: Likewise.
72713         * io/posix_fallocate64.c: Likewise.
72714         * io/read.c: Likewise.
72715         * io/readlink.c: Likewise.
72716         * io/readlinkat.c: Likewise.
72717         * io/rmdir.c: Likewise.
72718         * io/sendfile.c: Likewise.
72719         * io/sendfile64.c: Likewise.
72720         * io/statfs.c: Likewise.
72721         * io/statfs64.c: Likewise.
72722         * io/statvfs.c: Likewise.
72723         * io/statvfs64.c: Likewise.
72724         * io/symlink.c: Likewise.
72725         * io/symlinkat.c: Likewise.
72726         * io/ttyname.c: Likewise.
72727         * io/ttyname_r.c: Likewise.
72728         * io/umask.c: Likewise.
72729         * io/unlink.c: Likewise.
72730         * io/unlinkat.c: Likewise.
72731         * io/utime.c: Likewise.
72732         * io/utimensat.c: Likewise.
72733         * io/write.c: Likewise.
72734         * io/xmknod.c: Likewise.
72735         * io/xmknodat.c: Likewise.
72736         * io/xstat.c: Likewise.
72737         * io/xstat64.c: Likewise.
72738         * login/getpt.c: Likewise.
72739         * login/grantpt.c: Likewise.
72740         * login/unlockpt.c: Likewise.
72741         * math/e_acoshl.c: Likewise.
72742         * math/e_acosl.c: Likewise.
72743         * math/e_asinl.c: Likewise.
72744         * math/e_atan2l.c: Likewise.
72745         * math/e_atanhl.c: Likewise.
72746         * math/e_coshl.c: Likewise.
72747         * math/e_expl.c: Likewise.
72748         * math/e_fmodl.c: Likewise.
72749         * math/e_gammal_r.c: Likewise.
72750         * math/e_hypotl.c: Likewise.
72751         * math/e_j0l.c: Likewise.
72752         * math/e_j1l.c: Likewise.
72753         * math/e_jnl.c: Likewise.
72754         * math/e_lgammal_r.c: Likewise.
72755         * math/e_log10l.c: Likewise.
72756         * math/e_log2l.c: Likewise.
72757         * math/e_logl.c: Likewise.
72758         * math/e_powl.c: Likewise.
72759         * math/e_rem_pio2l.c: Likewise.
72760         * math/e_sinhl.c: Likewise.
72761         * math/e_sqrtl.c: Likewise.
72762         * math/fclrexcpt.c: Likewise.
72763         * math/fedisblxcpt.c: Likewise.
72764         * math/feenablxcpt.c: Likewise.
72765         * math/fegetenv.c: Likewise.
72766         * math/fegetexcept.c: Likewise.
72767         * math/fegetround.c: Likewise.
72768         * math/feholdexcpt.c: Likewise.
72769         * math/fesetenv.c: Likewise.
72770         * math/fesetround.c: Likewise.
72771         * math/feupdateenv.c: Likewise.
72772         * math/fgetexcptflg.c: Likewise.
72773         * math/fraiseexcpt.c: Likewise.
72774         * math/fsetexcptflg.c: Likewise.
72775         * math/ftestexcept.c: Likewise.
72776         * math/k_cosl.c: Likewise.
72777         * math/k_rem_pio2l.c: Likewise.
72778         * math/k_sinl.c: Likewise.
72779         * math/k_tanl.c: Likewise.
72780         * math/s_asinhl.c: Likewise.
72781         * math/s_atanl.c: Likewise.
72782         * math/s_cbrtl.c: Likewise.
72783         * math/s_erfl.c: Likewise.
72784         * math/s_expm1l.c: Likewise.
72785         * math/s_log1pl.c: Likewise.
72786         * math/s_tanhl.c: Likewise.
72787         * misc/acct.c: Likewise.
72788         * misc/brk.c: Likewise.
72789         * misc/chflags.c: Likewise.
72790         * misc/chroot.c: Likewise.
72791         * misc/fchflags.c: Likewise.
72792         * misc/fgetxattr.c: Likewise.
72793         * misc/flistxattr.c: Likewise.
72794         * misc/fremovexattr.c: Likewise.
72795         * misc/fsetxattr.c: Likewise.
72796         * misc/fsync.c: Likewise.
72797         * misc/ftruncate.c: Likewise.
72798         * misc/futimes.c: Likewise.
72799         * misc/futimesat.c: Likewise.
72800         * misc/getdomain.c: Likewise.
72801         * misc/getdtsz.c: Likewise.
72802         * misc/gethostid.c: Likewise.
72803         * misc/gethostname.c: Likewise.
72804         * misc/getloadavg.c: Likewise.
72805         * misc/getpagesize.c: Likewise.
72806         * misc/getsysstats.c: Likewise.
72807         * misc/getxattr.c: Likewise.
72808         * misc/gtty.c: Likewise.
72809         * misc/ioctl.c: Likewise.
72810         * misc/lgetxattr.c: Likewise.
72811         * misc/listxattr.c: Likewise.
72812         * misc/llistxattr.c: Likewise.
72813         * misc/lremovexattr.c: Likewise.
72814         * misc/lsetxattr.c: Likewise.
72815         * misc/lutimes.c: Likewise.
72816         * misc/madvise.c: Likewise.
72817         * misc/mincore.c: Likewise.
72818         * misc/mlock.c: Likewise.
72819         * misc/mlockall.c: Likewise.
72820         * misc/mmap.c: Likewise.
72821         * misc/mprotect.c: Likewise.
72822         * misc/msync.c: Likewise.
72823         * misc/munlock.c: Likewise.
72824         * misc/munlockall.c: Likewise.
72825         * misc/munmap.c: Likewise.
72826         * misc/preadv.c: Likewise.
72827         * misc/preadv64.c: Likewise.
72828         * misc/ptrace.c: Likewise.
72829         * misc/pwritev.c: Likewise.
72830         * misc/pwritev64.c: Likewise.
72831         * misc/readv.c: Likewise.
72832         * misc/reboot.c: Likewise.
72833         * misc/remap_file_pages.c: Likewise.
72834         * misc/removexattr.c: Likewise.
72835         * misc/revoke.c: Likewise.
72836         * misc/select.c: Likewise.
72837         * misc/setdomain.c: Likewise.
72838         * misc/setegid.c: Likewise.
72839         * misc/seteuid.c: Likewise.
72840         * misc/sethostid.c: Likewise.
72841         * misc/sethostname.c: Likewise.
72842         * misc/setregid.c: Likewise.
72843         * misc/setreuid.c: Likewise.
72844         * misc/setxattr.c: Likewise.
72845         * misc/sstk.c: Likewise.
72846         * misc/stty.c: Likewise.
72847         * misc/swapoff.c: Likewise.
72848         * misc/swapon.c: Likewise.
72849         * misc/sync.c: Likewise.
72850         * misc/syncfs.c: Likewise.
72851         * misc/syscall.c: Likewise.
72852         * misc/truncate.c: Likewise.
72853         * misc/ualarm.c: Likewise.
72854         * misc/usleep.c: Likewise.
72855         * misc/ustat.c: Likewise.
72856         * misc/utimes.c: Likewise.
72857         * misc/vhangup.c: Likewise.
72858         * misc/writev.c: Likewise.
72859         * posix/_exit.c: Likewise.
72860         * posix/alarm.c: Likewise.
72861         * posix/execve.c: Likewise.
72862         * posix/fexecve.c: Likewise.
72863         * posix/fork.c: Likewise.
72864         * posix/fpathconf.c: Likewise.
72865         * posix/getaddrinfo.c: Likewise.
72866         * posix/getegid.c: Likewise.
72867         * posix/geteuid.c: Likewise.
72868         * posix/getgid.c: Likewise.
72869         * posix/getgroups.c: Likewise.
72870         * posix/getlogin.c: Likewise.
72871         * posix/getlogin_r.c: Likewise.
72872         * posix/getpgid.c: Likewise.
72873         * posix/getpid.c: Likewise.
72874         * posix/getppid.c: Likewise.
72875         * posix/getresgid.c: Likewise.
72876         * posix/getresuid.c: Likewise.
72877         * posix/getsid.c: Likewise.
72878         * posix/getuid.c: Likewise.
72879         * posix/glob64.c: Likewise.
72880         * posix/nanosleep.c: Likewise.
72881         * posix/pathconf.c: Likewise.
72882         * posix/pause.c: Likewise.
72883         * posix/posix_madvise.c: Likewise.
72884         * posix/pread.c: Likewise.
72885         * posix/pread64.c: Likewise.
72886         * posix/pwrite.c: Likewise.
72887         * posix/pwrite64.c: Likewise.
72888         * posix/sched_getaffinity.c: Likewise.
72889         * posix/sched_getp.c: Likewise.
72890         * posix/sched_gets.c: Likewise.
72891         * posix/sched_primax.c: Likewise.
72892         * posix/sched_primin.c: Likewise.
72893         * posix/sched_rr_gi.c: Likewise.
72894         * posix/sched_setaffinity.c: Likewise.
72895         * posix/sched_setp.c: Likewise.
72896         * posix/sched_sets.c: Likewise.
72897         * posix/sched_yield.c: Likewise.
72898         * posix/setgid.c: Likewise.
72899         * posix/setlogin.c: Likewise.
72900         * posix/setpgid.c: Likewise.
72901         * posix/setresgid.c: Likewise.
72902         * posix/setresuid.c: Likewise.
72903         * posix/setsid.c: Likewise.
72904         * posix/setuid.c: Likewise.
72905         * posix/sleep.c: Likewise.
72906         * posix/spawni.c: Likewise.
72907         * posix/sysconf.c: Likewise.
72908         * posix/times.c: Likewise.
72909         * posix/wait.c: Likewise.
72910         * posix/wait3.c: Likewise.
72911         * posix/wait4.c: Likewise.
72912         * posix/waitpid.c: Likewise.
72913         * resolv/gai_sigqueue.c: Likewise.
72914         * resource/getpriority.c: Likewise.
72915         * resource/getrlimit.c: Likewise.
72916         * resource/getrusage.c: Likewise.
72917         * resource/nice.c: Likewise.
72918         * resource/setpriority.c: Likewise.
72919         * resource/setrlimit.c: Likewise.
72920         * resource/ulimit.c: Likewise.
72921         * rt/aio_cancel.c: Likewise.
72922         * rt/aio_fsync.c: Likewise.
72923         * rt/aio_read.c: Likewise.
72924         * rt/aio_sigqueue.c: Likewise.
72925         * rt/aio_suspend.c: Likewise.
72926         * rt/aio_write.c: Likewise.
72927         * rt/clock_getres.c: Likewise.
72928         * rt/clock_gettime.c: Likewise.
72929         * rt/clock_nanosleep.c: Likewise.
72930         * rt/clock_settime.c: Likewise.
72931         * rt/lio_listio.c: Likewise.
72932         * rt/mq_close.c: Likewise.
72933         * rt/mq_getattr.c: Likewise.
72934         * rt/mq_notify.c: Likewise.
72935         * rt/mq_open.c: Likewise.
72936         * rt/mq_receive.c: Likewise.
72937         * rt/mq_send.c: Likewise.
72938         * rt/mq_setattr.c: Likewise.
72939         * rt/mq_timedreceive.c: Likewise.
72940         * rt/mq_timedsend.c: Likewise.
72941         * rt/mq_unlink.c: Likewise.
72942         * rt/shm_open.c: Likewise.
72943         * rt/shm_unlink.c: Likewise.
72944         * rt/timer_create.c: Likewise.
72945         * rt/timer_delete.c: Likewise.
72946         * rt/timer_getoverr.c: Likewise.
72947         * rt/timer_gettime.c: Likewise.
72948         * rt/timer_settime.c: Likewise.
72949         * setjmp/__longjmp.c: Likewise.
72950         * setjmp/setjmp.c: Likewise.
72951         * signal/kill.c: Likewise.
72952         * signal/killpg.c: Likewise.
72953         * signal/raise.c: Likewise.
72954         * signal/sigaction.c: Likewise.
72955         * signal/sigaltstack.c: Likewise.
72956         * signal/sigblock.c: Likewise.
72957         * signal/sigignore.c: Likewise.
72958         * signal/sigintr.c: Likewise.
72959         * signal/signal.c: Likewise.
72960         * signal/sigpause.c: Likewise.
72961         * signal/sigpending.c: Likewise.
72962         * signal/sigqueue.c: Likewise.
72963         * signal/sigreturn.c: Likewise.
72964         * signal/sigset.c: Likewise.
72965         * signal/sigsetmask.c: Likewise.
72966         * signal/sigstack.c: Likewise.
72967         * signal/sigsuspend.c: Likewise.
72968         * signal/sigtimedwait.c: Likewise.
72969         * signal/sigvec.c: Likewise.
72970         * signal/sigwait.c: Likewise.
72971         * signal/sigwaitinfo.c: Likewise.
72972         * signal/sysv_signal.c: Likewise.
72973         * socket/accept.c: Likewise.
72974         * socket/accept4.c: Likewise.
72975         * socket/bind.c: Likewise.
72976         * socket/connect.c: Likewise.
72977         * socket/getpeername.c: Likewise.
72978         * socket/getsockname.c: Likewise.
72979         * socket/getsockopt.c: Likewise.
72980         * socket/isfdtype.c: Likewise.
72981         * socket/listen.c: Likewise.
72982         * socket/recv.c: Likewise.
72983         * socket/recvfrom.c: Likewise.
72984         * socket/recvmsg.c: Likewise.
72985         * socket/send.c: Likewise.
72986         * socket/sendmsg.c: Likewise.
72987         * socket/sendto.c: Likewise.
72988         * socket/setsockopt.c: Likewise.
72989         * socket/shutdown.c: Likewise.
72990         * socket/sockatmark.c: Likewise.
72991         * socket/socket.c: Likewise.
72992         * socket/socketpair.c: Likewise.
72993         * stdio-common/ctermid.c: Likewise.
72994         * stdio-common/cuserid.c: Likewise.
72995         * stdio-common/remove.c: Likewise.
72996         * stdio-common/rename.c: Likewise.
72997         * stdio-common/renameat.c: Likewise.
72998         * stdio-common/tempname.c: Likewise.
72999         * stdlib/getcontext.c: Likewise.
73000         * stdlib/makecontext.c: Likewise.
73001         * stdlib/setcontext.c: Likewise.
73002         * stdlib/swapcontext.c: Likewise.
73003         * stdlib/system.c: Likewise.
73004         * streams/fattach.c: Likewise.
73005         * streams/fdetach.c: Likewise.
73006         * streams/getmsg.c: Likewise.
73007         * streams/getpmsg.c: Likewise.
73008         * streams/putmsg.c: Likewise.
73009         * streams/putpmsg.c: Likewise.
73010         * sysdeps/unix/bsd/getpt.c: Likewise.
73011         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
73012         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
73013         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
73014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
73015         Likewise.
73016         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
73017         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
73018         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
73019         * sysvipc/msgctl.c: Likewise.
73020         * sysvipc/msgget.c: Likewise.
73021         * sysvipc/msgrcv.c: Likewise.
73022         * sysvipc/msgsnd.c: Likewise.
73023         * sysvipc/semctl.c: Likewise.
73024         * sysvipc/semget.c: Likewise.
73025         * sysvipc/semop.c: Likewise.
73026         * sysvipc/semtimedop.c: Likewise.
73027         * sysvipc/shmat.c: Likewise.
73028         * sysvipc/shmctl.c: Likewise.
73029         * sysvipc/shmdt.c: Likewise.
73030         * sysvipc/shmget.c: Likewise.
73031         * termios/tcdrain.c: Likewise.
73032         * termios/tcflow.c: Likewise.
73033         * termios/tcflush.c: Likewise.
73034         * termios/tcgetattr.c: Likewise.
73035         * termios/tcgetpgrp.c: Likewise.
73036         * termios/tcsendbrk.c: Likewise.
73037         * termios/tcsetattr.c: Likewise.
73038         * termios/tcsetpgrp.c: Likewise.
73039         * time/adjtime.c: Likewise.
73040         * time/clock.c: Likewise.
73041         * time/getitimer.c: Likewise.
73042         * time/gettimeofday.c: Likewise.
73043         * time/setitimer.c: Likewise.
73044         * time/settimeofday.c: Likewise.
73045         * time/stime.c: Likewise.
73046         * time/time.c: Likewise.
73047
73048 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
73049
73050         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
73051         /usr/old/bin.
73052
73053         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
73054         instead of spaces.
73055         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
73056
73057 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
73058
73059         [BZ #14796]
73060         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
73061         FE_TONEAREST before applying Dekker multiplication and Knuth
73062         addition.  Clear inexact exceptions and check for exact zero
73063         results afterwards.
73064         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
73065         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
73066         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
73067         * math/libm-test.inc (fma_test): Add more tests.
73068         (fma_test_towardzero): Likewise.
73069         (fma_test_downward): Likewise.
73070         (fma_test_upward): Likewise.
73071         * sysdeps/generic/math_private.h (default_libc_fesetround): New
73072         function.
73073         (libc_fesetround): New macro.
73074         (libc_fesetroundf): Likewise.
73075         (libc_fesetroundl): Likewise.
73076         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
73077         function.
73078         (libc_fesetround_387): Likewise.
73079         (libc_fesetroundf): New macro.
73080         (libc_fesetround): Likewise.
73081         (libc_fesetroundl): Likewise.
73082         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
73083         function.
73084         (libc_fesetroundf): New macro.
73085         (libc_fesetround): Likewise.
73086         (libc_fesetroundl): Likewise.
73087         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
73088         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
73089         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
73090         libm_hidden_ver.
73091         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
73092         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
73093         libm_hidden_def.
73094         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
73095         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
73096         libm_hidden_ver.
73097         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
73098         libm_hidden_def.
73099
73100         [BZ #3439]
73101         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
73102         integer constant usable in #if and use that to give value to enum
73103         constant.
73104         (FE_DIVBYZERO): Likewise.
73105         (FE_UNDERFLOW): Likewise.
73106         (FE_OVERFLOW): Likewise.
73107         (FE_INVALID): Likewise.
73108         (FE_INVALID_SNAN): Likewise.
73109         (FE_INVALID_ISI): Likewise.
73110         (FE_INVALID_IDI): Likewise.
73111         (FE_INVALID_ZDZ): Likewise.
73112         (FE_INVALID_IMZ): Likewise.
73113         (FE_INVALID_COMPARE): Likewise.
73114         (FE_INVALID_SOFTWARE): Likewise.
73115         (FE_INVALID_SQRT): Likewise.
73116         (FE_INVALID_INTEGER_CONVERSION): Likewise.
73117         (FE_TONEAREST): Likewise.
73118         (FE_TOWARDZERO): Likewise.
73119         (FE_UPWARD): Likewise.
73120         (FE_DOWNWARD): Likewise.
73121         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
73122         (FE_DIVBYZERO): Likewise.
73123         (FE_OVERFLOW): Likewise.
73124         (FE_UNDERFLOW): Likewise.
73125         (FE_INEXACT): Likewise.
73126         (FE_TONEAREST): Likewise.
73127         (FE_DOWNWARD): Likewise.
73128         (FE_UPWARD): Likewise.
73129         (FE_TOWARDZERO): Likewise.
73130         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
73131         (FE_UNDERFLOW): Likewise.
73132         (FE_OVERFLOW): Likewise.
73133         (FE_DIVBYZERO): Likewise.
73134         (FE_INVALID): Likewise.
73135         (FE_TONEAREST): Likewise.
73136         (FE_TOWARDZERO): Likewise.
73137         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
73138         (FE_OVERFLOW): Likewise.
73139         (FE_UNDERFLOW): Likewise.
73140         (FE_DIVBYZERO): Likewise.
73141         (FE_INEXACT): Likewise.
73142         (FE_TONEAREST): Likewise.
73143         (FE_TOWARDZERO): Likewise.
73144         (FE_UPWARD): Likewise.
73145         (FE_DOWNWARD): Likewise.
73146         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
73147         (FE_DIVBYZERO): Likewise.
73148         (FE_OVERFLOW): Likewise.
73149         (FE_UNDERFLOW): Likewise.
73150         (FE_INEXACT): Likewise.
73151         (FE_TONEAREST): Likewise.
73152         (FE_DOWNWARD): Likewise.
73153         (FE_UPWARD): Likewise.
73154         (FE_TOWARDZERO): Likewise.
73155
73156 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
73157
73158         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
73159
73160 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
73161
73162         * scripts/cross-test-ssh.sh (command): Use newlines to separate
73163         commands.  Quote $PWD.
73164         (blacklist_exports): Don't use remove_newlines.  Replace "declare
73165         -x" by "export".
73166         (remove_newlines): Remove.
73167
73168 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
73169
73170         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
73171         * stdlib/stdlib.h (atof): Moved to ...
73172         * include/bits/stdlib-float.h: Here.  New file.
73173         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
73174         * stdlib/bits/stdlib-float.h: New file.
73175         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
73176         -mno-sse -mno-mmx.
73177         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
73178         <xmmintrin.h>.
73179
73180 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
73181
73182         * conform/conformtest.pl (@headers): Add fenv.h.
73183         * conform/data/fenv.h-data: New file.
73184         * include/fenv.h [_ISOMAC]: Disable all contents of file except
73185         include of <math/fenv.h>.
73186
73187         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
73188         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
73189         && !UNIX98].  Enables tests for XOPEN2K8.
73190         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
73191         POSIX2008]: Likewise.
73192
73193         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
73194         (struct rusage): Do not expect type or its members.
73195
73196         [BZ #3439]
73197         * math/math.h (FP_NAN): Define macro to integer constant usable in
73198         #if and use that to give value to enum constant.
73199         (FP_INFINITE): Likewise.
73200         (FP_ZERO): Likewise.
73201         (FP_SUBNORMAL): Likewise.
73202         (FP_NORMAL): Likewise.
73203
73204 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
73205
73206         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
73207         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
73208         arguments.
73209
73210 2012-11-02  Roland McGrath  <roland@hack.frob.com>
73211
73212         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
73213         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
73214         autoconf-time if not.
73215         * configure.in: Remove AC_PREREQ.
73216
73217 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
73218
73219         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
73220         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
73221         of the internal implementation.
73222
73223 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
73224
73225         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
73226         except include of <misc/sys/syslog.h>.
73227
73228 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
73229
73230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
73231         function returns with a NULL context exit with zero.
73232
73233 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
73234
73235         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
73236
73237 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
73238
73239         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
73240         (run_program_cmd): This.
73241         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
73242         (tst_langinfo): New variable.  Use it.
73243
73244 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
73245
73246         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
73247         floating point opcodes.
73248
73249 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
73250
73251         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
73252         variable.
73253
73254         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
73255
73256         * sysdeps/mach/hurd/powerpc: Remove directory.
73257         * sysdeps/mach/powerpc: Likewise.
73258
73259 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
73260
73261         * scripts/check-local-headers.sh: Ignore c++ headers.
73262
73263 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
73264
73265         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
73266         __libc_cleanup_region_start argument.
73267
73268 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
73269
73270         [BZ #14784]
73271         [BZ #14785]
73272         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
73273         x * y using scaling, not as x * y + z.
73274         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
73275         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
73276         * math/libm-test.inc (fma_test): Add more tests.
73277         (fma_test_towardzero): Likewise.
73278         (fma_test_downward): Likewise.
73279         (fma_test_upward): Likewise.
73280
73281 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
73282
73283         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
73284
73285 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
73286
73287         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
73288         New variable.
73289
73290 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
73291
73292         * rt/tst-shm.c (worker): Correct checking for mmap failure.
73293
73294 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
73295
73296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73297         Fix sort order.
73298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73299         Likewise.
73300
73301 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
73302
73303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73304         Fix the order of the list for glibc 2.17.
73305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73306         Likewise.
73307
73308 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
73309
73310         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73311
73312 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
73313
73314         [BZ #14610]
73315         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
73316         for low part of x being zero before using __atanl (y).
73317         * math/libm-test.inc (atan2_test): Add another test.
73318
73319         * manual/install.texi (Configuring and compiling): Document
73320         general use of test-wrapper and test-wrapper-env.
73321         * INSTALL: Regenerated.
73322
73323         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
73324         (__fma): Do not extract and scale down low bits on after-rounding
73325         systems when result rounded to normal precision would have normal
73326         exponent.
73327         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
73328         (__fmal): Do not extract and scale down low bits on after-rounding
73329         systems when result rounded to normal precision would have normal
73330         exponent.
73331         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
73332         (__fmal): Do not extract and scale down low bits on after-rounding
73333         systems when result rounded to normal precision would have normal
73334         exponent.
73335         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
73336         macro.
73337         (fma_test): Add more tests.
73338         (fma_test_towardzero): Likewise.
73339         (fma_test_downward): Likewise.
73340         (fma_test_upward): Likewise.
73341
73342 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
73343
73344         * sysdeps/i386/tininess.h: Renamed to ...
73345         * sysdeps/x86/tininess.h: This.
73346         * sysdeps/x86_64/tininess.h: Removed.
73347
73348 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
73349
73350         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
73351         input.  Use $(build-program-cmd).
73352         ($(objpfx)tst-array1-static.out): Likewise.
73353         ($(objpfx)tst-array2.out): Likewise.
73354         ($(objpfx)tst-array3.out): Likewise.
73355         ($(objpfx)tst-array4.out): Likewise.
73356         ($(objpfx)tst-array5.out): Likewise.
73357         ($(objpfx)tst-array5-static.out): Likewise.
73358
73359 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
73360
73361         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
73362         if defined.
73363
73364         * nss/nsswitch.h (nss_interface_function): Provide new
73365         macro for use with NSS functions.
73366         * grp/initgroups.c: Use new macro.
73367         * nss/getXXbyYY.c: Likewise.
73368         * nss/getXXbyYY_r.c: Likewise.
73369         * nss/getXXent.c: Likewise.
73370         * nss/getXXent_r.c: Likewise.
73371         * sysdeps/posix/getaddrinfo.c: Likewise.
73372
73373 2012-10-30  Andreas Jaeger  <aj@suse.de>
73374
73375         * po/ru.po: Update Russion translation from translation project.
73376
73377 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
73378
73379         [BZ #14152]
73380         [BZ #14783]
73381         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
73382         result and shift together with sticky bit instead of replicating
73383         round-to-nearest rounding.
73384         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
73385         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
73386         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
73387         missing underflow exceptions.
73388         (fma_test_towardzero): Add more tests.
73389         (fma_test_downward): Likewise.
73390         (fma_test_upward): Likewise.
73391
73392         [BZ #14047]
73393         * sysdeps/generic/tininess.h: New file.
73394         * sysdeps/i386/tininess.h: Likewise.
73395         * sysdeps/sh/tininess.h: Likewise.
73396         * sysdeps/x86_64/tininess.h: Likewise.
73397         * stdlib/tst-strtod-underflow.c: Likewise.
73398         * stdlib/tst-tininess.c: Likewise.
73399         * stdlib/strtod_l.c: Include <tininess.h>.
73400         (round_and_return): Do not set errno for exact underflow cases.
73401         Force an underflow exception when setting errno for underflow.
73402         Determine underflow based on rounding to normal precision if
73403         TININESS_AFTER_ROUNDING.
73404         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
73405         ERANGE for exact underflow cases.
73406         * stdlib/Makefile (tests): Add tst-tininess and
73407         tst-strtod-underflow.
73408         ($(objpfx)tst-tininess): Use $(link-libm).
73409         ($(objpfx)tst-strtod-underflow): Likewise.
73410
73411 2012-10-30  Andreas Jaeger  <aj@suse.de>
73412
73413         [BZ #14767]
73414         * elf/Makefile (tests): Remove conditional for have-initfini-array
73415         since this is now always required and the variable does not exist
73416         anymore.
73417         (tests-static): Likewise.
73418         (modules-names): Likewise.
73419
73420         * po/eo.po: Add Esperanto translation from translation project.
73421
73422         * elf/tst-array1.c (fini_array): Make writeable so that it can be
73423         merged with constructor/destructor.
73424         (init_array): Likewise.
73425         * elf/tst-array2dep.c (fini_array): Likewise.
73426         (init_array): Likewise.
73427
73428 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
73429
73430         * manual/message.texi: Delete @cartouche tags.
73431
73432 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
73433
73434         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
73435         EOPNOTSUPP.
73436         * sysdeps/mach/hurd/fsync.c: Likewise.
73437
73438         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
73439         [_POSIX_REALTIME_SIGNALS]: Change condition to
73440         [_POSIX_REALTIME_SIGNALS > 0].
73441
73442 2012-10-27  Andreas Jaeger  <aj@suse.de>
73443
73444         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
73445         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
73446         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
73447         [__WORDSIZE != 64]: Likewise.
73448
73449 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
73450
73451         *  iconvdata/tst-table.sh: Remove ${SHELL}.
73452         *  iconvdata/tst-tables.sh: Likewise.
73453
73454 2012-10-25  David S. Miller  <davem@davemloft.net>
73455
73456         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
73457         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
73458         of strtoull.
73459
73460         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
73461         ifunc-impl-list.c
73462         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73463         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
73464         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
73465         file.
73466
73467 2012-10-25  Roland McGrath  <roland@hack.frob.com>
73468
73469         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
73470         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
73471         __getdirentries.
73472
73473 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
73474             Jim Blandy  <jimb@codesourcery.com>
73475
73476         * scripts/cross-test-ssh.sh: New file.
73477         * manual/install.texi (Configuring and compiling): Document use of
73478         cross-test-ssh.sh.
73479         * INSTALL: Regenerated.
73480
73481 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
73482
73483         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
73484         EOPNOTSUPP.
73485
73486 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
73487
73488         * Makeconfig (run-program-prefix): Fix comment.
73489
73490 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
73491             Jim Blandy  <jimb@codesourcery.com>
73492
73493         * Makeconfig (test-wrapper): New variable,
73494         (test-wrapper-env): Likewise.
73495         [$(cross-compiling) = yes && $(test-wrapper) != ""]
73496         (run-built-tests): Define to yes.
73497         (run-program-prefix): Use $(test-wrapper).
73498         (built-program-cmd): Likewise.
73499         * Rules (make-test-out): Use $(test-wrapper-env) and
73500         $(host-built-program-cmd).
73501         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
73502         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
73503         tst-pathopt.sh.
73504         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
73505         $(test-wrapper-env) to tst-rtld-load-self.sh.
73506         ($(objpfx)order2.out): Use $(test-wrapper).
73507         ($(objpfx)tst-initorder.out): Likewise.
73508         ($(objpfx)tst-initorder2.out): Likewise.
73509         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
73510         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
73511         (test_wrapper_env): New variable.  Use it to run ld.so.
73512         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
73513         Use it to run ld.so.
73514         (test_wrapper_env): Likewise.
73515         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
73516         $(test-wrapper) to run-iconv-test.sh.
73517         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
73518         (ICONV): Use $test_wrapper.
73519         * posix/Makefile ($(objpfx)globtest.out): Pass
73520         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
73521         globtest.sh, not $(run-program-prefix).
73522         * posix/globtest.sh (run_via_rtld_prefix): New variable.
73523         (test_wrapper): Likewise.
73524         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
73525         set together with run_via_rtld_prefix.
73526         (run_program_prefix): Define in terms of test_wrapper and
73527         run_via_rtld_prefix.
73528
73529 2012-10-24  Roland McGrath  <roland@hack.frob.com>
73530
73531         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
73532         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
73533         Targets removed.
73534
73535         [BZ #14743]
73536         * include/time.h: Remove librt_hidden_proto (clock_gettime).
73537         Declare __clock_getres, __clock_gettime, __clock_settime,
73538         __clock_nanosleep, and __clock_getcpuclockid.
73539         * rt/clock_gettime.c: Define __clock_gettime as an alias.
73540         Remove librt_hidden_def (clock_gettime).
73541         * sysdeps/unix/clock_gettime.c: Likewise.
73542         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
73543         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
73544         * rt/clock_getres.c: Define __clock_getres as an alias.
73545         * sysdeps/posix/clock_getres.c: Likewise.
73546         * rt/clock_settime.c: Define __clock_settime as an alias.
73547         * sysdeps/unix/clock_settime.c: Likewise.
73548         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
73549         * sysdeps/unix/clock_nanosleep.c: Likewise.
73550         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
73551         * rt/clock-compat.c: New file.
73552         * rt/Makefile (librt-routines): Add clock-compat and move
73553         $(clock-routines) to ...
73554         (routines): ... here, new variable.
73555         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
73556         Don't add get_clockfreq here.
73557         * rt/Versions (libc: GLIBC_2.17): New version set.
73558         Add clock_* symbols here.
73559         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
73560         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
73561         (GLIBC_2.17): Add clock_* symbols.
73562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
73563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
73564         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
73565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73566         Likewise.
73567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73568         Likewise.
73569         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
73570         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
73571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
73572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
73573         * NEWS: Mention the move.
73574
73575         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
73576         Use __open, __read, __close rather than their public counterparts.
73577         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
73578         (__get_clockfreq_via_cpuinfo): Likewise.
73579         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
73580         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
73581
73582         * config.h.in (HAVE_IFUNC): New #undef.
73583         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
73584         was successful.
73585         * configure: Regenerated.
73586
73587 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
73588
73589         * configure.in: Move READELF check to start of file.
73590         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
73591         libc_cv_asm_gnu_indirect_function in the process.
73592         * configure: Regenerated.
73593
73594 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
73595
73596         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
73597         send the output to /dev/null.
73598         (libc_cv_cc_with_libunwind): Likewise.
73599         (libc_cv_as_noexecstack): Likewise.
73600         * configure: Regenerate.
73601
73602 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
73603
73604         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
73605
73606         * posix/globtest.sh (TMPDIR): Do not set.
73607         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
73608         (testout): Likewise.
73609
73610 2012-10-24  Andreas Jaeger  <aj@suse.de>
73611
73612         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
73613         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
73614         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
73615         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
73616         posix_fadvise64, posix_fallocate64.
73617
73618         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
73619         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
73620         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
73621         Likewise.
73622         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
73623         Likewise.
73624         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
73625
73626         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
73627         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
73628         <bits/fcntl-linux.h>.
73629         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
73630
73631         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
73632         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
73633         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
73634         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
73635         [__WORDSIZE != 64]: Likewise.
73636
73637 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
73638
73639         * Makeconfig (run-built-tests): New variable.
73640         * Rules [$(cross-compiling) = yes]: Change condition to
73641         [$(run-built-tests) = no].
73642         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
73643         to [$(run-built-tests) = yes].
73644         * elf/Makefile [$(cross-compiling) = no]: Likewise.
73645         * grp/Makefile [$(cross-compiling) = no]: Likewise.
73646         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
73647         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
73648         * intl/Makefile [$(cross-compiling) = no]: Likewise.
73649         * io/Makefile [$(cross-compiling) = no]: Likewise.
73650         * libio/Makefile [$(cross-compiling) = no]: Likewise.
73651         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
73652         * misc/Makefile [$(cross-compiling) = no]: Likewise.
73653         * posix/Makefile [$(cross-compiling) = no]: Likewise.
73654         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
73655         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
73656         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
73657         * string/Makefile [$(cross-compiling) = no]: Likewise.
73658
73659         * posix/Makefile ($(objpfx)globtest.out): Pass
73660         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
73661         $(rtld-installed-name).
73662         * posix/globtest.sh (elf_objpfx): Remove variable.
73663         (rtld_installed_name): Likewise.
73664         (library_path): Likewise.
73665         (run_program_prefix): New variable.  Use for running globtest
73666         binary.
73667
73668 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
73669             Joseph Myers  <joseph@codesourcery.com>
73670
73671         * Makeconfig (host-built-program-cmd): New variable.
73672         * elf/Makefile (tst-stackguard1-ARGS): Use
73673         $(host-built-program-cmd).
73674         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
73675         (tst-spawn-ARGS): Likewise.
73676         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
73677
73678 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
73679             Jim Blandy  <jimb@codesourcery.com>
73680
73681         * Makeconfig (run-via-rtld-prefix): New variable.
73682         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
73683         (built-program-cmd): Likewise.
73684
73685 2012-10-22  Andreas Jaeger  <aj@suse.de>
73686
73687         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
73688         __O_RSYNC if it exists, otherwise to O_SYNC.
73689
73690 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
73691             Joseph Myers  <joseph@codesourcery.com>
73692
73693         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
73694         /dev/null.
73695         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
73696         from /dev/null
73697         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
73698         /dev/null.
73699
73700 2012-10-22  Andreas Jaeger  <aj@suse.de>
73701
73702         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
73703         Define always.
73704         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
73705
73706         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73707         bits/fcntl-linux.h.
73708
73709         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
73710         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
73711
73712         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
73713         to __O_LARGEFILE.
73714         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
73715         to __O_LARGEFILE.
73716
73717 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
73718             Joseph Myers  <joseph@codesourcery.com>
73719
73720         * config.make.in (NM): New variable.
73721
73722 2012-10-21  Andreas Jaeger  <aj@suse.de>
73723
73724         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
73725         definitions and declarations that are provided by
73726         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
73727
73728 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
73729
73730         [BZ #14683]
73731         * elf/Makefile (tests-static): Add tst-leaks1-static.
73732         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
73733         ($(objpfx)tst-leaks1-static): New rule.
73734         ($(objpfx)tst-leaks1-static-mem): Likewise.
73735         (tst-leaks1-static-ENV): New macro.
73736         * elf/dl-open.c (dl_open_worker): Check the main application
73737         only if SHARED is defined.
73738         * elf/tst-leaks1-static.c: New file.
73739
73740 2012-10-20  Andreas Jaeger  <aj@suse.de>
73741
73742         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
73743         generic values for Linux.
73744         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
73745         and declarations that are provided by <bits/fcntl-linux.h> and
73746         include <bits/fcntl-linux.h>.
73747         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
73748         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
73749
73750 2012-10-20  Roland McGrath  <roland@hack.frob.com>
73751
73752         * io/fcntl.h: Move include of <bits/types.h> to the top and
73753         include it unconditionally.
73754
73755 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
73756
73757         * wcsmbs/Makefile (tests-ifunc): New variable.
73758         (tests): Add $(tests-ifunc).
73759         * wcsmbs/test-wcschr-ifunc.c: New file.
73760         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
73761         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
73762         * wcsmbs/test-wcslen-ifunc.c: Likewise.
73763         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
73764         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
73765
73766         * string/Makefile (tests-ifunc): New variable.
73767         (tests): Add $(tests-ifunc).
73768         * string/test-memccpy.c (TEST_NAME): New macro.
73769         * string/test-memchr.c (TEST_NAME): Likewise.
73770         * string/test-memcmp.c (TEST_NAME): Likewise.
73771         * string/test-memcpy.c (TEST_NAME): Likewise.
73772         * string/test-memmem.c (TEST_NAME): Likewise.
73773         * string/test-memmove.c (TEST_NAME): Likewise.
73774         * string/test-memset.c (TEST_NAME): Likewise.
73775         * string/test-rawmemchr.c (TEST_NAME): Likewise.
73776         * string/test-stpcpy.c (TEST_NAME): Likewise.
73777         * string/test-stpncpy.c (TEST_NAME): Likewise.
73778         * string/test-strcasecmp.c (TEST_NAME): Likewise.
73779         * string/test-strcasestr.c (TEST_NAME): Likewise.
73780         * string/test-strcat.c (TEST_NAME): Likewise.
73781         * string/test-strchr.c (TEST_NAME): Likewise.
73782         * string/test-strcmp.c(TEST_NAME): Likewise.
73783         * string/test-strcpy.c (TEST_NAME): Likewise.
73784         * string/test-strcspn.c (TEST_NAME): Likewise.
73785         * string/test-strlen.c (TEST_NAME): Likewise.
73786         * string/test-strncasecmp.c (TEST_NAME): Likewise.
73787         * string/test-strncmp.c (TEST_NAME): Likewise.
73788         * string/test-strncpy.c (TEST_NAME): Likewise.
73789         * string/test-strnlen.c (TEST_NAME): Likewise.
73790         * string/test-strpbrk.c (TEST_NAME): Likewise.
73791         * string/test-strrchr.c (TEST_NAME): Likewise.
73792         * string/test-strspn.c (TEST_NAME): Likewise.
73793         * string/test-strstr.c (TEST_NAME): Likewise.
73794         * string/test-bcopy-ifunc.c: New file.
73795         * string/test-bzero-ifunc.c: Likewise.
73796         * string/test-memccpy-ifunc.c: Likewise.
73797         * string/test-memchr-ifunc.c: Likewise.
73798         * string/test-memcmp-ifunc.c: Likewise.
73799         * string/test-memcpy-ifunc.c: Likewise.
73800         * string/test-memmem-ifunc.c: Likewise.
73801         * string/test-memmove-ifunc.c: Likewise.
73802         * string/test-mempcpy-ifunc.c: Likewise.
73803         * string/test-memset-ifunc.c: Likewise.
73804         * string/test-rawmemchr-ifunc.c: Likewise.
73805         * string/test-stpcpy-ifunc.c: Likewise.
73806         * string/test-stpncpy-ifunc.c: Likewise.
73807         * string/test-strcasecmp-ifunc.c: Likewise.
73808         * string/test-strcasestr-ifunc.c: Likewise.
73809         * string/test-strcat-ifunc.c: Likewise.
73810         * string/test-strchr-ifunc.c: Likewise.
73811         * string/test-strchrnul-ifunc.c: Likewise.
73812         * string/test-strcmp-ifunc.c: Likewise.
73813         * string/test-strcpy-ifunc.c: Likewise.
73814         * string/test-strcspn-ifunc.c: Likewise.
73815         * string/test-strlen-ifunc.c: Likewise.
73816         * string/test-strncasecmp-ifunc.c: Likewise.
73817         * string/test-strncat-ifunc.c: Likewise.
73818         * string/test-strncmp-ifunc.c: Likewise.
73819         * string/test-strncpy-ifunc.c: Likewise.
73820         * string/test-strnlen-ifunc.c: Likewise.
73821         * string/test-strpbrk-ifunc.c: Likewise.
73822         * string/test-strrchr-ifunc.c: Likewise.
73823         * string/test-strspn-ifunc.c: Likewise.
73824         * string/test-strstr-ifunc.c: Likewise.
73825
73826         * debug/Makefile (tests-ifunc): New variable.
73827         (tests): Add $(tests-ifunc).
73828         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
73829         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
73830         * debug/test-stpcpy_chk-ifunc.c: New file.
73831         * debug/test-strcpy_chk-ifunc.c: Likewise.
73832
73833 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
73834
73835         [BZ #13601]
73836         * elf/dl-load.c (open_verify): Retry read if the entire ELF
73837         header is not read in.
73838
73839 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
73840
73841         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
73842         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
73843         directly.  Pass built executable to script as
73844         $(built-program-cmd).
73845         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
73846         $testprogram without using LD_LIBRARY_PATH and $ldso.
73847
73848         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
73849         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
73850         $(rtld-installed-name).
73851         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
73852         (rtld_installed_name): Likewise.
73853         (library_path): Likewise.
73854         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
73855         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
73856         $(run-program-prefix) to tst-tables.sh.
73857         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
73858         it to run tst-table-from and tst-table-to.
73859         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
73860         Pass it to tst-table.sh.
73861         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
73862         $(run-program-prefix) to tst-gettext.sh.
73863         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
73864         tst-translit.sh.
73865         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
73866         tst-gettext2.sh.
73867         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
73868         to run tst-gettext.
73869         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
73870         to run tst-gettext2.
73871         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
73872         to run tst-translit.
73873         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
73874         $(run-program-prefix) to tst-mtrace.sh.
73875         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
73876         to run tst-mtrace.
73877         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
73878         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
73879         $(rtld-installed-name).
73880         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
73881         (rtld_installed_name): Likewise.
73882         (run_program_prefix): New variable.  Use it to run wordexp-test.
73883
73884         * Makeconfig (ARCH): Remove all definitions.
73885         (machine): Likewise.
73886         [ARCH]: Remove conditional code.
73887         [!objdir]: Give error.
73888         [!objdir] (objpfx): Remove.
73889         [!objdir] (common-objpfx): Likewise.
73890         [!objdir] (common-objdir): Likewise.
73891         * configure.in (config_makefile): Remove.  Hardcode Makefile in
73892         AC_CONFIG_FILES call.
73893         * configure: Regenerated.
73894
73895         [BZ #13888]
73896         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
73897         or TMPDIR.
73898         (testout): Likewise.
73899
73900         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
73901         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
73902         $(rtld-installed-name).
73903         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
73904         (rtld_installed_name): Likewise.
73905         (runit): Remove function.
73906         (run_getconf): New variable,  Use it for running getconf binary.
73907
73908 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
73909
73910         [BZ #14716]
73911         * string/test-memmem.c (check_result): New function.
73912         (do_one_test): Use it.
73913         (check1): New function.
73914         (test_main): Use it.
73915
73916 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
73917
73918         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
73919
73920 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
73921
73922         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
73923         (_G_LSEEK64): Likewise.
73924         (_G_MMAP64): Likewise.
73925         (_G_FSTAT64): Likewise.
73926         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
73927         (_G_LSEEK64): Likewise.
73928         (_G_MMAP64): Likewise.
73929         (_G_FSTAT64): Likewise.
73930         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
73931         unconditional.  Call __mmap64 directly.
73932         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
73933         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
73934         __lseek64 directly.
73935         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
73936         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
73937         __mmap64 directly.
73938         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
73939         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
73940         __lseek64 directly.
73941         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
73942         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
73943         __lseek64 directly.
73944         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
73945         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
73946         __lseek64 directly.
73947         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
73948         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
73949         __fxstat64 directly.
73950         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
73951         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
73952         unconditional.
73953         (freopen64) [!_G_OPEN64]: Remove conditional code.
73954         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
73955         unconditional.
73956         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
73957         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
73958         unconditional.
73959         (ftello64) [!_G_LSEEK64]: Remove conditional code.
73960         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
73961         unconditional.
73962         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
73963         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
73964         unconditional.
73965         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
73966         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
73967         unconditional.
73968         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
73969         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
73970         unconditional.
73971         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
73972         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
73973         unconditional.
73974         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
73975
73976 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
73977
73978         [BZ #12140]
73979         * manual/memory.texi (Malloc Tunable Parameters): Add note
73980         about free list pointers overwriting some perturb bytes.
73981         Wording suggested by Roland McGrath.
73982
73983 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
73984
73985         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
73986         (lgamma_test): Likewise.
73987         (tgamma_test): Likewise.
73988
73989 2012-10-16  Florian Weimer  <fweimer@redhat.com>
73990
73991         [BZ #14700]
73992         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
73993         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
73994
73995 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
73996
73997         * NEWS: Mention BZ #14716.
73998         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
73999         when removing AVAILABLE1_USES_J macro.
74000
74001 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
74002
74003         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
74004         (__bswap_64): __uint64_t for unsigned 64-bit int.
74005
74006 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
74007
74008         * include/string.h (memmem): Declare libc hidden alias.
74009         * string/memmem.c (memmem): Define libc hidden alias.
74010         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
74011         __read, __close instead of open, read, close.
74012
74013 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
74014
74015         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
74016         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
74017         global and hidden.
74018         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
74019         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
74020         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
74021         Likewise.
74022         (__rawmemchr_sse2): Likewise.
74023         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
74024         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
74025         (__strchr_sse2): Likewise.
74026         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
74027         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
74028         (__strcasecmp_sse2): Likewise.
74029         (__strncasecmp_sse2): Likewise.
74030         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
74031         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
74032         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
74033         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
74034         (__strrchr_sse2): Likewise.
74035         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
74036         ifunc-impl-list.c.
74037         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
74038         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
74039         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
74040         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
74041         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
74042         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
74043         * sysdeps/x86_64/multiarch/memset.S: Likewise.
74044         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
74045         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
74046         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
74047         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
74048         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
74049         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
74050         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
74051         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
74052         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
74053         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
74054         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
74055         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
74056         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
74057         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
74058         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
74059         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
74060         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
74061         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
74062         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
74063         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
74064         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
74065         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
74066         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
74067
74068         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
74069         global and hidden.
74070         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
74071         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
74072         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
74073         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
74074         Likewise.
74075         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
74076         Likewise.
74077         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
74078         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
74079         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
74080         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
74081         ifunc-impl-list.c.
74082         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
74083         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
74084         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
74085         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
74086         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
74087         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
74088         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
74089         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
74090         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
74091         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
74092         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
74093         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
74094         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
74095         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
74096         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
74097         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
74098         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
74099         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
74100         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
74101         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
74102         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
74103         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
74104         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
74105         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
74106         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
74107         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
74108         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
74109         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
74110         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
74111         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
74112         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
74113         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
74114         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
74115         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
74116         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
74117         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
74118         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
74119         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
74120         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
74121         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
74122         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
74123
74124         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
74125         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
74126         * include/ifunc-impl-list.h: New file.
74127         * misc/ifunc-impl-list.c: Likewise.
74128         * misc/Makefile (routines): Add ifunc-impl-list.
74129         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
74130         * string/test-string.h: Include <ifunc-impl-list.h>.
74131         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
74132         TEST_NAME]: New variables.
74133         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
74134         are defined.
74135         (test_init): Call __libc_ifunc_impl_list to initialize
74136         func_list if TEST_IFUNC and TEST_NAME are defined.
74137
74138         * string/Makefile (strop-tests): Add bcopy and bzero.
74139         * string/test-bcopy.c: New file.
74140         * string/test-bzero.c: Likewise.
74141         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
74142         defined.
74143         * string/test-memset.c: Support bzero test if TEST_BZERO is
74144         defined.
74145         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
74146         __libc_memmove.
74147         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
74148         __libc_memset.
74149         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
74150         of memset.
74151
74152 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
74153
74154         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
74155         * configure: Regenerated.
74156
74157         * Makeconfig (+link-static-before-libc): Don't include
74158         $(link-static-libc).
74159
74160         * libio/libio.h (_IO_pos_t): Remove.
74161
74162 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
74163
74164         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
74165         McGrath.
74166
74167 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
74168
74169         * crypt/crypt-entry.c: Include fips-private.h.
74170         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
74171         * crypt/md5c-test.c (main): Tolerate disabled MD5.
74172         * sysdeps/unix/sysv/linux/fips-private.h: New file.
74173         * sysdeps/generic/fips-private.h: New file, dummy fallback.
74174
74175 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
74176
74177         * crypt/crypt-private.h: Include stdbool.h.
74178         (_ufc_setup_salt_r): Return bool.
74179         * crypt/crypt-entry.c: Include errno.h.
74180         (__crypt_r): Return NULL with EINVAL for bad salt.
74181         * crypt/crypt_util.c (bad_for_salt): New.
74182         (_ufc_setup_salt_r): Check that salt is long enough and within
74183         the specified alphabet.
74184         * crypt/badsalttest.c: New file.
74185         * crypt/Makefile (tests): Add it.
74186         ($(objpfx)badsalttest): New.
74187
74188 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
74189
74190         * NEWS: Add entry for BZ #14602.
74191
74192 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
74193
74194         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
74195         type-generic.
74196         * math/libm-test.inc: Update comment listing what functions and
74197         macros are tested.
74198         (isgreater_test): New function.
74199         (isgreaterequal_test): Likewise.
74200         (isless_test): Likewise.
74201         (islessequal_test): Likewise.
74202         (islessgreater_test): Likewise.
74203         (isunordered_test): Likewise.
74204         (main): Call the new functions.
74205
74206 2012-10-09  Roland McGrath  <roland@hack.frob.com>
74207
74208         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
74209         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
74210         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
74211         * sysdeps/i386/configure: Regenerated.
74212         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
74213         * sysdeps/mach/configure: Regenerated.
74214         * sysdeps/mach/hurd/configure: Regenerated.
74215         * sysdeps/powerpc/configure: Regenerated.
74216         * sysdeps/powerpc/powerpc32/configure: Regenerated.
74217         * sysdeps/powerpc/powerpc64/configure: Regenerated.
74218         * sysdeps/s390/s390-32/configure: Regenerated.
74219         * sysdeps/s390/s390-64/configure: Regenerated.
74220         * sysdeps/sh/configure: Regenerated.
74221         * sysdeps/sparc/configure: Regenerated.
74222         * sysdeps/unix/sysv/linux/configure: Regenerated.
74223         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
74224         * sysdeps/x86_64/configure: Regenerated.
74225
74226         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
74227         defined.  Don't check if MAP is NULL.
74228
74229 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
74230
74231         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
74232         (_G_stat64): Likewise.
74233         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
74234         (_G_stat64): Likewise.
74235         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
74236         instead of struct _G_stat64.
74237         * libio/fileops.c (mmap_remap_check): Likewise.
74238         (decide_maybe_mmap): Likewise.
74239         (_IO_new_file_seekoff): Likewise.
74240         (_IO_file_stat): Likewise.
74241         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
74242         _G_off64_t.
74243         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
74244         instead of struct _G_stat64.
74245         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
74246
74247 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
74248
74249         [BZ #14602]
74250         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
74251         Replace with ...
74252         (CHECK_EOL): New macro.
74253         (two_way_short_needle): Check beginning of haystack for EOL.  Use
74254         CHECK_EOL.
74255         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
74256         Replace with CHECK_EOL.
74257         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
74258         Replace with CHECK_EOL.
74259
74260 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
74261
74262         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
74263         type-generic.
74264         * math/libm-test.inc: Update comment listing what functions and
74265         macros are tested.
74266         (finite_test): New function.
74267         (isinf_test): Likewise.
74268         (isnan_test): Likewise.
74269         (fpclassify_test): Test subnormal input.
74270         (isfinite_test): Likewise.
74271         (isnormal_test): Likewise.
74272         (main): Call the new functions.
74273
74274 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
74275
74276         [BZ #14660]
74277         * Makerules (%.dynsym): Force C locale when running
74278         $(OBJDUMP) --dynamic-syms.
74279
74280 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
74281
74282         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
74283         <stdint.h>.
74284
74285 2012-10-06  David S. Miller  <davem@davemloft.net>
74286
74287         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
74288         upper 32-bits of the length value in %o2 since we use branch-on-register
74289         tests which consider the entire 64-bit register.
74290
74291 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
74292
74293         * string/test-strstr.c (check2): Add a test for page boundary.
74294
74295 2012-10-05  David S. Miller  <davem@davemloft.net>
74296
74297         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
74298         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
74299         file.
74300         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
74301         sysdep_routines.
74302         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
74303         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
74304         and bzero when HWCAP_SPARC_CRYPTO is present.
74305
74306 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
74307
74308         [BZ #14602]
74309         * string/test-strstr.c (check2): New function.
74310         (test_main): Call check2.
74311
74312         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
74313         and bug-strchr1.
74314         * string/bug-strcasestr1.c (do_test): Moved to ...
74315         * string/test-strcasestr.c (check1): Here.  New function.
74316         (do_one_test): Break out result checking code into ...
74317         (check_result): This.  New function.
74318         (do_one_test): Call check_result.
74319         (test_main): Call check1.
74320         * string/bug-strchr1.c (do_test): Moved to ...
74321         * string/test-strchr.c (check1): Here.  New function.
74322         (do_one_test): Break out result checking code into ...
74323         (check_result): This.  New function.
74324         (do_one_test): Call check_result.
74325         (test_main): Call check1.
74326         * string/bug-strstr1.c (main): Moved to ...
74327         * string/test-strstr.c (check1): Here.  New function.
74328         (do_one_test): Break out result checking code into ...
74329         (check_result): This.  New function.
74330         (do_one_test): Call check_result.
74331         (test_main): Call check1.
74332         * string/bug-strcasestr1.c: Removed.
74333         * string/bug-strchr1.c: Likewise.
74334         * string/bug-strstr1.c: Likewise.
74335
74336         * elf/Makefile (dl-routines): Add hwcaps.
74337         * elf/dl-support.c (_dl_important_hwcaps): Removed.
74338         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
74339         (_dl_important_hwcaps): Moved to ...
74340         * elf/dl-hwcaps.c: Here.  New file.
74341         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
74342
74343         [BZ #14557]
74344         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
74345         if IS_IN_rtld isn't defined.
74346
74347         * elf/dl-support.c (_dl_sysinfo_map): New.
74348         Include "get-dynamic-info.h" and "setup-vdso.h".
74349         (_dl_non_dynamic_init): Call setup_vdso.
74350         * elf/dynamic-link.h: Don't include <assert.h>.
74351         (elf_get_dynamic_info): Moved to ...
74352         * elf/get-dynamic-info.h: Here.  New file.
74353         * elf/dynamic-link.h: Include "get-dynamic-info.h".
74354         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
74355         * elf/setup-vdso.h: Here.  New file.
74356         * elf/rtld.c: Include "setup-vdso.h".
74357         (dl_main): Call setup_vdso.
74358
74359 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
74360
74361         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
74362         creal in comment listing functions tested.  List finite, isinf,
74363         isnan, isless, islessequal, isgreater, isgreaterequal,
74364         islessgreater, isunordered, lgamma_r and pow10 as functions and
74365         macros not tested.  Mention which functions not tested are aliases
74366         for other functions.  Fix typo.  Note that signs of NaNs are not
74367         tested.
74368
74369         * scripts/config.guess: Update from config.git.
74370         * scripts/config.sub: Likewise.
74371
74372 2012-10-04  Roland McGrath  <roland@hack.frob.com>
74373
74374         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
74375         * misc/madvise.c (madvise): Renamed to __madvise.
74376         Make madvise a weak alias.
74377         * include/sys/mman.h: Declare __madvise.
74378         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
74379         * sysdeps/unix/syscalls.list
74380         (madvise): Make __madvise the strong name, and madvise a weak alias.
74381         * sysdeps/unix/sysv/linux/syscalls.list
74382         (madvise, mmap): Remove redundant entries.
74383         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
74384         * malloc/malloc.c (mtrim): Likewise.
74385         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
74386
74387 2012-10-03  Roland McGrath  <roland@hack.frob.com>
74388
74389         * sysdeps/mach/hurd/dl-cache.c: File removed.
74390         * config.h.in (USE_LDCONFIG): New #undef.
74391         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
74392         * configure: Regenerated.
74393         * elf/Makefile (dl-routines): Add dl-cache only under
74394         [$(use-ldconfig) = yes].
74395         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
74396         cache on [USE_LDCONFIG].
74397         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
74398         [USE_LDCONFIG].
74399         * elf/rtld.c (dl_main): Likewise.
74400
74401 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
74402
74403         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
74404         _SC_LEVEL4_CACHE_LINESIZE.
74405
74406 2012-10-03  Roland McGrath  <roland@hack.frob.com>
74407
74408         * sysdeps/unix/bsd/confstr.h: File removed.
74409
74410 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
74411
74412         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
74413         sys/sdt-config.h.
74414
74415 2012-10-02  Roland McGrath  <roland@hack.frob.com>
74416
74417         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
74418         Make 'mapoff' field ElfW(Off) rather than off_t.
74419
74420 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74421
74422         * nscd/Makefile: Remove nscd-cflags and all its users.
74423         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
74424         (CFLAGS-nonlib): Add compiler flags for nscd modules.
74425
74426         [BZ #10631]
74427         * malloc.c (malloc_printerr): Clarify error message.
74428
74429 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
74430
74431         [BZ #14648]
74432         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74433         Set bit_FMA_Usable if FMA is supported.
74434         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
74435         macro.
74436         (bit_FMA4_Usable): Updated.
74437         (index_FMA_Usable): New macro.
74438         (CPUID_FMA): Likewise.
74439         (HAS_FMA): Defined with bit_FMA_Usable.
74440
74441 2012-10-01  Roland McGrath  <roland@hack.frob.com>
74442
74443         * bits/types.h (__swblk_t): Type removed.
74444         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
74445         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
74446         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
74447         (__SWBLK_T_TYPE): Likewise.
74448         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
74449         (__SWBLK_T_TYPE): Likewise.
74450         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
74451         (__SWBLK_T_TYPE): Likewise.
74452         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
74453         (__SWBLK_T_TYPE): Likewise.
74454
74455 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
74456             Honza Horak <hhorak@redhat.com>
74457
74458         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
74459         (xdr_mapname): Use YPMAXMAP as maxsize.
74460         (xdr_peername): Use YPMAXPEER as maxsize.
74461         (xdr_keydat): Use YPAXRECORD as maxsize.
74462         (xdr_valdat): Use YPMAXRECORD as maxsize.
74463
74464 2012-10-01  Roland McGrath  <roland@hack.frob.com>
74465
74466         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
74467
74468         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
74469         * csu/init-first.c: ... here.
74470         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
74471         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
74472         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
74473         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
74474         * sysdeps/i386/init-first.c: File removed.
74475         * sysdeps/sh/init-first.c: File removed.
74476
74477 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
74478
74479         [BZ #14645]
74480         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
74481         if x * y might underflow to zero and z is zero.
74482         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
74483         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
74484         * math/libm-test.inc (min_subnorm_value): New variable.
74485         (fma_test): Add more tests.
74486         (fma_test_towardzero): Likewise.
74487         (fma_test_downward): Likewise.
74488         (fma_test_upward): Likewise.
74489         (initialize): Set min_subnorm_value.
74490
74491 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
74492
74493         [BZ #14638]
74494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
74495         0 + 0.
74496         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
74497         mode for addition resulting in exact zero.
74498         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
74499         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
74500         exact 0 + 0.
74501         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
74502         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
74503         * math/libm-test.inc (fma_test): Add more tests.
74504         (fma_test_towardzero): New function.
74505         (fma_test_downward): Likewise.
74506         (fma_test_upward): Likewise.
74507         (main): Call the new functions.
74508
74509 2012-09-28  David S. Miller  <davem@davemloft.net>
74510
74511         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
74512
74513 2012-09-28  Roland McGrath  <roland@hack.frob.com>
74514
74515         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
74516         instead of SIGALRM.
74517
74518         * sysdeps/gnu/_G_config.h: Moved to ...
74519         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
74520         * sysdeps/mach/hurd/_G_config.h: Moved to ...
74521         * sysdeps/generic/_G_config.h: ... here.
74522
74523         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
74524
74525         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
74526
74527         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
74528         Conditionalize target on [libnss_test1.so-version].
74529
74530         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
74531
74532         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
74533         (elfobjdir): Move out of conditionals.
74534
74535         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
74536         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
74537         (__nss_lookup_function): Conditionalize label remove_from_tree on
74538         [!DO_STATIC_NSS || SHARED], matching its only use.
74539
74540 2012-09-28  David S. Miller  <davem@davemloft.net>
74541
74542         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
74543         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
74544         file.
74545         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
74546         sysdep_routines.
74547         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
74548         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
74549         when HWCAP_SPARC_CRYPTO is present.
74550
74551 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
74552
74553         * io/tst-mknodat.c: Create a FIFO instead of a socket.
74554
74555 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
74556
74557         [BZ #6530]
74558         * stdio-common/vfprintf.c (process_string_arg): Revert
74559         2000-07-22 change.
74560
74561 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
74562
74563         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
74564         for testcase.
74565         * stdio-common/tst-sprintf.c: Include <locale.h>
74566         (main): Test sprintf's handling of incomplete multibyte
74567         characters.
74568
74569 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
74570
74571         * elf/dl-runtime.c (VERSYMIDX): Removed.
74572         * elf/dl-version.c (VERSYMIDX): Likewise.
74573         * elf/do-rel.h (VERSYMIDX): Likewise.
74574         (VALIDX): Likewise.
74575         * elf/dynamic-link.h (VERSYMIDX): Likewise.
74576         * elf/rtld.c (VALIDX): Likewise.
74577         (ADDRIDX): Likewise.
74578         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
74579         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
74580         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
74581         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
74582         (VALIDX): Likewise.
74583         (ADDRIDX): Likewise.
74584
74585 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
74586
74587         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
74588
74589 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
74590
74591         [BZ #11438]
74592         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
74593         to global scope.
74594         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
74595         addresses are in the same scope as 192.0.2/24.
74596         * posix/gai.conf: Document new scope table defaults.
74597
74598 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
74599
74600         [BZ #5298]
74601         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
74602         for ftell.  Compute offsets from write pointers instead.
74603         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
74604
74605 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
74606
74607         [BZ #14543]
74608         * libio/Makefile (tests): New test case tst-fseek.
74609         * libio/tst-fseek.c: New test case to verify that fseek/ftell
74610         combination works in wide mode.
74611         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
74612         state when the external buffer state changes.
74613
74614 2012-09-27  David S. Miller  <davem@davemloft.net>
74615
74616         [BZ #14376]
74617         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
74618         pass reloc->r_addend in as the 'high' argument to
74619         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
74620
74621         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74622
74623 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
74624
74625         * rt/tst-aio2.c: Include <pthread.h>.
74626         * rt/tst-aio3.c: Likewise.
74627
74628 2012-09-27  Steve Ellcey  <sellcey@mips.com>
74629
74630         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
74631
74632 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
74633
74634         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
74635         contents on [SHARED].
74636
74637 2012-09-26  Marek Polacek  <polacek@redhat.com>
74638
74639         [BZ #14530]
74640         [BZ #13741]
74641         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
74642         for C++ and GCC <4.3 as well as for non GCC compilers.
74643
74644 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
74645
74646         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
74647
74648 2012-09-25  Roland McGrath  <roland@hack.frob.com>
74649
74650         * Makefile.in (all, install): Declare with .PHONY.
74651         Reported by Michael Hope <michael.hope@linaro.org>.
74652
74653 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
74654
74655         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
74656         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
74657         system header.
74658         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
74659         Likewise.
74660         (sydep_routines): Add the new and the internal functions.
74661         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
74662         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
74663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
74664         (GLIBC_2.17): Add the new function.
74665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
74666         (GLIBC_2.17): Likewise.
74667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
74668         (GLIBC_2.17): Likewise.
74669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
74670         (GLIBC_2.17): Likewise.
74671         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
74672
74673 2012-09-25  Alan Modra  <amodra@gmail.com>
74674
74675         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
74676         Add release barrier before setting once_control to say
74677         initialisation is done.  Add hints on lwarx.  Use macro in
74678         place of isync.
74679         (clear_once_control): Add release barrier.
74680
74681 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
74682
74683         [BZ #13629]
74684         * math/s_clog.c (__clog): Handle more values close to |z| = 1
74685         specially.
74686         * math/s_clog10.c (__clog10): Likewise.
74687         * math/s_clog10f.c (__clog10f): Likewise.
74688         * math/s_clog10l.c (__clog10l): Likewise.
74689         * math/s_clogf.c (__clogf): Likewise.
74690         * math/s_clogl.c (__clogl): Likewise.
74691         * math/Makefile (libm-calls): Add x2y2m1.
74692         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
74693         (__x2y2m1): Likewise.
74694         (__x2y2m1l): Likewise.
74695         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
74696         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
74697         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
74698         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
74699         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
74700         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
74701         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
74702         * sysdeps/i386/fpu/libm-test-ulps: Update.
74703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74704
74705         [BZ #14621]
74706         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
74707         int as type of variable DEPTH.
74708         (glob): Use size_t instead of int as type of variables NEWCOUNT
74709         and OLD_PATHC.
74710
74711 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74712
74713         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
74714         Add s_sincosf-sse2.
74715         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
74716         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
74717         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
74718         macros for using routine as __sincosf_ia32.
74719         Use macro for function declaration and weak_alias.
74720         * sysdeps/i386/fpu/libm-test-ulps: Update.
74721
74722         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
74723         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
74724
74725         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
74726         subnormal argument.
74727         * math/s_cexpf.c (__cexpf): Likewise.
74728         * math/s_csinf.c (__csinf): Likewise.
74729         * math/s_csinhf.c (__csinhf): Likewise.
74730         * math/s_ctanf.c (__ctanf): Likewise.
74731         * math/s_ctanhf.c (__ctanhf): Likewise.
74732         * math/s_ccosh.c (__ccoshf): Likewise.
74733         * math/s_cexp.c (__cexpl): Likewise.
74734         * math/s_csin.c (__csin): Likewise.
74735         * math/s_csinh.c (__csinh): Likewise.
74736         * math/s_ctan.c (__ctan): Likewise.
74737         * math/s_ctanh.c (ctanh): Likewise.
74738         * math/s_ccoshl.c (__ccoshl): Likewise.
74739         * math/s_cexpl.c (__cexpl): Likewise.
74740         * math/s_csinl.c (__csinl): Likewise.
74741         * math/s_csinhl.c (__csinhl): Likewise.
74742         * math/s_ctanl.c (__ctanl): Likewise.
74743         * math/s_ctanhl.c (__ctanhl): Likewise.
74744
74745 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
74746
74747         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
74748         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
74749         (_IO_off_t): Define to __off_t, not _G_off_t.
74750         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
74751         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
74752         (_IO_wint_t): Define to wint_t, not _G_wint_t.
74753         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
74754         type of __dummy and __dummy2 fields.
74755         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
74756         (_G_ssize_t): Likewise.
74757         (_G_off_t): Likewise.
74758         (_G_pid_t): Likewise.
74759         (_G_uid_t): Likewise.
74760         (_G_wchar_t): Likewise.
74761         (_G_wint_t): Likewise.
74762         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
74763         (_G_ssize_t): Likewise.
74764         (_G_off_t): Likewise.
74765         (_G_pid_t): Likewise.
74766         (_G_uid_t): Likewise.
74767         (_G_wchar_t): Likewise.
74768         (_G_wint_t): Likewise.
74769         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
74770         (_G_ssize_t): Likewise.
74771         (_G_off_t): Likewise.
74772         (_G_pid_t): Likewise.
74773         (_G_uid_t): Likewise.
74774         (_G_wchar_t): Likewise.
74775         (_G_wint_t): Likewise.
74776
74777 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
74778
74779         * malloc/arena.c: Include malloc-sysdep.h.
74780         (shrink_heap): Use check_may_shrink_heap to decide if madvise
74781         is sufficient to shrink the heap or an unmap is needed.
74782         * sysdeps/generic/malloc-sysdep.h: New file.  Define
74783         new function check_may_shrink_heap.
74784         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
74785         new function check_may_shrink_heap.
74786
74787 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
74788
74789         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
74790         comments.
74791
74792 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
74793
74794         * catgets/test-gencat.sh: Add "set -e".
74795         * elf/tst-pathopt.sh: Likewise.
74796         * grp/tst_fgetgrent.sh: Likewise.
74797         * iconvdata/run-iconv-test.sh: Likewise.
74798         * intl/tst-gettext.sh: Likewise.
74799         * intl/tst-gettext2.sh: Likewise.
74800         * intl/tst-gettext4.sh: Likewise.
74801         * intl/tst-gettext6.sh: Likewise.
74802         * intl/tst-translit.sh: Likewise.
74803         * io/ftwtest-sh: Likewise.
74804         * libio/test-freopen.sh: Likewise.
74805         * malloc/tst-mtrace.sh: Likewise.
74806         * posix/globtest.sh: Likewise.
74807         * posix/tst-getconf.sh: Likewise.
74808         * posix/wordexp-tst.sh: Likewise.
74809         * stdio-common/tst-printf.sh: Likewise.
74810         * stdio-common/tst-unbputc.sh: Likewise.
74811         * stdlib/tst-fmtmsg.sh: Likewise.
74812         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
74813         * catgets/Makefile: Do not specify -e option when running
74814         testsuite shell scripts.
74815         * elf/Makefile: Likewise.
74816         * grp/Makefile: Likewise.
74817         * iconvdata/Makefile: Likewise.
74818         * intl/Makefile: Likewise.
74819         * io/Makefile: Likewise.
74820         * libio/Makefile: Likewise.
74821         * malloc/Makefile: Likewise.
74822         * posix/Makefile: Likewise.
74823         * stdio-common/Makefile: Likewise.
74824         * stdlib/Makefile: Likewise.
74825         * sysdeps/x86_64/Makefile: Likewise.
74826
74827         * io/ftwtest-sh: Add copyright header.
74828         * posix/globtest.sh: Likewise.
74829         * posix/tst-getconf.sh: Likewise.
74830         * posix/wordexp-tst.sh: Likewise.
74831         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
74832
74833 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
74834
74835         [BZ #13679]
74836         * Makeconfig (+link): Defined as $(+link-static) if
74837         $(build-shared) isn't yes.
74838         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
74839         isn't yes.
74840         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
74841
74842         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
74843
74844         [BZ #14562]
74845         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
74846         new chunk size with MALLOC_ALIGN_MASK.
74847
74848 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
74849
74850         [BZ #5044]
74851         * stdio-common/printf_fphex.c: Include <stdbool.h> and
74852         <rounding-mode.h>.
74853         (__printf_fphex): Determine rounding using get_rounding_mode and
74854         round_away.
74855         * stdio-common/tst-printf-round.c (struct hex_test): New
74856         structure.
74857         (hex_tests): New variable.
74858         (test_hex_in_one_mode): New function.
74859         (do_test): Also run tests for hex float output.
74860
74861 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
74862
74863         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
74864         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
74865         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
74866         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
74867         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
74868         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
74869         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
74870         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
74871
74872 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
74873
74874         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
74875         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
74876         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
74877         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
74878
74879 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
74880
74881         [BZ #14579]
74882         * elf/rtld.c (dl_main): Limit the check for self loading to normal
74883         mode only.
74884         * elf/tst-rtld-load-self.sh: New test.
74885         * elf/Makefile: Run it.
74886
74887 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
74888
74889         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
74890         (tst-writev-ENV): Remove.
74891         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
74892
74893 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
74894
74895         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
74896
74897 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
74898
74899         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
74900         unconditional.
74901         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
74902         Likewise.
74903         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
74904         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
74905         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
74906         Likewise.
74907
74908 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
74909
74910         [BZ #14587]
74911         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
74912         * config.make.in (have-cpp-asm-debuginfo): Removed.
74913         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
74914         * configure: Regenerated.
74915
74916 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
74917
74918         [BZ #5044]
74919         * stdio-common/printf_fp.c: Include <stdbool.h> and
74920         <rounding-mode.h>.
74921         (___printf_fp): Determine rounding using get_rounding_mode and
74922         round_away.
74923         * stdio-common/tst-printf-round.c: New file.
74924         * stdio-common/Makefile (tests): Add tst-printf-round.
74925         (link-libm): New variable.
74926         ($(objpfx)tst-printf-round): Depend in $(link-libm).
74927
74928 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
74929
74930         [BZ #14576]
74931         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
74932         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
74933         Likewise.
74934         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
74935         Likewise.
74936
74937 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
74938
74939         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
74940         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
74941         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
74942         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
74943
74944 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
74945
74946         [BZ #14518]
74947         * include/rounding-mode.h: New file.
74948         * sysdeps/generic/get-rounding-mode.h: Likewise.
74949         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
74950         * stdlib/strtod_l.c: Include <rounding-mode.h>.
74951         (MAX_VALUE): New macro.
74952         (MIN_VALUE): Likewise.
74953         (overflow_value): New function.
74954         (underflow_value): Likewise.
74955         (round_and_return): Use overflow_value and underflow_value to
74956         determine return values in overflow and underflow cases.  Use
74957         round_away to determine rounding depending on rounding mode.
74958         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
74959         determine return values in overflow and underflow cases.
74960         * stdlib/tst-strtod-round.c: Include <fenv.h>.
74961         (struct test_results): New structure.
74962         (struct test): Use struct test_results to store expected results
74963         for all rounding modes.
74964         (TEST): Include expected results for all rounding modes.
74965         (test_in_one_mode): New function.
74966         (do_test): Use test_in_one_mode to compute and check results.
74967         Check results for all rounding modes.
74968         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
74969         $(link-libm).
74970
74971 2012-12-09  Allan McRae  <allan@archlinux.org>
74972
74973         * sysdeps/i386/fpu/libm-test-ulps: Update
74974
74975 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
74976
74977         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
74978         (_G_int32_t): Likewise.
74979         (_G_uint16_t): Likewise.
74980         (_G_uint32_t): Likewise.
74981         (_G_HAVE_BOOL): Likewise.
74982         (_G_HAVE_ATEXIT): Likewise.
74983         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
74984         (_G_HAVE_IO_FILE_OPEN): Likewise.
74985         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
74986         (_G_int32_t): Likewise.
74987         (_G_uint16_t): Likewise.
74988         (_G_uint32_t): Likewise.
74989         (_G_HAVE_BOOL): Likewise.
74990         (_G_HAVE_ATEXIT): Likewise.
74991         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
74992         (_G_HAVE_IO_FILE_OPEN): Likewise.
74993         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
74994         (_G_int32_t): Likewise.
74995         (_G_uint16_t): Likewise.
74996         (_G_uint32_t): Likewise.
74997         (_G_HAVE_BOOL): Likewise.
74998         (_G_HAVE_ATEXIT): Likewise.
74999         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
75000         (_G_HAVE_IO_FILE_OPEN): Likewise.
75001
75002 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
75003
75004         * csu/libc-tls.c: Update copyright years.
75005
75006 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
75007
75008         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
75009         [!_G_USING_THUNKS]: Remove conditional code.
75010         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
75011         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
75012
75013         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
75014         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
75015         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
75016         (_G_VTABLE_LABEL_PREFIX): Likewise.
75017         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
75018         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
75019         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
75020         (_G_VTABLE_LABEL_PREFIX): Likewise.
75021         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
75022         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
75023         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
75024         (_G_VTABLE_LABEL_PREFIX): Likewise.
75025         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
75026
75027 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
75028
75029         * libio/Makefile: Include ../Makeconfig before tests.
75030         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
75031         only if $(build-shared) is yes.
75032
75033         * iconv/gconv_db.c: Update copyright years.
75034
75035 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75036
75037         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
75038         unwind info if defined PIC. Fix special cases description.
75039         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
75040
75041         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
75042         DP_HI_MASK entry.
75043         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
75044
75045 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
75046
75047         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
75048
75049         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
75050         is NULL.
75051
75052         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
75053         (LDLIBS-tst-chk4): This.
75054         (LDFLAGS-tst-chk5): Renamed to ...
75055         (LDLIBS-tst-chk5): This.
75056         (LDFLAGS-tst-chk6): Renamed to ...
75057         (LDLIBS-tst-chk6): This.
75058         (LDFLAGS-tst-lfschk4): Renamed to ...
75059         (LDLIBS-tst-lfschk4): This.
75060         (LDFLAGS-tst-lfschk5): Renamed to ...
75061         (LDLIBS-tst-lfschk5): This.
75062         (LDFLAGS-tst-lfschk6): Renamed to ...
75063         (LDLIBS-tst-lfschk6): This.
75064
75065         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
75066         on $(common-objpfx)soversions.mk.
75067
75068 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
75069
75070         [BZ #10014]
75071         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
75072         example host name.
75073
75074 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
75075
75076         * malloc/arena.c (arena_get_retry): New function that gets
75077         another arena for the caller to try its request on.
75078         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
75079         current arena cannot fulfill the request.
75080         (__libc_memalign): Likewise.
75081         (__libc_memalign): Likewise.
75082         (__libc_pvalloc): Likewise.
75083         (__libc_calloc): Likewise.
75084
75085 2012-09-05  John Tobey  <john.tobey@gmail.com>
75086
75087         [BZ #13542]
75088         * manual/arith.texi (Operations on Complex): Fix description
75089         of carg branch cut.
75090
75091 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
75092
75093         [BZ #10014]
75094         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
75095         host name.
75096
75097         [BZ #10038]
75098         * manual/memory.texi (Memory): Make order of menu items match
75099         order of sections.
75100
75101 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
75102
75103         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
75104         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
75105         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
75106
75107 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
75108
75109         * csu/libc-tls.c (static_dtv): Renamed to ...
75110         (_dl_static_dtv): This.  Make it global.
75111         (_dl_initial_dtv): Removed.
75112         (__libc_setup_tls): Updated.
75113         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
75114         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
75115         DL_INITIAL_DTV.
75116
75117 2012-09-06  Petr Machata  <pmachata@redhat.com>
75118
75119         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
75120         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
75121         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
75122         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
75123
75124 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
75125
75126         [BZ #14545]
75127         * csu/libc-tls.c (_dl_initial_dtv): New variable.
75128         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
75129         freeing dtv[-1].
75130
75131 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
75132
75133         [BZ #14544]
75134         * Makeconfig (link-static-before-libc): Replace $(+prector)
75135         with $(+prectorT).
75136         (link-static-after-libc): Replace $(+postctor) with
75137         $(+postctorT).
75138         (link-bounded): Replace $(+prector)/$(+postctor) with
75139         $(+prectorT)/$(+postctorT).
75140         (+prectorT): New macro.
75141         (+postctorT): Likewise.
75142
75143 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
75144
75145         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
75146         (round_str): Handle values above the maximum for IBM long double
75147         as inexact.
75148         * stdlib/tst-strtod-round.c (tests): Regenerated.
75149
75150 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75151
75152         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
75153         assembler flag.
75154         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
75155         zarch_nohighgprs around the zarch optimized routines.
75156         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
75157         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
75158         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
75159         for zarch.
75160
75161 2012-09-05  David S. Miller  <davem@davemloft.net>
75162
75163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75164
75165         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
75166         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
75167         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
75168         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
75169         entries.
75170
75171 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
75172
75173         * malloc/arena.c: Fold copyright years.
75174         * malloc/mcheck.c, malloc/memusage.c: Likewise.
75175
75176 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
75177
75178         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
75179
75180 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
75181
75182         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
75183
75184 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
75185
75186         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
75187         change internal state upon failure.
75188
75189 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
75190
75191         * malloc/mcheck.c (mcheck_check_all): Fix typo.
75192         * malloc/memusage.c (mmap): Likewise.
75193         (mmap64, mremap): Likewise.  Adjust name in comment.
75194
75195 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
75196
75197         * libio/fileops.c: Fix typos in comments.
75198         * libio/oldfileops.c: Likewise.
75199         * libio/wfileops.c: Likewise.
75200
75201 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
75202
75203         [BZ #1349]
75204         * malloc/Makefile (tests): Add tst-malloc-usable test case.
75205         (tst-malloc-usable-ENV): Set environment for test case.
75206         * malloc/hooks.c (malloc_check_get_size): New function to get
75207         requested size.
75208         * malloc/malloc.c (musable): Use malloc_check_get_size.
75209         * malloc/tst-malloc-usable.c: New test case.
75210
75211 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75212
75213         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
75214
75215 2012-09-05  Allan McRae  <allan@archlinux.org>
75216
75217         [BZ #13966]
75218         * configure.in (CXX_SYSINCLUDES): Use compiler output to
75219         determine header location.
75220         * configure: Regenerated.
75221
75222 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75223
75224         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
75225         float format.
75226         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
75227         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
75228         format.
75229         (test): Regenerate.
75230
75231 2012-09-04  David S. Miller  <davem@davemloft.net>
75232
75233         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
75234         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
75235         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
75236
75237 2012-09-04  Florian Weimer  <fweimer@redhat.com>
75238
75239         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
75240         failures.
75241
75242         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
75243
75244 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
75245
75246         [BZ #9914]
75247         * libio/iogetdelim.c: Include <limits.h>.
75248         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
75249         + len + 1 would overflow.
75250
75251 2012-09-03  Andreas Jaeger  <aj@suse.de>
75252
75253         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
75254         * sysdeps/i386/fpu/libm-test-ulps: Update.
75255
75256 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75257
75258         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
75259         Add s_sinf-sse2, s_conf-sse2.
75260
75261         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
75262         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
75263         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
75264         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
75265
75266         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
75267         for using routine as __sinf_ia32.
75268         Use macro for function declaration and weak_alias.
75269         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
75270         for using routine as __cosf_ia32.
75271         Use macro for function declaration and weak_alias.
75272
75273         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
75274         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
75275
75276         * sysdeps/x86_64/fpu/s_sinf.S: New file.
75277         * sysdeps/x86_64/fpu/s_cosf.S: New file.
75278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
75279
75280         * math/libm-test.inc (cos_test): Add more test cases.
75281         (sin_test): Likewise.
75282         (sincos_test): Likewise.
75283
75284 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75285
75286         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
75287         (IFUNC_RESOLVE): Make pointers to the specialized implementations
75288         hidden.
75289         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
75290
75291 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
75292
75293         [BZ #14538]
75294         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
75295         first element of the GOT.
75296         (elf_machine_load_address): Return the difference between
75297         the runtime address of _DYNAMIC and elf_machine_dynamic ().
75298
75299 2012-09-01  Allan McRae  <allan@archlinux.org>
75300
75301         [BZ #13412]
75302         * configure.in (AWK): Require gawk version 3.0 or later.
75303         * configure: Regenerated.
75304
75305 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
75306
75307         * sysdeps/unix/sysv/linux/kernel-features.h
75308         (__ASSUME_POSIX_CPU_TIMERS): Remove.
75309         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
75310         [__NR_clock_getres]: Make code unconditional.
75311         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
75312         (clock_getcpuclockid): Remove code left unreachable by removal of
75313         conditionals.
75314         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
75315         code unconditional.
75316         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
75317         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
75318         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
75319         Make code unconditional.
75320         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
75321         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
75322         * sysdeps/unix/sysv/linux/clock_settime.c
75323         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
75324         conditional code.
75325         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
75326         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
75327
75328 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
75329
75330         [BZ #14476]
75331         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
75332         scripts/test-installation.pl.
75333
75334         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
75335         and $ld_so_version if it is set.
75336
75337 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
75338
75339         [BZ #14516]
75340         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
75341         failure if reading from procfs failed.
75342         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
75343
75344 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
75345
75346         * sysdeps/unix/sysv/linux/kernel-features.h
75347         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
75348         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
75349         Remove conditional code.
75350         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75351         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
75352         Remove conditional code.
75353         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75354         * sysdeps/unix/sysv/linux/i386/fxstat.c
75355         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
75356         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75357         * sysdeps/unix/sysv/linux/i386/fxstatat.c
75358         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
75359         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75360         * sysdeps/unix/sysv/linux/i386/lxstat.c
75361         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
75362         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75363         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
75364         Remove conditional code.
75365         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75366         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
75367         Remove conditional code.
75368         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75369         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
75370         <kernel-features.h>.
75371         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
75372         Remove.
75373         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
75374         Remove conditional code.
75375         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
75376         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
75377         Remove conditional.
75378
75379 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
75380
75381         [BZ #5400]
75382         * NEWS: Add fixed bug number.
75383
75384 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
75385
75386         [BZ #14519]
75387         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
75388         underflowing exponent in case of negative sign.
75389         * stdlib/tst-strtod-round-data: Add more tests.
75390         * stdlib/tst-strtod-round.c (tests): Regenerated.
75391
75392         [BZ #3479]
75393         * stdlib/strtod_l.c (NDIG): Remove.
75394         (HEXNDIG): Likewise.
75395         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
75396         smallest representable value.
75397         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
75398         lie within an exact representation of 1/2 ulp of the result.
75399         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
75400         unconditionally.
75401         (TENS_P9_IDX): Define unconditionally.
75402         (TENS_P9_SIZE): Likewise.
75403         (TENS_P10_IDX): Likewise.
75404         (TENS_P10_SIZE): Likewise.
75405         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
75406         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
75407         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
75408         entries for 10^2^13 and 10^2^14.
75409         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
75410         (TENS_P13_IDX): Define.
75411         (TENS_P13_SIZE): Likewise.
75412         (TENS_P14_IDX): Likewise.
75413         (TENS_P14_SIZE): Likewise.
75414         (_fpioconst_pow10): Change array size to
75415         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
75416         unconditional.
75417         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
75418         1024]: Add entries for 10^2^13 and 10^2^14.
75419         [LAST_POW10 > _LAST_POW10]: Remove #error.
75420         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
75421         (_fpioconst_pow10): Change array size to
75422         FPIOCONST_POW10_ARRAY_SIZE.
75423         * stdlib/gen-fpioconst.c: New file.
75424         * stdlib/gen-tst-strtod-round.c: Likewise.
75425         * stdlib/tst-strtod-round-data: Likewise.
75426         * stdlib/tst-strtod-round.c: Likewise.
75427         * stdlib/Makefile (tests): Add tst-strtod-round.
75428
75429         [BZ #14459]
75430         * stdlib/strtod_l.c: Include <stdint.h>.
75431         (NDEBUG): Do not define.
75432         (round_and_return): Change EXPONENT parameter to type intmax_t.
75433         Rearrange calculations to avoid internal overflow possibilities.
75434         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
75435         Rearrange calculations to avoid internal overflow possibilities.
75436         Assert that number fits inside MPNSIZE limbs.
75437         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
75438         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
75439         calculations and add assertions to avoid internal overflow
75440         possibilities.  Add casts to avoid signed/unsigned operations.
75441         * stdlib/tst-strtod-overflow.c: New file.
75442         * stdlib/Makefile (tests): Add tst-strtod-overflow.
75443
75444 2012-08-25  Marek Polacek  <polacek@redhat.com>
75445
75446         * time/time.h: Fix some typos in comments.
75447
75448 2012-08-23  Roland McGrath  <roland@hack.frob.com>
75449
75450         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
75451         * posix/tst-rfc3484-2.c: Likewise.
75452         * posix/tst-rfc3484-3.c: Likewise.
75453
75454 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
75455
75456         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
75457         (EF_ARM_ABI_FLOAT_HARD): Likewise.
75458
75459 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
75460
75461         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
75462         #include of fxstatat64.c.
75463
75464 2012-08-22  Roland McGrath  <roland@hack.frob.com>
75465
75466         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
75467         * shadow/getspent_r.c: Likewise.
75468         * shadow/getspnam.c: Likewise.
75469         * shadow/getspnam_r.c: Likewise.
75470         * gshadow/getsgent.c: Likewise.
75471         * gshadow/getsgent_r.c: Likewise.
75472         * gshadow/getsgnam.c: Likewise.
75473         * gshadow/getsgnam_r.c: Likewise.
75474         * inet/getnetbyad.c: Likewise.
75475         * inet/getnetbyad_r.c: Likewise.
75476         * inet/getnetbynm.c: Likewise.
75477         * inet/getnetbynm_r.c: Likewise.
75478         * inet/getnetent.c: Likewise.
75479         * inet/getnetent_r.c: Likewise.
75480         * inet/getproto.c: Likewise.
75481         * inet/getproto_r.c: Likewise.
75482         * inet/getprtent.c: Likewise.
75483         * inet/getprtent_r.c: Likewise.
75484         * inet/getprtname.c: Likewise.
75485         * inet/getprtname_r.c: Likewise.
75486         * inet/getrpcbyname.c: Likewise.
75487         * inet/getrpcbyname_r.c: Likewise.
75488         * inet/getrpcbynumber.c: Likewise.
75489         * inet/getrpcbynumber_r.c: Likewise.
75490         * inet/getrpcent.c: Likewise.
75491         * inet/getrpcent_r.c: Likewise.
75492         * inet/getaliasent.c: Likewise.
75493         * inet/getaliasent_r.c: Likewise.
75494         * inet/getaliasname.c: Likewise.
75495         * inet/getaliasname_r.c: Likewise.
75496         * nscd/getgrgid_r.c: Likewise.
75497         * nscd/getgrnam_r.c: Likewise.
75498         * nscd/gethstbyad_r.c: Likewise.
75499         * nscd/gethstbynm3_r.c: Likewise.
75500         * nscd/getpwnam_r.c: Likewise.
75501         * nscd/getpwuid_r.c: Likewise.
75502         * nscd/getsrvbynm_r.c: Likewise.
75503         * nscd/getsrvbypt_r.c: Likewise.
75504         * nscd/gai.c: Likewise.
75505
75506         * configure.in (build_nscd): New substituted variable, set
75507         by --disable-build-nscd and defaults to $use_nscd.
75508         * configure: Regenerated.
75509         * config.make.in (build-nscd): New substituted variable.
75510         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
75511         Change conditional to require [$(build-nscd) = yes] as well.
75512         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
75513
75514         [BZ #13696]
75515         * configure.in (use_nscd): New substituted variable, set by
75516         --disable-nscd.  If enabled, define USE_NSCD.
75517         * configure: Regenerated.
75518         * config.h.in: Add USE_NSCD.
75519         * config.make.in (use-nscd): New substituted variable.
75520         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
75521         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
75522         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
75523         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
75524         (CFLAGS-getgrnam_r.c): Likewise.
75525         (CFLAGS-initgroups.c): Likewise.
75526         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
75527         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
75528         Variables removed.
75529         * inet/getnetgrent_r.c
75530         (nscd_setnetgrent): New function, broken out of ...
75531         (setnetgrent): ... here.  Call it.
75532         (innetgr): Conditionalize nscd bits on [USE_NSCD].
75533         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
75534         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
75535         * nscd/Makefile (routines, aux): Move definitions after include of
75536         Makeconfig.  Conditionalize on [$(use-nscd) != no].
75537         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
75538         Conditionalize on [USE_NSCD].
75539         (is_nscd, nscd_init_cb): Likewise.
75540         (nss_load_library): Conditionalize init callback on [USE_NSCD].
75541         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
75542         * nss/nss_db/db-init.c: Likewise.
75543         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
75544         [USE_NSCD].
75545         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
75546         (make_request): Use it.
75547         (cache_valid_p): New function.
75548         (__check_pf): Use it.
75549         * NEWS: Add item for --disable-nscd.
75550
75551 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
75552
75553         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
75554         to support sed >= 4.2.1-20-ga9bf076.
75555         * configure: Regenerated.
75556
75557 2012-08-22  Roland McGrath  <roland@hack.frob.com>
75558
75559         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
75560         Conditionalize whole body on [IREL].
75561
75562 2012-08-22  Jeff Law <law@redhat.com>
75563
75564         [BZ #14505]
75565         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
75566         if the family is PF_UNSPEC.
75567
75568 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
75569
75570         * Makerules (lib-version): Rename from V.
75571         (install-lib-nosubdir): Change V to lib-version.
75572
75573 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
75574
75575         [BZ #14252]
75576         * powerpc32/power6/wcschr.c: New file.
75577         * powerpc32/power6/wcscpy.c: New file.
75578         * powerpc32/power6/wcsrchr.c: New file.
75579         * powerpc64/power6/wcschr.c: New file.
75580         * powerpc64/power6/wcscpy.c: New file.
75581         * powerpc64/power6/wcsrchr.c: New file.
75582
75583 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
75584
75585         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
75586         (two_way_short_needle): Use it.
75587         * string/strstr.c (AVAILABLE1_USES_J): Define.
75588         * string/strcasestr.c: Likewise.
75589
75590         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
75591         array references.
75592         * string/strcasestr.c (TOLOWER): Make side-effect safe.
75593
75594         [BZ #11607]
75595         * NEWS: Add an entry.
75596         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
75597         define their defaults.
75598         (two_way_short_needle): Detect end-of-string on-the-fly.
75599         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
75600         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
75601         * string/bug-strcasestr1.c: New test.
75602         * string/Makefile: Run it.
75603
75604 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
75605
75606         [BZ #11607]
75607         * string/str-two-way.h (two_way_short_needle): Optimize matching of
75608         the first character.
75609
75610 2012-08-21  Roland McGrath  <roland@hack.frob.com>
75611
75612         * csu/elf-init.c (__libc_csu_irel): Function removed.
75613         * csu/libc-start.c (apply_irel): New function.
75614         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
75615
75616 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
75617
75618         * sysdeps/unix/sysv/linux/kernel-features.h
75619         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
75620         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
75621         <kernel-features.h>.
75622         [__NR_fadvise64_64]: Make code unconditional.
75623         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
75624         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
75625         !__NR_fadvise64_64)]: Likewise.
75626         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
75627         !__NR_fadvise64_64))]: Likewise.
75628         [__NR_fadvise64]: Make code unconditional.
75629         [!__NR_fadvise64]: Remove conditional code.
75630         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
75631         <kernel-features.h>.
75632         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
75633         unconditional.
75634         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
75635         conditional code.
75636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
75637         not include <kernel-features.h>.
75638         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
75639         unconditional.
75640         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
75641         conditional code.
75642         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
75643         include <kernel-features.h>.
75644         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
75645         unconditional.
75646         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
75647         conditional code.
75648
75649 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
75650
75651         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
75652         slight instruction rearrangements per scrollpipe analysis.
75653         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
75654
75655 2012-08-20  Roland McGrath  <roland@hack.frob.com>
75656
75657         * manual/syslog.texi (syslog; vsyslog, closelog):
75658         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
75659         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
75660
75661         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
75662         DSOCAPS to match condition on defining it.
75663
75664 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
75665
75666         * sysdeps/unix/sysv/linux/kernel-features.h
75667         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
75668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
75669         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
75670         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
75671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
75672         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
75673         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
75674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
75675         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
75676         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
75677
75678         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
75679         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
75680
75681         * sysdeps/unix/sysv/linux/kernel-features.h
75682         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
75683         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
75684         unconditional.
75685         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
75686         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
75687         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
75688         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
75689         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
75690         Make code unconditional.
75691         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
75692         (__mmap64) [!__NR_mmap2]: Likewise.
75693         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
75694         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
75695         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
75696         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
75697         [__NR_mmap2]: Make code unconditional.
75698         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
75699         (__mmap64) [!__NR_mmap2]: Likewise.
75700
75701 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75702
75703         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
75704
75705 2012-08-18  Andreas Jaeger  <aj@suse.de>
75706
75707         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
75708
75709 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
75710
75711         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
75712         * include/unistd.h (__have_sock_cloexec): Likewise.
75713         (__have_pipe2): Likewise.
75714         (__have_dup3): Likewise.
75715
75716 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
75717
75718         [BZ #9685]
75719         * include/unistd.h (__have_pipe2): Change define into an extern int.
75720         (__have_dup3): Likewise.
75721         * socket/have_sock_cloexec.c: Include fcntl.h.
75722         (__have_pipe2): New variable.
75723         (__have_dup3): Likewise.
75724
75725 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
75726
75727         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
75728
75729 2012-08-17  Marek Polacek  <polacek@redhat.com>
75730
75731         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
75732         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
75733
75734 2012-08-17  Roland McGrath  <roland@hack.frob.com>
75735
75736         * configure.in: Add AC_SUBST for sysheaders.
75737         * configure: Regenerated.
75738         * config.make.in (sysheaders): New substituted variable.
75739
75740         * sysdeps/unix/mkfifo.c: Moved ...
75741         * sysdeps/posix/mkfifo.c: ... here.
75742         * sysdeps/unix/mkfifoat.c: Moved ...
75743         * sysdeps/posix/mkfifoat.c: ... here.
75744
75745         * sysdeps/unix/utime.c: Moved ...
75746         * sysdeps/posix/utime.c: ... here.
75747
75748         * sysdeps/unix/time.c: Moved ...
75749         * sysdeps/posix/time.c: ... here.
75750         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
75751         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
75752
75753         * sysdeps/unix/nice.c: Moved ...
75754         * sysdeps/posix/nice.c: ... here.
75755
75756         * sysdeps/unix/alarm.c: Moved ...
75757         * sysdeps/posix/alarm.c: ... here.
75758
75759         * intl/Makefile ($(codeset_mo)): Depend on the input file.
75760
75761 2012-08-17  Jeff Law <law@redhat.com>
75762
75763         * intl/Makefile (codeset_mo): New variable.
75764         ($(codeset_mo)): New target.
75765         (tst-codeset.out): Depend on that.  Remove explicit rule.
75766         (tst-gettext3.out, tst-gettext5.out): Likewise.
75767         (LOCPATH-ENV, tst-codeset-ENV): New variables.
75768         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
75769         * intl/tst-codeset.sh: Remove.
75770         * intl/tst-gettext3.sh: Likewise.
75771         * intl/tst-gettext5.sh: Likewise.
75772
75773 2012-08-17  Roland McGrath  <roland@hack.frob.com>
75774
75775         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
75776         * sysdeps/unix/syscalls.list: ... here.
75777
75778         * sysdeps/posix/getaddrinfo.c
75779         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
75780         (gaiconf_init, gaiconf_reload): Use them.
75781         [!_STATBUF_ST_NSEC]
75782         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
75783         Define using time_t rather than struct timespec.
75784
75785         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
75786         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
75787         Macros removed.
75788         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
75789         [!NO_THREADS].
75790         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
75791         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
75792         Likewise.
75793
75794         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
75795         __libc_cleanup_push argument.
75796
75797         * bits/param.h: New file.
75798         * misc/sys/param.h: New file.
75799         * include/sys/param.h: New file.
75800         * misc/Makefile (headers): Add bits/param.h.
75801         * sysdeps/generic/sys/param.h: File removed.
75802         * sysdeps/unix/sysv/linux/bits/param.h: New file.
75803         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
75804         * sysdeps/mach/hurd/bits/param.h: New file.
75805         * sysdeps/mach/hurd/sys/param.h: File removed.
75806
75807         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
75808         last change.
75809
75810         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
75811         [_IO_MTSAFE_IO].
75812         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
75813         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
75814         New macros.
75815
75816         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
75817         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
75818         rather than -D_IO_MTSAFE_IO conditionally.
75819         * stdio-common/Makefile (CPPFLAGS): Likewise.
75820         * wcsmbs/Makefile (CPPFLAGS): Likewise.
75821         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
75822         Use $(libio-mtsafe).
75823         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
75824         of -D_IO_MTSAFE_IO.
75825         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
75826         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
75827         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
75828         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
75829         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
75830         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
75831         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
75832         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
75833         (CFLAGS-fread_u_chk.c): Likewise.
75834         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
75835         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
75836         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
75837         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
75838         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
75839         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
75840         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
75841         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
75842         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
75843
75844         * libio/Makefile: Test [$(libc-reentrant) = yes]
75845         instead of [$(filter %REENTRANT, $(defines)) nonempty].
75846
75847         * Makeconfig
75848         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
75849         * sysdeps/pthread/configure: File removed.
75850         * sysdeps/pthread/Makeconfig: New file.
75851         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
75852         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
75853
75854 2012-08-16  Gary Benson  <gbenson@redhat.com>
75855
75856         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
75857         unmapping the first object in a namespace.
75858
75859 2012-08-16  Roland McGrath  <roland@hack.frob.com>
75860
75861         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
75862         (__internal_setnetgrent): ... this.  Add internal_function to
75863         definition.  Add libc_hidden_def.
75864         (setnetgrent): Update caller.
75865         (internal_endnetgrent): Renamed to ...
75866         (__internal_endnetgrent): ... this.  Add internal_function to
75867         definition.  Add libc_hidden_def.
75868         (endnetgrent): Update caller.
75869         (internal_getnetgrent_r): Renamed to ...
75870         (__internal_getnetgrent_r): ... this.  Add internal_function to
75871         definition.  Add libc_hidden_def.
75872         (__getnetgrent_r): Update caller.
75873         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
75874
75875 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
75876
75877         * stdlib/longlong.h: Update from GCC.
75878
75879 2012-08-16  Roland McGrath  <roland@hack.frob.com>
75880
75881         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
75882         on _QL, which is set by umul_ppmm but never used.
75883         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
75884         variables, which are set by GMP macros but never used.
75885         * stdio-common/_itowa.c (_itowa): Likewise.
75886         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
75887         * stdlib/mod_1.c (mpn_mod_1): Likewise.
75888
75889 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
75890
75891         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
75892         struct La_sh_regs is not constant.
75893         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
75894         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
75895         and struct La_sparc64_regs are not constant.
75896
75897 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
75898
75899         * sysdeps/unix/sysv/linux/kernel-features.h
75900         (__ASSUME_POSIX_TIMERS): Remove.
75901         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
75902         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
75903         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
75904         Make code unconditional.
75905         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
75906         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
75907         Make code unconditional.
75908         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
75909         * sysdeps/unix/sysv/linux/clock_nanosleep.c
75910         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
75911         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
75912         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
75913         Make code unconditional.
75914         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
75915         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
75916         (__libc_missing_posix_timers): Remove.
75917
75918 2012-08-15  Roland McGrath  <roland@hack.frob.com>
75919
75920         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
75921         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
75922
75923         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
75924
75925         * elf/dl-sym.c: Include <stdlib.h>.
75926
75927         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
75928         constants, which avoids warnings in 32-bit builds.
75929
75930         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
75931         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
75932
75933         * misc/lseek.c: File moved to ...
75934         * io/lseek.c: ... here.
75935
75936         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
75937
75938         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
75939         shifting LEN more than 31 bits at once.
75940
75941 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75942
75943         [BZ #14195]
75944         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
75945         segmentation fault for a case of two empty input strings.
75946         * string/test-strncasecmp.c (check1): Renamed to...
75947         (bz12205): ...this.
75948         (bz14195): Add new testcase for two empty input strings and N > 0.
75949         (test_main): Call new testcase, adapt for renamed function.
75950
75951 2012-08-15  Andreas Jaeger  <aj@suse.de>
75952
75953         [BZ #14090]
75954         * crypt/md5test2.c: New test, based on test supplied by Serge
75955         Belyshev <belyshev@depni.sinp.msu.ru>.
75956         * crypt/Makefile (xtests): Add md5test-giant..
75957         * crypt/Makefile ($(objpfx)md5test-giant): Add.
75958
75959 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         [BZ #14090]
75962         * crypt/md5.c (md5_process_block): Don't assume the buffer
75963         length is less than 2**32.
75964         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
75965         length is less than 2**64.
75966
75967 2012-08-15  Roland McGrath  <roland@hack.frob.com>
75968
75969         * string/str-two-way.h: Include <sys/param.h>.
75970         (MAX): Macro removed.
75971
75972         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
75973         Move #define and #undef of memmove to just before and after
75974         including <string.h>.
75975
75976         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
75977         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
75978         and after including <string.h>.  Move declarations of
75979         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
75980         to before #include "string/memmove.c".
75981
75982         * include/dirent.h: Declare __getdirentries.
75983
75984         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
75985         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
75986
75987 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
75988
75989         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
75990         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
75991         * sysdeps/i386/configure: Regenerated.
75992         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
75993         STABS_CURRENT_FILE, and STABS_FUN.
75994         (END): Remove call to STABS_FUN_END.
75995         (STABS_CURRENT_FILE1): Delete.
75996         (STABS_CURRENT_FILE): Likewise.
75997         (STABS_FUN): Likewise.
75998         (STABS_FUN_END): Likewise.
75999         (STABS_FUN2): Likewise.
76000         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
76001         * sysdeps/x86_64/configure: Regenerated.
76002
76003 2012-08-14  Roland McGrath  <roland@hack.frob.com>
76004
76005         * elf/dl-open.c: Include <atomic.h>.
76006         * elf/dl-lookup.c: Likewise.
76007
76008 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
76009
76010         * sysdeps/unix/sysv/linux/kernel-features.h
76011         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
76012         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
76013         unconditionally.
76014         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
76015         unconditionally.
76016         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
76017         condition on __ASSUME_CLONE_THREAD_FLAGS.
76018
76019 2012-08-14  Andreas Jaeger  <aj@suse.de>
76020
76021         * sysdeps/i386/fpu/libm-test-ulps: Update.
76022
76023 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
76024
76025         * include/atomic.h (atomic_exchange_and_add): Split into ...
76026         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
76027         New atomic macros.
76028
76029 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
76030
76031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
76032
76033 2012-08-13  Jeff Law <law@redhat.com>
76034
76035         * manual/stdio.texi (snprintf): Clarify handling of the trailing
76036         null byte in the output string.
76037
76038 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
76039
76040         * sysdeps/unix/sysv/linux/kernel-features.h
76041         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
76042         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
76043         (__ASSUME_ARG_MAX_STACK_BASED): Define.
76044         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
76045         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
76046         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
76047         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
76048
76049 2012-08-09  Jeff Law <law@redhat.com>
76050
76051         [BZ #13939]
76052         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
76053         When avoid_arena is set, don't retry in the that arena.  Pick the
76054         next one, whatever it might be.
76055         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
76056         (arena_lock): Pass in new parameter to arena_get2.
76057         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
76058         arena_get2.
76059         (__libc_malloc): Unify retrying after main arena failure with
76060         __libc_memalign version.
76061         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
76062
76063 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
76064
76065         [BZ #14166]
76066         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
76067         to __redirect_strstr.
76068         (__strstr_sse42): Use typeof __redirect_strstr.
76069         (__strstr_ia32): Likewise.
76070         (__libc_strstr): New prototype.
76071         (strstr): Renamed to ...
76072         (__libc_strstr): This.
76073         (strstr): New strong alias of __libc_strstr.
76074         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
76075         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
76076         __redirect_time.
76077         Include <time.h>.
76078         (__libc_time): New prototype.
76079         (time_ifunc): Replace time with __libc_time.
76080         (time): New strong alias and hidden definition of __libc_time.
76081         (__GI_time): Remove strong alias.
76082         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
76083         Include <stddef.h>.
76084         (memmove): Redefined to __redirect_memmove.
76085         (__memmove_sse2): Use typeof __redirect_memmove.
76086         (__memmove_ssse3): Likewise.
76087         (__memmove_ssse3_back): Likewise.
76088         (__libc_memmove): New prototype.
76089         (memmove): Renamed to ...
76090         (__libc_memmove): This.
76091         (memmove): New strong alias of __libc_memmove.
76092
76093 2012-08-08  Mark Salter  <msalter@redhat.com>
76094
76095         * elf/elf.h
76096         (R_MN10300_TLS_GD): Define.
76097         (R_MN10300_TLS_LD): Likewise.
76098         (R_MN10300_TLS_LDO): Likewise.
76099         (R_MN10300_TLS_GOTIE): Likewise.
76100         (R_MN10300_TLS_IE): Likewise.
76101         (R_MN10300_TLS_LE): Likewise.
76102         (R_MN10300_TLS_DTPMOD): Likewise.
76103         (R_MN10300_TLS_DTPOFF): Likewise.
76104         (R_MN10300_TLS_TPOFF): Likewise.
76105         (R_MN10300_SYM_DIFF): Likewise.
76106         (R_MN10300_ALIGN): Likewise.
76107         (R_MN10300_NUM): Update.
76108
76109 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
76110
76111         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
76112         Remove.
76113
76114 2012-08-08  Roland McGrath  <roland@hack.frob.com>
76115
76116         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
76117
76118         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
76119         sysdeps/unix -> sysdeps/posix move.
76120         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
76121
76122 2012-08-07      Allan McRae     <allan@archlinux.org>
76123
76124         [BZ #14303]
76125         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
76126         (SUNOS_CPP): Likewise.
76127         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
76128         not found.
76129         (open_input): Call CPP using execvp.
76130
76131 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
76132
76133         * sysdeps/unix/sysv/linux/kernel-features.h
76134         (__ASSUME_PROT_GROWSUPDOWN): Remove.
76135         (__ASSUME_NO_CLONE_DETACHED): Likewise.
76136         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
76137         (__ASSUME_WAITID_SYSCALL): Likewise.
76138         * sysdeps/unix/sysv/linux/dl-execstack.c
76139         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
76140         code unconditional.
76141         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
76142         conditional code.
76143         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
76144         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
76145         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
76146         code.
76147         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
76148         unconditional.
76149         [__ASSUME_WAITID_SYSCALL]: Likewise.
76150         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
76151
76152 2012-08-07  Roland McGrath  <roland@hack.frob.com>
76153
76154         * sysdeps/unix/closedir.c: Renamed to ...
76155         * sysdeps/posix/closedir.c: ... here.
76156         * sysdeps/unix/dirfd.c: Renamed to ...
76157         * sysdeps/posix/dirfd.c: ... here.
76158         * sysdeps/unix/dirstream.h: Renamed to ...
76159         * sysdeps/posix/dirstream.h: ... here.
76160         * sysdeps/unix/fdopendir.c: Renamed to ...
76161         * sysdeps/posix/fdopendir.c: ... here.
76162         * sysdeps/unix/opendir.c: Renamed to ...
76163         * sysdeps/posix/opendir.c: ... here.
76164         * sysdeps/unix/readdir.c: Renamed to ...
76165         * sysdeps/posix/readdir.c: ... here.
76166         * sysdeps/unix/readdir_r.c: Renamed to ...
76167         * sysdeps/posix/readdir_r.c: ... here.
76168         * sysdeps/unix/rewinddir.c: Renamed to ...
76169         * sysdeps/posix/rewinddir.c: ... here.
76170         * sysdeps/unix/seekdir.c: Renamed to ...
76171         * sysdeps/posix/seekdir.c: ... here.
76172         * sysdeps/unix/telldir.c: Renamed to ...
76173         * sysdeps/posix/telldir.c: ... here.
76174         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
76175         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
76176         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
76177         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
76178
76179         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
76180         * bits/fcntl.h: ... here.
76181
76182         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
76183         not 0.
76184         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
76185         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
76186         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
76187         (struct flock): Move l_start, l_len to the beginning.
76188         Use __pid_t for l_pid.
76189         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
76190         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
76191         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
76192         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
76193         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
76194         [__USE_LARGEFILE64] (struct flock64): New type.
76195         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
76196
76197         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
76198         * bits/dirent.h: ... here.
76199
76200         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
76201         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
76202
76203 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
76204
76205         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
76206         Change from 2.6.0 to 2.6.16.
76207         * sysdeps/unix/sysv/linux/configure: Regenerated.
76208         * sysdeps/unix/sysv/linux/kernel-features.h
76209         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
76210         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
76211         version.
76212         (__ASSUME_UTIMES): Likewise.
76213         (__ASSUME_CLONE_STOPPED): Remove.
76214         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
76215         architectures, not kernel version.
76216         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
76217         (__ASSUME_NO_CLONE_DETACHED): Likewise.
76218         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
76219         (__ASSUME_WAITID_SYSCALL): Likewise.
76220         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
76221         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
76222         * README: State 2.6.16 as minimum Linux kernel version.  Do not
76223         refer to older versions.
76224
76225 2012-08-06  Roland McGrath  <roland@hack.frob.com>
76226
76227         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
76228         Define alphasort64 as an alias.
76229         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
76230         Define versionsort64 as an alias.
76231         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
76232         Define scandir64 as an alias.
76233         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
76234         Define scandirat64 as an alias.
76235         * dirent/alphasort64.c (alphasort64):
76236         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
76237         * dirent/versionsort64.c: Likewise.
76238         * dirent/scandir64.c: Likewise.
76239         * dirent/scandirat64.c: Likewise.
76240         * sysdeps/wordsize-64/alphasort.c: File removed.
76241         * sysdeps/wordsize-64/alphasort64.c: File removed.
76242         * sysdeps/wordsize-64/scandir.c: File removed.
76243         * sysdeps/wordsize-64/scandir64.c: File removed.
76244         * sysdeps/wordsize-64/scandirat.c: File removed.
76245         * sysdeps/wordsize-64/scandirat64.c: File removed.
76246         * sysdeps/wordsize-64/versionsort.c: File removed.
76247         * sysdeps/wordsize-64/versionsort64.c: File removed.
76248         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
76249         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
76250         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
76251         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
76252         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
76253         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
76254         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
76255         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
76256
76257         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
76258         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
76259         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
76260         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76261         [defined __arch64__ || defined __sparcv9]
76262         (__INO_T_MATCHES_INO64_T): New macro.
76263         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
76264         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
76265         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
76266         * sysdeps/unix/sysv/linux/bits/dirent.h
76267         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
76268         (_DIRENT_MATCHES_DIRENT64): New macro.
76269
76270         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
76271         Define lockf64 as an alias.
76272         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
76273         Define fseeko64 as an alias.
76274         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
76275         Define ftello64 as an alias.
76276         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
76277         Define _IO_fgetpos64 and fgetpos64 as aliases.
76278         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
76279         Define _IO_fsetpos64 and fsetpos64 as aliases.
76280         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
76281         Conditionalize body on this.
76282         * libio/fseeko64.c: Likewise.
76283         * libio/ftello64.c: Likewise.
76284         * libio/iofgetpos64.c: Likewise.
76285         * libio/iofsetpos64.c: Likewise.
76286         * sysdeps/wordsize-64/lockf.c: File removed.
76287         * sysdeps/wordsize-64/lockf64.c: File removed.
76288         * sysdeps/wordsize-64/fseeko.c: File removed.
76289         * sysdeps/wordsize-64/fseeko64.c: File removed.
76290         * sysdeps/wordsize-64/ftello.c: File removed.
76291         * sysdeps/wordsize-64/ftello64.c: File removed.
76292         * sysdeps/wordsize-64/iofgetpos.c: File removed.
76293         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
76294         * sysdeps/wordsize-64/iofsetpos.c: File removed.
76295         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
76296         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
76297         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
76298         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
76299         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
76300         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
76301         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
76302         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
76303         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
76304         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
76305         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
76306
76307         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
76308         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
76309         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
76310         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76311         [defined __arch64__ || defined __sparcv9]
76312         (__OFF_T_MATCHES_OFF64_T): New macro.
76313         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
76314         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
76315         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76316         (__OFF_T_MATCHES_OFF64_T): New macro.
76317
76318 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
76319
76320         * stdlib/secure-getenv.c (__secure_getenv): Replace
76321         GLIBC_2_16 with GLIBC_2_17.
76322
76323 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
76324
76325         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
76326         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
76327
76328 2012-08-03  David S. Miller  <davem@davemloft.net>
76329
76330         * sysdeps/sparc/fpu/libm-test-ulps: Update.
76331
76332 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
76333
76334         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
76335         Remove.
76336         (__ASSUME_CORRECT_SI_PID): Likewise.
76337         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
76338         (__ASSUME_TMPFS_NAME): Likewise.
76339         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
76340         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
76341         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
76342         (HAVE_AUX_SECURE): Make definition unconditional.
76343         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
76344         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
76345
76346 2012-08-03  Roland McGrath  <roland@hack.frob.com>
76347
76348         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
76349         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
76350         * sysdeps/mach/hurd/eloop-threshold.h: New file.
76351         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
76352         __eloop_threshold instead of SYMLOOP_MAX.
76353
76354         * sysdeps/generic/eloop-threshold.h: New file.
76355         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
76356         of MAXSYMLINKS.
76357         * elf/chroot_canon.c (chroot_canon): Likewise.
76358
76359 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
76360
76361         [BZ #13717]
76362         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
76363         Change to 2.6.0 everywhere.
76364         * sysdeps/unix/sysv/linux/configure: Regenerated.
76365         * sysdeps/unix/sysv/linux/kernel-features.h
76366         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
76367         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
76368         kernel versions.
76369         (__ASSUME_POSIX_TIMERS): Define unconditionally.
76370         (__ASSUME_FUTEX_REQUEUE): Remove.
76371         (__ASSUME_STATFS64): Define unconditionally.
76372         (__ASSUME_AT_SECURE): Likewise.
76373         (__ASSUME_CORRECT_SI_PID): Likewise.
76374         (__ASSUME_TGKILL): Define without depending on kernel version for
76375         i386.
76376         (__ASSUME_UTIMES): Likewise.
76377         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
76378         kernel version.
76379         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
76380         (__ASSUME_TMPFS_NAME): Likewise.
76381         * README: Update reference to Linux kernel versions.
76382
76383 2012-08-02  Marek Polacek  <polacek@redhat.com>
76384
76385         [BZ #14150]
76386         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
76387         libc_cv_asm_type_prefix with %.
76388         * configure: Regenerated.
76389         * include/libc-symbols.h: Remove comment about
76390         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
76391         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
76392         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
76393         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
76394         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
76395         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
76396         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
76397         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
76398         * elf/tst-unique2mod1.c: Likewise.
76399         * elf/tst-unique1mod2.c: Likewise.
76400         * elf/tst-unique1mod1.c: Likewise.
76401         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
76402         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
76403         Replace ASM_TYPE_DIRECTIVE with .type.
76404         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76405         * sysdeps/i386/sysdep.h: Likewise.
76406         * sysdeps/x86_64/sysdep.h: Likewise.
76407         * sysdeps/sh/sysdep.h: Likewise.
76408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
76409         Do not define ASM_TYPE_DIRECTIVE.
76410         * sysdeps/powerpc/sysdep.h: Likewise.
76411         * sysdeps/powerpc/powerpc32/sysdep.h:
76412         Replace ASM_TYPE_DIRECTIVE with .type.
76413         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
76414         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
76415         * sysdeps/i386/fpu/e_powf.S: Likewise.
76416         * sysdeps/i386/fpu/e_expl.S: Likewise.
76417         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
76418         * sysdeps/i386/fpu/e_acosh.S: Likewise.
76419         * sysdeps/i386/fpu/e_pow.S: Likewise.
76420         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
76421         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
76422         * sysdeps/i386/fpu/s_expm1.S: Likewise.
76423         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
76424         * sysdeps/i386/fpu/e_log2.S: Likewise.
76425         * sysdeps/i386/fpu/e_log2l.S: Likewise.
76426         * sysdeps/i386/fpu/e_scalb.S: Likewise.
76427         * sysdeps/i386/fpu/e_powl.S: Likewise.
76428         * sysdeps/i386/fpu/e_log10f.S: Likewise.
76429         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
76430         * sysdeps/i386/fpu/e_logl.S: Likewise.
76431         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
76432         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
76433         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
76434         * sysdeps/i386/fpu/e_log2f.S: Likewise.
76435         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
76436         * sysdeps/i386/fpu/e_log.S: Likewise.
76437         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
76438         * sysdeps/i386/fpu/e_logf.S: Likewise.
76439         * sysdeps/i386/fpu/e_log10l.S: Likewise.
76440         * sysdeps/i386/fpu/e_atanh.S: Likewise.
76441         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
76442         * sysdeps/i386/fpu/e_log10.S: Likewise.
76443         * sysdeps/i386/fpu/s_frexp.S: Likewise.
76444         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
76445         * sysdeps/i386/fpu/s_asinh.S: Likewise.
76446         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
76447         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
76448         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
76449         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
76450         * sysdeps/i386/i686/strtok.S: Likewise.
76451         * sysdeps/i386/i386-mcount.S: Likewise.
76452         * sysdeps/i386/strtok.S: Likewise.
76453         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
76454         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
76455         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
76456         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
76457         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
76458         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
76459         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
76460         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
76461         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
76462         * sysdeps/x86_64/_mcount.S: Likewise.
76463         * sysdeps/x86_64/strtok.S: Likewise.
76464         * sysdeps/sh/_mcount.S: Likewise.
76465
76466 2012-08-01  Roland McGrath  <roland@hack.frob.com>
76467
76468         * libio/iofopen.c: Include <fcntl.h>.
76469         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
76470         (_IO_fopen64, fopen64): Define as aliases.
76471         * libio/iofopen64.c: Include <fcntl.h>.
76472         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
76473         Conditionalize body on this.
76474         * sysdeps/wordsize-64/iofopen.c: File removed.
76475         * sysdeps/wordsize-64/iofopen64.c: File removed.
76476
76477 2012-08-01  Marek Polacek  <polacek@redhat.com>
76478
76479         * libc/Makeconfig: Use elf in place of binfmt-subdir.
76480         Use dlfcn directly instead of a variable.
76481         (binfmt-subdir): Do not define.
76482         (dlfcn): Likewise.
76483
76484 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
76485
76486         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
76487         Remove all definitions.
76488         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
76489         <kernel-features.h>.
76490         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
76491         (miss_F_GETOWN_EX): Remove all definitions.
76492         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
76493         macro definition.
76494         [!__ASSUME_FCNTL64]: Remove conditional code.
76495         [__ASSUME_FCNTL64]: Make code unconditional.
76496         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
76497         <kernel-features.h>.
76498         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
76499         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
76500         (lockf64) [__NR_fcntl64]: Make code unconditional.
76501         (lockf64) [__ASSUME_FCNTL64]: Likewise.
76502
76503         * sysdeps/unix/sysv/linux/kernel-features.h
76504         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
76505         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
76506         Make code unconditional.
76507         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
76508         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
76509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
76510         [__NR_vfork]: Make code unconditional.
76511         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
76512         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
76513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
76514         [__NR_vfork]: Make code unconditional.
76515         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
76516         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
76517
76518 2012-08-01  Roland McGrath  <roland@hack.frob.com>
76519
76520         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
76521         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
76522
76523         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
76524         Define mkstemp64 as an alias.
76525         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
76526         Define mkstemps64 as an alias.
76527         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
76528         Define mkostemp64 as an alias.
76529         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
76530         Define mkostemps64 as an alias.
76531         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
76532         Conditionalize body on this.
76533         * misc/mkostemp64.c: Likewise.
76534         * misc/mkostemps64.c: Likewise.
76535         * misc/mkstemps64.c: Likewise.
76536         * sysdeps/wordsize-64/mkstemp64.c: File removed.
76537         * sysdeps/wordsize-64/mkostemp64.c: File removed.
76538         * sysdeps/wordsize-64/mkostemp.c: File removed.
76539         * sysdeps/wordsize-64/mkstemp.c: File removed.
76540         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
76541         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
76542         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
76543         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
76544
76545         [BZ #14138]
76546         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
76547         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
76548         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
76549         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
76550
76551         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
76552         compat_symbol macros from <shlib-compat.h> rather than the underlying
76553         default_symbol_version and symbol_version macros, so that DEFAULT
76554         lines in shlib-versions are respected.
76555         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
76556
76557 2012-08-01  Florian Weimer  <fweimer@redhat.com>
76558
76559         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
76560         Declare with warn_unused_result.
76561         (setgid, setregid, setegid, setresgid): Likewise.
76562         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
76563         Likewise.
76564         * WUR-REPORT: Remove set*id functions.
76565
76566 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
76567
76568         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
76569
76570 2012-07-31  Roland McGrath  <roland@hack.frob.com>
76571
76572         [BZ #10191]
76573         * include/sys/socket.h (__libc_accept, __libc_accept4):
76574         Add attribute_hidden.
76575         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
76576
76577         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
76578         use of PTR_MANGLE.
76579         * inet/getnetgrent_r.c (setup): Likewise.
76580
76581         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
76582
76583 2012-07-31  David S. Miller  <davem@davemloft.net>
76584
76585         * sysdeps/sparc/fpu/libm-test-ulps: Update.
76586
76587 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
76588
76589         [BZ #13629]
76590         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
76591         value between 1.0 and 2.0 and smaller part has absolute value less
76592         than 1.0.
76593         * math/s_clog10.c (__clog10): Likewise.
76594         * math/s_clog10f.c (__clog10f): Likewise.
76595         * math/s_clog10l.c (__clog10l): Likewise.
76596         * math/s_clogf.c (__clogf): Likewise.
76597         * math/s_clogl.c (__clogl): Likewise.
76598         * math/libm-test.inc (clog_test): Add more tests.
76599         (clog10_test): Likewise.
76600         * sysdeps/i386/fpu/libm-test-ulps: Update.
76601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76602
76603 2012-07-31  Florian Weimer  <fweimer@redhat.com>
76604
76605         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
76606         Exit with zero in case no suitable GID is found, and write a
76607         message to standard error.
76608
76609 2012-07-30  Roland McGrath  <roland@hack.frob.com>
76610
76611         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
76612         rather than to 1.
76613         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
76614         (MAXPATHLEN): Removed.
76615         (NOGROUP, NODEV): New macros.
76616         (setbit, clrbit, isset, isclr): New macros.
76617         (howmany, roundup, powerof2): New macros.
76618         (DEV_BSIZE): New macro.
76619
76620         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
76621         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
76622
76623         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
76624         definition on [!__NO_LONG_DOUBLE_MATH].
76625
76626         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
76627         PTR_MANGLE and PTR_DEMANGLE.
76628
76629         * socket/accept4.c (accept4): Rename to __libc_accept4.
76630         Define accept4 as a weak alias.
76631
76632         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
76633         on [_DIRENT_HAVE_D_TYPE].
76634         * io/ftw.c (ftw_dir): Likewise.
76635
76636         * io/xmknod.c (__xmknod): Don't check PATH for being null.
76637
76638         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
76639
76640         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
76641         Use the BSD numbers rather than the arbitrary ones we had.
76642         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
76643         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
76644         (SIGXCPU, SIGXFSZ): New macros.
76645         (_NSIG): Now 32.
76646
76647         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
76648         initializer on [_LIBC_REENTRANT].
76649
76650         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
76651         definitions inside [_POSIX_MAPPED_FILES].
76652
76653         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
76654
76655         * dirent/opendir.c: Include <fcntl.h>.
76656
76657         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
76658         (__libc_getspecific): Likewise.
76659         (__libc_key_create): Likewise.
76660
76661         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
76662         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
76663         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
76664         (tmpfile64): Define as alias.
76665         * sysdeps/wordsize-64/tmpfile.c: File removed.
76666         * sysdeps/wordsize-64/tmpfile64.c: File removed.
76667         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
76668         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
76669
76670         * stdio-common/vfscanf.c: Include <stdbool.h>.
76671         * nss/makedb.c: Likewise.
76672         * stdio-common/_i18n_number.h: Likewise.
76673         * argp/argp-help.c: Likewise.
76674         * posix/wordexp.c: Likewise.
76675         * sysdeps/posix/spawni.c: Likewise.
76676         * nss/nss_files/files-initgroups.c: Likewise.
76677         * stdio-common/reg-modifier.c: Include <stdlib.h>.
76678         * nss/nss_files/files-initgroups.c: Likewise.
76679         * nss/nss_db/db-netgrp.c: Likewise.
76680         * nss/nss_db/db-initgroups.c: Likewise.
76681         * io/fchmodat.c: Include <sys/stat.h>.
76682
76683         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
76684         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
76685
76686         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
76687         [HAVE_MMAP].
76688
76689         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
76690         Add multiple inclusion protection.
76691
76692 2012-07-27  David S. Miller  <davem@davemloft.net>
76693
76694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
76695
76696 2012-07-27  Gary Benson  <gbenson@redhat.com>
76697
76698         [BZ #14298]
76699         * elf/rtld.c: Include <stap-probe.h>.
76700         (dl_main): Added static probes "init_start" and "init_complete".
76701         * elf/dl-load.c: Include <stap-probe.h>.
76702         (lose): Take new parameter "nsid".
76703         Added static probe "map_failed".
76704         (_dl_map_object_from_fd): Pass namespace id to lose.
76705         Added static probe "map_start".
76706         (open_verify): Pass namespace id to lose.
76707         * elf/dl-open.c: Include <stap-probe.h>.
76708         (dl_open_worker) Added static probes "map_complete", "reloc_start"
76709         and "reloc_complete".
76710         * elf/dl-close.c: Include <stap-probe.h>.
76711         (_dl_close_worker): Added static probes "unmap_start" and
76712         "unmap_complete".
76713         * elf/rtld-debugger-interface.txt: New file documenting the above.
76714
76715 2012-07-26  Roland McGrath  <roland@hack.frob.com>
76716
76717         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
76718         rather than a string variable.
76719         * sunrpc/rpc_main.c (h_output): Likewise.
76720         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
76721
76722 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
76723
76724         * inet/check_native.c: New file.
76725
76726 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
76727
76728         [BZ #13629]
76729         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
76730         if larger part has absolute value 1.0.
76731         * math/s_clog10.c (__clog10): Likewise.
76732         * math/s_clog10f.c (__clog10f): Likewise.
76733         * math/s_clog10l.c (__clog10l): Likewise.
76734         * math/s_clogf.c (__clogf): Likewise.
76735         * math/s_clogl.c (__clogl): Likewise.
76736         * math/libm-test.inc (clog_test): Add more tests.
76737         (clog10_test): Likewise.
76738         * sysdeps/i386/fpu/libm-test-ulps: Update.
76739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76740
76741         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
76742         (pltexit): Likewise.
76743         (La_regs): Likewise.
76744         (La_retval): Likewise.
76745         (int_retval): Likewise.
76746         Update #error for removed macros to refer only to definitions in
76747         tst-audit.h.
76748         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
76749         macro.
76750         (pltexit): Likewise.
76751         (La_regs): Likewise.
76752         (La_retval): Likewise.
76753         (int_retval): Likewise.
76754         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
76755         macro.
76756         (pltexit): Likewise.
76757         (La_regs): Likewise.
76758         (La_retval): Likewise.
76759         (int_retval): Likewise.
76760         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
76761         macro.
76762         (pltexit): Likewise.
76763         (La_regs): Likewise.
76764         (La_retval): Likewise.
76765         (int_retval): Likewise.
76766         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
76767         macro.
76768         (pltexit): Likewise.
76769         (La_regs): Likewise.
76770         (La_retval): Likewise.
76771         (int_retval): Likewise.
76772         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
76773         macro.
76774         (pltexit): Likewise.
76775         (La_regs): Likewise.
76776         (La_retval): Likewise.
76777         (int_retval): Likewise.
76778         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
76779         macro.
76780         (pltexit): Likewise.
76781         (La_regs): Likewise.
76782         (La_retval): Likewise.
76783         (int_retval): Likewise.
76784         * sysdeps/generic/tst-audit.h: Update comment to refer only to
76785         macro definitions in tst-audit.h.
76786         * sysdeps/i386/tst-audit.h: New file.
76787         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
76788         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
76789         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
76790         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
76791         * sysdeps/sh/tst-audit.h: Likewise.
76792         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
76793         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
76794         * sysdeps/x86_64/tst-audit.h: Likewise.
76795
76796 2012-07-26  Andreas Jaeger  <aj@suse.de>
76797
76798         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
76799         ptrace.
76800
76801         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
76802         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
76803         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
76804         PTRACE_O_MASK.
76805         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
76806         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
76807         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
76808
76809         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
76810         value.
76811
76812         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
76813         _sigsys.
76814         (si_call_addr, si_syscall, si_arch): Define new macro.
76815         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
76816         _sigsys.
76817         (si_call_addr, si_syscall, si_arch): Define new marcro.
76818         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
76819         _sigsys.
76820         (si_call_addr, si_syscall, si_arch): Define new macro.
76821         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
76822         _sigsys.
76823         (si_call_addr, si_syscall, si_arch): Define new macro.
76824
76825 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
76826
76827         [BZ #13717]
76828         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
76829         Change to 2.4.21 where previously 2.4.1.
76830         * sysdeps/unix/sysv/linux/configure: Regenerated.
76831         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
76832         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
76833         Linux kernel version.
76834         (__ASSUME_STD_AUXV): Remove.
76835         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
76836         kernel version.
76837         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
76838         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
76839         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
76840         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
76841         (__ASSUME_NETLINK_SUPPORT): Likewise.
76842         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
76843         (__no_netlink_support): Remove conditional definition.
76844         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
76845         Remove.
76846         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
76847         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
76848         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
76849         (if_nameindex_ioctl): Remove.
76850         (if_nameindex_netlink): Do not handle __no_netlink_support.
76851         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
76852         code.
76853         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
76854         Remove conditional code.
76855         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
76856         code.
76857         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
76858         unconditional.
76859         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
76860         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
76861         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
76862         Remove.
76863         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
76864         [!__ASSUME_STD_AUXV]: Remove conditional code.
76865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
76866         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
76867         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
76868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
76869         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
76870         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
76871         code.
76872         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
76873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
76874         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
76875         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
76876         conditional code.
76877         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
76878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
76879         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
76880         code.
76881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
76882         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
76883         conditional code.
76884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
76885         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
76886         code unconditional.
76887         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
76888         conditional code.
76889         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
76890         unconditional.
76891         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
76892         conditional code.
76893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76894         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
76895         unconditional.
76896         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
76897         conditional code.
76898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
76899         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
76900         code unconditional.
76901         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
76902         conditional code.
76903         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
76904         unconditional.
76905         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
76906         conditional code.
76907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
76908         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
76909         code unconditional.
76910         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
76911         conditional code.
76912         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
76913         unconditional.
76914         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
76915         conditional code.
76916
76917 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
76918
76919         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
76920         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
76921         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
76922         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
76923         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
76924         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
76925         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
76926         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
76927         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
76928         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
76929         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
76930         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
76931         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
76932         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
76933         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
76934         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
76935         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
76936         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
76937         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
76938         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
76939         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
76940         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
76941         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
76942
76943 2012-07-25  Florian Weimer  <fweimer@redhat.com>
76944
76945         * Versions.def: Add GLIBC_2.17.
76946         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
76947         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
76948         Introduce __libc_secure_getenv.
76949         * stdlib/Versions (2.17): Add secure_getenv
76950         (GLIBC_PRIVATE): Add __libc_secure_getenv.
76951         * stdlib/secure-getenv.c: Rename __secure_getenv to
76952         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
76953         symbol __secure_getenv for GLIBC_2.0.
76954         * stdlib/tst-secure-getenv.c: New.
76955         * stdlib/Makefile (tests): Add testcase.
76956         * manual/startup.texi (Environment Access): Document
76957         secure_getenv.
76958         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
76959         __libc_secure_getenv.
76960         * inet/ruserpass.c (ruserpass): Likewise.
76961         * malloc/mtrace.c (mtrace): Likewise.
76962         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
76963         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
76964         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
76965         * sysdeps/posix/tempname.c: Likewise.  Evaluate
76966         HAVE_SECURE_GETENV.
76967         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
76968         __secure_getenv to __libc_secure_getenv.
76969         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
76970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
76971         Likewise.
76972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
76973         Likewise.
76974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
76975         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
76976         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
76977         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
76978         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
76979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
76980         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
76981
76982 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
76983
76984         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
76985         (struct La_i86_retval): Likewise.
76986         (struct La_x86_64_regs): Likewise.
76987         (struct La_x86_64_retval): Likewise.
76988         (struct La_x32_regs): Likewise.
76989         (struct La_x32_retval): Likewise.
76990         (struct La_ppc32_regs): Likewise.
76991         (struct La_ppc32_retval): Likewise.
76992         (struct La_ppc64_regs): Likewise.
76993         (struct La_ppc64_retval): Likewise.
76994         (struct La_sh_regs): Likewise.
76995         (struct La_sh_retval): Likewise.
76996         (struct La_s390_32_regs): Likewise.
76997         (struct La_s390_32_retval): Likewise.
76998         (struct La_s390_64_regs): Likewise.
76999         (struct La_s390_64_retval): Likewise.
77000         (struct La_sparc32_regs): Likewise.
77001         (struct La_sparc32_retval): Likewise.
77002         (struct La_sparc64_regs): Likewise.
77003         (struct La_sparc64_retval): Likewise.
77004         (struct audit_ifaces): Remove architecture-specific pltenter and
77005         pltexit members.
77006         * sysdeps/i386/ldsodefs.h: New file.
77007         * sysdeps/powerpc/ldsodefs.h: Likewise.
77008         * sysdeps/s390/ldsodefs.h: Likewise.
77009         * sysdeps/sh/ldsodefs.h: Likewise.
77010         * sysdeps/sparc/ldsodefs.h: Likewise.
77011         * sysdeps/x86_64/ldsodefs.h: Likewise.
77012
77013 2012-07-25  Marek Polacek  <polacek@redhat.com>
77014
77015         [BZ #6808]
77016         * math/libm-test.inc (yn_test): Add another test.
77017         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
77018         to ERANGE when the result is +-Inf.
77019         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
77020         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
77021         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
77022         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
77023
77024 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
77025
77026         * conform/data/time.h-data (NULL): Use macro-constant.  Require
77027         equal to 0.
77028         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
77029         clock_t.
77030         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
77031
77032 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
77033
77034         * configure.in <sysdeps resolving>: Correct printing
77035         Implies_before.
77036         * configure: Regenerate.
77037
77038 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
77039
77040         * math/w_ilogb.c: Include <limits.h>.
77041         * math/w_ilogbl.c: Likewise.
77042
77043 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
77044
77045         * manual/lang.texi (__va_copy): Document primarily as ISO C99
77046         va_copy.  Document allowing for unavailable va_copy only as
77047         pre-C99 compatibility.
77048         * manual/string.texi (Copying and Concatenation): Use va_copy
77049         instead of __va_copy in concat example.
77050
77051 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
77052
77053         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
77054         (__sendto): Use create_address_port.  Initialize APORT and deallocate
77055         it if not null.
77056
77057         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
77058         with O_NOLINK passed to __file_name_lookup.
77059
77060         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
77061         with O_NOLINK passed to __file_name_lookup.
77062
77063         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
77064         negative N or less than NGIDS.
77065
77066         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
77067         type to string_t.  Set ERANGE as errno and return it if NAME is not big
77068         enough.  Use memcpy instead of strncpy.
77069
77070 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
77071
77072         * elf/Makefile (check-data): Remove.
77073         (localplt.data): New vpath directive.
77074         ($(objpfx)check-localplt.out): Use localplt.data from vpath
77075         instead of $(check-data).
77076         * scripts/data/localplt-generic.data: Move to ...
77077         * sysdeps/generic/localplt.data: ... here.
77078         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
77079         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
77080         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
77081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
77082         ... here.
77083         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
77084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
77085         ... here.
77086         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
77087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
77088         ... here.
77089         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
77090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
77091         ... here.
77092         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
77093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
77094         ... here.
77095         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
77096         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
77097         ... here.
77098
77099 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77100
77101         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
77102         PPC32 and PPC64 files.
77103         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
77104         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
77105
77106 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77107
77108         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
77109         __makecontext_ret to ...
77110         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
77111         ... here and call exit if uc_link is NULL.  New file.
77112         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
77113         __makecontext_ret.S.
77114         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
77115         __makecontext_ret to ...
77116         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
77117         ... here and call exit if uc_link is NULL.  New file.
77118         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
77119         __makecontext_ret.S.
77120
77121 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77122
77123         * elf/elf.h (R_390_IRELATIVE): New definition.
77124         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
77125         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
77126         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
77127         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
77128         (elf_machine_lazy_rel): Likewise.
77129         * sysdeps/s390/dl-irel.h: New file.
77130         * sysdeps/s390/s390-64/memcpy.S: New asm code.
77131         * sysdeps/s390/s390-64/memset.S: New asm code.
77132         * sysdeps/s390/s390-64/memcmp.S: New asm code.
77133         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
77134         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
77135         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
77136         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
77137         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
77138         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
77139         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
77140         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
77141         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
77142         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
77143         * sysdeps/s390/s390-32/memcpy.S: New asm code.
77144         * sysdeps/s390/s390-32/memset.S: New asm code.
77145         * sysdeps/s390/s390-32/memcmp.S: New asm code.
77146
77147 2012-07-17  Marek Polacek  <polacek@redhat.com>
77148
77149         [BZ #14349]
77150         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
77151         * sysdeps/s390/s390-64/configure.in: Likewise.
77152         * sysdeps/sparc/configure.in: Likewise.
77153         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
77154         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
77155         * sysdeps/i386/configure.in: Likewise.
77156         * sysdeps/x86_64/configure.in: Likewise.
77157         * sysdeps/sh/configure.in: Likewise.
77158         * sysdeps/s390/s390-32/configure: Regenerated.
77159         * sysdeps/s390/s390-64/configure: Likewise.
77160         * sysdeps/x86_64/configure: Likewise.
77161         * sysdeps/sh/configure: Likewise.
77162         * sysdeps/powerpc/powerpc64/configure: Likewise.
77163         * sysdeps/powerpc/powerpc32/configure: Likewise.
77164         * sysdeps/sparc/configure: Likewise.
77165         * sysdeps/i386/configure: Likewise.
77166
77167         * elf/dl-open.c: Comment fixes.
77168
77169 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
77170
77171         * Makefile [CXX] (check-data): Remove.
77172         [CXX] (c++-types.data): New vpath directive.
77173         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
77174         vpath.  Do not allow for C++ type data being missing.
77175         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
77176         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
77177         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
77178         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
77179         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
77180         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
77181         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
77182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
77183         ... here.
77184         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
77185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
77186         ... here.
77187         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
77188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
77189         ... here.
77190         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
77191         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
77192         ... here.
77193         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
77194         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
77195         ... here.
77196         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
77197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
77198         ... here.
77199         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
77200         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
77201         ... here.
77202         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
77203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
77204
77205         * elf/tls-macros.h (TLS_LE): Move architecture-specific
77206         definitions to architecture-specific files.
77207         (TLS_IE): Likewise.
77208         (TLS_LD): Likewise.
77209         (TLS_GD): Likewise.
77210         * sysdeps/i386/tls-macros.h: New file.
77211         * sysdeps/powerpc/tls-macros.h: Likewise.
77212         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
77213         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
77214         * sysdeps/sh/tls-macros.h: Likewise.
77215         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
77216         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
77217         * sysdeps/x86_64/tls-macros.h: Likewise.
77218
77219 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
77220
77221         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
77222         zero value for regular exit case.
77223
77224         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
77225         (__start_context): Preserve zero value for regular exit case.
77226
77227 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
77228             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77229
77230         * manual/setjmp.texi (setcontext): Clarify normal process
77231         termination when uc_link is the null pointer.
77232         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
77233         exit call.
77234
77235 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
77236
77237         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
77238         preprocessor.  Test for each exception mask separately.
77239
77240 2012-07-16  Andreas Jaeger  <aj@suse.de>
77241
77242         * po/ru.po: Update from translation team.
77243
77244 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
77245
77246         * conform/data/string.h-data (NULL): Use macro-constant.  Require
77247         equal to 0.
77248         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
77249         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
77250         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
77251         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
77252         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77253
77254 2012-07-13  Andreas Jaeger  <aj@suse.de>
77255
77256         * po/fr.po: Update from translation team.
77257
77258 2012-07-12  Marek Polacek  <polacek@redhat.com>
77259
77260         [BZ #14173]
77261         * math/libm-test.inc (yn_test): Add test for BZ #14173.
77262         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
77263         loop condition.
77264
77265 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
77266
77267         [BZ #13717]
77268         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
77269         Change to 2.4.1 where previously 2.4.0.
77270         * sysdeps/unix/sysv/linux/configure: Regenerated.
77271         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
77272         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
77273         version.
77274         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
77275         (__ASSUME_AT_CLKTCK): Remove.
77276         (__ASSUME_AT_PAGESIZE): Likewise.
77277         (__ASSUME_AT_XID): Likewise.
77278         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
77279         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
77280         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
77281         unconditionally.
77282         (HAVE_AUX_PAGESIZE): Likewise.
77283         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
77284         [__ASSUME_AT_CLKTCK]: Make code unconditional.
77285         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
77286
77287 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
77288
77289         [BZ #14307]
77290         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
77291         the temporary buffer used to invoke __gethostbyname2_r,
77292         __gethostbyaddr_r and gethostbyname4_r to make room for struct
77293         host_data / struct gaih_addrtuple.
77294         * resolv/nss_dns/dns-host.c (global scope): Move definition of
77295         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
77296         header file nss/nsswitch.h.
77297         * nss/nsswitch.h (global scope): Add definition of implementation
77298         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
77299         resolv/nss_dns/dns-host.c).
77300
77301 2012-07-11  Andreas Jaeger  <aj@suse.de>
77302
77303         * po/fr.po: Update from translation team.
77304
77305         * po/sv.po: Update from translation team
77306         * po/fr.po: Another update from translation team.
77307
77308 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77309
77310         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
77311         for subnormals or multiply small sinh result by itself.
77312         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
77313         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
77314
77315 2012-07-11  David S. Miller  <davem@davemloft.net>
77316
77317         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77318
77319 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
77320
77321         [BZ #14347]
77322         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
77323         (INTERNAL_MARK): Shift it here.
77324
77325 2012-07-10  Marek Polacek  <polacek@redhat.com>
77326
77327         [BZ #14151]
77328         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
77329         libc_cv_asm_global_directive with .globl.
77330         * configure: Regenerated.
77331         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
77332         with .globl.
77333         * sysdeps/i386/configure: Regenerated.
77334         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
77335         with .globl.
77336         * sysdeps/x86_64/configure: Regenerated.
77337         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
77338         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
77339         * elf/tst-unique2mod2.c: Likewise.
77340         * elf/tst-unique2mod1.c: Likewise.
77341         * elf/tst-unique1mod2.c: Likewise.
77342         * elf/tst-unique1mod1.c: Likewise.
77343         * sysdeps/s390/s390-32/sysdep.h: Likewise.
77344         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
77345         * sysdeps/s390/s390-64/sysdep.h: Likewise.
77346         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
77347         * sysdeps/mach/sysdep.h: Likewise.
77348         * sysdeps/i386/sysdep.h: Likewise.
77349         * sysdeps/i386/i386-mcount.S: Likewise.
77350         * sysdeps/x86_64/_mcount.S: Likewise.
77351         * sysdeps/x86_64/sysdep.h: Likewise.
77352         * sysdeps/sh/_mcount.S: Likewise.
77353         * sysdeps/sh/sysdep.h: Likewise.
77354         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
77355         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
77356         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
77357         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
77358         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
77359         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
77360         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
77361         * locale/localeinfo.h: Likewise.
77362         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
77363         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
77364
77365 2012-07-09  Roland McGrath  <roland@hack.frob.com>
77366
77367         [BZ #14336]
77368         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
77369         system".
77370         * manual/message.texi (The Uniforum approach): Likewise.
77371         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
77372         (glibc iconv Implementation): Likewise.
77373
77374 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
77375
77376         [BZ #14337]
77377         * math/s_clog.c (__clog): Avoid scaling a value down where that
77378         could result in underflow.
77379         * math/s_clog10.c (__clog10): Likewise.
77380         * math/s_clog10f.c (__clog10f): Likewise.
77381         * math/s_clog10l.c (__clog10l): Likewise.
77382         * math/s_clogf.c (__clogf): Likewise.
77383         * math/s_clogl.c (__clogl): Likewise.
77384         * math/libm-test.inc (clog_test): Add more tests.
77385         (clog10_test): Likewise.
77386         * sysdeps/i386/fpu/libm-test-ulps: Update.
77387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77388
77389 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
77390
77391         [BZ #14283]
77392         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
77393         by 7 not 8 to examine high bit of fractional part.
77394
77395         [BZ #14042]
77396         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
77397         for call to __mcount_internal.
77398         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
77399         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
77400         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
77401
77402 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
77403
77404         [BZ #14154]
77405         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
77406         approximation for values within 0x1p-13f of an odd multiple of
77407         pi/4.
77408         * math/libm-test.inc (tan_test): Do not allow spurious underflow
77409         exception.  Add more tests.
77410         * sysdeps/i386/fpu/libm-test-ulps: Update.
77411
77412         [BZ #6778]
77413         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
77414         inputs and return -1 for them.  Do not check for +Inf in case not
77415         reachable for +Inf.
77416         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
77417         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
77418         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
77419         and return -1 for them.  Do not check for +Inf in case not
77420         reachable for +Inf.
77421         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
77422         define.
77423         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
77424         and return -1 for them.  Do not check for +Inf in case not
77425         reachable for +Inf.
77426         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
77427         spurious underflow.
77428         * sysdeps/i386/fpu/libm-test-ulps: Update.
77429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77430
77431 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
77432
77433         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
77434
77435 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
77436
77437         [BZ #14157]
77438         [BZ #14331]
77439         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
77440         could result in spurious underflow.  Scale down values above
77441         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
77442         * math/s_csqrtf.c (__csqrtf): Likewise.
77443         * math/s_csqrtl.c (__csqrtl): Likewise.
77444         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
77445         spurious underflow.
77446         * sysdeps/i386/fpu/libm-test-ulps: Update.
77447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77448
77449 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
77450
77451         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
77452         xopen-msg.sed.
77453         * catgets/xopen-msg.awk: New file.
77454         * catgets/xopen-msg.sed: Removed.
77455
77456         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
77457         po2text.sed.
77458         * intl/po2test.awk: New file.
77459         * intl/po2test.sed: Removed.
77460
77461 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
77462
77463         [BZ #14328]
77464         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
77465         or multiply small sinh result by itself.
77466         * math/s_ctanf.c (__ctanf): Likewise.
77467         * math/s_ctanh.c (__ctanh): Likewise.
77468         * math/s_ctanhf.c (__ctanhf): Likewise.
77469         * math/s_ctanhl.c (__ctanhl): Likewise.
77470         * math/s_ctanl.c (__ctanl): Likewise.
77471         * math/libm-test.inc (ctan_test_tonearest): New function.
77472         (ctan_test_towardzero): Likewise.
77473         (ctan_test_downward): Likewise.
77474         (ctan_test_upward): Likewise.
77475         (ctanh_test_tonearest): Likewise.
77476         (ctanh_test_towardzero): Likewise.
77477         (ctanh_test_downward): Likewise.
77478         (ctanh_test_upward): Likewise.
77479         (main): Call these new functions.
77480         * sysdeps/i386/fpu/libm-test-ulps: Update.
77481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77482
77483 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
77484
77485         * .gitignore: Delete /ports entry.
77486
77487 2012-07-03  Andreas Jaeger  <aj@suse.de>
77488
77489         * po/bg.po: Update from translation team.
77490         * po/cs.po: Likewise.
77491         * po/de.po: Likewise.
77492         * po/hr.po: Likewise.
77493         * po/nl.pl: Likewise.
77494         * po/pl.po: Likewise.
77495         * po/vi.po: Likewise.
77496
77497 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
77498
77499         * Makeconfig [!+link] (+link-before-libc): New variable.
77500         [!+link] (+link-after-libc): Likewise.
77501         [!+link] (+link-tests): Likewise.
77502         [!+link] (+link): Define in terms of $(+link-before-libc) and
77503         $(+link-after-libc).
77504         [!+link-static] (+link-static-before-libc): New variable.
77505         [!+link-static] (+link-static-after-libc): Likewise.
77506         [!+link-static] (+link-static-tests): Likewise.
77507         [!+link-static] (+link-static): Define in terms of
77508         $(+link-static-before-libc) and $(+link-static-after-libc).
77509         [build-shared] (link-libc-before-gnulib): New variable.
77510         [build-shared] (link-libc-tests): Likewise.
77511         [build-shared] (link-libc): Define in terms of
77512         $(link-libc-before-gnulib).
77513         [!build-shared] (link-libc-tests): New variable.
77514         (link-libc-static-tests): New variable.
77515         [!gnulib] (gnulib-arch): New variable.
77516         [!gnulib] (gnulib-tests): Likewise.
77517         [!gnulib] (static-gnulib-arch): Likewise.
77518         [!gnulib] (static-gnulib-tests): Likewise.
77519         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
77520         Define with "=" instead of ":=".
77521         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
77522         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
77523         * Rules (binaries-all-notests): New variable.
77524         (binaries-all-tests): Likewise.
77525         (binaries-static-notests): Likewise.
77526         (binaries-static-tests): Likewise.
77527         (binaries-all): Define using $(binaries-all-notests) and
77528         $(binaries-all-tests).
77529         (binaries-static): Define using $(binaries-static-notests) and
77530         $(binaries-static-tests).
77531         (binaries-shared-tests): New variable.
77532         (binaries-shared-notests): Likewise.
77533         (binaries-shared): Remove variable.
77534         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
77535         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
77536         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
77537         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
77538         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
77539         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
77540         * elf/Makefile (sln-modules): New variable.
77541         (extra-objs): Add $(sln-modules:=.o).
77542         (ldconfig-modules): Add static-stubs.
77543         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
77544         * elf/static-stubs.c: New file.
77545
77546         [BZ #14283]
77547         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
77548         by 7 not 8 to examine high bit of fractional part.  Use volatile
77549         variables when splitting into final array of floats if
77550         __FLT_EVAL_METHOD__ != 0.
77551         * math/libm-test.inc (cos_test): Add another test.
77552         (sin_test): Likewise.
77553         * sysdeps/i386/fpu/libm-test-ulps: Update.
77554
77555         [BZ #14273]
77556         * math/libm-test.inc (cosh_test): Add more tests.
77557
77558         * version.h (RELEASE): Set to "development".
77559         (VERSION): Set to "2.16.90".
77560
77561 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
77562
77563         * NEWS: Update copyright. Remove last-updated date.
77564         Mention math library bug fixes and timezone data changes.
77565         * README: Mention GNU/Hurd, x32, and HPPA support status.
77566
77567 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
77568
77569         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
77570
77571 2012-06-27  Andreas Jaeger  <aj@suse.de>
77572
77573         * manual/contrib.texi (Contributors): Add Samuel Thibault.
77574
77575 2012-06-25  Andreas Jaeger  <aj@suse.de>
77576
77577         * sysdeps/s390/fpu/libm-test-ulps: Update.
77578
77579 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
77580             Thomas Schwinge  <thomas@codesourcery.com>
77581
77582         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
77583         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
77584         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
77585         fanotify_mark.
77586
77587 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
77588
77589         * sysdeps/mach/start.c: Remove file.
77590         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
77591         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
77592         * sysdeps/sh/init-first.c: Likewise.
77593
77594         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
77595         registers for frame unwinding purposes, add CFI directives.
77596         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
77597         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
77598         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
77599         Likewise.
77600
77601         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
77602         __fortify_fail returning.
77603         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
77604
77605         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
77606         sysdeps/sh/____longjmp_chk.S.
77607         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
77608         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
77609         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
77610         (gen-as-const-headers): Append sigaltstack-offsets.sym.
77611
77612         * sysdeps/sh/abort-instr.h: New file.
77613         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
77614         process in case exit returns.
77615
77616         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
77617         initialize the GOT register before use.
77618
77619         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
77620         calculation of ARGC > 4.
77621
77622         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
77623         meaningful names to some local labels.
77624
77625 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
77626             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
77627
77628         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
77629         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
77630         (__arch_compare_and_exchange_val_16_acq): Likewise.
77631         (__arch_compare_and_exchange_val_32_acq): Likewise.
77632         (atomic_exchange_and_add): Fix gUSA sequence.
77633         (atomic_add): Likewise.
77634         (atomic_add_negative): Likewise.
77635         (atomic_add_zero): Likewise.
77636         (atomic_bit_test_set): Likewise.
77637
77638 2012-06-22  Andreas Schwab  <schwab@redhat.com>
77639
77640         [BZ #13579]
77641         * include/link.h (struct link_map): Add l_free_initfini.
77642         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
77643         l_initfini.
77644         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
77645         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
77646         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
77647         set.
77648
77649 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
77650
77651         * configure.in: Use AC_LANG_SOURCE.
77652         * configure: Regenerate.
77653
77654 2012-06-22  Roland McGrath  <roland@hack.frob.com>
77655
77656         * configure.in (libc_cv_localstatedir): New substituted variable.
77657         * configure: Regenerated.
77658         * config.make.in (localstatedir): New variable, substituted from
77659         libc_cv_localstatedir.
77660         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
77661         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
77662         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
77663         * sysdeps/gnu/configure: Regenerated.
77664
77665 2012-06-21  Jeff Law  <law@redhat.com>
77666
77667         [BZ #14277]
77668         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
77669         free.  Simplify list management for _LIBC case.
77670
77671 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
77672
77673         [BZ #14273]
77674         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
77675         Clear sign bit of 64-bit integer value before comparing against
77676         overflow value.
77677
77678         * sysdeps/mach/configure: Regenerated.
77679
77680 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
77681
77682         [BZ #14278]
77683         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
77684
77685 2012-06-21  Jeff Law  <law@redhat.com>
77686
77687         [BZ #13882]
77688         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
77689         uint16_t for elements in the "seen" array to avoid char overflows.
77690         * elf/dl-fini.c (_dl_sort_fini): Likewise.
77691         * elf/dl-open.c (dl_open_worker): Likewise.
77692
77693 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
77694
77695         * scripts/list-sources.sh: Scan PORTS for translations.
77696         * po/libc.pot: Regenerated.
77697
77698 2012-06-21  Andreas Jaeger  <aj@suse.de>
77699
77700         [BZ #12194]
77701         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
77702         warning.
77703         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
77704         * bits/byteswap-16.h (__bswap_16): Likewise.
77705         * bits/byteswap.h (__bswap_constant_16): Likewise.
77706
77707 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
77708
77709         [BZ #14117]
77710         * sysdeps/i386/fpu_control.h: Removed.
77711         * sysdeps/x86_64/fpu_control.h: Moved to ...
77712         * sysdeps/x86/fpu_control.h: Here.
77713
77714         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
77715         (_FPU_SETCW): Likewise.
77716
77717 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
77718
77719         [BZ #14117]
77720         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
77721         * sysdeps/x86/fpu/bits/mathinline.h: This.
77722         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
77723
77724         [BZ #14050]
77725         [BZ #14117]
77726         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
77727         functions if __x86_64__ is defined.
77728
77729 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
77730
77731         * string/endian.h: Add !__ASSEMBLER__ condition for including
77732         conversion interfaces.
77733
77734 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
77735
77736         [BZ #14241]
77737         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
77738         of ABS(x) in calculating zero to negative powers other than odd
77739         integers.
77740         * math/libm-test.inc (pow_test): Add more tests.
77741
77742 2012-06-15  Andreas Jaeger  <aj@suse.de>
77743
77744         * manual/contrib.texi (Contributors): Update entry of Liubov
77745         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
77746         Machado Filho.
77747
77748 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
77749
77750         * string/string.h: Add __wur to GNU version of strerror_r.
77751
77752 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
77753
77754         [BZ #14229]
77755         * string/Makefile (tests): Add tst-strtok_r.
77756         * string/tst-strtok_r.c: New file.
77757         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
77758         RAX_LP/RDX_LP on SAVE_PTR.
77759
77760 2012-06-14  Roland McGrath  <roland@hack.frob.com>
77761
77762         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
77763
77764 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
77765
77766         * libm_test.inc (csqrt_test): Allow more spurious underflow
77767         exceptions.
77768         (j0_test): Likewise.
77769         (j1_test): Likewise.
77770         (y0_test): Likewise.
77771         (y1_test): Likewise.
77772
77773 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
77774
77775         * po/Makefile (libc.pot): Use UTF-8 charset.
77776
77777 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
77778
77779         [BZ #14210]
77780         Suppress sign-conversion warning from FD_SET.
77781         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
77782         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
77783         not unsigned long int.
77784         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
77785
77786 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
77787
77788         [BZ #14050]
77789         [BZ #14117]
77790         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
77791         __extern_always_inline instead of __extern_inline.
77792         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
77793         (__signbit): Likewise.
77794         (__signbitl): Support C++ namespace.
77795         (lrintf): New inline function.
77796         (lrint): Likewise.
77797         (llrintf): Likewise.
77798         (llrint): Likewise.
77799         (fmaxf): Likewise.
77800         (fmax): Likewise.
77801         (fminf): Likewise.
77802         (fmin): Likewise.
77803         (rint): Likewise.
77804         (rintf): Likewise.
77805         (ceil): Likewise.
77806         (ceilf): Likewise.
77807         (floor): Likewise.
77808         (floorf): Likewise.
77809         (nearbyint): Likewise.
77810         (nearbyintf): Likewise.
77811
77812 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
77813
77814         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
77815         non-default versions.
77816
77817 2012-06-11  Roland McGrath  <roland@hack.frob.com>
77818
77819         [BZ #14218]
77820         * manual/argp.texi (Argp): Reword argp_parse description slightly.
77821
77822 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
77823
77824         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
77825         (FE_UPWARD, FE_DOWNWARD): Don't define.
77826         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
77827         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
77828
77829         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
77830         reading it.
77831         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
77832         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
77833
77834 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
77835
77836         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
77837         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
77838         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
77839         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
77840
77841 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
77842
77843         [BZ #14117]
77844         * sysdeps/i386/fpu/bits/fenv.h: Removed.
77845         * sysdeps/i386/fpu/Implies: New file.
77846         * sysdeps/x86_64/fpu/Implies: Likewise.
77847         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
77848         * sysdeps/x86/fpu/bits/fenv.h: This.
77849
77850         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
77851         __SSE_MATH__.
77852
77853 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
77854
77855         [BZ #14134]
77856         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
77857         character 0xffff that matches the last element of the
77858         conversion table.
77859
77860 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77861
77862         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
77863         fmodl commit.
77864
77865 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77866
77867         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
77868         values higher than 25.6283.
77869
77870 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77871
77872         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
77873         subnormal exponent extraction and add some __builtin_expect.
77874         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
77875         Fix for subnormal mantissa calculation.
77876
77877 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
77878
77879         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
77880         cpu2 is -1 and errno is not ENOSYS.
77881
77882 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
77883
77884         [BZ #14117]
77885         * sysdeps/i386/i486/bits/string.h: Renamed to ...
77886         * sysdeps/x86/bits/string.h: This.
77887         * sysdeps/x86_64/bits/string.h: Removed.
77888
77889         * sysdeps/i386/i486/bits/string.h: Define inline functions only
77890         if not compiling for x86-64, but compiling for >= i486.
77891
77892         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
77893         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
77894
77895         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
77896         New macro from Linux kernel 3.4.0.
77897         (FP_XSTATE_MAGIC2): Likewise.
77898         (FP_XSTATE_MAGIC2_SIZE): Likewise.
77899         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
77900         (struct _fpx_sw_bytes): New struct.
77901         (struct _xsave_hdr): Likewise.
77902         (struct _ymmh_state): Likewise.
77903         (struct _xstate): Likewise.
77904
77905         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
77906         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
77907         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
77908         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
77909         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
77910         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
77911
77912         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
77913         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
77914         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
77915         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
77916         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
77917         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
77918
77919 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
77920
77921         [BZ #13743]
77922         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
77923         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
77924         (sysdep_headers): Include sys/platform/ppc.h.
77925         * sysdeps/powerpc/test-gettimebase.c: Test for
77926         __ppc_get_timebase() to catch future ISA opcode/insn changes.
77927         * manual/Makefile (appendices): Include platform.texi.
77928         * manual/contrib.texi (Contributors): Update @node pointers.
77929         * manual/maint.texi (Maintenance): Likewise.
77930         (Platform): New node.
77931         * manual/platform.texi: New file.  Document the new features.
77932
77933 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
77934             Jakub Jelinek  <jakub@redhat.com>
77935
77936         [BZ #14188]
77937         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
77938         where __builtin_expect is unavailable.
77939
77940 2012-06-03  David S. Miller  <davem@davemloft.net>
77941
77942         * stdlib/longlong.h: Updated from GCC.
77943
77944 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
77945
77946         [BZ #14042]
77947         * sysdeps/powerpc/powerpc32/mcount.c: New file.
77948         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
77949         __mcount_internal.
77950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
77951         (GLIBC_2.16): Likewise.
77952
77953 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
77954
77955         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
77956
77957 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
77958
77959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
77960         (default-abi): New variable.
77961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
77962         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
77963         variable.
77964         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
77965         Likewise.
77966         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
77967         Likewise.
77968         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
77969         Likewise.
77970
77971         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
77972         definition.  Document in comment.
77973
77974 2012-06-01  David S. Miller  <davem@davemloft.net>
77975
77976         * stdlib/longlong.h: Updated from GCC.
77977
77978 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
77979
77980         [BZ #14117]
77981         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
77982         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
77983         sys/debugreg.h sys/io.h here.
77984         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
77985         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
77986         sys/io.h.
77987         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
77988         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
77989         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
77990         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
77991         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
77992         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
77993
77994         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
77995         Define only if __x86_64__ is defined.
77996
77997 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
77998
77999         [BZ #14048]
78000         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
78001         Use int64_t for variable i.
78002         * math/libm-test.inc (fmod_test): Add more tests.
78003
78004         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
78005         z computation is not scheduled after fetestexcept.
78006         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
78007         Use math_force_eval instead of asm to ensure calculation scheduled
78008         before exception test.
78009         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
78010         Ensure a1 + u.d computation is not scheduled after fetestexcept.
78011
78012 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
78013
78014         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
78015         computation is not scheduled after fetestexcept.
78016
78017 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
78018
78019         [BZ #14117]
78020         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
78021         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
78022
78023 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78024
78025         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
78026         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
78027
78028 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
78029
78030         [BZ #14117]
78031         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
78032         <bits/wordsize.h>.
78033         (__WCHAR_MIN): Support __WORDSIZE == 64.
78034         (__WCHAR_MAX): Likewise.
78035
78036         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
78037         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
78038
78039         [BZ #14183]
78040         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
78041         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
78042
78043         [BZ #14117]
78044         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
78045         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
78046
78047         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
78048         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
78049
78050         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
78051         Defined to 1 if __x86_64__ isn't defined.
78052         (_STAT_VER_LINUX_OLD): New.
78053         (st_atime): Remove duplicate.
78054         (st_mtime): Likewise.
78055         (st_ctime): Likewise.
78056
78057 2012-05-31  David S. Miller  <davem@davemloft.net>
78058
78059         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
78060         entries.
78061
78062 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
78063
78064         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
78065         gen-libm-test.pl.
78066
78067         [BZ #14132]
78068         * elf/dl-reloc.c: Include <_itoa.h>.
78069         (_dl_reloc_bad_type): Remove use of INTUSE.
78070         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
78071         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
78072         * stdio-common/psiginfo.c (psiginfo): Likewise.
78073         * stdio-common/psignal.c (psignal): Likewise.
78074         * string/strsignal.c (strsignal): Likewise.
78075         * include/signal.h (_sys_siglist): Declare hidden proto.
78076         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
78077         INTVARDEF with libc_hidden_data_def.
78078         * stdio-common/itoa-udigits.c: Likewise.
78079         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
78080         (_itoa_lower_digits_internal): Remove declaration.
78081         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
78082         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
78083         (_sys_sigabbrev_internal): Remove aliases.
78084         (_sys_siglist): Define hidden alias.
78085
78086 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
78087
78088         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
78089         bits/sysctl.h.
78090
78091 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
78092
78093         [BZ #14117]
78094         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
78095         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
78096
78097         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
78098         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
78099         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
78100         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
78101         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
78102         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
78103
78104         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
78105         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
78106         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
78107
78108         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
78109         with __addr.
78110         (insw): Likewise.
78111         (insl): Likewise.
78112         (outsb): Likewise.
78113         (outsw): Likewise.
78114         (outsl): Likewise.
78115
78116         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
78117         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
78118         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
78119
78120         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
78121         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
78122         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
78123         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
78124         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
78125         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
78126
78127         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
78128         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
78129
78130         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
78131         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
78132
78133         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
78134         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
78135         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
78136
78137         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
78138         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
78139         to ...
78140         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
78141
78142         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
78143         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
78144         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
78145
78146         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
78147         for x86-64.
78148         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
78149
78150 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
78151
78152         * math/math.h (M_El): Use two more decimal places.
78153         (M_LOG2El): Likewise.
78154         (M_LOG10El): Likewise.
78155         (M_LN2l): Likewise.
78156         (M_LN10l): Likewise.
78157         (M_PIl): Likewise.
78158         (M_PI_2l): Likewise.
78159         (M_PI_4l): Likewise.
78160         (M_1_PIl): Likewise.
78161         (M_2_PIl): Likewise.
78162         (M_2_SQRTPIl): Likewise.
78163         (M_SQRT2l): Likewise.
78164         (M_SQRT1_2l): Likewise.
78165
78166 2012-05-31  David S. Miller  <davem@davemloft.net>
78167
78168         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
78169         values between float registers.
78170         * sysdeps/sparc/sparc64/memset.S: Likewise.
78171         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
78172
78173 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
78174
78175         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
78176         -D_FORTIFY_SOURCE=1.
78177         (CPPFLAGS-tst-longjmp_chk.c): Define.
78178         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
78179         (CPPFLAGS-tst-longjmp_chk2.c): Define.
78180         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
78181         CFLAGS-tst-wchar-h.c.
78182
78183 2012-05-31  Marek Polacek  <polacek@redhat.com>
78184
78185         [BZ #14132]
78186         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
78187         __endmntent_internal): Remove declaration.
78188         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
78189         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
78190         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
78191
78192 2012-05-30  David S. Miller  <davem@davemloft.net>
78193
78194         * sysdeps/sparc/sparc32/soft-fp/q_util.c
78195         (___Q_simulate_exceptions): Use real FP ops rather than writing
78196         into the %fsr.
78197         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
78198         Likewise.
78199
78200 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
78201
78202         [BZ #14117]
78203         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
78204         * sysdeps/x86/bits/xtitypes.h: This.
78205
78206         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
78207         * sysdeps/x86/bits/wordsize.h: This.
78208
78209         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
78210         * sysdeps/x86/bits/huge_vall.h: This.
78211
78212         * sysdeps/i386/bits/select.h: Removed.
78213         * sysdeps/x86_64/bits/select.h: Renamed to ...
78214         * sysdeps/x86/bits/select.h: This.
78215
78216         * sysdeps/i386/bits/setjmp.h: Removed.
78217         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
78218         * sysdeps/x86/bits/setjmp.h: This.
78219
78220         * sysdeps/i386/bits/mathdef.h: Removed.
78221         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
78222         * sysdeps/x86/bits/mathdef.h: This.
78223
78224 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
78225
78226         [BZ #14132]
78227         * include/sys/socket.h (__connect_internal)
78228         (__libc_sa_len_internal): Remove declaration.
78229         (__connect, __libc_sa_len): Declare hidden_proto.
78230         (SA_LEN): Remove use of INTUSE.
78231         * socket/connect.c: Add libc_hidden_def.
78232         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
78233         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
78234         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
78235         alias.
78236         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
78237         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
78238         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
78239         of adding _internal alias.
78240
78241 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
78242
78243         [BZ #14117]
78244         * sysdeps/i386/bits/link.h: Removed.
78245         * sysdeps/i386/bits/linkmap.h: Likewise.
78246         * sysdeps/x86_64/bits/link.h: Renamed to ...
78247         * sysdeps/x86/bits/link.h: This.
78248         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
78249         * sysdeps/x86/bits/linkmap.h: This.
78250
78251         * sysdeps/i386/bits/endian.h: Removed.
78252         * sysdeps/x86_64/bits/endian.h: Renamed to ...
78253         * sysdeps/x86/bits/endian.h: This.
78254
78255         * sysdeps/i386/bits/byteswap.h: Removed.
78256         * sysdeps/i386/bits/byteswap-16.h: Likewise.
78257         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
78258         * sysdeps/x86/bits/byteswap.h: This.
78259         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
78260         * sysdeps/x86/bits/byteswap-16.h: This.
78261         * sysdeps/i386/Implies: Add x86.
78262         * sysdeps/x86_64/Implies: Likewise.
78263
78264 2012-05-30  David S. Miller  <davem@davemloft.net>
78265
78266         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
78267         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
78268         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
78269         (FP_TRAPPING_EXCEPTIONS): Define.
78270         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
78271         (FP_TRAPPING_EXCEPTIONS): Define.
78272         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
78273         subnormals only when inexact has been signalled or underflow
78274         exceptions are enabled.
78275         (_FP_PACK_CANONICAL): Likewise.
78276
78277 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
78278
78279         [BZ #14183]
78280         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
78281         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
78282
78283 2012-05-30  Richard Henderson  <rth@twiddle.net>
78284
78285         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
78286         with #ifndef NOT_IN_libc.
78287
78288         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
78289         marked to avoid plt entry.
78290
78291 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
78292
78293         [BZ #14112]
78294         * Makeconfig (default-abi): New macro.
78295         (abi-includes): Likewise.
78296         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
78297         $(abi-$(default-abi)-lib-soname) for soname if defined.
78298         ($(common-objpfx)gnu/lib-names.stmp): Generate from
78299         abi-variants.
78300         * Makefile (installed-stubs): Likewise.
78301         * include/stubs-biarch.h: Removed.
78302         * scripts/lib-names.awk: Only handle one library at a time.
78303         * scripts/soversions.awk: Remove WORDSIZE support.
78304         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
78305         entries.
78306         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
78307         Removed.
78308         (syscall-list-default-condition): Likewise.
78309         (syscall-list-default-condition): Likewise.
78310         (syscall-list-includes): Likewise.
78311         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
78312         syscall-list-* with abi-*.  Handle undefined abi-variants.
78313         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
78314         * sysdeps/unix/sysv/linux/i386/Implies: New file.
78315         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
78316         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
78317         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
78318         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
78319         Removed.
78320         (syscall-list-32-options): Likewise.
78321         (syscall-list-32-condition): Likewise.
78322         (syscall-list-64-options): Likewise.
78323         (syscall-list-64-condition): Likewise.
78324         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
78325         macro.
78326         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
78327         Renamed to ...
78328         (abi-*): This.
78329         (abi-64-ld-soname): New macro.
78330         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
78331         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
78332         Renamed to ...
78333         (abi-*): This.
78334         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
78335         * sysdeps/x86_64/x32/shlib-versions: Likewise.
78336
78337 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
78338
78339         * sysdeps/unix/sysv/linux/kernel-features.h
78340         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
78341         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
78342         include <kernel-features.h>.
78343         [!__NR_ftruncate64]: Remove conditional code.
78344         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78345         [__NR_ftruncate64]: Make code unconditional.
78346         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78347         * sysdeps/unix/sysv/linux/truncate64.c: Do not
78348         include <kernel-features.h>.
78349         [!__NR_ftruncate64]: Remove conditional code.
78350         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78351         [__NR_ftruncate64]: Make code unconditional.
78352         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
78354         include <kernel-features.h>.
78355         [!__NR_ftruncate64]: Remove conditional code.
78356         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78357         [__NR_ftruncate64]: Make code unconditional.
78358         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
78360         include <kernel-features.h>.
78361         [!__NR_ftruncate64]: Remove conditional code.
78362         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78363         [__NR_ftruncate64]: Make code unconditional.
78364         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
78365
78366         * configure.in (libc_cv_fpie): Weaken to a compile test using
78367         LIBC_TRY_CC_OPTION.
78368         * configure: Regenerated.
78369
78370 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78371
78372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
78373         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
78374         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
78375         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
78376         Refreshed.
78377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
78378         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
78379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
78380         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
78381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
78382         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
78383         Refreshed.
78384
78385 2012-05-27  David S. Miller  <davem@davemloft.net>
78386
78387         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
78388         (___Q_zero): New.
78389         (__Q_simulate_exceptions): Return void.  Change to simulate
78390         exceptions by writing into the %fsr.
78391         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
78392         (__Qp_handle_exceptions): Likewise.
78393         (numbers): Delete.
78394         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
78395         __Qp_handle_exceptions.
78396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
78397         __Qp_handle_exceptions.
78398         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
78399         as unused and give dummy FP_RND_NEAREST initializer.
78400         (FP_INHIBIT_RESULTS): Define.
78401         (___Q_simulate_exceptions): Update declaration.
78402         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
78403         formatting.
78404         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
78405         as unused and give dummy FP_RND_NEAREST initializer.
78406         (__Qp_handle_exceptions): Update declaration.
78407         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
78408         formatting.
78409
78410 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
78411
78412         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
78413         the temporary FPU control word.
78414         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
78415         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
78416         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
78417         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
78418         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
78419         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
78420         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
78421         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
78422         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
78423         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
78424         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
78425
78426 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
78427
78428         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
78429         fields.
78430
78431 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
78432
78433         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
78434         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
78435         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
78436         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
78437         Likewise.
78438         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
78439         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
78440         Likewise.
78441
78442 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
78443
78444         * po/h.po: Update from translation team.
78445
78446 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
78447
78448         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
78449
78450         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
78451         handling of denormals.
78452         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
78453         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
78454         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
78455         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
78456         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
78457         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
78458         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
78459         Likewise.
78460
78461 2012-05-26  Marek Polacek  <polacek@redhat.com>
78462
78463         [BZ #14152]
78464         * math/libm-test.inc (fma_test): Don't always expect underflow
78465         exception.
78466
78467 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
78468
78469         [BZ #12416]
78470         * elf/tst-execstack.c: Include stackinfo.h.
78471         (do_test): Adjust test case to ensure that pthread_getattr_np
78472         behaviour remains the same after marking stack executable.
78473
78474 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
78475
78476         * sysdeps/unix/sysv/linux/kernel-features.h
78477         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
78478         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
78479         kernel-features.h.
78480         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
78481         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
78482         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
78483         kernel-features.h.
78484         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
78485         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
78486
78487 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
78488
78489         * configure.in: Define the default includes to being none.
78490         * configure: Regenerated.
78491
78492 2012-05-25  Roland McGrath  <roland@hack.frob.com>
78493
78494         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
78495         * sysdeps/x86_64/setjmp.S: Likewise.
78496         * sysdeps/i386/bsd-setjmp.S: Likewise.
78497         * sysdeps/i386/bsd-_setjmp.S: Likewise.
78498         * sysdeps/i386/setjmp.S: Likewise.
78499         * sysdeps/i386/__longjmp.S: Likewise.
78500         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
78501         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
78502
78503         * include/stap-probe.h: New file.
78504         * configure.in: Handle --enable-systemtap.
78505         * configure: Regenerated.
78506         * config.h.in (USE_STAP_PROBE): New #undef.
78507         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
78508         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
78509         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
78510
78511 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
78512
78513         [BZ #13717]
78514         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
78515         to 2.4.0 where earlier.
78516         * sysdeps/unix/sysv/linux/configure: Regenerated.
78517         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
78518         <kernel-features.h>.
78519         [__ASSUME_32BITUIDS]: Make code unconditional.
78520         [!__ASSUME_32BITUIDS]: Remove conditional code.
78521         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
78522         <kernel-features.h>.
78523         [__ASSUME_32BITUIDS]: Make code unconditional.
78524         [!__ASSUME_32BITUIDS]: Remove conditional code.
78525         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
78526         [__ASSUME_32BITUIDS]: Make code unconditional.
78527         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
78528         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
78529         <kernel-features.h>.
78530         [__ASSUME_32BITUIDS]: Make code unconditional.
78531         [!__ASSUME_32BITUIDS]: Remove conditional code.
78532         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
78533         <kernel-features.h>.
78534         [__ASSUME_32BITUIDS]: Make code unconditional.
78535         [!__ASSUME_32BITUIDS]: Remove conditional code.
78536         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
78537         <kernel-features.h>.
78538         [__ASSUME_32BITUIDS]: Make code unconditional.
78539         [!__ASSUME_32BITUIDS]: Remove conditional code.
78540         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
78541         <kernel-features.h>.
78542         [__ASSUME_32BITUIDS]: Make code unconditional.
78543         [!__ASSUME_32BITUIDS]: Remove conditional code.
78544         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
78545         <kernel-features.h>.
78546         [__ASSUME_32BITUIDS]: Make code unconditional.
78547         [!__ASSUME_32BITUIDS]: Remove conditional code.
78548         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
78549         <kernel-features.h>.
78550         [__ASSUME_32BITUIDS]: Make code unconditional.
78551         [!__ASSUME_32BITUIDS]: Remove conditional code.
78552         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
78553         <kernel-features.h>.
78554         [__ASSUME_32BITUIDS]: Make code unconditional.
78555         [!__ASSUME_32BITUIDS]: Remove conditional code.
78556         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
78557         <kernel-features.h>.
78558         [__ASSUME_32BITUIDS]: Make code unconditional.
78559         [!__ASSUME_32BITUIDS]: Remove conditional code.
78560         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
78561         <kernel-features.h>.
78562         [__ASSUME_32BITUIDS]: Make code unconditional.
78563         [!__ASSUME_32BITUIDS]: Remove conditional code.
78564         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
78565         <kernel-features.h>.
78566         [__ASSUME_32BITUIDS]: Make code unconditional.
78567         [!__ASSUME_32BITUIDS]: Remove conditional code.
78568         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
78569         <kernel-features.h>.
78570         [__NR_setresgid] (__setresgid): Do not declare.
78571         [__ASSUME_32BITUIDS]: Make code unconditional.
78572         [!__ASSUME_32BITUIDS]: Remove conditional code.
78573         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
78574         <kernel-features.h>.
78575         [__NR_setresuid] (__setresuid): Do not declare.
78576         [__ASSUME_32BITUIDS]: Make code unconditional.
78577         [!__ASSUME_32BITUIDS]: Remove conditional code.
78578         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
78579         <kernel-features.h>.
78580         [__ASSUME_32BITUIDS]: Make code unconditional.
78581         [!__ASSUME_32BITUIDS]: Remove conditional code.
78582         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
78583         <kernel-features.h>.
78584         [__ASSUME_32BITUIDS]: Make code unconditional.
78585         [!__ASSUME_32BITUIDS]: Remove conditional code.
78586         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
78587         <kernel-features.h>.
78588         [__ASSUME_32BITUIDS]: Make code unconditional.
78589         [!__ASSUME_32BITUIDS]: Remove conditional code.
78590         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
78591         <kernel-features.h>.
78592         [__ASSUME_32BITUIDS]: Make code unconditional.
78593         [!__ASSUME_32BITUIDS]: Remove conditional code.
78594         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
78595         <kernel-features.h>.
78596         [__ASSUME_32BITUIDS]: Make code unconditional.
78597         [!__ASSUME_32BITUIDS]: Remove conditional code.
78598         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
78599         <kernel-features.h>.
78600         [__ASSUME_32BITUIDS]: Make code unconditional.
78601         [!__ASSUME_32BITUIDS]: Remove conditional code.
78602         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
78603         <kernel-features.h>.
78604         [__ASSUME_32BITUIDS]: Make code unconditional.
78605         [!__ASSUME_32BITUIDS]: Remove conditional code.
78606         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
78607         <kernel-features.h>.
78608         [__ASSUME_32BITUIDS]: Make code unconditional.
78609         [!__ASSUME_32BITUIDS]: Remove conditional code.
78610         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
78611         <kernel-features.h>.
78612         [__ASSUME_32BITUIDS]: Make code unconditional.
78613         [!__ASSUME_32BITUIDS]: Remove conditional code.
78614         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
78615         <kernel-features.h>.
78616         [__ASSUME_32BITUIDS]: Make code unconditional.
78617         [!__ASSUME_32BITUIDS]: Remove conditional code.
78618         * sysdeps/unix/sysv/linux/kernel-features.h
78619         (__ASSUME_SETRESUID_SYSCALL): Remove.
78620         (__ASSUME_SETRESGID_SYSCALL): Likewise.
78621         (__ASSUME_32BITUIDS): Likewise.
78622         (__ASSUME_LDT_WORKS): Likewise.
78623         (__ASSUME_O_DIRECTORY): Likewise.
78624         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
78625         architecture but not kernel version.
78626         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
78627         (__ASSUME_MMAP2_SYSCALL): Likewise.
78628         (__ASSUME_STAT64_SYSCALL): Likewise.
78629         (__ASSUME_IPC64): Likewise.
78630         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
78631         <kernel-features.h>.
78632         [__ASSUME_32BITUIDS]: Make code unconditional.
78633         [!__ASSUME_32BITUIDS]: Remove conditional code.
78634         * sysdeps/unix/sysv/linux/opendir.c: Do not include
78635         <kernel-features.h>.
78636         [__ASSUME_O_DIRECTORY]: Make code unconditional.
78637         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
78638         132096]: Remove conditional code.
78639         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
78640         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
78641         <kernel-features.h>.
78642         [__ASSUME_32BITUIDS]: Make code unconditional.
78643         [!__ASSUME_32BITUIDS]: Remove conditional code.
78644         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
78645         <kernel-features.h>.
78646         [__ASSUME_32BITUIDS]: Make code unconditional.
78647         [!__ASSUME_32BITUIDS]: Remove conditional code.
78648         * sysdeps/unix/sysv/linux/setegid.c: Do not include
78649         <kernel-features.h>.
78650         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
78651         unconditional.
78652         (__setresgid): Do not declare.
78653         [__ASSUME_32BITUIDS]: Make code unconditional.
78654         [!__ASSUME_32BITUIDS]: Remove conditional code.
78655         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
78656         <kernel-features.h>.
78657         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
78658         unconditional.
78659         (__setresuid): Do not declare.
78660         [__ASSUME_32BITUIDS]: Make code unconditional.
78661         [!__ASSUME_32BITUIDS]: Remove conditional code.
78662         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
78663         <kernel-features.h>.
78664         [__ASSUME_32BITUIDS]: Make code unconditional.
78665         [!__ASSUME_32BITUIDS]: Remove conditional code.
78666         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
78667         <kernel-features.h>.
78668         [__ASSUME_32BITUIDS]: Make code unconditional.
78669         [!__ASSUME_32BITUIDS]: Remove conditional code.
78670
78671 2012-05-25  Richard Henderson  <rth@twiddle.net>
78672
78673         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
78674         dl_hwcap to ifunc resolver.
78675         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
78676         elf_ifunc_invoke.
78677         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
78678         dl_hwcap to ifunc resolver.
78679         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
78680
78681 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
78682
78683         [BZ #14153]
78684         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
78685         for |x| <= 2**-26, not 2**-57.
78686         * math/libm-test.inc (acos_test): Do not allow spurious underflow
78687         exception.
78688
78689 2012-05-24  Jeff Law  <law@redhat.com>
78690
78691         * stdio-common/Makefile (tests): Add bug25.
78692         * stdio-common/bug25.c: New test.
78693
78694 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
78695
78696         [BZ #13576]
78697         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
78698         multiple of MALLOC_ALIGNMENT in size.
78699         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
78700
78701 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
78702
78703         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
78704         Require >= 256.
78705         (FILENAME_MAX): Use macro-int-constant.
78706         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
78707         (_IOFBF): Use macro-int-constant.
78708         (_IOLBF): Likewise.
78709         (_IONBF): Likewise.
78710         (SEEK_CUR): Likewise.
78711         (SEEK_END): Likewise.
78712         (SEEK_SET): Likewise.
78713         (TMP_MAX): Likewise.
78714         (EOF): Use macro-int-constant.  Require < 0.
78715         (NULL): Use macro-constant.  Require == 0.
78716         (stdin): Require type to be FILE *.
78717         (stdout): Likewise.
78718         (stderr): Likewise.
78719         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
78720         macro-int-constant.
78721         (EXIT_SUCCESS): Likewise.
78722         (NULL): Use macro-constant.  Require == 0.
78723         (RAND_MAX): Use macro-int-constant.
78724         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
78725         [C99-based standards] (strtof): Require function.
78726         [C99-based standards] (strtold): Likewise.
78727         [C99-based standards] (strtoll): Likewise.
78728         [C99-based standards] (strtoull): Likewise.
78729         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
78730         [ISO || ISO99 || ISO11] (limits.h): Likewise.
78731         [ISO || ISO99 || ISO11] (math.h): Likewise.
78732         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
78733         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
78734         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78735
78736 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
78737
78738         [BZ #14132]
78739         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
78740         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
78741         * intl/dgettext.c (DCGETTEXT): Likewise.
78742         * intl/gettext.c (DCGETTEXT): Likewise.
78743         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
78744         * posix/regex_internal.h (gettext): Likewise.
78745         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
78746         Remove declaration.
78747         * include/argz.h (__argz_count_internal)
78748         (__argz_stringify_internal): Remove declaration.
78749         (__argz_count, __argz_stringify): Declare hidden proto.
78750         * intl/dcgettext.c: Remove use of INTDEF.
78751         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
78752         * string/argz-stringify.c: Likewise.
78753         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
78754         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
78755         Declare hidden proto.
78756         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
78757         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
78758         Declare hidden proto.
78759         * include/stdio.h (__asprintf_internal): Don't declare.
78760         (__asprintf): Don't define as macro.  Declare hidden proto.
78761         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
78762         (__fsetlocking): Declare hidden proto.
78763         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
78764         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
78765         hidden proto.
78766         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
78767         (_IO_setlinebuf): Remove use of INTUSE.
78768         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
78769         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
78770         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
78771         Remove declaration.
78772         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
78773         (_IO_do_flush): Remove use of INTUSE.
78774         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
78775         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
78776         (_IO_adjust_column, _IO_least_wmarker)
78777         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
78778         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
78779         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
78780         (_IO_default_doallocate, _IO_wdefault_doallocate)
78781         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
78782         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
78783         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
78784         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
78785         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
78786         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
78787         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
78788         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
78789         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
78790         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
78791         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
78792         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
78793         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
78794         proto.
78795         (_IO_flush_all_internal, _IO_adjust_column_internal)
78796         (_IO_default_uflow_internal, _IO_default_finish_internal)
78797         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
78798         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
78799         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
78800         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
78801         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
78802         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
78803         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
78804         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
78805         (_IO_file_close_internal, _IO_file_close_it_internal)
78806         (_IO_file_underflow_internal, _IO_file_overflow_internal)
78807         (_IO_file_init_internal, _IO_file_attach_internal)
78808         (_IO_file_fopen_internal, _IO_file_read_internal)
78809         (_IO_file_sync_internal, _IO_file_seek_internal)
78810         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
78811         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
78812         (_IO_str_underflow_internal, _IO_str_overflow_internal)
78813         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
78814         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
78815         (_IO_list_all_internal, _IO_link_in_internal)
78816         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
78817         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
78818         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
78819         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
78820         (_IO_do_write_internal, _IO_padn_internal)
78821         (_IO_getline_info_internal, _IO_getline_internal)
78822         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
78823         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
78824         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
78825         (_IO_vfscanf_internal, _IO_vfprintf_internal)
78826         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
78827         (_IO_init_internal, _IO_un_link_internal): Don't declare.
78828         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
78829         with libc_hidden_ver, remove use of INTUSE.
78830         * libio/genops.c: Likewise.
78831         * libio/freopen.c: Likewise.
78832         * libio/freopen64.c: Likewise.
78833         * libio/iofclose.c: Likewise.
78834         * libio/iofdopen.c: Likewise.
78835         * libio/iofflush.c: Likewise.
78836         * libio/iofflush_u.c: Likewise.
78837         * libio/iofgets.c: Likewise.
78838         * libio/iofgets_u.c: Likewise.
78839         * libio/iofopen.c: Likewise.
78840         * libio/iofopncook.c: Likewise.
78841         * libio/iofread.c: Likewise.
78842         * libio/iofread_u.c: Likewise.
78843         * libio/ioftell.c: Likewise.
78844         * libio/iofwrite.c: Likewise.
78845         * libio/iogetline.c: Likewise.
78846         * libio/iogets.c: Likewise.
78847         * libio/iogetwline.c: Likewise.
78848         * libio/iopadn.c: Likewise.
78849         * libio/iopopen.c: Likewise.
78850         * libio/ioseekoff.c: Likewise.
78851         * libio/ioseekpos.c: Likewise.
78852         * libio/iosetbuffer.c: Likewise.
78853         * libio/iosetvbuf.c: Likewise.
78854         * libio/ioungetc.c: Likewise.
78855         * libio/ioungetwc.c: Likewise.
78856         * libio/iovdprintf.c: Likewise.
78857         * libio/iovsprintf.c: Likewise.
78858         * libio/iovsscanf.c: Likewise.
78859         * libio/memstream.c: Likewise.
78860         * libio/obprintf.c: Likewise.
78861         * libio/oldfileops.c: Likewise.
78862         * libio/oldiofclose.c: Likewise.
78863         * libio/oldiofdopen.c: Likewise.
78864         * libio/oldiofopen.c: Likewise.
78865         * libio/oldiopopen.c: Likewise.
78866         * libio/oldstdfiles.c: Likewise.
78867         * libio/putc.c: Likewise.
78868         * libio/setbuf.c: Likewise.
78869         * libio/setlinebuf.c: Likewise.
78870         * libio/stdfiles.c: Likewise.
78871         * libio/strops.c: Likewise.
78872         * libio/vasprintf.c: Likewise.
78873         * libio/vscanf.c: Likewise.
78874         * libio/vsnprintf.c: Likewise.
78875         * libio/vswprintf.c: Likewise.
78876         * libio/wfiledoalloc.c: Likewise.
78877         * libio/wfileops.c: Likewise.
78878         * libio/wgenops.c: Likewise.
78879         * libio/wmemstream.c: Likewise.
78880         * libio/wstrops.c: Likewise.
78881         * libio/__fpurge.c: Likewise.
78882         * libio/__fsetlocking.c: Likewise.
78883         * assert/assert.c: Likewise.
78884         * debug/fgets_chk.c: Likewise.
78885         * debug/fgets_u_chk.c: Likewise.
78886         * debug/fread_chk.c: Likewise.
78887         * debug/fread_u_chk.c: Likewise.
78888         * debug/gets_chk.c: Likewise.
78889         * debug/obprintf_chk.c: Likewise.
78890         * debug/vasprintf_chk.c: Likewise.
78891         * debug/vdprintf_chk.c: Likewise.
78892         * debug/vsnprintf_chk.c: Likewise.
78893         * debug/vsprintf_chk.c: Likewise.
78894         * malloc/mtrace.c: Likewise.
78895         * misc/error.c: Likewise.
78896         * misc/syslog.c: Likewise.
78897         * stdio-common/asprintf.c: Likewise.
78898         * stdio-common/fxprintf.c: Likewise.
78899         * stdio-common/getw.c: Likewise.
78900         * stdio-common/isoc99_fscanf.c: Likewise.
78901         * stdio-common/isoc99_scanf.c: Likewise.
78902         * stdio-common/isoc99_vfscanf.c: Likewise.
78903         * stdio-common/isoc99_vscanf.c: Likewise.
78904         * stdio-common/isoc99_vsscanf.c: Likewise.
78905         * stdio-common/printf-prs.c: Likewise.
78906         * stdio-common/printf_fp.c: Likewise.
78907         * stdio-common/printf_fphex.c: Likewise.
78908         * stdio-common/printf_size.c: Likewise.
78909         * stdio-common/putw.c: Likewise.
78910         * stdio-common/scanf.c: Likewise.
78911         * stdio-common/sprintf.c: Likewise.
78912         * stdio-common/tmpfile.c: Likewise.
78913         * stdio-common/vfprintf.c: Likewise.
78914         * stdio-common/vfscanf.c: Likewise.
78915         * stdlib/strfmon_l.c: Likewise.
78916         * sunrpc/openchild.c: Likewise.
78917         * sunrpc/xdr_stdio.c: Likewise.
78918         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
78919         * sysdeps/mach/hurd/tmpfile.c: Likewise.
78920
78921 2012-05-24  Roland McGrath  <roland@hack.frob.com>
78922
78923         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
78924
78925         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
78926         in the third column, to generate for the shared library an IFUNC
78927         that uses _dl_vdso_vsym.
78928         * Makerules (COMPILE.c, compile-stdin.c): New variables.
78929         * Makeconfig (object-suffixes-noshared): New variable.
78930
78931         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
78932         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
78933         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
78934         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
78935
78936         [BZ #14132]
78937         * include/sys/time.h (__gettimeofday): Remove macro.
78938         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
78939         * time/gettimeofday.c (__gettimeofday): Remove #undef.
78940         Remove INTDEF.
78941         (__gettimeofday): Add libc_hidden_def.
78942         (gettimeofday): Add libc_hidden_weak.
78943         * sysdeps/mach/gettimeofday.c: Likewise.
78944         * sysdeps/posix/gettimeofday.c: Likewise.
78945         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
78946         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
78947         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
78948         (__gettimeofday_internal): Remove strong_alias.
78949         (__gettimeofday): Add libc_hidden_def.
78950         (gettimeofday): Add libc_hidden_weak.
78951         * sysdeps/unix/syscalls.list (gettimeofday):
78952         Remove __gettimeofday_internal alias.
78953
78954 2012-05-24  Daniel Jacobowitz  <drow@false.org>
78955             H.J. Lu  <hongjiu.lu@intel.com>
78956
78957         [BZ #12495]
78958         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
78959         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
78960         (largebin_index_32_big): New.
78961         (largebin_index): Use it for 16-byte alignment.
78962         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
78963         correction with front_misalign.
78964
78965 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
78966
78967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
78968         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
78969         Likewise.
78970         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
78971         Likewise.
78972         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
78973         Likewise.
78974         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
78975         Likewise.
78976         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
78977         Likewise.
78978         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
78979         Likewise.
78980         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
78981         Likewise.
78982         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
78983         Likewise.
78984         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
78985         Likewise.
78986         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
78987         Likewise.
78988         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
78989         Likewise.
78990         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
78991         Likewise.
78992
78993         * scripts/data/c++-types-x32-linux-gnu.data: New file.
78994         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
78995
78996 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
78997
78998         [BZ #10846]
78999         [BZ #14036]
79000         * math/libm-test.inc (exp_test): Add test from bug 14036.
79001         (pow_test): Add test from bug 10846.
79002
79003         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
79004         and other flags.
79005         (special_function): Do not include flags in test name.
79006         (parse_args): Likewise.
79007         * sysdeps/i386/fpu/libm-test-ulps: Update.
79008         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
79009         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
79010         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
79011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79012
79013         * math/gen-libm-test.pl (%beautify): Add entries for underflow
79014         exceptions.
79015         * math/libm-test.inc ("Philosophy"): Update comment about
79016         exception testing.
79017         (UNDERFLOW_EXCEPTION): New macro.
79018         (UNDERFLOW_EXCEPTION_OK): Likewise.
79019         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
79020         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
79021         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
79022         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
79023         (INVALID_EXCEPTION_OK): Update value.
79024         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
79025         (OVERFLOW_EXCEPTION_OK): Likewise.
79026         (IGNORE_ZERO_INF_SIGN): Likewise.
79027         (test_exceptions): Handle underflow exceptions.
79028         (acos_test): Update for underflow exception expectations.
79029         (cexp_test): Likewise.
79030         (clog_test): Likewise.
79031         (clog10_test): Likewise.
79032         (csqrt_test): Likewise.
79033         (ctan_test): Likewise.
79034         (ctanh_test): Likewise.
79035         (exp_test): Likewise.
79036         (exp10_test): Likewise.
79037         (exp2_test): Likewise.
79038         (expm1_test): Likewise.
79039         (fma_test): Likewise.
79040         (j0_test): Likewise.
79041         (jn_test): Likewise.
79042         (nexttoward_test): Likewise.
79043         (pow_test): Likewise.
79044         (scalbn_test): Likewise.
79045         (scalbln_test): Likewise.
79046         (tan_test): Likewise.
79047         (y1_test): Likewise.
79048         * sysdeps/i386/fpu/libm-test-ulps: Update.
79049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79050
79051 2012-05-23  David S. Miller  <davem@davemloft.net>
79052
79053         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
79054         (__libc_sigaction): Remove unused local variables.
79055
79056 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
79057
79058         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
79059
79060 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         mktime: avoid signed integer overflow
79063         * time/mktime.c (__mktime_internal): Do not mishandle the case
79064         where diff == INT_MIN.
79065
79066         mktime: simplify computation of average
79067         * time/mktime.c (ranged_convert): Use new time_t_avg function
79068         instead of rolling our own (probably-slower) code.
79069
79070         mktime: do not assume signed right shift propagates sign bit
79071         * time/mktime.c (isdst_differ): New static function.
79072         (__mktime_internal): No need to normalize tm_isdst now.
79073         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
79074         tm_isdst values.
79075
79076         mktime: merge another wrapv change from gnulib
79077         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
79078         from some compilers.
79079
79080         mktime: remove incorrect attempt at unusual arithmetics
79081         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
79082         The code didn't really work on such machines anyway.
79083         (TYPE_MINIMUM): Assume two's complement.
79084         (twos_complement_arithmetic): Verify that long_int and time_t
79085         are two's complement (or unsigned, in the latter case).
79086
79087         mktime: check signed shifts on long_int and time_t, too
79088         * time/mktime.c (SHR): Check that shifts work as desired
79089         on the types long_int and time_t too, as SHR is used on
79090         such types.
79091
79092         mktime: do not assume 'long' is wide enough
79093         * time/mktime.c (verify): Move decl up.
79094         (long_int): New type.
79095         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
79096         to remove assumption in the code that 'long' is wide enough to
79097         store year values.  This assumption is not true on x32 and on
79098         some non-glibc platforms.
79099
79100         mktime: merge wrapv change from gnulib
79101         * time/mktime.c (WRAPV): New macro.
79102         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
79103         (guess_time_tm, __mktime_internal): Do not assume that signed
79104         integer overflow wraps around; modern compilers generate code
79105         where this assumption is no longer valid.
79106
79107 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
79108
79109         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
79110         Replace "jmp L(pseudo_end)" with "ret".
79111         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
79112         Likewise.
79113
79114 2012-05-23  Andreas Jaeger  <aj@suse.de>
79115
79116         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
79117         * sysdeps/unix/sysv/linux/poll.c: Remove file.
79118
79119 2012-05-23  Andreas Jaeger  <aj@suse.de>
79120             Maximilian Attems  <max@stro.at>
79121
79122         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
79123         New macros.
79124
79125 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
79126
79127         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
79128         code so that pseudo_end is just ret and the stack pointer is
79129         correct also for static library in error case.
79130
79131 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
79132
79133         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
79134         move to syscalls.list.
79135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
79136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
79137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
79138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
79139
79140         * manual/install.texi (Running make install): Do not mention Linux
79141         kernel version for which pt_chown is not needed.
79142         (Linux): Do not mention problems with nscd with 2.0 kernels.
79143         * INSTALL: Regenerated.
79144
79145 2012-05-23  Andreas Jaeger  <aj@suse.de>
79146
79147         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
79148         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
79149         macro.
79150         * sysdeps/unix/sysv/linux/s390/bits/mman.h
79151         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
79152         * sysdeps/unix/sysv/linux/sh/bits/mman.h
79153         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
79154         * sysdeps/unix/sysv/linux/i386/bits/mman.h
79155         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
79156         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
79157         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
79158         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
79159         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
79160         * sysdeps/unix/sysv/linux/bits/in.h
79161         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
79162
79163 2012-05-22  Roland McGrath  <roland@hack.frob.com>
79164
79165         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
79166         (PREPARE_VERSION): Just use assert instead, it will be elided
79167         under [NDEBUG] anyway.
79168
79169 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
79170
79171         * sysdeps/unix/sysv/linux/Makefile: Include
79172         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
79173         (sysdep_routines): Remove sysctl.
79174         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
79175         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
79176         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
79177         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
79178         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
79179
79180 2012-05-22  Andreas Jaeger  <aj@suse.de>
79181
79182         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
79183         that pseudo_end is just ret and the stack pointer is correct also
79184         for static library in error case.
79185
79186 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
79187
79188         [BZ #14122]
79189         * nss/nsswitch.c (defconfig_entries): New variable.
79190         (__nss_database_lookup): Don't leak defconfig entries.
79191         (nss_parse_service_list): Don't leak on error paths.
79192         (free_database_entries): New function.
79193         (free_defconfig): New function.
79194         (free_mem): Move common code to free_database_entries.
79195
79196 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
79197
79198         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
79199         Add arch_prctl.
79200         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
79201
79202         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
79203         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
79204         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
79205         New macro.
79206         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
79207         (INTERNAL_SYSCALL_TYPES): Likewise.
79208         (LOAD_ARGS_TYPES_[1-6]): Likewise.
79209         (LOAD_REGS_TYPES_[1-6]): Likewise.
79210         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
79211         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
79212
79213 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79214
79215         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
79216         copysignl for GLIBC_2_0.
79217         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
79218         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
79219         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
79220         logbl for GLIBC_2_0.
79221         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
79222         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
79223
79224 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
79225
79226         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
79227         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
79228
79229         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
79230         Use "neg %eax".
79231
79232         * time/mktime.c: Update copyright years.
79233
79234 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         mktime: merge comment-quoting-style change from gnulib
79237         * time/mktime.c: Quote 'like this' in comments.
79238         The GNU coding standards suggest that we no longer quote `like this',
79239         as "`" and "'" are typically rendered asymmetrically nowadays.
79240         The typical gnulib style is to quote 'like this' when quoting
79241         code, and "like this" when quoting English.
79242
79243         * time/mktime.c (compile-command): Add "-I.".
79244
79245         mktime: merge mktime-internal.h change from gnulib
79246         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
79247
79248         mktime: merge time_r change from gnulib
79249         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
79250
79251         mktime: merge DEBUG change from gnulib
79252         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
79253         case system <time.h> has a #define.
79254
79255         mktime: merge <sys/types.h> change from gnulib
79256         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
79257         since <time.t> is now guaranteed to define time_t.
79258
79259         mktime: merge HAVE_CONFIG_H change from gnulib
79260         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
79261
79262 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
79263
79264         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
79265         Use "neg %eax".
79266
79267         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
79268         __rlim_t cast.
79269         (struct rusage): Use anonymous union to pad each field to
79270         __syscall_slong_t.
79271
79272 2012-05-21  David S. Miller  <davem@davemloft.net>
79273
79274         * Makefules (o-iterator): Remove .s cases.
79275         (compile-command.s): Delete.
79276         (COMPILE.s): Delete.
79277         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
79278
79279 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
79280
79281         * configure.in (libc_cv_predef_stack_protector): Only consider
79282         "foobar" and "__stack_chk_fail" lines in libc_undefs.
79283         * configure: Regenerated.
79284
79285 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
79286
79287         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
79288         New macro.  Use R*LP on int and pointer.
79289         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
79290         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
79291         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
79292         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
79293
79294         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
79295         [__WORDSIZE_TIME64_COMPAT32] instead of
79296         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
79297         (struct utmp): Likewise.
79298         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
79299         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
79300         Renamed to ...
79301         (__WORDSIZE_TIME64_COMPAT32): This.
79302         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
79303         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
79304         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
79305         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
79306         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
79307         (__WORDSIZE_TIME64_COMPAT32): New macro.
79308
79309 2012-05-21  Andreas Jaeger  <aj@suse.de>
79310
79311         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
79312         only if [SHARED]. Add prototype for __wcschr_ia32.
79313
79314 2012-05-21  Roland McGrath  <roland@hack.frob.com>
79315
79316         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
79317         of %rbp unmolested in the jmp_buf while mangling the low bits.
79318         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
79319         unmolested high bits of %rbp while demangling the low bits.
79320         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
79321
79322 2012-05-21  Andreas Jaeger  <aj@suse.de>
79323
79324         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
79325         * sunrpc/svc_simple.c: Use it for registerrpc.
79326         * sunrpc/xcrypt.c: Use it for passwd2des.
79327
79328         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
79329
79330 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
79331
79332         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
79333         Don't define if [__SYSCALL_WORDSIZE != 32].
79334         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
79335         New macro.
79336
79337 2012-05-21  Bruno Haible  <bruno@clisp.org>
79338             Andreas Jaeger  <aj@suse.de>
79339
79340         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
79341         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
79342         inptr and inend for must_buffer_ch.
79343         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
79344         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
79345         * stdio-common/Makefile (tests): Remove bug15.
79346         (bug15-ENV): Remove macro.
79347         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
79348         anymore.
79349
79350 2012-05-19  Andreas Jaeger  <aj@suse.de>
79351             Roland McGrath  <roland@hack.frob.com>
79352
79353         * manual/contrib.texi: Completely rewritten. It contains now an
79354         alphabetical list of contributors and their contributions.
79355
79356 2012-05-21  Richard Henderson  <rth@twiddle.net>
79357
79358         * misc/getauxval.c (__getauxval): Use unsigned long int.
79359         * misc/sys/auxv.h: Include <sys/cdefs.h>.
79360         (getauxval): Use unsigned long int.
79361
79362 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
79363
79364         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
79365
79366 2012-05-21  Roland McGrath  <roland@hack.frob.com>
79367
79368         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
79369         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
79370         __alignof__ (long double).
79371
79372 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79373
79374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79375
79376 2012-05-20  Richard Henderson  <rth@twiddle.net>
79377
79378         * misc/getauxval.c: New file.
79379         * misc/sys/auxv.h: New file.
79380         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
79381         (routines): Add getauxval.
79382         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
79383         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
79384         * elf/dl-sysdep.c (_dl_auxv): Remove.
79385         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
79386         * elf/dl-support.c (_dl_auxv): New variable.
79387         (_dl_aux_init): Initialize it.
79388         * manual/startup.texi (Auxiliary Vector): New node.
79389         * sysdeps/generic/bits/hwcap.h: New file.
79390         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
79391         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
79392         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
79393         * sysdeps/sparc/sysdep.h: ... here.  Include it.
79394         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
79395         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
79396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
79397         Update.
79398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
79399         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
79400         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
79401         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
79402         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
79403         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
79404         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
79405         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
79406
79407 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79408
79409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79410
79411 2012-05-19  David S. Miller  <davem@davemloft.net>
79412
79413         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79414
79415 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
79416
79417         [BZ #14123]
79418         * math/s_ccosh.c: Include <float.h>
79419         (__ccosh): Avoid internal overflow calculating sinh and cosh
79420         values before multiplying by sin and cos values.
79421         * math/s_ccoshf.c: Likewise.
79422         * math/s_ccoshl.c: Likewise.
79423         * math/s_csin.c: Likewise.
79424         * math/s_csinf.c: Likewise.
79425         * math/s_csinl.c: Likewise.
79426         * math/s_csinh.c: Likewise.
79427         * math/s_csinhf.c: Likewise.
79428         * math/s_csinhl.c: Likewise.
79429         * math/libm-test.inc (ccos_test): Add more tests.
79430         (ccosh_test): Likewise.
79431         (csin_test): Likewise.
79432         (csinh_test): Likewise.
79433         * sysdeps/i386/fpu/libm-test-ulps: Update.
79434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79435
79436 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
79437
79438         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
79439         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
79440
79441         * sysdeps/x86_64/x32/_itoa.h: Add comment.
79442
79443 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
79444
79445         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
79446         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
79447         * sysdeps/powerpc/soft-fp/Versions: Likewise.
79448         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
79449         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
79450         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
79451         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
79452         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
79453         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
79454         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
79455         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
79456         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
79457         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
79458         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
79459         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
79460         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
79461         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
79462         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
79463         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
79464         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
79465         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
79466         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
79467         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
79468         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
79469         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
79470         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
79471         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
79472         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
79473         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
79474         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
79475         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
79476
79477 2012-05-18  Andreas Jaeger  <aj@suse.de>
79478
79479         * csu/.gitignore: Delete.
79480
79481 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
79482
79483         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
79484         (timex): Use __syscall_slong_t.
79485
79486 2012-05-18  Andreas Jaeger  <aj@suse.de>
79487             Carlos O'Donell  <carlos_odonell@mentor.com>
79488
79489         * manual/install.texi (Configuring and compiling): Update
79490         description about files modified in the source directory.
79491         * INSTALL: Regenerated.
79492
79493 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
79494
79495         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
79496         value.  Use "or" to set return value to -1.
79497         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
79498         negate return value.
79499
79500 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
79501
79502         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
79503         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
79504         failure if the compiler has Graphite support disabled.
79505         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
79506         Likewise.
79507         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
79508         (CFLAGS-memmove.c): Likewise.
79509         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
79510         Likewise.
79511
79512 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
79513
79514         * sysdeps/x86_64/x32/_itoa.h: New file.
79515
79516         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
79517         getdents system call only if kernel and user dirents have the
79518         same d_ino and d_off.
79519
79520         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
79521         LLONG_MAX != LONG_MAX.
79522         (_itoa_word): Use _ITOA_WORD_TYPE on value.
79523         (_fitoa_word): Likewise.
79524
79525         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
79526         years.
79527         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
79528         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
79529         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
79530
79531         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
79532         include <bits/wordsize.h>.  Check __x86_64__ instead of
79533         __WORDSIZE.
79534         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
79535         if __x86_64__ is defined.  Use anonymous union on fpstate.
79536
79537         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
79538         anonymous union.
79539
79540 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
79541
79542         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
79543         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
79544         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
79545         Refer to _rtld_local_ro instead of _rtld_global_ro.
79546         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
79547         Likewise.
79548         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
79549         Likewise.
79550         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
79551         Likewise.
79552         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
79553         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
79554         of _rtld_global, and rtld_progname instead of _dl_argv[0].
79555
79556         [BZ #10882]
79557         * sysdeps/powerpc/powerpc32/dl-machine.c
79558         (__elf_machine_runtime_setup) [PROF]: Don't reference
79559         _dl_prof_resolve.
79560
79561 2012-05-18  Andreas Jaeger  <aj@suse.de>
79562
79563         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
79564         function only available for GCCs before 3.4 since GCC 3.4
79565         introduced a builtin.
79566         (lrint): Likewise.
79567         (llrintf): Likewise.
79568         (llrint): Likewise.
79569         (fmaxf): Likewise.
79570         (fmax): Likewise.
79571         (fminf): Likewise.
79572         (fmin): Likewise.
79573         (rint): Likewise.
79574         (rintf): Likewise.
79575         (nearbyint): Likewise.
79576         (nearbyintf): Likewise.
79577         (ceil): Likewise.
79578         (ceilf): Likewise.
79579         (floor): Likewise.
79580         (floorf): Likewise.
79581
79582 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
79583
79584         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
79585         on both fields and cast pointer to __syscall_ulong_t.
79586
79587         * bits/types.h (__fsword_t): New type.
79588         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
79589         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
79590         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79591         (__FSWORD_T_TYPE): Likewise.
79592         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79593         (__FSWORD_T_TYPE): Likewise.
79594         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79595         (__FSWORD_T_TYPE): Likewise.
79596         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
79597         (__FSWORD_T_TYPE): Likewise.
79598         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
79599         __SWORD_TYPE with __fsword_t.
79600         (statfs64): Likewise.
79601
79602 2012-05-17  David S. Miller  <davem@davemloft.net>
79603
79604         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
79605
79606 2012-05-17  Andreas Jaeger  <aj@suse.de>
79607
79608         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
79609         warning.
79610
79611 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
79612
79613         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
79614
79615 2012-05-17  Andreas Jaeger  <aj@suse.de>
79616
79617         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
79618         when it is used.
79619
79620 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
79621
79622         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
79623
79624 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
79625
79626         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
79627         * sysdeps/x86_64/tst-mallocalign1.c: New file.
79628
79629 2012-05-17  Andreas Jaeger  <aj@suse.de>
79630             Carlos O'Donell  <carlos_odonell@mentor.com>
79631
79632         [BZ #14059]
79633         * sysdeps/x86_64/multiarch/init-arch.h
79634         (bit_YMM_Usable): Rename to...
79635         (bit_AVX_Usable): ... this.
79636         (bit_FMA4_Usable): New macro.
79637         (bit_XMM_state): New macro.
79638         (bit_YMM_state): New macro.
79639         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
79640         [__ASSEMBLER__] (index_AVX_Usable): ... this.
79641         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
79642         (CPUID_OSXSAVE): New macro.
79643         (CPUID_AVX): New macro.
79644         (CPUID_FMA4): New macro.
79645         (index_YMM_Usable): Rename to...
79646         (index_AVX_Usable): ... this.
79647         (HAS_AVX): Use HAS_ARCH_FEATURE.
79648         (HAS_FMA4): Likewise.
79649         (HAS_YMM_USABLE): Remove.
79650         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79651         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
79652         are present.
79653         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
79654         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
79655         * sysdeps/x86_64/multiarch/Makefile: Likewise.
79656         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
79657         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
79658
79659 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
79660
79661         * math/libm-test.c: Support platforms without multiple rounding modes.
79662         * math/bug-nextafter.c: Support platforms without FP exceptions.
79663         * math/bug-nexttoward.c: Likewise.
79664         * math/test-fenv.c: Likewise.
79665         * math/test-misc.c: Likewise.
79666         * stdlib/bug-getcontext.c: Likewise.
79667
79668 2012-05-17  Andreas Jaeger  <aj@suse.de>
79669
79670         * manual/examples/search.c (critter_cmp): Change signature to
79671         avoid warnings.
79672         * manual/string.texi (Collation Functions): Likewise.
79673
79674 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
79675
79676         * bits/types.h: Fold copyright years.
79677         * bits/typesizes.h: Likewise.
79678         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
79679         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
79680         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
79681         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
79682         * time/time.h: Likewise.
79683
79684 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
79685
79686         [BZ #208]
79687         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
79688         in instead of returning them.  Return void.
79689         (__libc_mallinfo): Accumulate over all arenas.
79690         (__malloc_stats): Adjust for change in int_mallinfo interface.
79691
79692 2012-05-16  Roland McGrath  <roland@hack.frob.com>
79693
79694         [BZ #10375]
79695         * configure.in (NM): Add AC_CHECK_TOOL for it.
79696         (libc_extra_cflags): New substituted variable.
79697         Check for -fstack-protector being used implicitly.
79698         * configure: Regenerated.
79699         * config.make.in (config-extra-cflags): New variable,
79700         gets @libc_extra_cflags@.
79701         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
79702
79703         [BZ #10375]
79704         * configure.in: Check for _FORTIFY_SOURCE being predefined.
79705         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
79706         * configure: Regenerated.
79707         * config.make.in (CPPUNDEFS): New substituted variable.
79708         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
79709         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
79710         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
79711
79712 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
79713
79714         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
79715         (mq_attr): Use __syscall_slong_t.
79716
79717 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
79718
79719         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
79720         Check __x86_64__ instead of __WORDSIZE.
79721         (_STAT_VER_LINUX): Likewise.
79722         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
79723         __syscall_ulong_t and __syscall_slong_t.
79724         (stat64): Likewise.
79725
79726 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
79727
79728         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
79729
79730 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
79731
79732         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
79733
79734 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
79735
79736         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
79737         __syscall_ulong_t.
79738
79739         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
79740         include <bits/wordsize.h>.  Check __x86_64__ instead of
79741         __WORDSIZE.
79742         (greg_t): Use "__extension__ long long int" if __x86_64__ is
79743         defined.
79744         (mcontext_t): Replace "unsigned long" with "unsigned long long".
79745
79746         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
79747         include <bits/wordsize.h>.  Check __x86_64__ instead of
79748         __WORDSIZE.
79749         (user_regs_struct): Use "__extension__ unsigned long long"
79750         instead of "unsigned long" if __x86_64__ is defined.
79751         (user): Likewise.  Pad after pointer field if __ILP32__ is
79752         defined.
79753
79754 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
79755
79756         * configure.in (makeinfo): Require version 4.5 or later.  Allow
79757         versions 5 to 9.
79758         * configure: Regenerated.
79759         * manual/install.texi (texinfo): Increase version requirement to
79760         4.5 or later.
79761         * INSTALL: Regenerated.
79762
79763         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
79764
79765 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
79766
79767         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
79768
79769         * sysdeps/x86_64/x32/ffs.c: New file.
79770
79771         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
79772         __syscall_ulong_t.
79773         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
79774         defined.  Use __syscall_ulong_t.
79775         (shminfo): Use __syscall_ulong_t.
79776         (shm_info): Likewise.
79777
79778         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
79779         __syscall_ulong_t.
79780
79781         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
79782         <bits/wordsize.h>.
79783         (msgqnum_t): Use __syscall_ulong_t.
79784         (msglen_t): Likewise.
79785         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
79786         __syscall_ulong_t.
79787
79788         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
79789         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
79790
79791         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
79792
79793         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
79794         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
79795
79796         * sysvipc/sys/msg.h (msgbuf): Replace long int with
79797         __syscall_slong_t.
79798
79799         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
79800         include <bits/wordsize.h>.  Check __x86_64__ instead of
79801         __WORDSIZE.
79802
79803         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
79804         "unsigned long long int" if __x86_64__ is defined.
79805         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
79806
79807         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
79808         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
79809         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
79810
79811         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
79812         <stdint.h>.
79813         (GET_PC): Cast to uintptr_t first.
79814         (GET_FRAME): Likewise.
79815         (GET_STACK): Likewise.
79816
79817         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
79818         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
79819         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
79820         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
79821         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
79822         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
79823         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
79824         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
79825         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
79826         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
79827         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
79828         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
79829         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
79830         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
79831         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
79832         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
79833         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
79834         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
79835         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
79836         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
79837         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
79838         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
79839         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
79840         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
79841         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
79842         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
79843         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
79844         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
79845         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
79846
79847 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
79848
79849         * Makerules (+depfiles): Also collect depfiles from .oS in
79850         $(extra-objs).
79851         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
79852         .oS, $(libnldbl-routines)).
79853
79854         * Makerules (native-compile-mkdep-flags): Define.
79855         * sunrpc/Makefile (extra-objs): Add $(addprefix
79856         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
79857         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
79858         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
79859         calling $(make-target-directory).
79860
79861 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79862
79863         * bits/types.h (__snseconds_t): Removed.
79864         * time/time.h (struct timespec): Replace __snseconds_t with
79865         __syscall_slong_t.
79866         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
79867         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
79868         Likewise.
79869         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79870         (__SNSECONDS_T_TYPE): Likewise.
79871         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79872         (__SNSECONDS_T_TYPE): Likewise.
79873         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79874         (__SNSECONDS_T_TYPE): Likewise.
79875
79876 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79877
79878         * sysdeps/mach/hurd/bits/typesizes.h
79879         (__SYSCALL_SLONG_TYPE): New macro.
79880         (__SYSCALL_ULONG_TYPE): Likewise.
79881
79882 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79883
79884         * bits/types.h (__syscall_slong_t): New type.
79885         (__syscall_ulong_t): Likewise.
79886
79887         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
79888         (__SYSCALL_ULONG_TYPE): Likewise.
79889         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79890         (__SYSCALL_SLONG_TYPE): Likewise.
79891         (__SYSCALL_ULONG_TYPE): Likewise.
79892         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79893         (__SYSCALL_SLONG_TYPE): Likewise.
79894         (__SYSCALL_ULONG_TYPE): Likewise.
79895         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79896         (__SYSCALL_SLONG_TYPE): Likewise.
79897         (__SYSCALL_ULONG_TYPE): Likewise.
79898
79899 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79900
79901         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
79902         Add sigaltstack-offsets.sym.
79903         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
79904         <sigaltstack-offsets.h>.
79905         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
79906         longjmp_msg pointer.
79907         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
79908         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
79909         signal stack.
79910         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
79911
79912 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
79913
79914         * elf/stackguard-macros.h: Remove file.
79915         * sysdeps/generic/stackguard-macros.h: New file.
79916         * sysdeps/i386/stackguard-macros.h: Likewise.
79917         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
79918         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
79919         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
79920         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
79921         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
79922         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
79923         * sysdeps/x86_64/stackguard-macros.h: Likewise.
79924         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
79925         <elf/stackguard-macros.h>.
79926
79927         [BZ #14109]
79928         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
79929         __aligned__ in attribute.
79930         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
79931         (gregset_t): Likewise.
79932
79933 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79934
79935         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
79936         * sysdeps/x86_64/64/Implies-after: Here.  New file.
79937         * sysdeps/x86_64/x32/Implies-after: New file.
79938
79939 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79940
79941         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
79942         and access return value for _dl_profile_fixup.  Use R10_LP to
79943         load frame size.
79944
79945 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79946
79947         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
79948
79949 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79950
79951         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
79952         * sysdeps/x86_64/x32/sysdep.h: New file.
79953
79954 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79955
79956         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
79957         * sysdeps/x86_64/setjmp.S: Likewise.
79958
79959 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79960
79961         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
79962         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
79963         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
79964         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
79965         remove unused global constant.
79966
79967 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
79968
79969         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
79970         include of <not-cancel.h>.
79971
79972 2012-05-15  Roland McGrath  <roland@hack.frob.com>
79973
79974         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
79975
79976 2012-05-15  Jeff Law  <law@redhat.com>
79977             Andreas Jaeger  <aj@suse.de>
79978
79979         [BZ #13594]
79980         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
79981         out from...
79982         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
79983         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
79984         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
79985         code changing __hst_map_handle.map.
79986
79987 2012-05-15  Roland McGrath  <roland@hack.frob.com>
79988
79989         * configure.in (sysnames): Look for Implies-before and Implies-after
79990         files.
79991         * configure: Regenerated.
79992
79993 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79994
79995         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
79996         8-byte data alignment with LP_SIZE alignment.
79997
79998 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
79999
80000         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
80001         into R10_LP.
80002
80003 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80004
80005         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
80006
80007 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80008
80009         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
80010         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
80011         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
80012         Likewise.
80013         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
80014
80015 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80016
80017         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
80018         (stackinfo_sub_sp): Likewise.
80019
80020 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80021
80022         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
80023         RAX_LP.
80024
80025 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80026
80027         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
80028         into R*_LP.
80029
80030 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80031
80032         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
80033         sizes into R*_LP.
80034
80035 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80036
80037         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
80038
80039 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80040
80041         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
80042         into R11_LP and load __x86_64_shared_cache_size_half into
80043         R8_LP.
80044
80045 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
80046
80047         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
80048         R8_LP.
80049
80050 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
80051
80052         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
80053         logb for POWER7.
80054         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
80055         logbf for POWER7.
80056         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
80057         logbl for POWER7.
80058         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
80059         powerpc32/power7/fpu/s_logb.c via #include.
80060         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
80061         powerpc32/power7/fpu/s_logbf.c via #include.
80062         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
80063         powerpc32/power7/fpu/s_logbl.c via #include.
80064
80065 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
80066
80067         * README.libm: Remove file.
80068
80069 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80070
80071         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
80072         count for x32.  Use R*_LP and omit operand-size suffix.
80073
80074 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80075
80076         * shlib-versions: Move x86_64-.*-linux.* entries to ...
80077         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
80078         * sysdeps/x86_64/x32/shlib-versions: New file.
80079
80080 2012-05-14  Roland McGrath  <roland@hack.frob.com>
80081
80082         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
80083         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
80084         Use _dl_fatal_printf instead.
80085
80086 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
80087
80088         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
80089         set if not set by the user.  Do not allow for being unset.
80090         * sysdeps/unix/sysv/linux/configure: Regenerated.
80091
80092 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80093
80094         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
80095         the `q' suffix from lea and replace .quad with ASM_ADDR.
80096
80097 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80098
80099         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
80100         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
80101         instead of $17.
80102         (PTR_DEMANGLE): Likewise.
80103
80104 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80105
80106         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
80107         (LP_OP): Likewise.
80108         (ASM_ADDR): Likewise.
80109         (RAX_LP): Likewise.
80110         (RBP_LP): Likewise.
80111         (RBX_LP): Likewise.
80112         (RCX_LP): Likewise.
80113         (RDI_LP): Likewise.
80114         (RSI_LP): Likewise.
80115         (RSP_LP): Likewise.
80116         (R8_LP): Likewise.
80117         (R9_LP): Likewise.
80118         (R10_LP): Likewise.
80119         (R10_LP): Likewise.
80120         (R11_LP): Likewise.
80121         (R12_LP): Likewise.
80122         (R13_LP): Likewise.
80123         (R14_LP): Likewise.
80124         (R15_LP): Likewise.
80125
80126 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80127
80128         * sysdeps/x86_64/x32/dl-machine.h: New file.
80129
80130 2012-05-14  Andreas Jaeger  <aj@suse.de>
80131
80132         * manual/Makefile (subdir): Remove export of subdir.
80133         (all): Remove target.
80134         (.PHONY): Remove all from list.
80135         (mkinstalldirs): Remove.
80136         (.PHONY): Remove installdirs from list.
80137         ($(inst_infodir)/libc.info): Use make-target-directory.
80138         (installdirs): Remove.
80139         (subdir_%): Remove.
80140         (glibc-targets): Remove.
80141         (lib): Remove.
80142         (stubs): Remove.
80143         ($(objpfx)stubs ../po/manual.pot): Remove.
80144         ($(objpfx)stamp%): Remove.
80145         (make-target-directory): Remove.
80146         (subdir_install): Remove.
80147         (routines): Remove.
80148         (aux): Remove.
80149         (sources): Remove.
80150         (objects): Remove.
80151         (headers): Remove.
80152
80153         [BZ #13750]
80154         * manual/.gitignore: Remove, it's not needed anymore.
80155         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
80156         all files in it.
80157         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
80158         directory.
80159         (texis): Renamed to $(objpfx)texis.
80160         (texis-path): New, contains path to generated files.
80161         (chapters.%): Use texis-path for complete path, add extra argument
80162         libc-texinfo.sh.
80163         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
80164         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
80165         (summary,texi, stamp-summary): Use complete path of
80166         files. Generate files in build dir.
80167         (dir-add.texi): Build in build dir.
80168         (libm-err.texi,stamp-libm-err): Likewise.
80169         (version.texi, stamp-version): Likewise.
80170         (.%c.texi): Likewise.
80171         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
80172         (mostlyclean): Remove target.
80173         (realclean): Remove target.
80174         (generated): Add new variable with contents from mostlyclean and
80175         realclean, remove entries duplicated in common-mostlyclean, add
80176         stamp-libm-err and stamp-version.
80177         (generated-dirs): Add libc directory.
80178         ($(inst_infodir)/libc.info): Install files from build dir.
80179
80180         * manual/install.texi (Configuring and compiling): Adjust since
80181         the info files are not part of the tar ball anymore.
80182
80183 2012-05-14  Andreas Jaeger  <aj@suse.de>
80184
80185         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
80186         variable.
80187
80188 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
80189
80190         [BZ #13717]
80191         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
80192         to 2.2.0 where earlier.
80193         * sysdeps/unix/sysv/linux/configure: Regenerated.
80194         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
80195         Remove conditional code.
80196         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
80197         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
80198         Remove conditional code.
80199         [!__NR_lchown]: Likewise.
80200         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
80201         [__NR_lchown]: Likewise.
80202         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
80203         comment referencing __ASSUME_LCHOWN_SYSCALL.
80204         * sysdeps/unix/sysv/linux/i386/sigaction.c
80205         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
80206         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
80207         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
80208         Remove conditional code.
80209         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
80210         (__protocol_available): Remove #if 0 code.
80211         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
80212         conditional code.
80213         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
80214         * sysdeps/unix/sysv/linux/kernel-features.h
80215         (__ASSUME_GETCWD_SYSCALL): Don't define.
80216         (__ASSUME_REALTIME_SIGNALS): Likewise.
80217         (__ASSUME_PREAD_SYSCALL): Likewise.
80218         (__ASSUME_PWRITE_SYSCALL): Likewise.
80219         (__ASSUME_POLL_SYSCALL): Likewise.
80220         (__ASSUME_LCHOWN_SYSCALL): Likewise.
80221         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
80222         non-SPARC.
80223         (__ASSUME_SIOCGIFNAME): Don't define.
80224         (__ASSUME_MSG_NOSIGNAL): Likewise.
80225         (__ASSUME_SENDFILE): Define unconditionally.
80226         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
80227         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
80228         conditional code.
80229         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
80230         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
80231         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
80232         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
80233         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
80234         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
80235         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
80236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
80237         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
80238         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
80240         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
80241         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
80243         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
80244         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
80246         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
80247         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
80249         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
80250         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
80252         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
80253         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
80255         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
80256         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
80258         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
80259         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80260         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
80261         Remove conditional code.
80262         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80263         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
80264         Remove conditional code.
80265         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80266         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
80267         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
80268         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
80269         Remove conditional code.
80270         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80271         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
80272         Remove conditional code.
80273         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80274         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
80275         Remove conditional code.
80276         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80277         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
80278         Remove conditional code.
80279         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
80280         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
80281         Remove conditional code.
80282         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80283         * sysdeps/unix/sysv/linux/sh/pwrite64.c
80284         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
80285         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
80286         * sysdeps/unix/sysv/linux/sigaction.c
80287         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
80288         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
80289         * sysdeps/unix/sysv/linux/sigpending.c
80290         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
80291         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
80292         * sysdeps/unix/sysv/linux/sigprocmask.c
80293         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
80294         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
80295         * sysdeps/unix/sysv/linux/sigsuspend.c
80296         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
80297         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
80298         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
80299         (__libc_missing_rt_sigs): Remove.
80300         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
80301         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
80302         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
80303         Remove conditional code.
80304         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
80305         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
80306         return 1.
80307         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
80308         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
80309         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
80310         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
80311
80312 2012-05-14  Andreas Jaeger  <aj@suse.de>
80313
80314         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
80315         it's not used in glibc.
80316         (__coshm1): Likewise.
80317         (__acosh1p): Likewise.
80318         (__sgn): Likewise.
80319
80320         * manual/string.texi (Copying and Concatenation): Add missing
80321         variable in concat example.
80322         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
80323
80324 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80325
80326         [BZ #14103]
80327         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
80328         __builtin_clzl with __builtin_clzll.
80329
80330 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
80331
80332         [BZ #14104]
80333         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
80334         libc_freeres_ptr.
80335
80336 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
80337
80338         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
80339         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
80340         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
80341         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
80342
80343 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
80344
80345         * NEWS: Update ia64 info.
80346
80347 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
80348
80349         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
80350         used as bcopy.
80351
80352 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
80353
80354         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
80355         * sysdeps/unix/syscalls.list (dup3): Likewise.
80356         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
80357         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
80358
80359 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
80360
80361         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
80362         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
80363
80364 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
80365
80366         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
80367         thread pointer.
80368         (TLS_IE): Use mov/add instead of movq/addq to load thread
80369         pointer.
80370         (TLS_GD_PREFIX): New.
80371         (TLS_GD): Use it.
80372
80373 2012-05-11  David S. Miller  <davem@davemloft.net>
80374
80375         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
80376         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
80377         (_FPU_SETCW): Likewise.
80378
80379 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
80380
80381         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
80382         is 32-byte aligned.
80383
80384 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
80385
80386         [BZ #11837]
80387         * iconvdata/gb18030.c: Update tables.
80388         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
80389         characters specially.
80390         (BODY for TO_LOOP): Add encoding of missing ranges.
80391
80392 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
80393
80394         [BZ #13673]
80395         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
80396         * sysdeps/mach/hurd/dup3.c: Likewise.
80397         * sysdeps/mach/hurd/readlinkat.c: Likewise.
80398         * sysdeps/powerpc/memmove.c:: Likewise.
80399
80400 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
80401
80402         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
80403         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
80404
80405 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
80406
80407         * elf/elf.h (R_X86_64_RELATIVE64): New.
80408         (R_X86_64_NUM): Updated.
80409         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
80410         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
80411         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
80412         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
80413         tst-quad1pie tst-quad2pie
80414         (modules-names): Add tst-quadmod1 tst-quadmod2.
80415         ($(objpfx)tst-quad1): New dependency.
80416         ($(objpfx)tst-quad2): Likewise.
80417         ($(objpfx)tst-quad1pie): Likewise.
80418         ($(objpfx)tst-quad2pie): Likewise.
80419         * sysdeps/x86_64/tst-quad1.c: New file.
80420         * sysdeps/x86_64/tst-quad1pie.c: New file.
80421         * sysdeps/x86_64/tst-quad2.c: Likewise.
80422         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
80423         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
80424         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
80425         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
80426         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
80427
80428 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80429
80430         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
80431         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
80432         * streams/stropts.h (t_scalar_t): Define type.
80433
80434         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
80435         (_PATH_PRESERVE): Set to "/var/lib".
80436         (_PATH_RWHODIR): Set to "/var/spool/rwho".
80437
80438         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
80439         instead of int.
80440
80441         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
80442         if __dir_mkfile succeeded.
80443
80444         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
80445         checking for _hurd_dtablesize.  Unlock it right after having
80446         finished _hurd_dtable allocation.
80447
80448 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80449
80450         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
80451         * sysdeps/mach/hurd/configure: Regenerated.
80452         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
80453         special-casing to...
80454         * sysdeps/gnu/configure.in: ... this new file.
80455         * sysdeps/unix/sysv/linux/configure: Regenerated.
80456         * sysdeps/gnu/configure: New generated file.
80457
80458         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
80459         for Linux: use nsec instead of usec, as well as:
80460         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
80461         members of type struct timespec.
80462         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
80463         New macros.
80464         (struct stat64): Likewise.
80465         (_STATBUF_ST_NSEC): New macro.
80466         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
80467
80468         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
80469         __strtoul_internal rather than strtoul.
80470
80471 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
80472
80473         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
80474         and reject them.
80475
80476 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80477
80478         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
80479         which preserves existing values.
80480         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
80481
80482 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
80483
80484         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
80485         TIMEOUT values.  Return EINVAL for NFDS values either negative or
80486         greater than FD_SETSIZE.
80487
80488 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80489
80490         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
80491         allocated, call __vm_protect to finish enabling the existing space, and
80492         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
80493         allocate the remainder.
80494
80495 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
80496
80497         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
80498         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
80499
80500 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80501
80502         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
80503         sysdeps/mach/hurd/readlink.c.
80504
80505         * posix/tst-sysconf.c (posix_options): Only use
80506         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
80507         _POSIX_SYNCHRONIZED_IO when they are defined
80508         * sysdeps/mach/hurd/bits/posix_opt.h:
80509         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
80510         (_XOPEN_REALTIME): Undefine macro.
80511         (_XOPEN_REALTIME_THREADS): Undefine macro.
80512         (_XOPEN_SHM): Undefine macro.
80513         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
80514         macro to -1.
80515         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
80516         macro to -1.
80517         (_POSIX_ASYNC_IO): Undefine macro.
80518         (_POSIX_PRIORITIZED_IO): Undefine macro.
80519         (_POSIX_SPIN_LOCKS): Define macro to -1.
80520
80521         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
80522         SA_NODEFER, SA_RESETHAND.
80523         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
80524         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
80525         F_DUPFD_CLOEXEC.
80526
80527 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80528
80529         * elf/Makefile (pldd-modules): Define unconditionally.
80530
80531 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80532
80533         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
80534
80535 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80536
80537         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
80538         Return ENOENT when name is empty.
80539         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
80540
80541 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80542
80543         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
80544
80545         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
80546
80547 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80548
80549         Fix mlock in all cases except non-readable pages.
80550         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
80551         instead of VM_PROT_ALL as parameter to __vm_wire function.
80552
80553         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
80554         (__mkdir): When path is `/', just fail with EEXIST.
80555         * sysdeps/mach/hurd/mkdirat.c: Likewise.
80556
80557 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80558
80559         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
80560         <sys/uio.h> (for writev).
80561         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
80562         and <sys/param.h> (for MIN).
80563
80564 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
80565
80566         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
80567         REQUESTED_TIME.  Properly set the remaining time and return EINTR
80568         if interrupted.
80569
80570 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80571
80572         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
80573         Depend on against $(link-rpcuserlibs).
80574
80575 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80576
80577         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
80578         (__libc_stack_end): Do not use attribute_relro.
80579         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
80580         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
80581         to libthread-provided value.
80582         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
80583         attribute_relro.
80584
80585 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80586
80587         [BZ #3748]
80588         * bits/libc-lock.h (__libc_once_get): New macro.
80589         * sysdeps/mach/bits/libc-lock.h: Likewise.
80590         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
80591         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
80592         instead of using implementation details.
80593
80594         * libio/fileops.c: Unconditionally include <kernel-features.h>.
80595         * libio/freopen.c: Likewise.
80596         * libio/freopen64.c: Likewise.
80597         * misc/syslog.c: Likewise.
80598         * nscd/connections.c: Likewise.
80599         * nscd/netgroupcache.c: Likewise.
80600         * sysdeps/posix/getcwd.c: Likewise.
80601
80602 2012-05-10  Roland McGrath  <roland@hack.frob.com>
80603
80604         * math/w_ilogbf.c: Add #include <limits.h>.
80605
80606 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80607
80608         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
80609         path instead of returning without unlocking.
80610
80611         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
80612         immediate-write ioctls.
80613         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
80614
80615 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80616
80617         * sysdeps/mach/hurd/i386/init-first.c (init): Use
80618         __builtin_frame_address instead of making assumptions about the
80619         location of the return address relative to DATA.  Force early load of
80620         the return address.
80621         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
80622         __builtin_frame_address.
80623
80624         dup3 for GNU Hurd.
80625         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
80626         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
80627         implement dup3 and do some further code clean-ups.
80628         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
80629         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
80630
80631 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80632
80633         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
80634
80635         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
80636         HURD_CRITICAL_END around holding _hurd_dtable_lock.
80637         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
80638         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
80639         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
80640         d->port.lock.
80641
80642         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
80643         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
80644         when handler == SIG_ERR, not when handler != SIG_ERR.
80645
80646 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80647
80648         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
80649         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
80650         definitions.
80651
80652         accept4 for GNU Hurd.
80653         * include/sys/socket.h (__libc_accept4): New prototype.
80654         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
80655         to implement __libc_accept4.
80656         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
80657         __libc_accept4.
80658         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
80659
80660         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
80661         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
80662         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
80663         signal-defines.sym.
80664
80665 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80666
80667         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
80668
80669 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
80670
80671         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
80672         assertion on O_CLOEXEC flag.
80673         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
80674         * hurd/intern-fd.c: Likewise.
80675         * hurd/port2fd.c: Likewise.
80676
80677 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80678
80679         [BZ #3906]
80680         * bits/in.h (IPV6_PKTINFO): Define new macro.
80681         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
80682
80683 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
80684
80685         [BZ #13954]
80686         [BZ #13955]
80687         [BZ #13956]
80688         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
80689         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
80690         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
80691         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
80692         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
80693         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
80694         * math/libm-test.inc (logb_test) : Additional logb tests.
80695
80696 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
80697             Andreas Jaeger  <aj@suse.de>
80698
80699         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
80700         * configure: Regenerated.
80701         * config.h.in (LINK_OBSOLETE_RPC): New macro.
80702         * config.make.in (link-obsolete-rpc): New substituted variable.
80703         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
80704         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
80705         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
80706         (shared-only-routines): Don't set it under [link-obsolete-rpc],
80707         so that libc.a contains the symbols.
80708         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
80709         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
80710         * sunrpc/auth_none.c: Likewise.
80711         * sunrpc/auth_unix.c: Likewise.
80712         * sunrpc/authdes_prot.c: Likewise.
80713         * sunrpc/authuxprot.c: Likewise.
80714         * sunrpc/clnt_gen.c: Likewise.
80715         * sunrpc/clnt_perr.c: Likewise.
80716         * sunrpc/clnt_raw.c: Likewise.
80717         * sunrpc/clnt_simp.c: Likewise.
80718         * sunrpc/clnt_tcp.c: Likewise.
80719         * sunrpc/clnt_udp.c: Likewise.
80720         * sunrpc/clnt_unix.c: Likewise.
80721         * sunrpc/des_crypt.c: Likewise.
80722         * sunrpc/des_soft.c: Likewise.
80723         * sunrpc/get_myaddr.c: Likewise.
80724         * sunrpc/key_call.c: Likewise.
80725         * sunrpc/key_prot.c: Likewise.
80726         * sunrpc/netname.c: Likewise.
80727         * sunrpc/pm_getmaps.c: Likewise.
80728         * sunrpc/pm_getport.c: Likewise.
80729         * sunrpc/pmap_clnt.c: Likewise.
80730         * sunrpc/pmap_prot.c: Likewise.
80731         * sunrpc/pmap_prot2.c: Likewise.
80732         * sunrpc/pmap_rmt.c: Likewise.
80733         * sunrpc/publickey.c: Likewise.
80734         * sunrpc/rpc_cmsg.c: Likewise.
80735         * sunrpc/rpc_common.c: Likewise.
80736         * sunrpc/rpc_dtable.c: Likewise.
80737         * sunrpc/rpc_prot.c: Likewise.
80738         * sunrpc/rpc_thread.c: Likewise.
80739         * sunrpc/rtime.c: Likewise.
80740         * sunrpc/svc.c: Likewise.
80741         * sunrpc/svc_auth.c: Likewise.
80742         * sunrpc/svc_raw.c: Likewise.
80743         * sunrpc/svc_run.c: Likewise.
80744         * sunrpc/svc_tcp.c: Likewise.
80745         * sunrpc/svc_udp.c: Likewise.
80746         * sunrpc/svc_unix.c: Likewise.
80747         * sunrpc/svcauth_des.c: Likewise.
80748         * sunrpc/xcrypt.c: Likewise.
80749         * sunrpc/xdr.c: Likewise.
80750         * sunrpc/xdr_array.c: Likewise.
80751         * sunrpc/xdr_float.c: Likewise.
80752         * sunrpc/xdr_intXX_t.c: Likewise.
80753         * sunrpc/xdr_mem.c: Likewise.
80754         * sunrpc/xdr_rec.c: Likewise.
80755         * sunrpc/xdr_ref.c: Likewise.
80756         * sunrpc/xdr_sizeof.c: Likewise.
80757         * sunrpc/xdr_stdio.c: Likewise.
80758
80759 2012-05-10  Roland McGrath  <roland@hack.frob.com>
80760
80761         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
80762         change.  Update copyright years.
80763
80764 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
80765
80766         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
80767
80768 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
80769             Joseph Myers  <joseph@codesourcery.com>
80770             Paul Pluzhnikov  <ppluzhnikov@google.com>
80771
80772         [BZ #14012]
80773         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
80774         requiring rpcgen.
80775         [cross-compiling] (extra-libs): Likewise.
80776         [cross-compiling] (extra-libs-others): Likewise.
80777         [cross-compiling] (librpcsvc-routines): Likewise.
80778         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
80779         [cross-compiling] (omit-deps): Likewise.
80780         (sunrpc-CPPFLAGS): New variable.
80781         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
80782         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
80783         (cross-rpcgen-objs): New variable.
80784         (extra-objs): Append $(cross-rpcgen-objs).
80785         ($(cross-rpcgen-objs)): New rule.
80786         ($(objpfx)cross-rpcgen): Likewise.
80787         (rpcgen-cmd): Define to use $(built-program-file).  Expand
80788         comment.
80789         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
80790         ($(objpfx)x%.stmp): Likewise.
80791         * sunrpc/proto.h [IS_IN_build] (_): Define.
80792         [IS_IN_build] (_libc_intl_domainname): Likewise.
80793
80794 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
80795
80796         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
80797         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
80798         and R_X86_64_TPOFF64.
80799
80800 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
80801
80802         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
80803         sysdeps/unix/sysv/syscalls.list.
80804         (stime): Likewise.
80805         (utime): Likewise.
80806         * sysdeps/unix/sysv/syscalls.list: Remove file.
80807
80808 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         [BZ #3440]
80811         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
80812         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
80813         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
80814         (__LC_IDENTIFICATION): Make these macros useful in #if
80815         expressions, as required by C99.
80816
80817 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
80818
80819         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
80820         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
80821         after this.
80822
80823 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
80824
80825         * stdlib/longlong.h: Updated from GCC.
80826
80827 2012-05-09  Andreas Jaeger  <aj@suse.de>
80828
80829         * nscd/nscd.c (run_modes): Make named enum, reorder so that
80830         default is first entry.
80831         (run_mode): Set type.
80832         (main): Remove informal message about syslog.
80833         (options): Fix typo.
80834
80835         [BZ #14053]
80836         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
80837         to asm.
80838         (lrint): Likewise.
80839         (llrintf): Likewise.
80840         (llrint): Likewise.
80841         (rint): Likewise.
80842         (rintf): Likewise.
80843         (nearbyint): Likewise.
80844         (nearbyintf): Likewise.
80845
80846 2012-05-09  Andreas Jaeger  <aj@suse.de>
80847             Pedro Alves  <palves@redhat.com>
80848
80849         * nscd/nscd.c (run_mode): Use enum.
80850         (main): Cleanup coding style issue.
80851
80852 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
80853             Andreas Jaeger  <aj@suse.de>
80854
80855         * nscd/nscd.c (go_background): Replaced with...
80856         (run_mode): ... this.
80857         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
80858         (options): Add -F --foreground.
80859         (main): Implement it.
80860         (parse_opt): Parse it.
80861
80862 2012-05-09  Andreas Jaeger  <aj@suse.de>
80863
80864         [BZ #14083]
80865         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
80866         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
80867         -Wconversion warning.
80868         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
80869         Likewise.
80870
80871 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
80872
80873         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
80874         == 0.
80875         (LC_ALL): Use macro-int-constant.
80876         (LC_COLLATE): Likewise.
80877         (LC_CTYPE): Likewise.
80878         (LC_MESSAGES): Likewise.
80879         (LC_MONETARY): Likewise.
80880         (LC_NUMERIC): Likewise.
80881         (LC_TIME): Likewise.
80882         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
80883         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
80884         [ISO || ISO99 || ISO11] (*_t): Do not allow.
80885         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
80886         Specify type.
80887         [C99-based standards] (float_t): Expect type.
80888         [C99-based standards] (double_t): Expect type.
80889         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
80890         type.
80891         [C99-based standards] (HUGE_VALL): Likewise.
80892         [C99-based standards] (INFINITY): Likewise.
80893         [C99-based standards] (NAN): Likewise.
80894         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
80895         [C99-based standards] (FP_NAN): Likewise.
80896         [C99-based standards] (FP_NORMAL): Likewise.
80897         [C99-based standards] (FP_SUBNORMAL): Likewise.
80898         [C99-based standards] (FP_ZERO): Likewise.
80899         [C99-based standards] (FP_FAST_FMA): Use
80900         optional-macro-int-constant.  Specify type.  Require == 1.
80901         [C99-based standards] (FP_FAST_FMAF): Likewise.
80902         [C99-based standards] (FP_FAST_FMAL): Likewise.
80903         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
80904         [C99-based standards] (FP_ILOGBNAN): Likewise.
80905         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
80906         Specify type.
80907         [C99-based standards] (MATH_ERREXCEPT): Likewise.
80908         [C99-based standards] (math_errhandling): Specify type.
80909         [ISO99 || ISO11] (signgam): Do not allow.
80910         [non-C99-based standards] (copysignf): Do not allow.
80911         [non-C99-based standards] (exp2f): Likewise.
80912         [non-C99-based standards] (log2f): Likewise.
80913         [non-C99-based standards] (modff): Allow.
80914         [non-C99-based standards] (erff): Do not allow.
80915         [non-C99-based standards] (erfcf): Likewise.
80916         [non-C99-based standards] (gammaf): Likewise.
80917         [non-C99-based standards] (hypotf): Likewise.
80918         [non-C99-based standards] (j0f): Likewise.
80919         [non-C99-based standards] (j1f): Likewise.
80920         [non-C99-based standards] (jnf): Likewise.
80921         [non-C99-based standards] (lgammaf): Likewise.
80922         [non-C99-based standards] (tgammaf): Likewise.
80923         [non-C99-based standards] (y0f): Likewise.
80924         [non-C99-based standards] (y1f): Likewise.
80925         [non-C99-based standards] (ynf): Likewise.
80926         [non-C99-based standards] (isnanf): Likewise.
80927         [non-C99-based standards] (acoshf): Likewise.
80928         [non-C99-based standards] (asinhf): Likewise.
80929         [non-C99-based standards] (atanhf): Likewise.
80930         [non-C99-based standards] (cbrtf): Likewise.
80931         [non-C99-based standards] (expm1f): Likewise.
80932         [non-C99-based standards] (ilogbf): Likewise.
80933         [non-C99-based standards] (log1pf): Likewise.
80934         [non-C99-based standards] (logbf): Likewise.
80935         [non-C99-based standards] (nextafterf): Likewise.
80936         [non-C99-based standards] (remainderf): Likewise.
80937         [non-C99-based standards] (rintf): Likewise.
80938         [non-C99-based standards] (scalbf): Likewise.
80939         [non-C99-based standards] (copysignl): Likewise.
80940         [non-C99-based standards] (exp2l): Likewise.
80941         [non-C99-based standards] (log2l): Likewise.
80942         [non-C99-based standards] (modfl): Allow.
80943         [non-C99-based standards] (erfl): Do not allow.
80944         [non-C99-based standards] (erfcl): Likewise.
80945         [non-C99-based standards] (gammal): Likewise.
80946         [non-C99-based standards] (hypotl): Likewise.
80947         [non-C99-based standards] (j0l): Likewise.
80948         [non-C99-based standards] (j1l): Likewise.
80949         [non-C99-based standards] (jnl): Likewise.
80950         [non-C99-based standards] (lgammal): Likewise.
80951         [non-C99-based standards] (tgammal): Likewise.
80952         [non-C99-based standards] (y0l): Likewise.
80953         [non-C99-based standards] (y1l): Likewise.
80954         [non-C99-based standards] (ynl): Likewise.
80955         [non-C99-based standards] (isnanl): Likewise.
80956         [non-C99-based standards] (acoshl): Likewise.
80957         [non-C99-based standards] (asinhl): Likewise.
80958         [non-C99-based standards] (atanhl): Likewise.
80959         [non-C99-based standards] (cbrtl): Likewise.
80960         [non-C99-based standards] (expm1l): Likewise.
80961         [non-C99-based standards] (ilogbl): Likewise.
80962         [non-C99-based standards] (log1pl): Likewise.
80963         [non-C99-based standards] (logbl): Likewise.
80964         [non-C99-based standards] (nextafterl): Likewise.
80965         [non-C99-based standards] (remainderl): Likewise.
80966         [non-C99-based standards] (rintl): Likewise.
80967         [non-C99-based standards] (scalbl): Likewise.
80968         [ISO || ISO99 || ISO11] (*_t): Do not allow.
80969         [non-C99-based standards] (FP_*): Do not allow.
80970         [C99-based standards] (FP_*): Change to
80971         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
80972         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
80973         allow.
80974         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
80975         (SIG_ERR): Likewise.
80976         [X/Open-based standards] (SIG_HOLD): Likewise.
80977         (SIG_IGN): Likewise.
80978         (SIGABRT): Use macro-int-constant.  Specify type.  Require
80979         positive value.
80980         (SIGFPE): Likewise.
80981         (SIGILL): Likewise.
80982         (SIGINT): Likewise.
80983         (SIGSEGV): Likewise.
80984         (SIGTER): Likewise.
80985         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
80986         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
80987         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
80988         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
80989         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
80990         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
80991         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
80992         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
80993         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
80994         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
80995         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
80996         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
80997         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
80998         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
80999         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
81000         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
81001         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
81002         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
81003         [X/Open-based standards] (SIGTRAP): Likewise.
81004         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
81005         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
81006         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
81007         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
81008         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
81009         allow.
81010
81011 2012-05-08  Ian Wienand  <ianw@vmware.com>
81012
81013         [BZ #14080]
81014         * time/tzset.c (__tzset_parse_tz): Update default rules for
81015         daylight time changes in the Energy Policy Act of 2005.
81016
81017 2012-05-09  Andreas Jaeger  <aj@suse.de>
81018
81019         [BZ #13983]
81020         * elf/ldconfig.c (parse_conf): Change string to make clear that
81021         ldconfig only issued a warning if ld.so.conf does not exist.
81022
81023 2012-05-08  David S. Miller  <davem@davemloft.net>
81024
81025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
81026         movxtod instead of popping the value on the stack.
81027
81028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81029
81030 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
81031
81032         * config.h.in: Add HAVE_ARM_PCS_VFP.
81033
81034 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
81035
81036         [BZ #13979]
81037         * include/features.h: Warn if user requests __FORTIFY_SOURCE
81038         checking but the checks are disabled for any reason.
81039
81040 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
81041
81042         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
81043         and ELF64_R_TYPE with ELFW(R_TYPE).
81044
81045 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
81046
81047         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
81048         (ulimit): Likewise.
81049
81050         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
81051         (settimeofday): Likewise.
81052
81053 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
81054
81055         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
81056         a struct th_u2 inside the union, and move tu_block/tu_code into
81057         a new th_u3 union of tu_block/tu_code inside of that.  Move
81058         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
81059         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
81060         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
81061         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
81062         (th_stuff): Change to th_u1.tu_stuff.
81063         (th_data): Define.
81064         (th_msg): Change to th_u1.th_u2.tu_data.
81065
81066 2012-05-07  David S. Miller  <davem@davemloft.net>
81067
81068         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81069
81070         [BZ #14074]
81071         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
81072         (SETUP_PIC_REG): Use it.
81073         (SETUP_PIC_REG_LEAF): Use it.
81074
81075 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
81076
81077         [BZ #13885]
81078         [BZ #13923]
81079         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
81080         USE_AS_EXPM1L.
81081         (EXPL_FINITE): Likewise.
81082         (FLDLOG): Likewise.
81083         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
81084         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
81085         e_expl.S.
81086         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
81087         USE_AS_EXPM1L.
81088         (EXPL_FINITE): Likewise.
81089         (FLDLOG): Likewise.
81090         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
81091         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
81092         e_expl.S.
81093         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
81094         test of -max_value argument for long double.
81095         * sysdeps/i386/fpu/libm-test-ulps: Update.
81096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81097
81098 2012-05-06  David S. Miller  <davem@davemloft.net>
81099
81100         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
81101         quad soft-float symbols whose references which are compiler
81102         generated.
81103         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
81104
81105 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
81106
81107         [BZ #13884]
81108         [BZ #13914]
81109         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
81110         USE_AS_EXP10L.
81111         (EXPL_FINITE): Likewise.
81112         (FLDLOG): Likewise.
81113         (c0): Likewise.
81114         (c1): Likewise.
81115         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
81116         Adjust comments for base varying.
81117         (__expl_finite): Change alias to EXPL_FINITE.
81118         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
81119         e_expl.S.
81120         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
81121         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
81122         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
81123         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
81124         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
81125         USE_AS_EXP10L.
81126         (EXPL_FINITE): Likewise.
81127         (FLDLOG): Likewise.
81128         (c0): Likewise.
81129         (c1): Likewise.
81130         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
81131         Adjust comments for base varying.
81132         (__expl_finite): Change alias to EXPL_FINITE.
81133         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
81134         tests for bugs.
81135         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
81136
81137         [BZ #14064]
81138         * math/libm-test.inc (check_float_internal): Correct ulp
81139         calculation for subnormal expected results.
81140
81141 2012-05-06  Andreas Jaeger  <aj@suse.de>
81142
81143         * Makeconfig (+math-flags): New, set to -frounding-math.
81144         (+cflags): Add +math-flags so that all of glibc gets compiled with
81145         it.
81146
81147         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
81148
81149 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
81150
81151         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
81152         Disable one test.
81153
81154         [BZ #13787]
81155         [BZ #13922]
81156         [BZ #14036]
81157         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
81158         (__ieee754_expl): Allow for and saturate large arguments.
81159         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
81160         (u_threshold): Likewise.
81161         (__exp): Call __ieee754_exp before checking for overflow and
81162         underflow.
81163         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
81164         (u_threshold): Likewise.
81165         (__expf): Call __ieee754_expf before checking for overflow and
81166         underflow.
81167         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
81168         (u_threshold): Likewise.
81169         (__expl): Call __ieee754_expl before checking for overflow and
81170         underflow.
81171         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
81172         (__ieee754_expl): Allow for and saturate large arguments.
81173         * math/libm-test.inc (exp_test): Add another test.  Do not allow
81174         missing overflow exception on overflow.
81175         (expm1_test): Do not allow missing overflow exception on overflow.
81176
81177         * sysdeps/i386/fpu/e_expl.c: Move to ...
81178         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
81179         rather than using inline asm.
81180         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
81181         * sysdeps/x86_64/fpu/e_expl.S: Copy from
81182         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
81183
81184         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
81185         (nice): Likewise.
81186         (poll): Likewise.
81187         (signal): Likewise.
81188         (time): Likewise.
81189         (times): Likewise.
81190
81191 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
81192
81193         * sysdeps/unix/syscalls.list (adjtime): Add entry from
81194         sysdeps/unix/common/syscalls.list.
81195         (fchmod): Likewise.
81196         (fchown): Likewise.
81197         (ftruncate): Likewise.
81198         (getrusage): Likewise.
81199         (gettimeofday): Likewise.
81200         (setpgid): Likewise.
81201         (setregid): Likewise.
81202         (setreuid): Likewise.
81203         (sigaction): Likewise.
81204         (truncate): Likewise.
81205         (vhangup): Likewise.
81206         * sysdeps/unix/common/syscalls.list: Remove file.
81207         * sysdeps/unix/bsd/Implies: Don't include unix/common.
81208         * sysdeps/unix/sysv/linux/Implies: Likewise.
81209
81210 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
81211
81212         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
81213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
81214         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
81215         Moved to ...
81216         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
81217         Here.
81218         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
81219         to ...
81220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
81221         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
81222         to ...
81223         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
81224         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
81225         to ...
81226         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
81227         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
81228         to ...
81229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
81230         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
81231         to ...
81232         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
81233         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
81234         to ...
81235         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
81236         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
81237         to ...
81238         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
81239         Here.
81240         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
81241         to ...
81242         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
81243         Here.
81244         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
81245         to ...
81246         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
81247         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
81248         Moved to ...
81249         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
81250         Here.
81251         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
81252         to ...
81253         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
81254
81255 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
81256
81257         * sysdeps/unix/common/bits/dirent.h: Remove file.
81258         * sysdeps/unix/common/bits/fcntl.h: Likewise.
81259
81260         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
81261         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
81262         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
81263         * sysdeps/unix/bsd/isatty.c: Likewise.
81264         * sysdeps/unix/bsd/tcdrain.c: Likewise.
81265         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
81266         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
81267
81268 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
81269
81270         [BZ #13563]
81271         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
81272         long double comparison inaccuracies.
81273         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
81274         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81275
81276 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
81277
81278         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
81279         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
81280
81281 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
81282
81283         [BZ #14049]
81284         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
81285         nonzero digits before rounding a hex value.
81286         * stdlib/tst-strtod.c (tests): Add another test.
81287
81288 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81289
81290         * sysdeps/s390/fpu/libm-test-ulps: Update.
81291
81292 2012-05-03  Andreas Jaeger  <aj@suse.de>
81293
81294         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
81295         does not get optimized out.
81296         (malloc_opt_barrier): New.
81297
81298 2012-05-03  Andreas Jaeger  <aj@suse.de>
81299             Roland McGrath  <roland@hack.frob.com>
81300
81301         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
81302         intermediate file deletion.
81303         (generated): Add .symlist files.
81304
81305 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
81306
81307         [BZ #13775]
81308         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
81309         Redirect under this condition.
81310         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
81311         [__USE_GNU] (__dprintf_chk): Not under this condition.
81312         [__USE_GNU] (__vdprintf_chk): Likewise.
81313         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
81314         under this condition.
81315         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
81316         [__USE_XOPEN2K8] (dprintf): Define under this condition.
81317         [__USE_XOPEN2K8] (vdprintf): Likewise.
81318         [__USE_GNU] (__dprintf_chk): Not under this condition.
81319         [__USE_GNU] (__vdprintf_chk): Likewise.
81320         [__USE_GNU] (dprintf): Likewise.
81321         [__USE_GNU] (vdprintf): Likewise.
81322
81323 2012-05-03  Roland McGrath  <roland@hack.frob.com>
81324
81325         * elf/Makefile (common-generated): Set this instead of generated for
81326         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
81327         $(all-built-dso)-derived lists.
81328
81329 2012-05-03  Andreas Jaeger  <aj@suse.de>
81330
81331         * sysdeps/i386/fpu/libm-test-ulps: Update.
81332
81333         * FAQ: Removed.
81334         * FAQ.in: Likewise.
81335         * scripts/gen-FAQ.pl: Likewise.
81336         * manual/install.texi (Installation): Point to online location of
81337         FAQ.
81338         * Makefile (files-for-dist): Remove FAQ.
81339         (FAQ): Remove.
81340
81341 2012-05-02  Allan McRae  <allan@archlinux.org>
81342
81343         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
81344         (LDFLAGS-reldepmod5.so): Likewise.
81345         (LDFLAGS-reldep6mod1.so): Likewise.
81346         (LDFLAGS-reldep6mod4.so): Likewise.
81347         (LDFLAGS-reldep8mod3.so): Likewise.
81348         (LDFLAGS-unload4mod1.so): Likewise.
81349         (LDFLAGS-unload4mod2.so): Likewise.
81350         (LDFLAGS-tst-initorder): Likewise.
81351         (LDFLAGS-tst-initordera2.so): Likewise.
81352         (LDFLAGS-tst-initordera3.so): Likewise.
81353         (LDFLAGS-tst-initordera4.so): Likewise.
81354         (LDFLAGS-tst-initorderb2.so): Likewise.
81355         (LDFLAGS-noload): Likewise.
81356         (LDFLAGS-next): Likewise.
81357         (LDFLAGS-order2mod1.so): Likewise.
81358         (LDFLAGS-order2mod2.so): Likewise.
81359         (LDFLAGS-tst-initorder2): Likewise.
81360         (LDFLAGS-tst-initorder2a.so): Likewise.
81361         (LDFLAGS-tst-initorder2b.so): Likewise.
81362         (LDFLAGS-tst-initorder2c.so): Likewise.
81363         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
81364
81365 2012-05-02  David S. Miller  <davem@davemloft.net>
81366
81367         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81368
81369 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
81370
81371         [BZ #14055]
81372         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
81373
81374 2012-05-02  Andreas Jaeger  <aj@suse.de>
81375
81376         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
81377         since we manipulate rounding mode.
81378         (CPPFLAGS-test-idouble.c): Likewise.
81379         (CPPFLAGS-test-ifloat.c): Likewise.
81380         (CFLAGS-test-ldouble.c): Likewise.
81381         (CFLAGS-test-double.c): Likewise.
81382         (CFLAGS-test-float.c): Likewise.
81383         (CFLAGS-test-misc.c): Likewise.
81384         (CFLAGS-test-test-fenv.c): Likewise.
81385
81386 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
81387
81388         [BZ #2550]
81389         [BZ #2570]
81390         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
81391         comparisons to determine direction to adjust input.
81392
81393 2012-05-01  Roland McGrath  <roland@hack.frob.com>
81394
81395         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
81396         output to the target.
81397
81398         * scripts/localplt.awk: New file.
81399         * elf/Makefile ($(objpfx)check-localplt): Target removed.
81400         (check-localplt-CFLAGS): Variable removed.
81401         ($(all-built-dso:=.jmprel)): New static pattern rule.
81402         (generated): Add those targets.
81403         (localplt-built-dso): New variable.
81404         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
81405
81406         * elf/check-localplt.c: File removed.
81407
81408         * scripts/check-execstack.awk: New file.
81409         * elf/Makefile ($(objpfx)check-execstack): Target removed.
81410         (check-execstack-CFLAGS): Variable removed.
81411         ($(objpfx)check-execstack.h): Target removed.
81412         ($(objpfx)execstack-default): New target.
81413         (generated): Add that instead of check-execstack.h.
81414         ($(all-built-dso:=.phdr)): New static pattern rule.
81415         (generated): Add those targets.
81416         * elf/check-execstack.c: File removed.
81417
81418         * scripts/check-textrel.awk: New file.
81419         * elf/Makefile ($(objpfx)check-textrel): Target removed.
81420         (check-textrel-CFLAGS): Variable removed.
81421         (all-built-dso): Use := to define.o
81422         ($(all-built-dso:=.dyn)): New static pattern rule.
81423         (generated): Add those targets.
81424         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
81425         * config.make.in (READELF): New substituted variable.
81426         * elf/check-textrel.c: File removed.
81427
81428 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
81429
81430         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
81431         allow.
81432         * conform/data/ctype.h-data [C99-based standards] (isblank):
81433         Expect function.
81434         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
81435         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
81436         [ISO || ISO99 || ISO11] (*_t): Do not allow.
81437         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
81438         Specify type.  Require positive value.
81439         (EILSEQ): Likewise.
81440         (ERANGE): Likewise.
81441         [ISO || POSIX] (EILSEQ): Do not expect.
81442         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
81443         Specify type.  Require positive value.
81444         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
81445         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
81446         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
81447         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
81448         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
81449         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
81450         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
81451         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
81452         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
81453         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
81454         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
81455         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
81456         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
81457         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
81458         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
81459         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
81460         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
81461         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
81462         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
81463         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
81464         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
81465         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
81466         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
81467         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
81468         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
81469         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
81470         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
81471         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
81472         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
81473         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
81474         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
81475         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
81476         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
81477         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
81478         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
81479         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
81480         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
81481         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
81482         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
81483         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
81484         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
81485         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
81486         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
81487         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
81488         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
81489         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
81490         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
81491         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
81492         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
81493         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
81494         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
81495         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
81496         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
81497         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
81498         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
81499         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
81500         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
81501         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
81502         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
81503         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
81504         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
81505         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
81506         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
81507         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
81508         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
81509         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
81510         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
81511         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
81512         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
81513         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
81514         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
81515         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
81516         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
81517         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
81518         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
81519         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
81520         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
81521         Require >= 2.
81522         (FLT_ROUNDS): Expect as macro, not constant.
81523         (FLT_MANT_DIG): Use macro-int-constant.
81524         (DBL_MANT_DIG): Likewise.
81525         (LDBL_MANT_DIG): Likewise.
81526         (FLT_DIG): Likewise.
81527         (DBL_DIG): Likewise.
81528         (LDBL_DIG): Likewise.
81529         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
81530         (DBL_MIN_EXP): Likewise.
81531         (LDBL_MIN_EXP): Likewise.
81532         (FLT_MAX_EXP): Use macro-int-constant.
81533         (DBL_MAX_EXP): Likewise.
81534         (LDBL_MAX_EXP): Likewise.
81535         (FLT_MAX_10_EXP): Likewise.
81536         (DBL_MAX_10_EXP): Likewise.
81537         (LDBL_MAX_10_EXP): Likewise.
81538         (FLT_MAX): Use macro-constant.
81539         (DBL_MAX): Likewise.
81540         (LDBL_MAX): Likewise.
81541         (FLT_EPSILON): Use macro-constant.  Give upper bound.
81542         (DBL_EPSILON): Likewise.
81543         (LDBL_EPSILON): Likewise.
81544         (FLT_MIN): Likewise.
81545         (DBL_MIN): Likewise.
81546         (LDBL_MIN): Likewise.
81547         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
81548         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
81549         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
81550         [ISO11] (FLT_HAS_SUBNORM): Likewise.
81551         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
81552         [ISO11] (DBL_DECIMAL_DIG): Likewise.
81553         [ISO11] (FLT_DECIMAL_DIG): Likewise.
81554         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
81555         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
81556         [ISO11] (FLT_TRUE_MIN): Likewise.
81557         [ISO11] (LDBL_TRUE_MIN): Likewise.
81558         [ISO || ISO99 || ISO11] (*_t): Do not allow.
81559         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
81560         (SCHAR_MIN): Use macro-int-constant.  Specify type.
81561         (SCHAR_MAX): Likewise.
81562         (UCHAR_MAX): Likewise.
81563         (CHAR_MIN): Likewise.
81564         (CHAR_MAX): Likewise.
81565         (MB_LEN_MAX): Use macro-int-constant.
81566         (SHRT_MIN): Use macro-int-constant.  Specify type.
81567         (SHRT_MAX): Likewise.
81568         (USHRT_MAX): Likewise.
81569         (INT_MAX): Likewise.
81570         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
81571         bound negative.
81572         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
81573         bound with "U".
81574         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
81575         bound with "L".
81576         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
81577         bound negative.  Suffix upper bound with "L".
81578         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
81579         bound with "UL".
81580         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
81581         Specify type.
81582         [C99-based standards] (LLONG_MAX): Likewise.
81583         [C99-based standards] (ULLONG_MAX): Likewise.
81584         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
81585         == 0.
81586         [ISO11] (max_align_t): Require type.
81587         [ISO || ISO99 || ISO11] (*_t): Do not allow.
81588
81589         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
81590         from $CFLAGS, without defining away __attribute__ calls.
81591         (checknamespace): Use $CFLAGS_namespace.
81592
81593         * conform/conformtest.pl (@keywords): Only include C99 keywords
81594         for standards based on C99 or C11.
81595
81596         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
81597         Disable tests.
81598         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
81599         UNIX98]: Likewise.
81600
81601         * conform/conformtest.pl: Handle "macro-int-constant" and test for
81602         usability of symbols in #if.
81603
81604         * conform/conformtest.pl: If macro or constant types start
81605         "promoted:", expect the symbol to be of the following type
81606         promoted by the integer promotions.
81607
81608         * conform/conformtest.pl: Parse all "constant" and "macro" lines
81609         in one place.  Also handle "macro-constant".
81610
81611         * conform/conformtest.pl: Only accept expected macro values with
81612         "==".  Parse all "macro" lines in one place.
81613         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
81614
81615         * conform/conformtest.pl: Handle braced types on "constant" lines
81616         instead of handling "typed-constant".
81617         * conform/data/signal.h-data: Use "constant" instead of
81618         "typed-constant".
81619
81620         * conform/conformtest.pl: Handle "optional-" at start of lines in
81621         one place rather than duplicating several cases.  Handle each
81622         format of "macro" line with initial "optional-".
81623
81624         * conform/conformtest.pl: Only accept expected constant or
81625         optional-constant values with "==".  Parse all "constant" lines in
81626         one place.  Parse all "optional-constant" lines in one place.
81627         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
81628         * conform/data/fmtmsg.h-data: Likewise.
81629         * conform/data/netinet/in.h-data: Likewise.
81630         * conform/data/tar.h-data: Likewise.
81631         * conform/data/limits.h-data: Use "==" form on "constant" and
81632         "optional-constant" lines.
81633
81634         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
81635         Use -std=c99 for XOPEN2K.
81636         (@knownproblems): Remove.
81637         (newtoken): Don't check %isknown.
81638
81639         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
81640         Do not expect macro.
81641         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
81642         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
81643         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
81644         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
81645         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
81646         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
81647         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
81648         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
81649         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
81650         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
81651         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
81652         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
81653         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
81654         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
81655         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
81656         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
81657         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
81658         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
81659         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
81660         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
81661         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
81662         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
81663         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
81664         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
81665         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
81666         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
81667         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
81668         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
81669         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
81670         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
81671         [XPG3] (acosh): Likewise.
81672         [XPG3] (asinh): Likewise.
81673         [XPG3] (atanh): Likewise.
81674         [XPG3] (cbrt): Likewise.
81675         [XPG3] (expm1): Likewise.
81676         [XPG3] (ilogb): Likewise.
81677         [XPG3] (log1p): Likewise.
81678         [XPG3] (logb): Likewise.
81679         [XPG3] (nextafter): Likewise.
81680         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
81681         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
81682         [XPG3] (remainder): Likewise.
81683         [XPG3] (rint): Likewise.
81684         [XPG3 || XPG4 || UNIX98] (round): Likewise.
81685         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
81686         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
81687         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
81688         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
81689         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
81690         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
81691         [UNIX98 || XOPEN2K] (scalb): Expect.
81692         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
81693         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
81694         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
81695         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
81696         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
81697         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
81698         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
81699         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
81700         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
81701         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
81702         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
81703         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
81704         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
81705         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
81706         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
81707         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
81708         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
81709         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
81710         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
81711         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
81712         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
81713         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
81714         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
81715         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
81716         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
81717         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
81718         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
81719         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
81720         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
81721         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
81722         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
81723         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
81724         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
81725         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
81726         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
81727         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
81728         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
81729         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
81730         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
81731         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
81732         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
81733         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
81734         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
81735         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
81736         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
81737         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
81738         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
81739         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
81740         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
81741         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
81742         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
81743         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
81744         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
81745         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
81746         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
81747         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
81748         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
81749         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
81750         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
81751         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
81752         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
81753         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
81754         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
81755         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
81756         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
81757         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
81758         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
81759         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
81760         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
81761         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
81762         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
81763         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
81764         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
81765         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
81766         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
81767         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
81768         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
81769         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
81770         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
81771         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
81772         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
81773         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
81774         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
81775         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
81776         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
81777         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
81778         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
81779         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
81780         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
81781         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
81782         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
81783         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
81784         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
81785         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
81786         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
81787         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
81788         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
81789         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
81790         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
81791         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
81792         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
81793         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
81794         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
81795         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
81796         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
81797         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
81798         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
81799         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
81800         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
81801         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
81802         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
81803         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
81804         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
81805         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
81806         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
81807         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
81808         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
81809         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
81810         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
81811         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
81812         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
81813         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
81814         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
81815         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
81816         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
81817         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
81818         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
81819         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
81820         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
81821         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
81822         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
81823         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
81824         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
81825         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
81826         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
81827         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
81828         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
81829
81830         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
81831         _XOPEN_SOURCE_EXTENDED for XPG4.
81832
81833         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
81834
81835         * Makeconfig (localtime): Remove variable.
81836         (inst_localtime-file): Likewise.
81837
81838 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
81839
81840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
81841         Update.
81842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
81843         Update.
81844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
81845         Update.
81846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
81847         Update.
81848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
81849         Update.
81850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
81851         Update.
81852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
81853         Update.
81854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
81855         Update.
81856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
81857         Update.
81858
81859 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
81860
81861         [BZ #2550]
81862         [BZ #2570]
81863         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
81864         comparisons to determine direction to adjust input.
81865         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
81866         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
81867         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
81868         Likewise.
81869         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
81870         Likewise.
81871         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
81872         Likewise.
81873         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
81874         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
81875         Likewise.
81876         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
81877         Likewise.
81878         * math/libm-test.inc (nexttoward_test): Add more tests.
81879
81880 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
81881
81882         [BZ #14040]
81883         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
81884         in version GLIBC_2.1, not GLIBC_2.0.
81885         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
81886         Likewise.
81887
81888 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
81889
81890         [BZ #13942]
81891         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
81892         (1 - x) * (1 + x).
81893         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
81894         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
81895         * math/libm-test.inc (acos_test): Add more tests.
81896         (asin_test): Likewise.
81897         * sysdeps/i386/fpu/libm-test-ulps: Update.
81898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81899
81900         [BZ #14034]
81901         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
81902         of square root.
81903         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
81904         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
81905         * math/libm-test.inc (acos_test_tonearest): New function.
81906         (acos_test_towardzero): Likewise.
81907         (acos_test_downward): Likewise.
81908         (acos_test_upward): Likewise.
81909         (asin_test_tonearest): Likewise.
81910         (asin_test_towardzero): Likewise.
81911         (asin_test_downward): Likewise.
81912         (asin_test_upward): Likewise.
81913         (main): Call the new functions.
81914         * sysdeps/i386/fpu/libm-test-ulps: Update.
81915         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
81916
81917         [BZ #13884]
81918         [BZ #13924]
81919         * math/e_exp10.c: Include <float.h>.
81920         (__ieee754_exp10): Handle underflow here rather than multiplying
81921         large negative argument by M_LN10.
81922         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
81923         of __ieee754_expf.
81924         * math/e_exp10l.c: Include <float.h>.
81925         (__ieee754_exp10l): Handle underflow here rather than multiplying
81926         large negative argument by M_LN10l.
81927         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
81928         spurious overflow exception on underflow.
81929
81930 2012-04-29  Marek Polacek  <polacek@redhat.com>
81931
81932         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
81933         (__fortify_function): New macro.
81934         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
81935         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
81936         __extern_always_inline.
81937         * libio/bits/stdio2.h: Likewise.
81938         * libio/bits/stdio.h: Likewise.
81939         * string/string.h: Likewise.
81940         * string/bits/string3.h: Likewise.
81941         * include/stdio.h: Likewise.
81942         * stdlib/bits/stdlib.h: Likewise.
81943         * stdlib/stdlib.h: Likewise.
81944         * rt/bits/mqueue2.h: Likewise.
81945         * rt/mqueue.h: Likewise.
81946         * posix/bits/unistd.h: Likewise.
81947         * posix/unistd.h: Likewise.
81948         * io/bits/poll2.h: Likewise.
81949         * io/bits/fcntl2.h: Likewise.
81950         * io/fcntl.h: Likewise.
81951         * io/sys/poll.h: Likewise.
81952         * misc/bits/syslog.h: Likewise.
81953         * misc/bits/syslog-ldbl.h: Likewise.
81954         * misc/sys/syslog.h: Likewise.
81955         * socket/bits/socket2.h: Likewise.
81956         * socket/sys/socket.h: Likewise.
81957         * debug/tst-chk1.c: Likewise.
81958         * wcsmbs/bits/wchar2.h: Likewise.
81959         * wcsmbs/bits/wchar-ldbl.h: Likewise.
81960         * wcsmbs/wchar.h: Likewise.
81961
81962 2012-04-29  Andreas Jaeger  <aj@suse.de>
81963
81964         * Makerules (tests): Remove enable-check-abi protection.
81965         (check-abi-warn): Remove.
81966         (check-abi-%): Remove check-abi-warn usage.
81967
81968         * configure.in: Remove check-abi configure option.
81969         * configure: Regenerated.
81970         * config.make.in (enable-check-abi): Remove.
81971
81972 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
81973
81974         [BZ #14033]
81975         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
81976         double functions to double *_finite functions.
81977
81978         [BZ #13941]
81979         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
81980         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
81981         LDBL_MIN_EXP.
81982         * stdio-common/Makefile (tests): Add tst-sprintf3.
81983         * stdio-common/tst-sprintf3.c: New file.
81984
81985         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
81986         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
81987
81988 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
81989
81990         * conform/conformtest.pl: Remove duplicate typed-constant
81991         handling.
81992
81993 2012-04-28  David S. Miller  <davem@davemloft.net>
81994
81995         * Makerules (%.abilist): Add vpath on sysdep_dirs.
81996         (check-abi-%): Remove AWK script prerequisite and explicit
81997         abilist directory.
81998         (check-abi): Rewrite to just diff the symlist with the abilist.
81999         (config-tls, config-abi-config): Delete, no longer used.
82000         (update-abi-%): Remove AWK script and explicit abilist directory.
82001         (update-abi): Rewrite to simply compare and conditionally copy the
82002         symlist and the sysdep abilist file.  Remove update-abi-config
82003         checks.
82004         * abilist/ld.abilist: Remove.
82005         * abilist/libBrokenLocale.abilist: Remove.
82006         * abilist/libanl.abilist: Remove.
82007         * abilist/libcrypt.abilist: Remove.
82008         * abilist/libdl.abilist: Remove.
82009         * abilist/librt.abilist: Remove.
82010         * abilist/libthread_db.abilist: Remove.
82011         * abilist/libutil.abilist: Remove.
82012         * scripts/extract-abilist.awk: Remove.
82013         * scripts/merge-abilist.awk: Remove.
82014         * sysdeps/generic/libcidn.abilist: New file.
82015         * sysdeps/generic/libnss_compat.abilist: New file.
82016         * sysdeps/generic/libnss_db.abilist: New file.
82017         * sysdeps/generic/libnss_dns.abilist: New file.
82018         * sysdeps/generic/libnss_files.abilist: New file.
82019         * sysdeps/generic/libnss_hesiod.abilist: New file.
82020         * sysdeps/generic/libnss_nis.abilist: New file.
82021         * sysdeps/generic/libnss_nisplus.abilist: New file.
82022         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
82023         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
82024         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
82025         file.
82026         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
82027         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
82028         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
82029         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
82030         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
82031         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
82032         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
82033         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
82034         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
82035         file.
82036         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
82037         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
82038         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
82039         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
82040         file.
82041         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
82042         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
82043         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
82044         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
82045         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
82046         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
82047         file.
82048         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
82049         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
82050         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
82051         file.
82052         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
82053         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
82054         New file.
82055         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
82056         New file.
82057         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
82058         New file.
82059         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
82060         New file.
82061         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
82062         New file.
82063         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
82064         New file.
82065         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
82066         New file.
82067         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
82068         New file.
82069         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
82070         New file.
82071         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
82072         New file.
82073         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
82074         New file.
82075         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
82076         New file.
82077         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
82078         New file.
82079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
82080         file.
82081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
82082         New file.
82083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
82084         New file.
82085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
82086         file.
82087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
82088         New file.
82089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
82090         New file.
82091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
82092         file.
82093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
82094         New file.
82095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
82096         New file.
82097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
82098         New file.
82099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
82100         New file.
82101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
82102         New file.
82103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
82104         New file.
82105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
82106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
82107         file.
82108         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
82109         New file.
82110         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
82111         file.
82112         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
82113         file.
82114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
82115         file.
82116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
82117         file.
82118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
82119         file.
82120         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
82121         New file.
82122         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
82123         file.
82124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
82125         file.
82126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
82127         New file.
82128         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
82129         file.
82130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
82131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
82132         file.
82133         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
82134         New file.
82135         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
82136         file.
82137         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
82138         file.
82139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
82140         file.
82141         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
82142         file.
82143         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
82144         file.
82145         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
82146         New file.
82147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
82148         file.
82149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
82150         file.
82151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
82152         New file.
82153         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
82154         file.
82155         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
82156         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
82157         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
82158         file.
82159         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
82160         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
82161         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
82162         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
82163         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
82164         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
82165         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
82166         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
82167         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
82168         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
82169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
82170         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
82171         file.
82172         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
82173         New file.
82174         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
82175         file.
82176         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
82177         file.
82178         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
82179         file.
82180         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
82181         file.
82182         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
82183         file.
82184         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
82185         New file.
82186         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
82187         New file.
82188         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
82189         file.
82190         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
82191         New file.
82192         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
82193         file.
82194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
82195         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
82196         file.
82197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
82198         New file.
82199         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
82200         file.
82201         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
82202         file.
82203         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
82204         file.
82205         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
82206         file.
82207         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
82208         file.
82209         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
82210         New file.
82211         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
82212         New file.
82213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
82214         file.
82215         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
82216         New file.
82217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
82218         file.
82219
82220 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
82221
82222         * conform/conformtest.pl: Fix typo in handling typed-constant from
82223         allow-header.
82224
82225 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
82226
82227         * README: Cut down references to pre-2.6 Linux kernels and
82228         Linuxthreads.  Update lists of configurations in libc and ports
82229         and sort alphabetically.  Say "or newer" with Linux kernel version
82230         requirements.
82231
82232         * config.h.in [IS_IN_build]: Allow compiling without optimization.
82233
82234 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
82235
82236         [BZ #887]
82237         * math/libm-test.inc (logb_test_downward): New test to expose
82238         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
82239         rounding mode.
82240
82241 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
82242
82243         [BZ #14027]
82244         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
82245         to be done.
82246         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
82247         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
82248
82249 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
82250
82251         * sysdeps/unix/i386/brk.S: Remove file.
82252         * sysdeps/unix/i386/dl-brk.S: Likewise.
82253         * sysdeps/unix/i386/pipe.S: Likewise.
82254         * sysdeps/unix/i386/sigreturn.S: Likewise.
82255         * sysdeps/unix/i386/syscall.S: Likewise.
82256         * sysdeps/unix/i386/vfork.S: Likewise.
82257         * sysdeps/unix/i386/wait.S: Likewise.
82258
82259         * sysdeps/unix/common/tcsendbrk.c: Move to ...
82260         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
82261
82262         * configure.in (arm*-none*): Do not allow without
82263         --enable-hacker-mode.
82264         (netbsd*): Remove case setting base_os.
82265         (386bsd*): Likewise.
82266         (freebsd*): Likewise.
82267         (bsdi*): Likewise.
82268         (osf*): Likewise.
82269         (sunos*): Likewise.
82270         (ultrix*): Likewise.
82271         (newsos*): Likewise.
82272         (dynix*): Likewise.
82273         (*bsd*): Likewise.
82274         (sysv*): Likewise.
82275         (isc*): Likewise.
82276         (esix*): Likewise.
82277         (sco*): Likewise.
82278         (minix*): Likewise.
82279         (irix4*): Likewise.
82280         (irix6*): Likewise.
82281         (solaris[2-9]*): Likewise.
82282         (none): Likewise.
82283         * configure: Regenerated.
82284
82285 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
82286
82287         [BZ #11521]
82288         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
82289         overflow or cancellation in calculating denominator.
82290         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
82291         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
82292         down expression to avoid unexpected rounding in newer GCCs.
82293         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
82294
82295 2012-04-26  David S. Miller  <davem@davemloft.net>
82296
82297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
82298         long-double compat symbols.
82299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
82300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
82301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
82302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
82303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
82304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
82305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
82306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
82307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
82308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
82309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
82310         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
82311         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
82312
82313 2012-04-25  David S. Miller  <davem@davemloft.net>
82314
82315         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
82316         HWCAP_* values only after the memory barriers have been defined.
82317         (atomic_full_barrier): Define.
82318         (atomic_read_barrier): Define.
82319         (atomic_write_barrier): Define.
82320
82321 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
82322
82323         * shlib-versions: Add libgcc_s version information.
82324         * sysdeps/generic/libgcc_s.h: Remove.
82325         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
82326         libgcc_s.h.
82327         * sysdeps/gnu/unwind-resume.c: Likewise.
82328         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
82329
82330 2012-04-25  David S. Miller  <davem@davemloft.net>
82331
82332         * sysdeps/unix/sparc/brk.S: Delete.
82333         * sysdeps/unix/sparc/dl-brk.S: Delete.
82334         * sysdeps/unix/sparc/pipe.S: Delete.
82335         * sysdeps/unix/sparc/sysdep.S: Delete.
82336         * sysdeps/unix/sparc/sysdep.h: Delete.
82337         * sysdeps/unix/sparc/vfork.S: Delete.
82338         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
82339         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
82340         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
82341         (ret_ERRVAL, r0, r1, MOVE): Define.
82342         (JUMPTARGET): Remove.
82343         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
82344         sysdeps/unix/sparc/sysdep.h
82345         (ENTRY, END): Remove.
82346         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82347
82348 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
82349
82350         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
82351         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
82352         -DIS_IN_build.
82353
82354         * timezone/README: Update upstream location and email address for
82355         tzcode and tzdata.
82356         * timezone/zdump.c: Update from tzcode 2012b.
82357         * timezone/zic.c: Likewise.
82358
82359         * configure.in (libc_cv_as_needed): Remove test.
82360         * configure: Regenerated.
82361         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
82362         conditional definition.
82363         [$(have-as-needed) != yes] (no-as-needed): Likewise.
82364         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
82365         * config.make.in (have-as-needed): Remove variable.
82366
82367 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
82368             Paul Pluzhnikov  <ppluzhnikov@google.com>
82369
82370         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
82371         strings correctly.
82372
82373 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
82374
82375         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
82376         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
82377         * sysdeps/sh/strlen.S: Likewise.
82378
82379 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
82380
82381         * sysdeps/unix/fork.S: Remove file.
82382         * sysdeps/unix/i386/fork.S: Likewise.
82383         * sysdeps/unix/sparc/fork.S: Likewise.
82384
82385         * sysdeps/unix/system.c: Remove file.
82386         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
82387
82388         * sysdeps/unix/getegid.S: Remove file.
82389         * sysdeps/unix/geteuid.S: Likewise.
82390
82391 2012-04-24  Roland McGrath  <roland@hack.frob.com>
82392
82393         * scripts/check-localplt.awk: New file.
82394         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
82395         of diff.
82396         * scripts/data/localplt-generic.data: Add a comment.
82397
82398         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
82399         NODE when __dir_mkfile failed.
82400         * sysdeps/mach/hurd/symlinkat.c: Likewise.
82401         Reported by Ludovic Courtès <ludo@gnu.org>.
82402
82403 2012-04-24  Andreas Jaeger  <aj@suse.de>
82404
82405         * Makerules (common-clean): Also remove gen-as-const-headers
82406         files.
82407
82408 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
82409
82410         * Makerules (native-compile): Do not change working directory for
82411         build.  Use $(OUTPUT_OPTION) in command.
82412         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
82413
82414 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
82415
82416         [BZ #13886]
82417         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
82418         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
82419         * math/libm-test.inc (floor_test): Add more tests.
82420         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
82421
82422 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
82423
82424         * sysdeps/unix/getdents.c: Remove file.
82425         * sysdeps/unix/sysv/getdents.c: Likewise.
82426         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
82427
82428         * sysdeps/unix/syscalls.list (madvise): Add syscall from
82429         sysdeps/unix/mman/syscalls.list.
82430         (mmap): Likewise.
82431         (mprotect): Likewise.
82432         (msync): Likewise.
82433         (munmap): Likewise.
82434         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
82435         * sysdeps/unix/mman/syscalls.list: Remove.
82436         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
82437
82438         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
82439         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
82440         * configure: Regenerated.
82441         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
82442         $(libgcc_s_suffix).
82443         * config.make.in (libgcc_s_suffix): Remove variable.
82444
82445 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
82446
82447         * sysdeps/unix/sysv/gethostname.c: Move to ...
82448         * sysdeps/posix/gethostname.c: ... here.
82449
82450         * sysdeps/unix/execve.S: Remove file.
82451
82452         * sysdeps/unix/_exit.S: Remove file.
82453
82454 2012-04-23  Andreas Jaeger  <aj@suse.de>
82455
82456         [BZ #13739]
82457         * manual/Makefile: Remove make dist support, there's no
82458         need for a stand-alone documentation tar ball.
82459         (TEXI2DVI): Define always, it's not in Makeconfig.
82460         (dist): Removed.
82461         (tar-it): Removed.
82462         (edition): Removed.
82463         (glibc-doc-$(edition).tar): Removed
82464         (%.Z): Removed.
82465         (%.gz): Removed.
82466         (%.uu): Removed.
82467         (ETAGS): Remove, it's in Makeconfig.
82468         (move-if-change): Remove, it's in Makeconfig.
82469
82470 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
82471
82472         [BZ #13970]
82473         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
82474         (strtod, strtof, strtold, strtol, strtoul, strtoq)
82475         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
82476         (strtod_l, strtof_l, strtold_l): Remove __wur.
82477         It is not necessarily an error to ignore strtol's return value.
82478         One can reliably look at the stored endptr to decide whether
82479         the number had valid syntax.
82480
82481 2012-04-21  Andreas Jaeger  <aj@suse.de>
82482
82483         [BZ #13739]
82484         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
82485
82486 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
82487
82488         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
82489         * sysdeps/unix/sysv/Versions: Remove file.
82490
82491 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
82492
82493         [BZ #13927]
82494         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
82495
82496 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
82497
82498         [BZ #7064]
82499         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
82500         version from __vm86.
82501
82502 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
82503
82504         * sysdeps/unix/common/lxstat.c: Remove file.
82505         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
82506
82507         * sysdeps/unix/sysv/Makefile: Remove file.
82508
82509         * sysdeps/unix/sysv/direct.h: Remove file.
82510
82511         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
82512         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
82513         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
82514         * sysdeps/unix/sysv/bits/signum.h: Likewise.
82515         * sysdeps/unix/sysv/bits/stat.h: Likewise.
82516         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
82517         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
82518
82519         * sysdeps/unix/sysv/setrlimit.c: Remove file.
82520
82521         * sysdeps/unix/xmknod.c: Remove file.
82522         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
82523
82524         * sysdeps/unix/sysv/settimeofday.c: Remove file.
82525
82526         * sysdeps/unix/sysv/i386/time.S: Remove file.
82527
82528         * sysdeps/unix/fxstat.c: Remove file.
82529         * sysdeps/unix/xstat.c: Likewise.
82530         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
82531
82532         * sysdeps/unix/sysv/sigaction.c: Remove file.
82533
82534         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
82535         (sysdep_headers): Remove variable.
82536         [termio.h not in sysdep_headers] (generated): Likewise.
82537         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
82538         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
82539         * sysdeps/unix/sysv/tcdrain.c: Likewise.
82540         * sysdeps/unix/sysv/tcflow.c: Likewise.
82541         * sysdeps/unix/sysv/tcflush.c: Likewise.
82542         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
82543         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
82544         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
82545         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
82546         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
82547
82548         * sysdeps/unix/siglist.c: Remove file.
82549
82550         * sysdeps/unix/getppid.S: Remove file.
82551
82552         * sysdeps/unix/mkdir.c: Remove file.
82553         * sysdeps/unix/rmdir.c: Likewise.
82554
82555 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
82556
82557         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
82558         ERR_MAX value.
82559         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
82560         errlist-compat value.
82561
82562 2012-04-18  David S. Miller  <davem@davemloft.net>
82563
82564         * sysdeps/generic/memcopy.h (reg_char): Delete.
82565         * debug/strcat_chk.c: Use char, not reg_char.
82566         * debug/strcpy_chk.c: Likewise.
82567         * debug/strncat_chk.c: Likewise.
82568         * debug/strncpy_chk.c: Likewise.
82569         * string/memchr.c: Likewise.
82570         * string/memrchr.c: Likewise.
82571         * string/rawmemchr.c: Likewise.
82572         * string/strcat.c: Likewise.
82573         * string/strchr.c: Likewise.
82574         * string/strchrnul.c: Likewise.
82575         * string/strcmp.c: Likewise.
82576         * string/strcpy.c: Likewise.
82577         * string/strncat.c: Likewise.
82578         * string/strncmp.c: Likewise.
82579         * string/strncpy.c: Likewise.
82580
82581 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
82582
82583         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
82584         __builtin_memcopy is called when src and dest ranges are known to not
82585         overlap.
82586
82587 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
82588
82589         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
82590         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
82591         fwd_align_merge macro call.
82592         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
82593         bwd_align_merge macro call.
82594         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
82595
82596 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
82597
82598         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
82599         bwd_align_merge macros.
82600         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
82601         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
82602         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
82603
82604 2012-04-18  David S. Miller  <davem@davemloft.net>
82605
82606         * sysdeps/sparc/sparc64/memcopy.h: Delete.
82607
82608 2012-04-18  Andreas Jaeger  <aj@suse.de>
82609
82610         [BZ #6794]
82611         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
82612         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
82613         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
82614
82615         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
82616         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
82617         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
82618
82619         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
82620         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
82621         Adjust for changed ldbl-128 files.
82622
82623         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
82624         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
82625         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
82626
82627 2012-04-17  David S. Miller  <davem@davemloft.net>
82628
82629         * sysdeps/sparc/sparc32/memcopy.h: Delete.
82630
82631 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
82632
82633         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
82634         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
82635         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
82636         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
82637         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
82638         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
82639
82640 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
82641
82642         [BZ #6794]
82643         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
82644         * math/libm-test.inc: Add ilogb errno and exception tests.
82645         * math/w_ilogb.c: New file: ilogb wrapper.
82646         * math/w_ilogbf.c: New file: ilogbf wrapper.
82647         * math/w_ilogbl.c: New file: ilogbl wrapper.
82648         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
82649         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
82650         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
82651         exception being thrown with 0.0 as argument.
82652         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
82653         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
82654         exception being thrown with 0.0 as argument.
82655         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
82656         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
82657         exception being thrown with 0.0 as argument.
82658         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
82659         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
82660         exception being thrown with 0.0 as argument.
82661         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
82662         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
82663         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
82664         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
82665         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
82666         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
82667         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
82668         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
82669         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
82670
82671 2012-04-17  Petr Baudis  <pasky@ucw.cz>
82672
82673         * include/sys/uio.h: Change __vector to __iovec to avoid clash
82674         with altivec.
82675
82676 2012-04-16  Marek Polacek  <polacek@redhat.com>
82677
82678         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
82679
82680 2012-04-16  Marek Polacek  <polacek@redhat.com>
82681
82682         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
82683         operands of fdivp instruction.
82684
82685 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
82686
82687         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
82688         * elf/tst-auditmod3b.c: Likewise.
82689         * elf/tst-auditmod4b.c: Likewise.
82690         * elf/tst-auditmod5b.c: Likewise.
82691         * elf/tst-auditmod6b.c: Likewise.
82692         * elf/tst-auditmod6c.c: Likewise.
82693         * elf/tst-auditmod7b.c: Likewise.
82694         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
82695         * sysdeps/x86_64/preconfigure.in: Likewise.
82696         * sysdeps/x86_64/preconfigure: Regenerated.
82697
82698 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
82699
82700         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
82701         __ILP32__.
82702
82703 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
82704
82705         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
82706         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
82707
82708 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
82709
82710         [BZ #13973]
82711         * locale/iso-639.def: Fix gl language name. Spotted by
82712         Yaron Shahrabani.
82713
82714 2012-04-12  Roland McGrath  <roland@hack.frob.com>
82715
82716         [BZ #2074]
82717         * libio/libio.h (__io_write_fn): Update comment.
82718
82719 2012-04-12  Petr Baudis  <pasky@ucw.cz>
82720
82721         [BZ #2074]
82722         * stdio.texi (Hook Functions): The user provided writer function
82723         is not allowed to return -1.
82724
82725 2012-04-11  David S. Miller  <davem@davemloft.net>
82726
82727         * sysdeps/sparc/fpu/libm-test-ulps: Update.
82728
82729 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
82730
82731         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
82732         Add a leading slash to rtkaio.
82733
82734 2012-04-11  Jim Meyering  <meyering@redhat.com>
82735
82736         [BZ #11959]
82737         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
82738         It is not necessarily an error to ignore fwrite's return
82739         value.  One can reliably use ferror to test for errors after
82740         the fact.
82741
82742 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
82743
82744         * bits/types.h (__snseconds_t): New type.
82745         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
82746
82747         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
82748         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
82749         (__SNSECONDS_T_TYPE): Likewise.
82750         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
82751         (__SNSECONDS_T_TYPE): Likewise.
82752         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
82753         (__SNSECONDS_T_TYPE): Likewise.
82754
82755 2012-04-10  Andreas Jaeger  <aj@suse.de>
82756
82757         [BZ #2636]
82758         * manual/time.texi (Processor Time): Return type of times is
82759         elapsed real time since an arbitrary point in the past.
82760         (CPU Time): Move CLK_TCK from here...
82761         (Processor Time): ...to here.  Correct description.
82762         * manual/conf.texi (Constants for Sysconf): Correct description of
82763         _SC_CLK_TCK.
82764
82765 2012-04-10  David S. Miller  <davem@davemloft.net>
82766
82767         [BZ #13967]
82768         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
82769         where the is a gap between DT_REL(A) and DT_JMPREL.
82770
82771 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
82772
82773         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
82774         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
82775         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
82776
82777 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
82778
82779         * elf/dl-support.c (_dl_inhibit_cache): New variable.
82780         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
82781         (dl_main): Handle --inhibit-cache.
82782         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
82783         _dl_inhibit_cache.
82784         * elf/dl-load.c (_dl_map_object): Use it.
82785         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
82786
82787 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
82788
82789         [BZ #13872]
82790         * sysdeps/i386/fpu/e_powl.S (p78): New object.
82791         (__ieee754_powl): Saturate large exponents rather than testing for
82792         overflow of y*log2(x).
82793         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
82794         * math/libm-test.inc (pow_test): Do not permit spurious overflow
82795         exceptions.
82796
82797         [BZ #11521]
82798         * math/s_ctan.c: Include <float.h>.
82799         (__ctan): Avoid internal overflow or cancellation in calculating
82800         denominator.
82801         * math/s_ctanf.c: Likewise.
82802         * math/s_ctanl.c: Likewise.
82803         * math/s_ctanh.c: Likewise.
82804         * math/s_ctanhf.c: Likewise.
82805         * math/s_ctanhl.c: Likewise.
82806         * math/libm-test.inc (ctan_test): Add more tests.
82807         (ctanh_test): Likewise.
82808         * sysdeps/i386/fpu/libm-test-ulps: Update.
82809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82810
82811 2012-04-09  Andreas Jaeger  <aj@suse.de>
82812
82813         [BZ #6894]
82814         * manual/filesys.texi (Directory Entries): Mention that d_namlen
82815         is an optional BSD extension.
82816
82817         [BZ #10254]
82818         * manual/stdio.texi (Opening Streams): Document additional fopen
82819         parameters.
82820
82821 2012-04-09  Roland McGrath  <roland@hack.frob.com>
82822
82823         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
82824         %eax without telling the compiler.
82825
82826 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
82827
82828         [BZ # 13963]
82829         * manual/install.texi: Use sourceware.org.
82830
82831 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
82832
82833         [BZ #13873]
82834         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
82835         (__ieee754_pow): Generate overflow and underflow using huge*huge
82836         and tiny*tiny rather than just returning constant infinity or zero
82837         for large exponents.
82838         * math/libm-test.inc (pow_test): Require overflow exceptions for
82839         applicable cases of large exponents.
82840
82841         [BZ #706]
82842         * sysdeps/i386/fpu/e_pow.S (p10): New object.
82843         (__ieee754_pow): Use iterative multiplication algorithm only for
82844         integer exponents with absolute value below 1024.  Check for odd
82845         integer exponents when using algorithm for real exponents.
82846         * math/libm-test.inc (pow_test): Add more tests.
82847         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
82848
82849 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
82850
82851         [BZ #13705]
82852         * math/libm-test.inc (exp_test): Do not allow overflow exception
82853         on underflow test.
82854
82855 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
82856
82857         [BZ #13705]
82858         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
82859         instead of __kernel_standard_f.
82860
82861 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
82862
82863         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
82864         * sysdeps/x86_64/memset_chk.S: Likewise.
82865
82866 2012-04-08  Andreas Jaeger  <aj@suse.de>
82867
82868         [BZ #10153]
82869         * manual/startup.texi (Environment Access): Describe return value
82870         for putenv and setenv.
82871
82872         [BZ #6895]
82873         * manual/filesys.texi (Directory Entries): Add description for
82874         DT_LNK.
82875
82876         [BZ #6890]
82877         * manual/filesys.texi (Directory Entries): Clarify that it's file
82878         system not operating system in the description of DT_UNKNOWN.
82879
82880         [BZ #6578]
82881         * manual/syslog.texi (closelog): Fix reference, it's openlog.
82882
82883 2012-04-08  Stephen Compall  <s11@member.fsf.org>
82884
82885         [BZ #6649]
82886         * manual/llio.texi (Opening and Closing Files): Add cross
82887         reference to explain mode argument.
82888
82889 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
82890
82891         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
82892         * sysdeps/x86_64/memset_chk.S: Likewise.
82893
82894 2012-04-07  David S. Miller  <davem@davemloft.net>
82895
82896         * elf/elf.h (R_SPARC_WDISP10): Define.
82897         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
82898         R_SPARC_SIZE32.
82899         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
82900         R_SPARC_SIZE64 and R_SPARC_H34.
82901
82902 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
82903
82904         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
82905         conditions and remove no longer applicable assertion.
82906
82907 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
82908
82909         * bits/byteswap.h: Include <features.h>.
82910         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
82911         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
82912
82913 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
82914
82915         * bits/byteswap.h (__bswap_16): Removed.
82916         Include <bits/byteswap-16.h> to get __bswap_16.
82917         * sysdeps/i386/bits/byteswap.h: Likewise.
82918         * sysdeps/s390/bits/byteswap.h: Likewise.
82919         * sysdeps/x86_64/bits/byteswap.h: Likewise.
82920         * bits/byteswap-16.h: New file.
82921         * sysdeps/i386/bits/byteswap-16.h: Likewise.
82922         * sysdeps/s390/bits/byteswap-16.h: Likewise.
82923         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
82924         * string/Makefile (headers): Add bits/byteswap-16.h.
82925
82926 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
82927
82928         [BZ #13895]
82929         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
82930         extra indirection.
82931         * nss/Makefile (tests-static, tests): Add tst-nss-static.
82932         * nss/tst-nss-static.c: New.
82933
82934 2012-04-06  Robert Millan  <rmh@gnu.org>
82935
82936         [BZ #6486]
82937         * manual/llio.texi (File Position Primitive): lseek
82938         refers to WHENCE when it really means OFFSET.
82939
82940 2012-04-06  Andreas Jaeger  <aj@suse.de>
82941
82942         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
82943         strncmp declarations.
82944
82945         * abilist/libc.abilist: Add __poll and __ppoll.
82946
82947 2012-04-05  David S. Miller  <davem@davemloft.net>
82948
82949         * scripts/check-local-headers.sh: Accept a host triplet in the
82950         path matched by the exclude regexp.
82951
82952         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
82953         definition.
82954         * sysdeps/powerpc/powerpc32/dl-machine.h
82955         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
82956         * sysdeps/s390/s390-32/dl-machine.h
82957         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
82958         * sysdeps/sparc/sparc32/dl-machine.h
82959         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
82960         * sysdeps/sparc/sparc64/dl-machine.h
82961         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
82962
82963         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
82964         lazy binding.
82965         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
82966         undefined symbol errors.
82967
82968         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
82969         DT_NEEDED entries.
82970
82971 2012-04-05  Michael Matz  <matz@suse.de>
82972
82973         [BZ #13592]
82974         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
82975
82976 2012-04-05  Andreas Jaeger  <aj@suse.de>
82977
82978         [BZ #13908]
82979         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
82980         comment.
82981
82982 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82983
82984         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
82985         which ROUND is no valid rounding mode.
82986
82987 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82988
82989         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
82990         read again.
82991         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
82992
82993 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82994
82995         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
82996         an exception using FPU order intentionally.
82997
82998 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82999
83000         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
83001         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
83002         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
83003         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
83004
83005 2012-04-05  Simon Josefsson  <simon@josefsson.org>
83006
83007         [BZ #12340]
83008         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
83009         EINVAL when BUFLEN is too smal.
83010
83011 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
83012
83013         [BZ #13553]
83014         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
83015         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
83016
83017 2012-04-03  Andreas Jaeger  <aj@suse.de>
83018
83019         [BZ #13938]
83020         * manual/setjmp.texi (System V contexts): Fix sentence.
83021
83022         [BZ #13926]
83023         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
83024         New macro for this case.
83025         [!__GNUC__] (__bswap_64): New inline function for this case.
83026         * sysdeps/x86_64/bits/byteswap.h: Likewise.
83027         * bits/byteswap.h: Likewise.
83028         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
83029         ull, guard with __GLIBC_HAVE_LONG_LONG.
83030
83031         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
83032         __GLIBC_HAVE_LONG_LONG.
83033
83034         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
83035         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
83036
83037 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
83038
83039         [BZ #13691]
83040         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
83041         inptr and inend, rather than using last_ch.
83042
83043 2012-04-02  David S. Miller  <davem@davemloft.net>
83044
83045         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
83046         * stdio-common/printf-parse.h (read_int): Change return type to
83047         'int', return -1 on INT_MAX overflow.
83048         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
83049         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
83050         overflows INT_MAX.  Check for overflow of in-format-string precision
83051         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
83052         SIZE_MAX not INT_MAX for integer overflow test.
83053         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
83054         skip the construct in the format string but do not record anything.
83055         * stdio-common/bug22.c: Adjust to test both width/prevision
83056         INT_MAX overflow as well as total length INT_MAX overflow.  Check
83057         explicitly for proper errno values.
83058
83059 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
83060
83061         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
83062         CHAR_MAX.
83063         * string/test-strcmp.c [! WIDE]: Likewise.
83064         * time/tst-mktime2.c: Likewise for INT_MAX.
83065         * string/test-string.h: #include <sys/param.h> for MIN.
83066
83067         * csu/init-first.c (__libc_init_first): Call __ctype_init.
83068         * sysdeps/i386/init-first.c (init): Likewise.
83069         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
83070         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
83071         * sysdeps/sh/init-first.c (init): Likewise.
83072
83073 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
83074
83075         * po/ru.po: Update from translation team.
83076         * po/vi.po: Likewise.
83077
83078 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
83079
83080         * resolv/nss_dns/dns-host.c: Merge copyright years.
83081
83082 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83083
83084         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
83085         Optimize memcpy with prefetch if
83086         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
83087         src, dst pointers have unequal 16 byte alignments.
83088
83089 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
83090
83091         [BZ #13928]
83092         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
83093         from a CNAME entry and return the minimum ttl for the query.
83094         (gaih_getanswer_slice): Likewise.
83095
83096 2012-03-30  Jeff Law  <law@redhat.com>
83097
83098         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
83099         due to long keys.
83100         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
83101         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
83102
83103         * resolv/nss_dns/dns-host.c: Update copyright year.
83104
83105 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
83106
83107         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
83108         requests to save a system call.  Fix check that all bytes are sent.
83109
83110         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
83111         comments for sendmmsg.
83112
83113 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
83114
83115         [BZ #13691]
83116         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
83117         with only 1 character between 0x0041 and 0x01b0.
83118         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
83119         * wcsmbs/tst-mbsnrtowcs.c: New file.
83120
83121 2012-03-29  David S. Miller  <davem@davemloft.net>
83122
83123         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
83124         small copies by hand.
83125
83126 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
83127
83128         [BZ #13761]
83129         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
83130         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
83131         group memberships.
83132
83133 2012-03-28  David S. Miller  <davem@davemloft.net>
83134
83135         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
83136         that branches into memcpy.
83137         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
83138         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
83139         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
83140         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
83141         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
83142         bits.
83143         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
83144         implementation too.
83145         * sysdeps/sparc/mempcpy.S: New file.
83146
83147         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
83148         the IFUNC routine in the libc case.
83149         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
83150
83151         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
83152         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
83153         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
83154         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
83155         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
83156         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
83157         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
83158         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
83159
83160         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
83161         loop to 256 bytes instead of 64 bytes and fix test signedness.
83162
83163         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
83164         * sysdeps/sparc/sparc32/Makefile: rather than here...
83165         * sysdeps/sparc/sparc64/Makefile: and here.
83166
83167 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
83168
83169         * malloc/mallocbug.c: Avoid warnings about unused variables.
83170
83171 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
83172
83173         [BZ #13760]
83174         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
83175         in the right place. Discard and retry query if response is
83176         larger than input buffer size.
83177
83178 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
83179
83180         [BZ #369]
83181         [BZ #2678]
83182         [BZ #3866]
83183         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
83184         x for large integer exponent.
83185         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
83186         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
83187         sign of result as needed afterwards.
83188         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
83189         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
83190         result for underflowing pow the same as for overflow.
83191         (__kernel_standard_l): Handle powl overflow and underflow here
83192         rather than calling __kernel_standard.
83193         * math/libm-test.inc (pow_test): Add more tests.
83194
83195         [BZ #3868]
83196         [BZ #13879]
83197         [BZ #13910]
83198         [BZ #13911]
83199         [BZ #13912]
83200         [BZ #13913]
83201         [BZ #13915]
83202         [BZ #13916]
83203         [BZ #13917]
83204         [BZ #13918]
83205         [BZ #13919]
83206         [BZ #13920]
83207         [BZ #13921]
83208         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
83209         * sysdeps/ieee754/k_standard.c: Include <float.h>.
83210         (__kernel_standard_l): New function.
83211         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
83212         __kernel_standard.
83213         * math/w_acosl.c (__acosl): Likewise.
83214         * math/w_asinl.c (__asinl): Likewise.
83215         * math/w_atan2l.c (__atan2l): Likewise.
83216         * math/w_atanhl.c (__atanhl): Likewise.
83217         * math/w_coshl.c (__coshl): Likewise.
83218         * math/w_exp10l.c (__exp10l): Likewise.
83219         * math/w_exp2l.c (__exp2l): Likewise.
83220         * math/w_fmodl.c (__fmodl): Likewise.
83221         * math/w_hypotl.c (__hypotl): Likewise.
83222         * math/w_j0l.c (__j0l, __y0l): Likewise.
83223         * math/w_j1l.c (__j1l, __y1l): Likewise.
83224         * math/w_jnl.c (__jnl, __ynl): Likewise.
83225         * math/w_lgammal.c (__lgammal): Likewise.
83226         * math/w_log10l.c (__log10l): Likewise.
83227         * math/w_log2l.c (__log2l): Likewise.
83228         * math/w_logl.c (__logl): Likewise.
83229         * math/w_powl.c (__powl): Likewise.
83230         * math/w_remainderl.c (__remainderl): Likewise.
83231         * math/w_scalbl.c (sysv_scalbl): Likewise.
83232         * math/w_sinhl.c (__sinhl): Likewise.
83233         * math/w_sqrtl.c (__sqrtl): Likewise.
83234         * math/w_tgammal.c (__tgammal): Likewise.
83235         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
83236         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
83237         * math/libm-test.inc (acos_test): Add more tests.
83238         (acosh_test): Likewise.
83239         (asin_test): Likewise.
83240         (atanh_test): Likewise.
83241         (exp_test): Likewise.
83242         (exp10_test): Likewise.
83243         (exp2_test): Likewise.
83244         (expm1_test): Likewise.
83245         (lgamma_test): Likewise.
83246         (log_test): Likewise.
83247         (log10_test): Likewise.
83248         (log1p_test): Likewise.
83249         (log2_test): Likewise.
83250         (pow_test): Do not allow some spurious overflow exceptions.
83251         (sqrt_test): Add more tests.
83252         (tgamma_test): Likewise.
83253         (y0_test): Likewise.
83254         (y1_test): Likewise.
83255         (yn_test): Likewise.
83256
83257 2012-03-27  Anton Blanchard  <anton@samba.org>
83258
83259         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
83260         MAP_HUGETLB.
83261         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
83262         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
83263         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
83264
83265 2012-03-27  David S. Miller  <davem@davemloft.net>
83266
83267         * conform/Makefile: Run run-conformtest.sh using $(BASH).
83268
83269         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
83270         have-as-vis3 check.
83271
83272 2012-03-27  Andreas Jaeger  <aj@suse.de>
83273
83274         * sysdeps/x86_64/elf/configure.in: Moved to ...
83275         * sysdeps/x86_64/configure.in: ... here.
83276         * sysdeps/x86_64/elf/start.S: Moved to ...
83277         * sysdeps/x86_64/start.S: ... here.
83278         * sysdeps/x86_64/elf/configure: Delete.
83279
83280         * sysdeps/x86_64/configure.in: Merge contents from
83281         sysdeps/i386/configure.in (without i686 check).
83282
83283         * sysdeps/i386/elf/Versions: Merge into ...
83284         * sysdeps/i386/Versions: ... this.
83285         * sysdeps/i386/elf/Versions: Delete file.
83286         * sysdeps/i386/elf/start.S: Moved to ...
83287         * sysdeps/i386/start.S: ...here.
83288         * sysdeps/i386/elf/configure.in: Merge into...
83289         * sysdeps/i386/configure.in: ...here.
83290         * sysdeps/i386/elf/configure.in: Delete file.
83291         * sysdeps/i386/elf/configure: Delete file.
83292
83293         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
83294         * debug/backtracesyms.c: ... here.
83295         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
83296         * debug/backtracesymsfd.c: ... here.
83297         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
83298         * sysdeps/generic/ifunc-sel.h: ... here.
83299
83300         * sysdeps/unix/i386/start.c: Delete file.
83301         * sysdeps/unix/sparc/start.c: Delete file.
83302         * sysdeps/unix/start.c: Delete file.
83303
83304         * sysdeps/sh/elf/configure.in: Moved to ...
83305         * sysdeps/sh/configure.in: ... here.
83306         * sysdeps/sh/elf/start.S: Moved to ...
83307         * sysdeps/sh/start.S: ... here.
83308         * sysdeps/sh/elf/configure: Delete file.
83309
83310         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
83311         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
83312         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
83313         * sysdeps/powerpc/powerpc64/entry.h: ... here.
83314         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
83315         * sysdeps/powerpc/powerpc64/start.S: here.
83316         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
83317         * sysdeps/powerpc/powerpc64/Makefile: ... this.
83318         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
83319         * sysdeps/powerpc/powerpc64/configure.in: ... this.
83320         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
83321
83322         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
83323         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
83324         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
83325         * sysdeps/powerpc/powerpc32/start.S: ... here.
83326         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
83327         * sysdeps/powerpc/powerpc32/configure.in: ... this.
83328         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
83329
83330         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
83331         * sysdeps/powerpc/ifunc-sel.h: ... here.
83332         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
83333         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
83334
83335         * sysdeps/sparc/elf/configure.in: Moved to ...
83336         * sysdeps/sparc/configure.in: ... here.
83337         * sysdeps/sparc/elf/configure: Delete file.
83338         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
83339         * sysdeps/sparc/sparc32/start.S: ... here.
83340         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
83341         * sysdeps/sparc/sparc64/start.S: ... here.
83342         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
83343         * sysdeps/sparc/sparc32/Makefile: ... this.
83344         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
83345         * sysdeps/sparc/sparc64/Makefile: ... this.
83346
83347         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
83348         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
83349         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
83350         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
83351         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
83352         * sysdeps/s390/s390-32/setjmp.S: ... here.
83353         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
83354         * sysdeps/s390/s390-32/configure.in: ... here.
83355         * sysdeps/s390/s390-32/elf/configure: Delete file.
83356         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
83357         * sysdeps/s390/s390-32/start.S: ... here.
83358
83359         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
83360         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
83361         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
83362         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
83363         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
83364         * sysdeps/s390/s390-64/setjmp.S: ... here.
83365         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
83366         * sysdeps/s390/s390-64/configure.in: ... here
83367         * sysdeps/s390/s390-64/elf/configure: Delete file.
83368         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
83369         * sysdeps/s390/s390-64/start.S: ... here.
83370         * sysdeps/s390/s390-64/elf/configure: Delete.
83371
83372         * configure.in: Remove support for elf directories in sysdeps.
83373
83374         * configure: Regenerated.
83375         * sysdeps/i386/configure: Regenerated.
83376         * sysdeps/powerpc/powerpc32/configure: Regenerated.
83377         * sysdeps/powerpc/powerpc64/configure: Regenerated.
83378         * sysdeps/s390/s390-32/configure: Regenerated.
83379         * sysdeps/s390/s390-64/configure: Regenerated.
83380         * sysdeps/sh/configure: Regenerated.
83381         * sysdeps/sparc/configure: Regenerated.
83382         * sysdeps/x86_64/configure: Regenerated.
83383
83384 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
83385
83386         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
83387
83388         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
83389         denormal result into account.
83390
83391 2012-03-25  Roland McGrath  <roland@hack.frob.com>
83392
83393         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
83394         Reported by Allan McRae <allan@archlinux.org>.
83395
83396 2012-03-23  Jeff Law  <law@redhat.com>
83397
83398         * nss/getnssent.c (__nss_getent): Fix typo.
83399
83400 2012-03-23  David S. Miller  <davem@davemloft.net>
83401
83402         * sysdeps/sparc/fpu/libm-test-ulps: Update.
83403
83404 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
83405
83406         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
83407         to pad to uint64_t for each field.
83408         (dl_tls_index): Replace unsigned long with uint64_t.
83409
83410 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
83411         Paul Pluzhnikov  <ppluzhnikov@google.com>
83412
83413         [BZ #6528]
83414         * grp/Makefile (otherlibs): Don't set it.
83415         * inet/Makefile (otherlibs): Likewise.
83416         * login/Makefile (otherlibs): Likewise.
83417         * nscd/Makefile (otherlibs): Likewise.
83418         * posix/Makefile (otherlibs): Likewise.
83419         * pwd/Makefile (otherlibs): Likewise.
83420         * rt/Makefile (otherlibs): Likewise.
83421         * sunrpc/Makefile (otherlibs): Likewise.
83422         * nss/Makefile (otherlibs): Likewise.
83423         Add libnss_files to routines and static-only-routines.
83424         ($(objpfx)getent): Remove rule.
83425         * resolv/Makefile: Add libnss_dns and libresolv to routines and
83426         static-only-routines.
83427
83428 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
83429
83430         [BZ #13892]
83431         * math/s_cexp.c: Include <float.h>.
83432         (__cexp): Handle exp result overflowing not necessarily
83433         overflowing both real and imaginary parts of result.
83434         * math/s_cexpf.c: Likewise.
83435         * math/s_cexpl.c: Likewise.
83436         * math/libm-test.inc (cexp_test): Add more tests.
83437         * sysdeps/i386/fpu/libm-test-ulps: Update.
83438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
83439
83440 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
83441
83442         * include/link.h (ELFW): New macro.
83443         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
83444         Replace ELF64_R_TYPE with ELFW(R_TYPE).
83445
83446 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
83447
83448         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
83449         with uint64_t.
83450
83451 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
83452
83453         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
83454         declaration.
83455         (struct La_x32_retval): Likewise.
83456
83457 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
83458
83459         * sysdeps/x86_64/preconfigure.in: New file.
83460         * sysdeps/x86_64/preconfigure: New generated file.
83461
83462 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
83463
83464         [BZ #13824]
83465         * math/e_exp2l.c: Include <float.h>.
83466         (__ieee754_exp2l): Handle overflow and underflow cases
83467         separately.  Only pass fractional part of argument to
83468         __ieee754_expl.
83469         * math/libm-test.inc (exp2_test): Add more tests.
83470
83471         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
83472         negating x to take absolute value.
83473         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
83474         Likewise.
83475         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
83476         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
83477         Likewise.
83478         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
83479         computing low part if x was negated.
83480         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
83481
83482 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
83483
83484         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
83485         la_x32_gnu_pltexit.
83486         (pltexit): Cast int_retval to ptrdiff_t.
83487         * elf/tst-auditmod3b.c: Likewise.
83488         * elf/tst-auditmod4b.c: Likewise.
83489         * elf/tst-auditmod5b.c: Likewise.
83490         * elf/tst-auditmod6b.c: Likewise.
83491         * elf/tst-auditmod6c.c: Likewise.
83492         * elf/tst-auditmod7b.c: Likewise.
83493
83494         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
83495         and x32_gnu_pltexit.
83496
83497         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
83498         __ELF_NATIVE_CLASS.
83499         (La_x32_regs): New macro.
83500         (La_x32_retval): Likewise.
83501         (la_x32_gnu_pltenter): New function prototype.
83502         (la_x32_gnu_pltexit): Likewise.
83503
83504 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
83505
83506         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
83507         exponent.
83508
83509         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
83510
83511         * configure.in (libc_cv_cc_nofma): Check for option to disable
83512         generation of FMA instructions.
83513         * configure: Regenerate.
83514         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
83515         * sysdeps/ieee754/dbl-64/Makefile: New file.
83516         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
83517         Remove brandred-fma4.
83518         (CFLAGS-brandred-fma4.c): Remove.
83519         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
83520         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
83521         define.
83522         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
83523         define.
83524
83525 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
83526
83527         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
83528         LLONG_MAX != LONG_MAX.
83529         (_itoa_word): Use _ITOA_WORD_TYPE on value.
83530         (_fitoa_word): Likewise.
83531         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
83532         LLONG_MAX != LONG_MAX.
83533         * stdio-common/_itowa.h: Include <_itoa.h>.
83534         (_itowa_word): Use _ITOA_WORD_TYPE on value.
83535         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
83536         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
83537         only if not defined.
83538         (_ITOA_WORD_TYPE): Likewise.
83539         (_itoa_word): Use _ITOA_WORD_TYPE on value.
83540         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
83541
83542 2012-03-21  David S. Miller  <davem@davemloft.net>
83543
83544         * sysdeps/sparc/fpu/libm-test-ulps: Update.
83545
83546 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
83547
83548         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
83549         of x86_64 when setting libc_cv_slibdir, libdir and
83550         libc_cv_localedir.
83551         * sysdeps/unix/sysv/linux/configure: Regenerated.
83552
83553 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
83554
83555         * manual/lang.texi (Old Varargs): Remove section.
83556         (How Variadic): Update menu.
83557         (va_start): Do not mention varargs.h.
83558
83559 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
83560             Joseph Myers  <joseph@codesourcery.com>
83561
83562         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
83563         link test.
83564         * configure: Regenerated.
83565
83566 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
83567
83568         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
83569         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
83570         conformtest.pl
83571
83572 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
83573
83574         * NOTES: Remove.
83575         * Makefile (files-for-dist): Remove NOTES.
83576         (NOTES): Remove rule.
83577         * README: Don't refer to NOTES.
83578         * manual/creature.texi: Don't include macros.texi.
83579         * manual/intro.texi (creature.texi): Remove comment referring to
83580         NOTES.
83581
83582         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
83583         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
83584         * configure: Regenerated.
83585         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
83586         LIBC_TRY_CC_OPTION.
83587         (libc_cv_as_i686): Likewise.
83588         (libc_cv_cc_avx): Likewise.
83589         (libc_cv_cc_sse2avx): Likewise.
83590         (libc_cv_cc_fma4): Likewise.
83591         (libc_cv_cc_novzeroupper): Likewise.
83592         * sysdeps/i386/configure: Regenerated.
83593
83594         [BZ #13883]
83595         * sysdeps/i386/fpu/s_cexp.S: Remove.
83596         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
83597         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
83598         * math/libm-test.inc (cexp_test): Add more tests.
83599         * sysdeps/i386/fpu/libm-test-ulps: Update.
83600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
83601
83602 2012-03-21  Allan McRae  <allan@archlinux.org>
83603
83604         * timezone/Makefile: Do not install iso3166.tab and zone.tab
83605
83606 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
83607
83608         [BZ #13871]
83609         * math/w_exp2.c: Do not include <float.h>.
83610         (o_threshold, u_threshold): Remove.
83611         (__exp2): Calculate result before checking finiteness and calling
83612         __kernel_standard.
83613         * math/w_exp2f.c: Likewise.
83614         * math/w_exp2l.c: Likewise.
83615         * math/libm-test.inc (exp2_test): Require overflow exception for
83616         1e6 input.
83617
83618         [BZ #3866]
83619         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
83620         range of signed 64-bit integers before using fistpll.  Remove
83621         checks for whether integers fit in mantissa bits.
83622         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
83623         the range of signed 32-bit integers before using fistpl.  Remove
83624         checks for whether integers fit in mantissa bits.
83625         * sysdeps/i386/fpu/e_powl.S (p64): New object.
83626         (__ieee754_powl): Test for y outside the range of signed 64-bit
83627         integers before using fistpll.  Reduce 64-bit values to 63-bit
83628         ones as needed.
83629         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
83630         divide-by-zero is raised for zero to large negative powers.
83631         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
83632         (__ieee754_powl): Test for y outside the range of signed 64-bit
83633         integers before using fistpll.  Reduce 64-bit values to 63-bit
83634         ones as needed.
83635         * math/libm-test.inc (pow_test): Add more tests.
83636
83637 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
83638
83639         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
83640         <stdio-common/_itoa.h>.
83641         * debug/segfault.c: Likewise.
83642         * elf/dl-cache.c: Likewise.
83643         * elf/dl-minimal.c: Likewise.
83644         * elf/dl-misc.c: Likewise.
83645         * elf/dl-sysdep.c: Likewise.
83646         * elf/dl-version.c: Likewise.
83647         * elf/rtld.c: Likewise.
83648         * hurd/hurdsock.c: Likewise.
83649         * hurd/lookup-retry.c: Likewise.
83650         * malloc/malloc.c: Likewise.
83651         * malloc/mtrace.c: Likewise.
83652         * nscd/nscd_getgr_r.c: Likewise.
83653         * nscd/nscd_getpw_r.c: Likewise.
83654         * nscd/nscd_getserv_r.c: Likewise.
83655         * posix/getopt_init.c: Likewise.
83656         * posix/wordexp.c: Likewise.
83657         * stdio-common/_itoa.c: Likewise.
83658         * stdio-common/printf_fphex.c: Likewise.
83659         * stdio-common/vfprintf.c: Likewise.
83660         * string/_strerror.c: Likewise.
83661         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
83662         * sysdeps/i386/i686/hp-timing.h: Likewise.
83663         * sysdeps/mach/_strerror.c: Likewise.
83664         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
83665         * sysdeps/mach/hurd/sethostid.c: Likewise.
83666         * sysdeps/mach/hurd/xmknodat.c: Likewise.
83667         * sysdeps/mach/xpg-strerror.c: Likewise.
83668         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
83669         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
83670         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
83671         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
83672         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
83673         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
83674         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
83675         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
83676         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
83677         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
83678         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
83679         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
83680         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
83681         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
83682         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
83683         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
83684         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
83685         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
83686         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
83687         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
83688         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
83689
83690         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
83691
83692         * stdio-common/_itoa.h: Moved to ...
83693         * sysdeps/generic/_itoa.h: Here.
83694
83695         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
83696
83697         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
83698         instead of "_itoa.h" and "_itowa.h".
83699         * stdio-common/vfprintf.: Likewise.
83700
83701 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
83702
83703         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
83704         <bits/wordsize.h>.
83705         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
83706         (__signbit): Likewise.
83707         (llrintf): Likewise.
83708         (llrint): Likewise.
83709
83710 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
83711
83712         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
83713         __WORDSIZE != 64.
83714
83715 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
83716
83717         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
83718         OVERFLOW_EXCEPTION_OK.
83719         * math/libm-test.inc ("Philosophy"): Update comment about
83720         exception testing.
83721         (OVERFLOW_EXCEPTION): Define.
83722         (OVERFLOW_EXCEPTION_OK): Likewise.
83723         (INVALID_EXCEPTION_OK): Renumber.
83724         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
83725         (IGNORE_ZERO_INF_SIGN): Likewise.
83726         (test_exceptions): Handle FE_OVERFLOW.
83727         (exp10_test): Expect overflow exceptions.
83728         (exp2_test): Likewise.
83729         (expm1_test): Likewise.
83730         (nextafter_test): Likewise.
83731         (pow_test): Likewise.
83732         (scalbn_test): Likewise.
83733         (scalbln_test): Likewise.
83734
83735 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
83736
83737         * sysdeps/x86_64/bits/atomic.h
83738         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
83739         64bit integer.
83740         (atomic_exchange_acq): Likewise.
83741         (__arch_exchange_and_add_body): Likewise.
83742         (__arch_add_body): Likewise.
83743         (atomic_add_negative): Likewise.
83744         (atomic_add_zero): Likewise.
83745
83746 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
83747
83748         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
83749         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
83750
83751 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
83752
83753         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
83754         Check __x86_64__ instead of __WORDSIZE.
83755
83756 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
83757
83758         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
83759
83760 2012-03-19  David S. Miller  <davem@davemloft.net>
83761
83762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
83763
83764         * sysdeps/sparc/fpu/fenv_private.h: New file.
83765         * sysdeps/sparc/fpu/math_private.h: Use it.
83766         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
83767         Remove.
83768         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
83769         (libc_feholdexcept_setroundl): Remove.
83770         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
83771         Remove.
83772         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
83773         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
83774
83775 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
83776
83777         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
83778         int64_t instead of long int.
83779         (INSERT_WORDS64): Likewise.
83780
83781 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
83782
83783         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
83784         _Unwind_GetCFA return to _Unwind_Ptr first.
83785
83786 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
83787
83788         [BZ #13629]
83789         * math/s_clog.c: Include <float.h>.
83790         (__clog): Scale large or subnormal inputs.
83791         * math/s_clogf.c: Likewise.
83792         * math/s_clogl.c: Likewise.
83793         * math/s_clog10.c: Include <float.h>.
83794         (M_LOG10_2): Define.
83795         (__clog10): Scale large or subnormal inputs.
83796         * math/s_clog10f.c: Likewise.
83797         * math/s_clog10l.c: Likewise.
83798         * math/libm-test.inc (clog_test): Add more tests.
83799         (clog10_test): Likewise.
83800         * sysdeps/i386/fpu/libm-test-ulps: Update.
83801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
83802
83803         [BZ #11451]
83804         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
83805         x and y.
83806         * math/libm-test.inc (atan2_test): Add another test.
83807
83808         * Makerules (common-objdir-compile): Remove.
83809         * sysdeps/unix/Makefile (config-generated): Do not add
83810         $(unix-generated) to variable.
83811         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
83812         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
83813         Remove rule.
83814         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
83815         Likewise.
83816         [generic bits/local_lim.h] (before-compile): Do not append to
83817         variable.
83818         [generic bits/local_lim.h] (common-generated): Likewise.
83819         [generic sys/param.h] (before-compile): Do not append to variable.
83820         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
83821         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
83822         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
83823         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
83824         include.
83825         [generic sys/param.h] (sys/param.h-includes): Remove variable.
83826         [generic sys/param.h] (sys/param.h-includes): Remove rule.
83827         [generic sys/param.h] ($(addprefix
83828         $(common-objpfx),$(sys/param.h-includes))): Likewise.
83829         [generic sys/param.h] (common-generated): Do not append to
83830         variable.
83831         [generic sys/param.h] (sysdep_headers): Likewise.
83832         [generic bits/errno.h] (before-compile): Do not append to
83833         variable.
83834         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
83835         rule.
83836         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
83837         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
83838         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
83839         [generic bits/errno.h] (common-generated): Do not append to
83840         variable.
83841         [generic bits/ioctls.h] (before-compile): Do not append to
83842         variable.
83843         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
83844         rule.
83845         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
83846         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
83847         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
83848         rule.
83849         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
83850         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
83851         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
83852         [generic bits/ioctls.h] (common-generated): Do not append to
83853         variable.
83854         [generic sys/syscall.h] (syscall.h): Remove variable.
83855         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
83856         rule.
83857         [generic sys/syscall.h] (before-compile): Do not append to
83858         variable.
83859         [generic sys/syscall.h] (common-generated): Likewise.
83860         * sysdeps/unix/errnos-tmpl.c: Remove file.
83861         * sysdeps/unix/errnos.awk: Likewise.
83862         * sysdeps/unix/ioctls-tmpl.c: Likewise.
83863         * sysdeps/unix/ioctls.awk: Likewise.
83864         * sysdeps/unix/mk-local_lim.c: Likewise.
83865         * sysdeps/unix/snarf-ioctls: Likewise.
83866
83867 2012-03-19  Richard Henderson  <rth@twiddle.net>
83868
83869         * sysdeps/i386/fpu/fenv_private.h: New file.
83870         * sysdeps/i386/fpu/math_private.h: Use it.
83871         (math_opt_barrier, math_force_eval): Remove.
83872         (libc_feholdexcept_setround_53bit): Remove.
83873         (libc_feupdateenv_53bit): Remove.
83874         * sysdeps/x86_64/fpu/math_private.h: Likewise.
83875         (math_opt_barrier, math_force_eval): Remove.
83876         (libc_feholdexcept): Remove.
83877         (libc_feholdexcept_setround): Remove.
83878         (libc_fetestexcept, libc_fesetenv): Remove.
83879         (libc_feupdateenv_test): Remove.
83880         (libc_feupdateenv, libc_feholdsetround): Remove.
83881         (libc_feresetround): Remove.
83882
83883         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
83884         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
83885
83886         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
83887         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
83888         (libc_feupdateenv_testl): New.
83889         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
83890         (libc_feupdateenv_testf): New.
83891         (libc_feupdateenv): Use libc_feupdateenv_test.
83892         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
83893         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
83894
83895         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
83896         (libc_feholdsetroundf, libc_feholdsetroundl): New.
83897         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
83898         (libc_feresetround_noex): New.
83899         (libc_feresetround_noexf): New.
83900         (libc_feresetround_noexl): New.
83901         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
83902         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
83903         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
83904         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
83905         SET_RESTORE_ROUND.
83906         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
83907         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
83908         (__cos): Likewise.
83909         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
83910         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
83911         SET_RESTORE_ROUND_NOEX.
83912         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
83913         SET_RESTORE_ROUND_NOEXF.
83914         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
83915         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
83916         (libc_feholdsetroundf): New.
83917         (libc_feresetround, libc_feresetroundf): New.
83918
83919         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
83920         (libc_feholdexcept_setround_53bit): Convert from macro to function.
83921         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
83922
83923         * sysdeps/generic/math_private.h: Include <fenv.h>.
83924         (default_libc_feholdexcept): New.
83925         (default_libc_feholdexcept_setround): New.
83926         (default_libc_fesetenv, default_libc_feupdateenv): New.
83927         (libc_feholdexcept): Only define if undefined.
83928         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
83929         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
83930         (libc_feholdexcept_setroundl): Likewise.
83931         (libc_feholdexcept_setround_53bit): Likewise.
83932         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
83933         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
83934         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
83935         (libc_feupdateenv_53bit): Likewise.
83936         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
83937         (libc_feholdexcept): Convert from macro to inline function.
83938         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
83939         (libc_fesetenv, libc_feupdateenv): Likewise.
83940
83941         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
83942         not previously defined.
83943         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
83944         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
83945         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
83946         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
83947         * sysdeps/ieee754/flt-32/math_private.h: New file.
83948         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
83949         math_private.h below SET_FLOAT_WORD.
83950         (__isnan, __isinf_ns, __finite): Remove.
83951         (__isnanf, __isinf_nsf, __finitef): Remove.
83952
83953 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
83954
83955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
83956
83957 2012-03-17  David S. Miller  <davem@davemloft.net>
83958
83959         [BZ #6471]
83960         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
83961         for 2.16.
83962
83963 2012-03-16  David S. Miller  <davem@davemloft.net>
83964
83965         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
83966         warnings.
83967
83968         [BZ #6471]
83969         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
83970         properly.
83971         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
83972         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
83973         sysdep_routines when subdir is sysvipc.
83974         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
83975         __getshmlba helper.
83976
83977         * sysdeps/sparc/fpu/libm-test/ulps: Update.
83978
83979 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
83980
83981         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
83982         [__LP64__].
83983
83984 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
83985
83986         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
83987         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
83988         (__lround): Renamed to ...
83989         (__llround): This.  Replace long int with long long int.
83990         Define lround functions as aliases of llround functions.
83991         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
83992
83993 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
83994
83995         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
83996         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
83997         adresses to uintptr_t.  Replace "long int" and "unsigned long
83998         int" with "greg_t" on va_arg.
83999
84000 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
84001
84002         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
84003         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
84004
84005         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
84006         Move e_machine check before EI_CLASS check.  Handle x32
84007         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
84008         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
84009         SKIP_EM_IA_64 and include
84010         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
84011
84012         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
84013         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
84014         (add_system_dir): New macro.
84015
84016         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
84017         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
84018
84019 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
84020
84021         [BZ #2551]
84022         [BZ #2552]
84023         [BZ #2553]
84024         [BZ #2554]
84025         [BZ #2562]
84026         [BZ #2563]
84027         [BZ #2565]
84028         [BZ #2566]
84029         [BZ #2576]
84030         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
84031         (y0): Likewise.
84032         * math/w_j0f.c (j0f): Likewise.
84033         (y0f): Likewise.
84034         * math/w_j0l.c (__j0l): Likewise.
84035         (__y0l): Likewise.
84036         * math/w_j1.c (j1): Likewise.
84037         (y1): Likewise.
84038         * math/w_j1f.c (j1f): Likewise.
84039         (y1f): Likewise.
84040         * math/w_j1l.c (__j1l): Likewise.
84041         (__y1l): Likewise.
84042         * math/w_jn.c (jn): Likewise.
84043         (yn): Likewise.
84044         * math/w_jnf.c (jnf): Likewise.
84045         (ynf): Likewise.
84046         * math/w_jnl.c (__jnl): Likewise.
84047         (__ynl): Likewise.
84048         * math/libm-test.inc (j0_test): Add more tests.
84049         (j1_test): Likewise.
84050         (jn_test): Likewise.  Add trailing semicolon to existing test.
84051         (y0_test): Likewise.
84052         (y1_test): Likewise.
84053         * sysdeps/i386/fpu/libm-test-ulps: Update.
84054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
84055
84056         [BZ #13851]
84057         [BZ #13854]
84058         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
84059         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
84060         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
84061         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
84062         (__tanl): Set errno for infinite argument.
84063         * sysdeps/i386/fpu/mptan.c: Remove.
84064         * sysdeps/i386/fpu/s_tan.S: Likewise.
84065         * sysdeps/i386/fpu/s_tanl.S: Likewise.
84066         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
84067         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
84068         * math/libm-test.inc (tan_test): Add more tests and enable more
84069         tests for double and long double.
84070         * sysdeps/i386/fpu/libm-test-ulps: Update.
84071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
84072
84073 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
84074
84075         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
84076         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
84077
84078 2012-03-16  Roland McGrath  <roland@hack.frob.com>
84079
84080         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
84081         * configure.in: Use it for both main tree and add-ons.
84082         * configure: Regenerated.
84083
84084 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
84085
84086         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
84087
84088 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
84089
84090         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
84091         in comment.
84092
84093         [BZ #13851]
84094         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
84095         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
84096         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
84097         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
84098         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
84099         infinite argument.
84100         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
84101         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
84102         != 0 for prec == 2.
84103         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
84104         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
84105         * sysdeps/i386/fpu/s_cosl.S: Likewise.
84106         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
84107         * sysdeps/i386/fpu/s_sinl.S: Likewise.
84108         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
84109         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
84110         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
84111         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
84112         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
84113         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
84114         * math/libm-test.inc (cos_test): Add more tests and enable more
84115         tests for long double.
84116         (sin_test): Likewise.
84117         (sincos_test): Likewise.
84118         * sysdeps/i386/fpu/libm-test-ulps: Update.
84119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
84120
84121 2012-03-16  David S. Miller  <davem@davemloft.net>
84122
84123         * sysdeps/sparc/fpu/math_private.h: New file.
84124
84125 2012-03-15  David S. Miller  <davem@davemloft.net>
84126
84127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
84128         file.
84129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
84130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
84131         file.
84132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
84133         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
84134         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
84135         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
84136         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
84137         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
84138         sysdep routines.
84139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
84140
84141         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
84142         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
84143
84144         * sysdeps/sparc/sparc-ifunc.h: New file.
84145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
84146         sparc-ifunc.h
84147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
84148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
84149         Likewise.
84150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
84151         Likewise.
84152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
84153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
84154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
84155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
84156         Likewise.
84157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
84158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
84159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
84160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
84161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
84162         Likewise.
84163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
84164         Likewise.
84165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
84166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
84167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
84168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
84169         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
84170         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
84171         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
84172         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
84173         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
84174         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
84175         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
84176         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
84177         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
84178         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
84179         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
84180         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
84181         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
84182         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
84183         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
84184         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
84185         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
84186         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
84187         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
84188         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
84189
84190 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
84191
84192         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
84193         scaling.
84194         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
84195
84196 2012-03-15  Andreas Jaeger  <aj@suse.de>
84197
84198         [BZ #13852]
84199         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
84200         ieee754/flt-32 implementation for sin, cos and sincos.
84201         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
84202         * sysdeps/i386/fpu/s_cosf.S: Likewise.
84203         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
84204         * sysdeps/i386/fpu/s_sinf.S: Likewise.
84205         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
84206         ieee754/flt-32 implementation for tan.
84207
84208         * math/libm-test.inc (cos_test): Enable some large input tests for
84209         float as well
84210         (sin_test): Likewise.
84211         (sincos_test): Likewise.
84212         (tan_test): Add tests for large input.
84213
84214         * sysdeps/i386/fpu/libm-test-ulps: Update.
84215
84216 2012-03-15  Andreas Jaeger  <aj@suse.de>
84217
84218         [BZ #13658]
84219         * math/libm-test.inc (cos_test): Add more test cases.
84220         (sin_test): Likewise.
84221         (sincos_test): Likewise.
84222
84223 2012-03-15  Andreas Jaeger  <aj@suse.de>
84224
84225         [BZ #13837]
84226         * math/libm-test.inc (cos_test): Add a test case for large input
84227         value.
84228         (sin_test): Likewise.
84229         (sincos_test): Likewise.
84230
84231 2012-03-15  Andreas Jaeger  <aj@suse.de>
84232             Joseph Myers  <joseph@codesourcery.com>
84233
84234         [BZ #13658]
84235         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
84236         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
84237         * sysdeps/i386/fpu/branred.c: Likewise.
84238         * sysdeps/i386/fpu/dosincos.c: Likewise.
84239         * sysdeps/i386/fpu/mpa.c: Likewise.
84240         * sysdeps/i386/fpu/s_cos.S: Likewise.
84241         * sysdeps/i386/fpu/s_sin.S: Likewise.
84242         * sysdeps/i386/fpu/s_sincos.S: Likewise.
84243         * sysdeps/i386/fpu/sincos32.c: Likewise.
84244
84245         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
84246         Define.
84247         (libc_feupdateenv_53bit): Define.
84248         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
84249         Define.
84250         (libc_feupdateenv_53bit): Define.
84251
84252         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
84253         53 bit (without extend i386 double precision).
84254
84255         * math/libm-test.inc (sincos_test): Add tests for large input.
84256         (sin): Likewise.
84257         (cos): Likewise.
84258
84259         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
84260
84261 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
84262
84263         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
84264
84265 2012-03-15  David S. Miller  <davem@davemloft.net>
84266
84267         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
84268         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
84269         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
84270         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
84271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
84272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
84273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
84274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
84275         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
84276         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
84277         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
84278         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
84279         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
84280         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
84281         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
84282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
84283         file.
84284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
84285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
84286         file.
84287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
84288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
84289         file.
84290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
84291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
84292         file.
84293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
84294         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
84295         fmin/fmax sysdep routines.
84296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
84297
84298 2012-03-14  David S. Miller  <davem@davemloft.net>
84299
84300         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
84301         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
84302         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
84303         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
84304         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
84305         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
84306         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
84307         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
84308         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
84309         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
84310         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
84311         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
84312         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
84313         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
84314         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
84315         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
84316         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
84317         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
84318         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
84319         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
84320         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
84321         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
84322         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
84323         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
84324         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
84325         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
84326         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
84327         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
84328         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
84329         routines.
84330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
84331         file.
84332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
84333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
84334         file.
84335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
84336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
84337         file.
84338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
84339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
84340         file.
84341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
84342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
84343         file.
84344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
84345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
84346         file.
84347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
84348         file.
84349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
84350         file.
84351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
84352         file.
84353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
84354         New file.
84355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
84356         file.
84357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
84358         file.
84359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
84360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
84361         file.
84362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
84363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
84364         file.
84365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
84366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
84367         file.
84368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
84369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
84370         VIS3 routines.
84371
84372         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
84373         New file.
84374
84375         * sysdeps/sparc/fpu/libm-test-ulps: Update.
84376
84377         * sysdeps/sparc/configure.in: New file.
84378         * sysdeps/sparc/configure: Generate.
84379         * configure.in (libc_cv_sparc_as_vis3): Substitute.
84380         * configure: Regenerate.
84381         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
84382         * config.make.in (have-as-vis3): New.
84383         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
84384         available use -Av9d instead of -Av9a.
84385         * sysdeps/sparc/sparc64/Makefile: Likewise.
84386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
84387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
84388         New file.
84389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
84390         file.
84391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
84392         New file.
84393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
84394         file.
84395         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
84396         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
84397         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
84398         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
84399         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
84400
84401         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
84402         fzeros/fnegs to load 0x80000000 into a float register instead of
84403         using the stack.
84404         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
84405
84406 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
84407
84408         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
84409         bits/syscall.h.
84410         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
84411         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
84412         ($(inst_includedir)/bits/syscall.h): Remove rule.
84413         ($(objpfx)bits/syscall.d): Include instead of
84414         $(objpfx)syscall-list.d.
84415         (generated): Change syscall-list.h and syscall-list.d to
84416         bits/syscall.h and bits/syscall.d.
84417
84418 2012-03-14  Roland McGrath  <roland@hack.frob.com>
84419
84420         [BZ #13846]
84421         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
84422
84423 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
84424
84425         [BZ #13841]
84426         * math/s_csqrt.c: Include <float.h>.
84427         (__csqrt): Scale large or subnormal inputs.
84428         * math/s_csqrtf.c: Likewise.
84429         * math/s_csqrtl.c: Likewise.
84430         * math/libm-test.inc (csqrt_test): Add more tests.
84431         * sysdeps/i386/fpu/libm-test-ulps: Update.
84432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
84433
84434         [BZ #13840]
84435         * math/libm-test.inc (hypot_test): Add more tests.
84436
84437 2012-03-13  David S. Miller  <davem@davemloft.net>
84438
84439         [BZ #13840]
84440         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
84441         double-precision for the calculation instead of scaling.
84442
84443 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
84444
84445         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
84446         manipulate bits before adding and subtracting TWO52[sx].
84447         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
84448         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
84449         Likewise.
84450         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
84451
84452 2012-03-13  David S. Miller  <davem@davemloft.net>
84453
84454         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
84455         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
84456         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
84457         rtld-global-offsets.h
84458         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
84459
84460         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
84461         large parameters.
84462
84463         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
84464
84465         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
84466         'err' in the ifdef scope in which it is actually used.
84467
84468         * nss/nss_db/db-init.c: Include string.h
84469
84470 2012-03-12  David S. Miller  <davem@davemloft.net>
84471
84472         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
84473         masking out of the most significant byte of random value used.
84474         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
84475         Fix coding style in previous change.
84476
84477         * sysdeps/unix/sysv/linux/kernel-features.h
84478         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
84479         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
84480         expression.
84481         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
84482         later.
84483
84484 2012-03-11  David S. Miller  <davem@davemloft.net>
84485
84486         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
84487         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
84488         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
84489         for 'resultvar' otherwise things get truncated on 64-bit.
84490
84491         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
84492         Fix masking out of the most significant byte of random value used.
84493
84494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
84495
84496 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
84497
84498         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
84499
84500 2012-03-09  David S. Miller  <davem@davemloft.net>
84501
84502         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
84503         variables with appropriate CPP guards.
84504         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
84505         from the frame pointer, not the stack pointer.  Correct layout
84506         comments.  Fix test on resulting framesize and the management of
84507         the outregs buffer for pltexit.  Preserve floating point return
84508         values across _dl_call_pltexit call.
84509         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
84510         framesize and the management of the outregs buffer for pltexit.
84511         Preserve floating point return values across _dl_call_pltexit
84512         call.
84513         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
84514         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
84515         (la_sparc64_gnu_pltexit): New functions.
84516         (print_exit): Fix format string for return register value.
84517
84518 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
84519
84520         * sunrpc/Makefile (others): Add rpcgen.
84521         ($(objpfx)rpcgen): Remove special build rule and dependency on
84522         libc.
84523         * sunrpc/rpcgen.c: New file.
84524
84525 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84526
84527         [BZ #13673]
84528         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
84529         * stdio-common/bug-vfprintf-nargs.c: Likewise.
84530         * sysdeps/i386/crti.S: Likewise.
84531         * sysdeps/i386/crtn.S: Likewise.
84532         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
84533         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
84534         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
84535         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
84536         * sysdeps/sh/crti.S: Likewise.
84537         * sysdeps/sh/crtn.S: Likewise.
84538         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
84539
84540         [BZ #13673]
84541         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
84542         with URL.
84543         * locale/programs/locfile-kw.gperf: Likewise.
84544         * locale/programs/charmap-kw.h: Regenerated.
84545         * locale/programs/locfile-kw.h: Likewise.
84546
84547         [BZ #13673]
84548         * intl/plural.y: Replace FSF snail mail address with URL.
84549         * intl/plural.c: Regenerated.
84550
84551 2012-03-09  Richard Henderson  <rth@twiddle.net>
84552
84553         * include/math_private.h: Remove file.
84554         * math/math_private.h: Move file ...
84555         * sysdeps/generic/math_private.h: ... here.
84556
84557         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
84558         * sysdeps/powerpc/fpu/math_private.h: Likewise.
84559         * sysdeps/x86_64/fpu/math_private.h: Likewise.
84560
84561         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
84562         and <math_private.h>.
84563         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
84564         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
84565         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
84566         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
84567         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
84568         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
84569         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
84570         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84571         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
84572         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
84573         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84574         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
84575         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
84576         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84577         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
84578         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
84579         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
84580         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
84581         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
84582         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
84583         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84584         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
84585         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
84586         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84587         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
84588         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
84589         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
84590         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
84591         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84592         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
84593         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
84594         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84595         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
84596         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
84597         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
84598         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
84599         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
84600         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
84601         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
84602         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
84603         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
84604         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
84605         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
84606         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
84607         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
84608         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
84609         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
84610         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
84611         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
84612         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
84613         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
84614         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
84615         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
84616         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
84617         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
84618         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
84619         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84620         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
84621         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
84622         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
84623         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
84624         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
84625         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84626         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
84627         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
84628         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
84629         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
84630         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
84631         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
84632         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
84633         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
84634         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
84635         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
84636         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
84637         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
84638         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
84639         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
84640         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
84641         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
84642         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
84643         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
84644         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
84645         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
84646         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
84647         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
84648         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
84649         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
84650         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
84651         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
84652         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
84653         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
84654         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
84655         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
84656         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
84657         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
84658         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
84659         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
84660         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
84661         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
84662         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
84663         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
84664         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
84665         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
84666         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
84667         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
84668         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
84669         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
84670         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
84671         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
84672         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
84673         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
84674         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
84675         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
84676         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
84677         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
84678         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
84679         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
84680         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
84681         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
84682         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
84683         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
84684         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
84685         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
84686         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
84687         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
84688         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
84689         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
84690         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
84691         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
84692         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
84693         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
84694         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
84695         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
84696         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
84697         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
84698         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
84699         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
84700         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
84701         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
84702         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
84703         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84704         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
84705         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
84706         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
84707         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
84708         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
84709         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
84710         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
84711         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
84712         * sysdeps/ieee754/k_standard.c: Likewise.
84713         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
84714         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
84715         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
84716         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
84717         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
84718         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
84719         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
84720         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
84721         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
84722         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
84723         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
84724         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
84725         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
84726         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
84727         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
84728         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
84729         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
84730         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
84731         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
84732         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
84733         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
84734         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
84735         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
84736         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
84737         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
84738         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
84739         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
84740         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
84741         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
84742         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
84743         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
84744         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
84745         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
84746         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
84747         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
84748         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
84749         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
84750         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
84751         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
84752         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
84753         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
84754         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
84755         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
84756         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
84757         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
84758         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
84759         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
84760         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
84761         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
84762         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
84763         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
84764         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
84765         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
84766         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
84767         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
84768         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
84769         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
84770         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
84771         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
84772         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
84773         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
84774         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
84775         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
84776         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
84777         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
84778         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
84779         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
84780         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
84781         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
84782         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
84783         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
84784         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
84785         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
84786         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
84787         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
84788         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
84789         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
84790         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
84791         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
84792         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
84793         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
84794         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
84795         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
84796         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
84797         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
84798         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
84799         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
84800         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
84801         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
84802         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
84803         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
84804         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
84805         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
84806         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
84807         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
84808         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
84809         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
84810         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
84811         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
84812         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
84813         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
84814         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
84815         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
84816         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
84817         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
84818         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
84819         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
84820         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
84821         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
84822         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
84823         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
84824         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
84825         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
84826         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
84827         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
84828         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
84829         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
84830         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
84831         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
84832         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
84833         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
84834         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
84835         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
84836         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
84837         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
84838         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
84839         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
84840         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
84841         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
84842         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
84843         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
84844         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
84845         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
84846         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
84847         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
84848         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
84849         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
84850         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
84851         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
84852         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
84853         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
84854         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
84855         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
84856         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
84857         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
84858         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
84859         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
84860         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
84861         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
84862         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
84863         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
84864         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
84865         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
84866         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
84867         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
84868         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
84869         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
84870         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
84871         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
84872         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
84873         * sysdeps/ieee754/s_lib_version.c: Likewise.
84874         * sysdeps/ieee754/s_matherr.c: Likewise.
84875         * sysdeps/ieee754/s_signgam.c: Likewise.
84876         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
84877         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
84878         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
84879         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
84880         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
84881         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
84882         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
84883         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
84884         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
84885         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
84886         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
84887         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
84888         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
84889         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
84890         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
84891         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
84892         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
84893         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
84894         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
84895         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
84896         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
84897
84898 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
84899
84900         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
84901         * sunrpc/rpc_main.c: Likewise.
84902         * sunrpc/rpc_svcout.c: Likewise.
84903
84904 2012-03-09  David S. Miller  <davem@davemloft.net>
84905
84906         * include/math_private.h: New file.
84907
84908 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
84909
84910         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
84911         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
84912         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
84913         from <bits/socket_type.h>.
84914         (enum __socket_type): Don't define here.
84915         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
84916         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
84917         bits/socket_type.h.
84918
84919         [BZ #13566]
84920         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
84921         checking __USE_GNU.
84922
84923         * Makerules ($(inst_includedir)/%.h): New rule.
84924         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
84925         (install-others): Remove variable setting.
84926         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
84927
84928 2012-03-08  Richard Henderson  <rth@twiddle.net>
84929
84930         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
84931         from macro to inline function; merge with the
84932         !__LIBC_INTERNAL_MATH_INLINES version.
84933         (__ieee754_sqrtf): Likewise.
84934
84935         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
84936         to inline function.
84937         (__rintf, __floor, __floorf): Likewise.
84938
84939         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
84940         macro to inline function.
84941         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
84942
84943         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
84944         not <math/math_private.h>.
84945
84946 2012-03-08  David S. Miller  <davem@davemloft.net>
84947
84948         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
84949         copyright year.
84950         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
84951
84952 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
84953
84954         * resolv/gai_misc.c (handle_requests): Fix struct timespec
84955         normalization.
84956         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
84957         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
84958
84959 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
84960
84961         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
84962         be defined individually, they must be defined as a block.  Define
84963         S for printing a string instead of hidint the different by using a
84964         macro for adding the 'l'.
84965         * stdio-common/tst-fphex-wide.c: Adjust.
84966
84967 2012-03-07  Marek Polacek  <polacek@redhat.com>
84968
84969         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
84970
84971 2012-03-08  Marek Polacek  <polacek@redhat.com>
84972
84973         [BZ #13806]
84974         * stdio-common/Makefile (tests): Add tst-fphex-wide.
84975         * stdio-common/tst-fphex.c: Define a few macros to make the
84976         test reusable.  Use them.
84977         * stdio-common/tst-fphex-wide.c: New file.
84978
84979 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
84980
84981         [BZ #6911]
84982         * manual/macros.texi (gnusystems): New macro.
84983         (nongnusystems): Likewise.
84984         (gnulinuxhurdsystems): Likewise.
84985         (gnuhurdsystems): Likewise..
84986         (gnulinuxsystems): Likewise.
84987         * manual/charset.texi: Use new macros or @theglibc{} to refer to
84988         variants of the GNU system, not "GNU system".
84989         * manual/conf.texi: Likewise.
84990         * manual/errno.texi: Likewise.  Update example of errno macro
84991         expansion.
84992         * manual/filesys.texi: Likewise.
84993         (getumask): Document as specific to GNU/Hurd.
84994         * manual/install.texi: Likewise.  Reword some references to
84995         GNU/Linux.
84996         * manual/intro.texi: Likewise.
84997         * manual/io.texi: Likewise.
84998         (File Name Portability): Detail which constraints are inapplicable
84999         to all GNU systems and which are only inapplicable to GNU/Hurd.
85000         * manual/job.texi: Likewise.
85001         * manual/llio.texi: Likewise.
85002         (O_NOCTTY): Document as present on GNU/Linux.
85003         * manual/maint.texi: Likewise.
85004         * manual/memory.texi: Likewise.
85005         * manual/pattern.texi: Likewise.
85006         * manual/pipe.texi: Likewise.
85007         * manual/process.texi: Likewise.
85008         * manual/resource.texi: Likewise.
85009         (RUSAGE_CHILDREN): Remove statement about specifying a particular
85010         child on GNU/Hurd.
85011         * manual/setjmp.texi: Likewise.
85012         * manual/signal.texi: Likewise.
85013         * manual/startup.texi: Likewise.
85014         * manual/stdio.texi: Likewise.
85015         * manual/terminal.texi: Likewise.
85016         (ONLCR): Document as POSIX.
85017         (OXTABS): Document availability on GNU/Linux as XTABS.
85018         (ONOEOT): Document availability separately from other bits.
85019         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
85020         * manual/time.texi: Likewise.
85021         * manual/users.texi: Likewise.
85022         * INSTALL: Regenerated.
85023         * sysdeps/gnu/errlist.c: Regenerated.
85024
85025         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
85026         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
85027         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
85028         puts.
85029         * configure: Regenerated.
85030
85031 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
85032
85033         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
85034         default includes instead of AC_HEADER_CHECK.
85035         * sysdeps/i386/configure: Regenerated.
85036
85037         [BZ #10716]
85038         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
85039         * math/s_cacoshf.c (__cacoshf): Likewise.
85040         * math/s_cacoshl.c (__cacoshl): Likewise.
85041         * math/s_casinh.c (__casinh): Set signs of result from argument.
85042         * math/s_casinhf.c (__casinhf): Likewise.
85043         * math/s_casinhl.c (__casinhl): Likewise.
85044         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
85045         (casinh_test): Add more tests.
85046         * sysdeps/i386/fpu/libm-test-ulps: Update.
85047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85048
85049 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
85050
85051         * po/zh_TW.po: Update from translation team.
85052
85053         * login/Makefile (distribute): Remove variable.
85054         * catgets/Makefile: Likewise.
85055         * mach/Makefile: Likewise.
85056         * malloc/Makefile: Likewise.
85057         * misc/Makefile: Likewise.
85058         * iconv/Makefile: Likewise.
85059         * nscd/Makefile: Likewise.
85060         * hurd/Makefile: Likewise.
85061         * manual/Makefile: Likewise.
85062         * locale/Makefile: Likewise.
85063         * intl/Makefile: Likewise.
85064         * conform/Makefile: Likewise.
85065         * nss/Makefile: Likewise.
85066         * time/Makefile: Likewise.
85067         * soft-fp/Makefile: Likewise.
85068         * dirent/Makefile: Likewise.
85069         * gmon/Makefile: Likewise.
85070         * po/Makefile: Likewise.
85071         * rt/Makefile: Likewise.
85072         * socket/Makefile: Likewise.
85073         * math/Makefile: Likewise.
85074         * signal/Makefile: Likewise.
85075         * debug/Makefile: Likewise.
85076         * elf/Makefile: Likewise.
85077         * timezone/Makefile: Likewise.
85078         * stdlib/Makefile: Likewise.
85079         * iconvdata/Makefile: Likewise.
85080         * sunrpc/Makefile: Likewise.
85081         * io/Makefile: Likewise.
85082         * argp/Makefile: Likewise.
85083         * inet/Makefile: Likewise.
85084         * hesiod/Makefile: Likewise.
85085         * grp/Makefile: Likewise.
85086         * csu/Makefile: Likewise.
85087         * wctype/Makefile: Likewise.
85088         * crypt/Makefile: Likewise.
85089         * libio/Makefile: Likewise.
85090         * string/Makefile: Likewise.
85091         * nis/Makefile: Likewise.
85092         * resolv/Makefile: Likewise.
85093         * stdio-common/Makefile: Likewise.
85094         * wcsmbs/Makefile: Likewise.
85095         * dlfcn/Makefile: Likewise.
85096         * posix/Makefile: Likewise.
85097
85098         [BZ #6959]
85099         * timezone/Makefile: Don't install timezone files, just the programs
85100         and scripts.
85101
85102 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
85103
85104         * nss/databases.def: Add missing gshadow entry.
85105
85106         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
85107
85108 2012-03-06  Marek Polacek  <polacek@redhat.com>
85109
85110         [BZ #13726]
85111         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
85112         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
85113         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
85114         * stdio-common/tst-long-dbl-fphex.c: New file.
85115
85116 2012-03-06  David S. Miller  <davem@davemloft.net>
85117
85118         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
85119         (set_obp_int): New function.
85120         (get_obp_int): New function.
85121         (__get_clockfreq_via_dev_openprom): Likewise.
85122         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
85123         Avoid unused variable warnings on 'val' and use builtin_expect.
85124         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
85125         __builtin_expect.
85126         (INLINE_CLONE_SYSCALL): Likewise.
85127
85128 2012-03-05  David S. Miller  <davem@davemloft.net>
85129
85130         * sysdeps/sparc/fpu/libm-test-ulps: Update.
85131
85132 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
85133
85134         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
85135
85136         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
85137         only for |x| >= 40.
85138         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
85139
85140 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
85141
85142         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
85143         Replace gettimeofday with __vdso_gettimeofday.
85144
85145         * sysdeps/unix/sysv/linux/x86_64/init-first.c
85146         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
85147         __vdso_clock_gettime and __vdso_getcpu.
85148
85149         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
85150         time with __vdso_time.
85151
85152 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
85153
85154         * manual/lang.texi (size_t): Note types to which size_t may be
85155         equivalent with the GNU C Library, but do not describe when
85156         differences between them are significant.
85157
85158 2012-03-05  Andreas Jaeger  <aj@suse.de>
85159
85160         * sysdeps/i386/fpu/libm-test-ulps: Update.
85161
85162 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
85163
85164         [BZ #3976]
85165         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
85166         (__ieee754_pow): Save and restore rounding mode and use
85167         round-to-nearest for main computations.
85168         * math/libm-test.inc (pow_test_tonearest): New function.
85169         (pow_test_towardzero): Likewise.
85170         (pow_test_downward): Likewise.
85171         (pow_test_upward): Likewise.
85172         (main): Call the new functions.
85173         * sysdeps/i386/fpu/libm-test-ulps: Update.
85174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85175
85176         [BZ #3976]
85177         * math/libm-test.inc (cosh_test_tonearest): New function.
85178         (cosh_test_towardzero): Likewise.
85179         (cosh_test_downward): Likewise.
85180         (cosh_test_upward): Likewise.
85181         (sinh_test_tonearest): Likewise.
85182         (sinh_test_towardzero): Likewise.
85183         (sinh_test_downward): Likewise.
85184         (sinh_test_upward): Likewise.
85185         (main): Call the new functions.
85186         * sysdeps/i386/fpu/libm-test-ulps: Update.
85187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85188
85189 2012-03-05  Tom de Vries  <tom@codesourcery.com>
85190
85191         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
85192         default stack guard is set in last bytes.
85193         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
85194
85195 2012-03-05  Kees Cook  <keescook@chromium.org>
85196
85197         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
85198
85199         [BZ #13656]
85200         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
85201         possibly allocate from heap instead of stack.
85202         * stdio-common/bug-vfprintf-nargs.c: New file.
85203         * stdio-common/Makefile (tests): Add nargs overflow test.
85204
85205 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
85206
85207         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
85208
85209 2012-03-03  Marek Polacek  <polacek@redhat.com>
85210
85211         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
85212         * math/math_private.h: Likewise.
85213         * stdlib/tst-strtod.c: Likewise.
85214         * sysdeps/i386/i486/bits/atomic.h: Likewise.
85215         * sysdeps/x86_64/bits/atomic.h: Likewise.
85216
85217 2012-03-02  David S. Miller  <davem@davemloft.net>
85218
85219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
85220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
85221         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
85222         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
85223         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
85224         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
85225         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
85226         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
85227
85228 2012-03-02  Roland McGrath  <roland@hack.frob.com>
85229
85230         [BZ #13792]
85231         * manual/examples/README: New file, says the example source files
85232         can be used under GPL>=2.
85233         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
85234         line containing just "*/".
85235         * manual/examples/add.c: Add copyright header (GPL>=2).
85236         * manual/examples/argp-ex1.c: Likewise.
85237         * manual/examples/argp-ex2.c: Likewise.
85238         * manual/examples/argp-ex3.c: Likewise.
85239         * manual/examples/argp-ex4.c: Likewise.
85240         * manual/examples/atexit.c: Likewise.
85241         * manual/examples/db.c: Likewise.
85242         * manual/examples/dir.c: Likewise.
85243         * manual/examples/dir2.c: Likewise.
85244         * manual/examples/execinfo.c: Likewise.
85245         * manual/examples/filecli.c: Likewise.
85246         * manual/examples/filesrv.c: Likewise.
85247         * manual/examples/fmtmsgexpl.c: Likewise.
85248         * manual/examples/genpass.c: Likewise.
85249         * manual/examples/inetcli.c: Likewise.
85250         * manual/examples/inetsrv.c: Likewise.
85251         * manual/examples/isockad.c: Likewise.
85252         * manual/examples/longopt.c: Likewise.
85253         * manual/examples/memopen.c: Likewise.
85254         * manual/examples/memstrm.c: Likewise.
85255         * manual/examples/mkfsock.c: Likewise.
85256         * manual/examples/mkisock.c: Likewise.
85257         * manual/examples/mygetpass.c: Likewise.
85258         * manual/examples/pipe.c: Likewise.
85259         * manual/examples/popen.c: Likewise.
85260         * manual/examples/rprintf.c: Likewise.
85261         * manual/examples/search.c: Likewise.
85262         * manual/examples/select.c: Likewise.
85263         * manual/examples/setjmp.c: Likewise.
85264         * manual/examples/sigh1.c: Likewise.
85265         * manual/examples/sigusr.c: Likewise.
85266         * manual/examples/stpcpy.c: Likewise.
85267         * manual/examples/strdupa.c: Likewise.
85268         * manual/examples/strftim.c: Likewise.
85269         * manual/examples/strncat.c: Likewise.
85270         * manual/examples/subopt.c: Likewise.
85271         * manual/examples/swapcontext.c: Likewise.
85272         * manual/examples/termios.c: Likewise.
85273         * manual/examples/testopt.c: Likewise.
85274         * manual/examples/testpass.c: Likewise.
85275         * manual/examples/timeval_subtract.c: Likewise.
85276
85277         [BZ #13792]
85278         * manual/time.texi (Elapsed Time): Move timeval_subtract example
85279         function to ...
85280         * manual/timeval_subtract.c.texi: ... here, new file.
85281
85282 2012-03-02  David S. Miller  <davem@davemloft.net>
85283
85284         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
85285
85286 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
85287
85288         [BZ #3976]
85289         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
85290         (__sin): Save and restore rounding mode and use round-to-nearest
85291         for all computations.
85292         (__cos): Save and restore rounding mode and use round-to-nearest
85293         for all computations.
85294         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
85295         <fenv.h>.
85296         (tan): Save and restore rounding mode and use round-to-nearest for
85297         all computations.
85298         * math/libm-test.inc (cos_test_tonearest): New function.
85299         (cos_test_towardzero): Likewise.
85300         (cos_test_downward): Likewise.
85301         (cos_test_upward): Likewise.
85302         (sin_test_tonearest): Likewise.
85303         (sin_test_towardzero): Likewise.
85304         (sin_test_downward): Likewise.
85305         (sin_test_upward): Likewise.
85306         (tan_test_tonearest): Likewise.
85307         (tan_test_towardzero): Likewise.
85308         (tan_test_downward): Likewise.
85309         (tan_test_upward): Likewise.
85310         (main): Call the new functions.
85311         * sysdeps/i386/fpu/libm-test-ulps: Update.
85312         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85313
85314         [BZ #10135]
85315         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
85316         small n, then large n, before computing and testing k+n.
85317         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
85318         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
85319         Likewise.
85320         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
85321         Likewise.
85322         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
85323         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
85324         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
85325         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
85326         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
85327         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
85328         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
85329         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
85330         * math/libm-test.inc (scalbn_test): Add more tests.
85331         (scalbln_test): Likewise.
85332
85333         * manual/filesys.texi (mode_t): Describe constraints on size and
85334         signedness, not exact equivalence to a particular type.
85335         (ino_t): Likewise.
85336         (ino64_t): Likewise.
85337         (dev_t): Likewise.
85338         (nlink_t): Likewise.
85339         (blkcnt_t): Likewise.
85340         (blkcnt64_t): Likewise.
85341         * manual/llio.texi (off_t): Likewise.
85342
85343         [BZ #3976]
85344         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
85345         (__ieee754_exp): Save and restore rounding mode and use
85346         round-to-nearest for all computations.
85347         * math/libm-test.inc (exp_test_tonearest): New function.
85348         (exp_test_towardzero): Likewise.
85349         (exp_test_downward): Likewise.
85350         (exp_test_upward): Likewise.
85351         (main): Call the new functions.
85352         * sysdeps/i386/fpu/libm-test-ulps: Update.
85353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85354
85355 2012-03-01  Chris Demetriou  <cgd@google.com>
85356
85357         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
85358         have predictable order.
85359
85360 2012-03-01  David S. Miller  <davem@davemloft.net>
85361
85362         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
85363
85364         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
85365         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
85366         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
85367         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
85368
85369         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
85370         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
85371         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
85372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
85373         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
85374         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
85375         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
85376         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
85377         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
85378
85379         * sysdeps/sparc/fpu/libm-test-ulps: Update.
85380
85381         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
85382         * sysdeps/sparc/fpu/libm-test-ulps: to here.
85383         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
85384
85385         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
85386         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
85387         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
85388         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
85389         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
85390         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
85391         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
85392         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
85393         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
85394         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
85395         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
85396         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
85397         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
85398         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
85399         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
85400         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
85401         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
85402         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
85403         * sysdeps/sparc/elf/configure: Regenerated.
85404
85405 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
85406
85407         * configure.in (AS, LD): Require binutils 2.20 or later.
85408         * configure: Regenerated.
85409         * manual/install.texi (Tools for Compilation): Give binutils 2.20
85410         as required minimum version.
85411         * INSTALL: Regenerated.
85412
85413         [BZ #2541]
85414         [BZ #4108]
85415         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
85416         before squaring exponent.
85417         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
85418         bottom long double and 27 bits of top long double before squaring
85419         exponent.
85420         * math/libm-test.inc (erfc_test): Add more tests.
85421         * sysdeps/i386/fpu/libm-test-ulps: Update.
85422         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
85423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85424
85425 2012-03-01  Kai Tietz  <ktietz@redhat.com>
85426
85427         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
85428         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
85429         containing bit-fields.
85430         * soft-fp/extended.h (_FP_UNION_E): Likewise.
85431         * soft-fp/single.h (_FP_UNION_S): Likewise.
85432         * soft-fp/double.h (_FP_UNION_D): Likewise.
85433
85434 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
85435
85436         [BZ #13786]
85437         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
85438         not include ../strcmp.S.
85439         [USE_AS_STRNCASECMP_L]: Likewise.
85440         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
85441         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
85442         * sysdeps/i386/i686/multiarch/strncase_l-c.c
85443         (__strncasecmp_l_ia32): Define as alias to
85444         __strncasecmp_l_nonascii.
85445
85446         [BZ #5794]
85447         * math/libm-test.inc (expm1_test): Add test for bug 5794.
85448         * sysdeps/i386/fpu/libm-test-ulps: Update.
85449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85450
85451         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
85452         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
85453
85454 2012-02-29  Jeff Law  <law@redhat.com>
85455
85456         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
85457         out of bounds read.
85458
85459 2012-02-29  Marek Polacek  <polacek@redhat.com>
85460
85461         [BZ #13706]
85462         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
85463         * elf/Makefile: Add rules to run tst-unused-dep.out.
85464
85465 2012-02-28  David S. Miller  <davem@davemloft.net>
85466
85467         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
85468         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
85469         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
85470         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
85471         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
85472         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
85473
85474 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
85475
85476         * math/libm-test.inc (llround_test): Move one test from
85477         lround_test.  Use TEST_f_L in moved test.
85478         (lround_test): Move misplaced test to llround_test.  Add testcase
85479         from bug 2561.
85480
85481 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
85482
85483         * sysdeps/x86_64/fpu/e_expf.S: New file.
85484         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
85485
85486 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
85487
85488         [BZ #13637]
85489         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
85490         of remain_len that may cause incomplete multi-byte character and
85491         false match.
85492         * posix/bug-regex33.c: New file.
85493         * posix/Makefile (tests): Add bug-regex33.
85494
85495 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
85496
85497         * manual/macros.texi: New file.
85498         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
85499         * manual/libc.texinfo: Include macros.texi.
85500         * manual/creatute.texi: Likewise.
85501         * manual/install.texi: Likewise.
85502         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
85503         @glibcadj{} in references to the GNU C Library.
85504         * manual/charset.texi: Likewise.
85505         * manual/conf.texi: Likewise.
85506         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
85507         when not using those macros.
85508         * manual/creature.texi: Likewise.
85509         * manual/crypt.texi: Likewise.
85510         * manual/errno.texi: Likewise.
85511         * manual/filesys.texi: Likewise.
85512         * manual/header.texi: Likewise.
85513         * manual/install.texi: Likewise.
85514         * manual/intro.texi: Likewise.
85515         * manual/io.texi: Likewise.
85516         * manual/job.texi: Likewise.
85517         * manual/lang.texi: Likewise.
85518         * manual/libc.texiinfo: Likewise.
85519         * manual/llio.texi: Likewise.
85520         * manual/locale.texi: Likewise.
85521         * manual/maint.texi: Likewise.
85522         * manual/math.texi: Likewise.
85523         * manual/memory.texi: Likewise.
85524         * manual/message.texi: Likewise.
85525         * manual/nss.texi: Likewise.
85526         * manual/pattern.texi: Likewise.
85527         * manual/process.texi: Likewise.
85528         * manual/resource.texi: Likewise.
85529         * manual/search.texi: Likewise.
85530         * manual/setjmp.texi: Likewise.
85531         * manual/signal.texi: Likewise.
85532         * manual/socket.texi: Likewise.
85533         * manual/startup.texi: Likewise.
85534         * manual/stdio.texi: Likewise.
85535         * manual/string.texi: Likewise.
85536         * manual/sysinfo.texi: Likewise.
85537         * manual/syslog.texi: Likewise.
85538         * manual/terminal.texi: Likewise.
85539         * manual/time.texi: Likewise.
85540         * manual/users.texi: Likewise.
85541         * INSTALL: Regenerated.
85542         * NOTES: Regenerated.
85543         * sysdeps/gnu/errlist.c: Regenerated.
85544
85545 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
85546
85547         * include/dirent.h: Include <dirstream.h> before
85548         <dirent/dirent.h>.
85549
85550 2012-02-28  David S. Miller  <davem@davemloft.net>
85551
85552         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
85553         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
85554         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
85555         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
85556
85557 2012-02-27  David S. Miller  <davem@davemloft.net>
85558
85559         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
85560         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
85561         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
85562         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
85563
85564         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
85565         frame pointer instead of stack pointer relative arg slot.
85566         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
85567         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
85568         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
85569
85570 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
85571
85572         [BZ #3992]
85573         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
85574
85575 2012-02-27  David S. Miller  <davem@davemloft.net>
85576
85577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
85578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
85579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
85580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
85581         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
85582         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
85583         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
85584         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
85585
85586 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
85587
85588         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
85589         later.  Allow versions 5-9.
85590         * configure: Regenerated.
85591         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
85592         required minimum version and 4.6 as recommended version.  Do not
85593         mention bugs in GCC 2.7 and 2.8.
85594         * INSTALL: Regenerated.
85595
85596 2012-02-27  David S. Miller  <davem@davemloft.net>
85597
85598         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
85599         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
85600         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
85601         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
85602         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
85603         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
85604         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
85605         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
85606
85607         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
85608         manipulate bits before adding and subtracting TWO112[sx].
85609         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
85610
85611 2012-02-27  Roland McGrath  <roland@hack.frob.com>
85612
85613         [BZ #13775]
85614         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
85615         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
85616         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
85617         being in POSIX, because they are in 1003.1-2008.
85618
85619         * rt/tst-aio.c: Include <fcntl.h>.
85620         * rt/tst-aio7.c: Likewise.
85621         * rt/tst-aio64.c: Likewise.
85622
85623         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
85624
85625 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
85626
85627         * manual/install.texi (--with-headers): Describe headers as
85628         interface headers, not private headers.
85629         (Specific advice for GNU/Linux systems): Describe use of headers
85630         from "make headers_install", not private headers from older
85631         kernels.
85632         * INSTALL: Regenerated.
85633         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
85634         Change to 2.6.19.
85635         * sysdeps/unix/sysv/linux/configure: Regenerated.
85636
85637         * manual/llio.texi (fclean): Remove documentation.
85638
85639         * manual/Makefile (libc-texi-generated): New variable.  Include
85640         version.texi.
85641         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
85642         $(libc-texi-generated), not duplicated list of files.
85643         (version.texi, stamp-version): New rules.
85644         (realclean): Remove $(libc-texi-generated), not individual files
85645         from that list.  Do not remove dir-add.texinfo.
85646         * manual/libc.texinfo: Comment out uses of edition numbers and
85647         references to printed manual.  Remove last-updated dates.
85648         (EDITION): Comment out.
85649         (ISBN): Likewise.
85650         (VERSION, UPDATED): Remove.
85651         (version.texi): Include.
85652
85653 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
85654
85655         * sysdeps/posix/spawni.c: Include <signal.h>.
85656         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
85657         * sysdeps/pthread/aio_fsync.c: Likewise.
85658
85659 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
85660
85661         * conform/Makefile (tests): Run only when not cross-compiling and
85662         when fast-check is not defined.
85663
85664         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
85665         * conform/data/limits.h-data: Fixes for POSIX2008.
85666         * conform/run-conformtest.sh: Run all tests.
85667         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
85668         headers.
85669         * include/bits/dlfcn.h: Likewise.
85670         * include/langinfo.h: Likewise.
85671         * include/monetary.h: Likewise.
85672         * include/sys/poll.h: Likewise.
85673
85674         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
85675         for __USE_GNU.
85676         * posix/spawn.h: Define __need_sigset_t.
85677         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
85678         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
85679         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
85680         to get sigevent_t only.
85681         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
85682         only for __USE_GNU.
85683         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
85684         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
85685         process_vm_writev only for __USE_GNU.
85686         * termios/termios.h: Declare tcgetsid also for POSIX2008.
85687
85688         * conform/Makefile: For now ignore errors from run-conformtest.
85689         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
85690         POSIX to avoid namespace pollution.  Don't prepend headers.
85691         * conform/data/aio.h-data: Fixes for POSIX testing.
85692         * conform/data/fcntl.h-data: Likewise.
85693         * conform/data/glob.h-data: Likewise.
85694         * conform/data/grp.h-data: Likewise.
85695         * conform/data/pthread.h-data: Likewise.
85696         * conform/data/pwd.h-data: Likewise.
85697         * conform/data/signal.h-data: Likewise.
85698         * conform/data/spawn.h-data: Likewise.
85699         * conform/data/stdio.h-data: Likewise.
85700         * conform/data/stdlib.h-data: Likewise.
85701         * conform/data/stropts.h-data: Likewise.
85702         * conform/data/sys/mman.h-data: Likewise.
85703         * conform/data/sys/stat.h-data: Likewise.
85704         * conform/data/sys/types.h-data: Likewise.
85705         * conform/data/sys/wait.h-data: Likewise.
85706         * conform/data/time.h-data: Likewise.
85707         * conform/data/unistd.h-data: Likewise.
85708         * conform/data/utime.h-data: Likewise.
85709
85710         * io/sys/stat.h: fchmod was always in POSIX.
85711         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
85712         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
85713         * rt/aio.h: Define __need_timespec before including <time.h>.
85714         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
85715         struct.  Add forward declaration of pthread_attr_t and use it in
85716         sigevent.
85717         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
85718         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
85719         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
85720         always remove CLK_TCK definition.
85721
85722 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
85723
85724         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
85725
85726 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
85727
85728         * conform/run-conformtest.sh: New file.
85729         * conform/Makefile: Run run-conformtest for tests.
85730         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
85731         support.
85732
85733         * conform/data/uchar.h-data: New file.
85734         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
85735         * conform/data/arpa/inet.h-data: Likewise.
85736         * conform/data/assert.h-data: Likewise.
85737         * conform/data/complex.h-data: Likewise.
85738         * conform/data/cpio.h-data: Likewise.
85739         * conform/data/ctype.h-data: Likewise.
85740         * conform/data/dirent.h-data: Likewise.
85741         * conform/data/dlfcn.h-data: Likewise.
85742         * conform/data/errno.h-data: Likewise.
85743         * conform/data/fcntl.h-data: Likewise.
85744         * conform/data/float.h-data: Likewise.
85745         * conform/data/fmtmsg.h-data: Likewise.
85746         * conform/data/fnmatch.h-data: Likewise.
85747         * conform/data/ftw.h-data: Likewise.
85748         * conform/data/glob.h-data: Likewise.
85749         * conform/data/grp.h-data: Likewise.
85750         * conform/data/iconv.h-data: Likewise.
85751         * conform/data/inttypes.h-data: Likewise.
85752         * conform/data/langinfo.h-data: Likewise.
85753         * conform/data/libgen.h-data: Likewise.
85754         * conform/data/limits.h-data: Likewise.
85755         * conform/data/locale.h-data: Likewise.
85756         * conform/data/math.h-data: Likewise.
85757         * conform/data/monetary.h-data: Likewise.
85758         * conform/data/mqueue.h-data: Likewise.
85759         * conform/data/ndbm.h-data: Likewise.
85760         * conform/data/net/if.h-data: Likewise.
85761         * conform/data/netdb.h-data: Likewise.
85762         * conform/data/netinet/in.h-data: Likewise.
85763         * conform/data/nl_types.h-data: Likewise.
85764         * conform/data/poll.h-data: Likewise.
85765         * conform/data/pthread.h-data: Likewise.
85766         * conform/data/pwd.h-data: Likewise.
85767         * conform/data/regex.h-data: Likewise.
85768         * conform/data/sched.h-data: Likewise.
85769         * conform/data/search.h-data: Likewise.
85770         * conform/data/semaphore.h-data: Likewise.
85771         * conform/data/setjmp.h-data: Likewise.
85772         * conform/data/signal.h-data: Likewise.
85773         * conform/data/spawn.h-data: Likewise.
85774         * conform/data/stdarg.h-data: Likewise.
85775         * conform/data/stdio.h-data: Likewise.
85776         * conform/data/stdlib.h-data: Likewise.
85777         * conform/data/string.h-data: Likewise.
85778         * conform/data/strings.h-data: Likewise.
85779         * conform/data/stropts.h-data: Likewise.
85780         * conform/data/sys/ipc.h-data: Likewise.
85781         * conform/data/sys/mman.h-data: Likewise.
85782         * conform/data/sys/msg.h-data: Likewise.
85783         * conform/data/sys/resource.h-data: Likewise.
85784         * conform/data/sys/select.h-data: Likewise.
85785         * conform/data/sys/sem.h-data: Likewise.
85786         * conform/data/sys/shm.h-data: Likewise.
85787         * conform/data/sys/socket.h-data: Likewise.
85788         * conform/data/sys/stat.h-data: Likewise.
85789         * conform/data/sys/statvfs.h-data: Likewise.
85790         * conform/data/sys/time.h-data: Likewise.
85791         * conform/data/sys/timeb.h-data: Likewise.
85792         * conform/data/sys/times.h-data: Likewise.
85793         * conform/data/sys/types.h-data: Likewise.
85794         * conform/data/sys/uio.h-data: Likewise.
85795         * conform/data/sys/un.h-data: Likewise.
85796         * conform/data/sys/utsname.h-data: Likewise.
85797         * conform/data/sys/wait.h-data: Likewise.
85798         * conform/data/syslog.h-data: Likewise.
85799         * conform/data/tar.h-data: Likewise.
85800         * conform/data/termios.h-data: Likewise.
85801         * conform/data/utime.h-data: Likewise.
85802         * conform/data/utmpx.h-data: Likewise.
85803         * conform/data/varargs.h-data: Likewise.
85804         * conform/data/wchar.h-data: Likewise.
85805         * conform/data/wctype.h-data: Likewise.
85806         * conform/data/wordexp.h-data: Likewise.
85807
85808         * include/stropts.h: New file.
85809         * include/uchar.h: New file.
85810         * include/aio.h: Changes to allow conformtest.pl to use the headers.
85811         * include/assert.h: Likewise.
85812         * include/ctype.h: Likewise.
85813         * include/dirent.h: Likewise.
85814         * include/dlfcn.h: Likewise.
85815         * include/fcntl.h: Likewise.
85816         * include/fnmatch.h: Likewise.
85817         * include/glob.h: Likewise.
85818         * include/grp.h: Likewise.
85819         * include/libio.h: Likewise.
85820         * include/locale.h: Likewise.
85821         * include/math.h: Likewise.
85822         * include/net/if.h: Likewise.
85823         * include/netdb.h: Likewise.
85824         * include/netinet/in.h: Likewise.
85825         * include/pthread.h: Likewise.
85826         * include/pwd.h: Likewise.
85827         * include/regex.h: Likewise.
85828         * include/sched.h: Likewise.
85829         * include/search.h: Likewise.
85830         * include/setjmp.h: Likewise.
85831         * include/signal.h: Likewise.
85832         * include/stdio.h: Likewise.
85833         * include/stdlib.h: Likewise.
85834         * include/string.h: Likewise.
85835         * include/sys/cdefs.h: Likewise.
85836         * include/sys/mman.h: Likewise.
85837         * include/sys/msg.h: Likewise.
85838         * include/sys/resource.h: Likewise.
85839         * include/sys/select.h: Likewise.
85840         * include/sys/socket.h: Likewise.
85841         * include/sys/stat.h: Likewise.
85842         * include/sys/statvfs.h: Likewise.
85843         * include/sys/time.h: Likewise.
85844         * include/sys/times.h: Likewise.
85845         * include/sys/uio.h: Likewise.
85846         * include/sys/utsname.h: Likewise.
85847         * include/sys/wait.h: Likewise.
85848         * include/termios.h: Likewise.
85849         * include/time.h: Likewise.
85850         * include/ulimit.h: Likewise.
85851         * include/unistd.h: Likewise.
85852         * include/utime.h: Likewise.
85853         * include/wchar.h: Likewise.
85854         * include/wctype.h: Likewise.
85855         * include/wordexp.h: Likewise.
85856
85857         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
85858
85859         * time/time.h: TIME_UTC must be a macro.
85860         Make timespec_get available for ISO C11 only as well.
85861
85862 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
85863
85864         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
85865         Reported by Peng Haitao <penght@cn.fujitsu.com>.
85866
85867 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
85868
85869         * configure.in: Use -o not -a in test for unsupported multi-arch.
85870
85871 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
85872
85873         * manual/texinfo.tex: Update to version 2012-01-19.16.
85874
85875 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
85876
85877         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
85878
85879 2012-02-24  Roland McGrath  <roland@hack.frob.com>
85880
85881         [BZ #13738]
85882         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
85883         * manual/fdl-1.3.texi: New file.
85884         * manual/fdl-1.1.texi: File removed.
85885
85886         [BZ #13738]
85887         * manual/libc.texinfo (FDL_VERSION): New @set.
85888         Use it for mention of FDL in cover text.
85889         (Documentation License): Use it in @include file name.
85890
85891 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
85892             Roland McGrath  <roland@hack.frob.com>
85893
85894         [BZ #5461]
85895         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
85896         (not LONG_LONG_MAX and LONG_LONG_MIN.
85897         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
85898         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
85899         name.
85900         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
85901
85902 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
85903
85904         [BZ #2547]
85905         [BZ #11365]
85906         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
85907         manipulate bits before adding and subtracting TWO23[sx].
85908         * math/libm-test.inc (nearbyint_test): Add more tests.
85909
85910 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
85911
85912         [BZ #2548]
85913         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
85914         bits before adding and subtracting TWO23[sx].
85915         * math/libm-test.inc (rint_test): Add more tests.
85916         (rint_test_tonearest): Likewise.
85917         (rint_test_towardzero): Likewise.
85918         (rint_test_downward): Likewise.
85919         (rint_test_upward: Likewise.
85920
85921 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
85922
85923         [BZ #10110]
85924         * include/stdc-predef.h: New file.  Extracted from features.h.
85925         * include/features.h: Include stdc-predef.h.
85926         * Makefile (headers): Add stdc-predef.h.
85927         * CONFORMANCE (Compiler limitations): Update.
85928
85929 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
85930
85931         * manual/libc.texinfo (VERSION, UPDATED): Revert.
85932
85933 2012-02-21  David S. Miller  <davem@davemloft.net>
85934
85935         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
85936         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
85937
85938 2012-02-20  David S. Miller  <davem@davemloft.net>
85939
85940         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
85941         using a normal save/restore sequence, rather than allocating a
85942         dummy stack frame just to store a frame pointer and restore.
85943         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
85944
85945 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
85946
85947         * manual/install.texi: Fix stray word in line-wrapped comment.
85948
85949 2012-02-20  David S. Miller  <davem@davemloft.net>
85950
85951         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
85952         both binutils and gcc support GOTDATA.
85953
85954         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
85955         "rd %pc" in the PIC register setup sequences.
85956
85957         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
85958         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
85959         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
85960         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
85961         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
85962         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
85963         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
85964         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
85965         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
85966         (SYSCALL_ERROR_HANDLER): Likewise.
85967         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
85968         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
85969         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
85970         (SYSCALL_ERROR_HANDLER): Likewise.
85971
85972         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
85973         (HAVE_GCC_GOTDATA): New.
85974         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
85975         relocation support in both binutils and gcc.
85976         * sysdeps/sparc/elf/configure: Regenerate.
85977
85978         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
85979         * sysdeps/sparc/sparc32/elf/configure: Delete.
85980         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
85981         * sysdeps/sparc/sparc64/elf/configure: Delete.
85982         * sysdeps/sparc/elf/configure.in: New file.
85983         * sysdeps/sparc/elf/configure: Generate.
85984
85985         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
85986         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
85987         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
85988         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
85989         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
85990
85991 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
85992
85993         * manual/install.texi: Do not mention specific glibc version
85994         numbers.
85995         * manual/libc.texinfo (VERSION, UPDATED): Update.
85996         (@copying): Use @copyright{} and range of years.
85997
85998 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
85999
86000         [BZ #13695]
86001         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
86002         [crti.S not in sysdirs] (generated): Do not append.
86003         [crti.S not in sysdirs] (omit-deps): Likewise.
86004         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
86005         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
86006         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
86007         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
86008         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
86009         Likewise.
86010         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
86011         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
86012         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
86013         * csu/defs.awk: Remove file.
86014         * sysdeps/generic/initfini.c: Likewise.
86015         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
86016         variable.
86017         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
86018         Likewise.
86019
86020 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
86021
86022         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
86023         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
86024         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
86025         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
86026         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
86027         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
86028         <bits/epoll.h>.
86029         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
86030         (__EPOLL_PACKED): Define to empty if not defined by
86031         <bits/epoll.h>.
86032         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
86033         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
86034         bits/epoll.h.
86035
86036 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
86037
86038         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
86039         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
86040         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
86041         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
86042         <bits/timerfd.h>.
86043         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
86044         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
86045         bits/timerfd.h.
86046
86047 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
86048
86049         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
86050         in C locale.
86051         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
86052         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
86053         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
86054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
86055
86056 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
86057
86058         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86059         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
86060
86061 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
86062
86063         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
86064         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
86065         defined.
86066         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
86067         Likewise.
86068         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
86069         entry for 2.16.
86070
86071 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
86072
86073         * math/w_acos.c: Use non-signaling floating-point comparisons.
86074         * math/w_acosf.c: Likewise.
86075         * math/w_acosh.c: Likewise.
86076         * math/w_acoshf.c: Likewise.
86077         * math/w_acoshl.c: Likewise.
86078         * math/w_acosl.c: Likewise.
86079         * math/w_asin.c: Likewise.
86080         * math/w_asinf.c: Likewise.
86081         * math/w_asinl.c: Likewise.
86082         * math/w_atanh.c: Likewise.
86083         * math/w_atanhf.c: Likewise.
86084         * math/w_atanhl.c: Likewise.
86085         * math/w_exp2.c: Likewise.
86086         * math/w_exp2f.c: Likewise.
86087         * math/w_exp2l.c: Likewise.
86088         * math/w_j0.c: Likewise.
86089         * math/w_j0f.c: Likewise.
86090         * math/w_j0l.c: Likewise.
86091         * math/w_j1.c: Likewise.
86092         * math/w_j1f.c: Likewise.
86093         * math/w_j1l.c: Likewise.
86094         * math/w_jn.c: Likewise.
86095         * math/w_jnf.c: Likewise.
86096         * math/w_log.c: Likewise.
86097         * math/w_log10.c: Likewise.
86098         * math/w_log10f.c: Likewise.
86099         * math/w_log10l.c: Likewise.
86100         * math/w_log2.c: Likewise.
86101         * math/w_log2f.c: Likewise.
86102         * math/w_log2l.c: Likewise.
86103         * math/w_logf.c: Likewise.
86104         * math/w_logl.c: Likewise.
86105         * math/w_sqrt.c: Likewise.
86106         * math/w_sqrtf.c: Likewise.
86107         * math/w_sqrtl.c: Likewise.
86108         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
86109         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
86110         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
86111         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
86112         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
86113
86114 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
86115
86116         [BZ #9739]
86117         * manual/string.texi (strnlen): Use correct parameter name in
86118         equivalent expression.
86119
86120 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
86121
86122         [BZ #11174]
86123         * manual/users.texi (seteuid): Consistently use neweuid for
86124         argument name.
86125
86126 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
86127
86128         [BZ #13704]
86129         * manual/nss.texi (Services in the NSS configuration): Correct
86130         list of services in example configuration file.
86131
86132 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
86133
86134         [BZ #11322]
86135         * manual/arith.texi: Remove statements about negative zero
86136         behaving identically to zero.
86137
86138 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
86139
86140         [BZ #5993]
86141         * manual/install.texi: Do not document upgrading from libc5.
86142
86143 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
86144
86145         [BZ #4596]
86146         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
86147
86148 2012-02-18  David S. Miller  <davem@davemloft.net>
86149
86150         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
86151         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
86152         %o7 across the call.
86153         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
86154         instead.
86155         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
86156         SETUP_PIC_REG_LEAF.
86157         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
86158         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
86159         * sysdeps/sparc/crtn.S: Likewise.
86160
86161 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
86162
86163         * aout/Makefile: Remove.
86164
86165 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
86166
86167         [BZ #13058]
86168         * manual/examples/argp-ex1.c (main): Format definition in GNU
86169         style.
86170         * manual/examples/argp-ex2.c (main): Likewise.
86171         * manual/examples/argp-ex3.c (main): Likewise.
86172         * manual/examples/argp-ex4.c (main): Likewise.
86173         * manual/examples/longopt.c (main): Use new-style prototype
86174         definition.
86175         * manual/examples/strncat.c (main): Specify return type and use
86176         (void) for arguments.
86177         * manual/examples/subopt.c (main): Use char **argv argument.
86178
86179 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
86180
86181         [BZ #5077]
86182         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
86183         rounding modes.
86184
86185 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
86186
86187         [BZ #6907]
86188         * manual/string.texi (strchr): Change when strchrnul is
86189         recommended.
86190
86191 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
86192
86193         [BZ #174]
86194         * manual/locale.texi (setlocale): Document LOCPATH.
86195
86196 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
86197
86198         [BZ #10210]
86199         * manual/process.texi (execle): Move @dots{} before last argument.
86200
86201 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
86202
86203         [BZ #12047]
86204         * manual/charset.texi (Generic Charset Conversion): Fix typo
86205         (LC_TYPE -> LC_CTYPE).
86206
86207 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
86208
86209         [BZ #5805]
86210         * manual/arith.texi (scalbn): Use @var{} on parameter names.
86211         (scalbnf): Likewise.
86212         (scalbnl): Likewise.
86213         (scalbln): Likewise.
86214         (scalblnf): Likewise.
86215         (scalblnl): Likewise.
86216         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
86217         (vwarnx): Likewise.
86218         (verr): Likewise.
86219         (verrx): Likewise.
86220         * manual/filesys.texi (telldir): Use braces around return type.
86221         * manual/llio.texi (mmap): Add space after comma.
86222         (mmap64): Likewise.
86223         * manual/math.texi (jn): Use @var{} on parameter names.
86224         (jnf): Likewise.
86225         (jnl): Likewise.
86226         (yn): Likewise.
86227         (ynf): Likewise.
86228         (ynl): Likewise.
86229         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
86230         line.
86231         * manual/resource.texi (ulimit): Use @dots{} instead of literal
86232         "...".
86233         (sched_get_priority_min): Remove semicolon on @deftypefun line.
86234         (sched_get_priority_max): Likewise.
86235         * manual/signal.texi (sigvec): Add space after comma.
86236         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
86237         names.
86238         (if_indextoname): Likewise.
86239         (if_freenameindex): Likewise.
86240         (sendto): Use ',' instead of '.' in prototype.
86241         * manual/startup.texi (syscall): Use @dots{} instead of literal
86242         "...".
86243         * manual/stdio.texi (__fpending): Separate initial words of
86244         paragraph from @deftypefun line.
86245         * manual/syslog.texi (syslog): Use @dots{} instead of literal
86246         "...".
86247         (vsyslog): Use @var{} on parameter names.
86248         * manual/terminal.texi (stty): Use @var{} on parameter names.
86249         * manual/users.texi (getutmp): Use @var{} on parameter names.
86250         (getutmpx): Likewise.
86251
86252 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
86253
86254         [BZ #6884]
86255         * manual/stdio.texi (fopen): Fix typos in description of
86256         ",ccs=STRING".
86257
86258 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
86259
86260         [BZ #4026]
86261         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
86262         get clock_id definition.
86263
86264 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
86265
86266         [BZ #4822]
86267         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
86268         (madvise): Cast every argument to void on its own.
86269
86270 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
86271
86272         [BZ #9902]
86273         * manual/startup.texi (Exit Status): Fix typo.
86274
86275 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
86276
86277         [BZ #10140]
86278         * manual/examples/argp-ex1.c: Include <stdlib.h>.
86279         * manual/examples/argp-ex2.c: Likewise.
86280         * manual/examples/argp-ex3.c: Likewise.
86281
86282 2012-02-16  Richard Henderson  <rth@redhat.com>
86283
86284         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
86285         * sysdeps/s390/s390-32/initfini.c: Remove.
86286         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
86287         * sysdeps/s390/s390-64/initfini.c: Remove.
86288
86289 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
86290
86291         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
86292         compiler output for sysdeps/generic/initfini.c.
86293         * sysdeps/sh/elf/initfini.c: Remove file.
86294
86295 2012-02-16  David S. Miller  <davem@davemloft.net>
86296
86297         [BZ #11494]
86298         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
86299
86300         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
86301         * sysdeps/sparc/crti.S: New file.
86302         * sysdeps/sparc/crtn.S: New file.
86303         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
86304         * sysdeps/sparc/sparc64/Makefile: Likewise.
86305
86306 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
86307
86308         [BZ #3335]
86309         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
86310
86311 2012-02-15  Roland McGrath  <roland@hack.frob.com>
86312
86313         [BZ #4822]
86314         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
86315
86316         * mach/devstream.c (cookie_io_functions_t): Macro removed.
86317         (write, read, close): Likewise.
86318         Patch by Aurelien Jarno <aurelien@aurel32.net>.
86319
86320 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
86321
86322         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
86323         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
86324         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
86325         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
86326         <bits/signalfd.h>.
86327         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
86328         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
86329         bits/signalfd.h.
86330
86331 2012-02-14  Marek Polacek  <polacek@redhat.com>
86332
86333         * sysdeps/x86_64/crti.S: New file.
86334         * sysdeps/x86_64/crtn.S: New file.
86335         * sysdeps/x86_64/elf/initfini.c: Remove file.
86336
86337 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
86338
86339         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
86340         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
86341         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
86342         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
86343         <bits/inotify.h>.
86344         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
86345         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
86346         bits/inotify.h.
86347
86348 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
86349
86350         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
86351         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
86352         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
86353         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
86354         <bits/eventfd.h>.
86355         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
86356         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
86357         bits/eventfd.h.
86358
86359 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
86360
86361         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
86362         __feraiseexcept instead of feraiseexcept.
86363
86364         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
86365         nanosleep invocations.
86366         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
86367         strings, and add error checking for a nanosleep invocations.
86368
86369 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
86370
86371         Replace FSF snail mail address with URLs, as per GNU coding standards.
86372         Most of the snail mail addresses were wrong anyway, and omitting
86373         them makes the source code easier to maintain.  Almost all of the
86374         changes are to license notices and to locale LC_IDENTIFICATION
86375         addresses, except for this one:
86376         * manual/libc.texinfo: In "Published by", give the FSF's URL,
86377         not its snail mail address.
86378
86379 2012-02-09  Richard Henderson  <rth@twiddle.net>
86380
86381         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
86382         of kernel-features.h.
86383
86384         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
86385
86386 2012-02-08  Marek Polacek  <polacek@redhat.com>
86387
86388         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
86389         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
86390         * sysdeps/gnu/_G_config.h: Likewise.
86391         * sysdeps/generic/_G_config.h: Likewise.
86392
86393 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
86394
86395         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
86396         tests.
86397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
86398
86399         * sysdeps/powerpc/powerpc32/crti.S: New file.
86400         * sysdeps/powerpc/powerpc32/crtn.S: New file.
86401         * sysdeps/powerpc/powerpc64/crti.S: New file.
86402         * sysdeps/powerpc/powerpc64/crtn.S: New file.
86403
86404         * Makeconfig (have-initfini): Don't set.
86405         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
86406         * configure.in (nopic_initfini): Don't substitute.
86407         * config.h.in (HAVE_INITFINI): Don't #undef.
86408         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
86409         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
86410
86411 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
86412
86413         Support crti.S and crtn.S provided directly by architectures.
86414         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
86415         [crti.S in sysdirs] (omit-deps): Likewise.
86416         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
86417         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
86418         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
86419         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
86420         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
86421         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
86422         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
86423         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
86424         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
86425         compiler output for sysdeps/generic/initfini.c.
86426         * sysdeps/i386/elf/Makefile: Remove file.
86427         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
86428
86429 2012-02-07  Marek Polacek  <polacek@redhat.com>
86430
86431         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
86432         * sysdeps/gnu/_G_config.h: Likewise.
86433         * sysdeps/mach/hurd/_G_config.h: Likewise.
86434
86435 2012-02-07  Marek Polacek  <polacek@redhat.com>
86436
86437         * math/Makefile (tests): Add tst-CMPLX2.
86438         * math/tst-CMPLX2.c: New file.
86439
86440 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
86441
86442         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86443
86444         * math/libm-test.inc (jn_test): Add missing L suffix.
86445
86446 2012-02-06  Marek Polacek  <polacek@redhat.com>
86447
86448         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
86449         * sysdeps/i386/fpu/e_powf.S: Likewise.
86450         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
86451         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
86452         * sysdeps/i386/fpu/e_acosh.S: Likewise.
86453         * sysdeps/i386/fpu/e_pow.S: Likewise.
86454         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
86455         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
86456         * sysdeps/i386/fpu/s_expm1.S: Likewise.
86457         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
86458         * sysdeps/i386/fpu/e_log2.S: Likewise.
86459         * sysdeps/i386/fpu/e_log2l.S: Likewise.
86460         * sysdeps/i386/fpu/e_scalb.S: Likewise.
86461         * sysdeps/i386/fpu/e_powl.S: Likewise.
86462         * sysdeps/i386/fpu/s_log1p.S: Likewise.
86463         * sysdeps/i386/fpu/e_log10f.S: Likewise.
86464         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
86465         * sysdeps/i386/fpu/e_logl.S: Likewise.
86466         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
86467         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
86468         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
86469         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
86470         * sysdeps/i386/fpu/e_log2f.S: Likewise.
86471         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
86472         * sysdeps/i386/fpu/e_log.S: Likewise.
86473         * sysdeps/i386/fpu/s_cexp.S: Likewise.
86474         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
86475         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
86476         * sysdeps/i386/fpu/e_logf.S: Likewise.
86477         * sysdeps/i386/fpu/e_log10l.S: Likewise.
86478         * sysdeps/i386/fpu/e_atanh.S: Likewise.
86479         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
86480         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
86481         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
86482         * sysdeps/i386/fpu/e_log10.S: Likewise.
86483         * sysdeps/i386/fpu/s_frexp.S: Likewise.
86484         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
86485         * sysdeps/i386/fpu/s_asinh.S: Likewise.
86486         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
86487         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
86488         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
86489         * sysdeps/i386/asm-syntax.h: Likewise.
86490         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
86491         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
86492         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
86493         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
86494         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
86495         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
86496         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
86497         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
86498         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
86499         * sysdeps/powerpc/sysdep.h: Likewise.
86500         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
86501         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
86502
86503 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
86504
86505         [BZ #411]
86506         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
86507
86508 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
86509
86510         * sysdeps/i386/sysdep.h: Include <features.h>.
86511         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
86512         version.
86513
86514 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
86515
86516         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
86517         Define.
86518         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
86519         LOAD_PIC_REG_STR.
86520
86521 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
86522
86523         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
86524         (SETUP_PIC_REG): Use GET_PC_THUNK.
86525         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
86526         macro.
86527
86528 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
86529
86530         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
86531         for non-PIC compilation.
86532         (SETUP_PIC_REG): Add .p2align directive.
86533         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
86534         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
86535         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
86536         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
86537         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
86538         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
86539         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
86540         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
86541         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
86542         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
86543         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
86544         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
86545         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
86546         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
86547         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
86548         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
86549         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
86550         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
86551         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
86552         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
86553         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
86554         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
86555         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
86556         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
86557         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
86558         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
86559         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
86560         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
86561         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
86562         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
86563         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
86564         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
86565         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
86566         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
86567         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
86568         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
86569         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
86570         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
86571         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
86572         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
86573         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
86574
86575 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
86576
86577         * math/tst-CMPLX.c: Include <stdio.h>.
86578
86579 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
86580
86581         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
86582         float.
86583         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
86584         * sysdeps/sparc/bits/mathdef.h: Likewise.
86585
86586 2012-01-31  Marek Polacek  <polacek@redhat.com>
86587
86588         * libio/libio.h: Don't define _PARAMS.
86589         * locale/programs/config.h: Don't define PARAMS.
86590         * stdlib/strtol_l.c: Likewise.
86591         (__strtol_l): Remove PARAMS from the prototype.
86592
86593 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
86594
86595         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
86596         names.  Just use the correct names.  Remove unnecessary wrapper
86597         functions.
86598         * malloc/arena.c: Likewise.
86599         * malloc/hooks.c: Likewise.
86600
86601         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
86602         ARENA_TEST says not to.  Simplify test for creation of a new arena.
86603         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
86604
86605 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
86606
86607         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
86608         into tail calls.
86609         (update_get_addr): New function.
86610         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
86611         GET_ADDR_MODULE parameter.
86612
86613 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
86614
86615         * crypt/cert.c: Remove __STDC__ conditionals.
86616         * crypt/crypt-entry.c: Likewise.
86617         * crypt/crypt_util.c: Likewise.
86618         * libio/filedoalloc.c: Likewise.
86619         * libio/fileops.c: Likewise.
86620         * libio/genops.c: Likewise.
86621         * libio/iofclose.c: Likewise.
86622         * libio/iofdopen.c: Likewise.
86623         * libio/iofopen.c: Likewise.
86624         * libio/iofopen64.c: Likewise.
86625         * libio/iogetdelim.c: Likewise.
86626         * libio/iopopen.c: Likewise.
86627         * libio/obprintf.c: Likewise.
86628         * libio/oldfileops.c: Likewise.
86629         * libio/oldiofclose.c: Likewise.
86630         * libio/oldiofdopen.c: Likewise.
86631         * libio/oldiofopen.c: Likewise.
86632         * libio/oldiopopen.c: Likewise.
86633         * libio/wfiledoalloc.c: Likewise.
86634         * libio/wgenops.c: Likewise.
86635         * locale/programs/xmalloc.c: Likewise.
86636         * misc/syslog.c: Likewise.
86637         * stdio-common/xbug.c: Likewise.
86638         * string/memchr.c: Likewise.
86639         * string/memcmp.c: Likewise.
86640         * string/memrchr.c: Likewise.
86641         * string/rawmemchr.c: Likewise.
86642         * sysdeps/posix/getcwd.c: Likewise.
86643         * time/strftime_l.c: Likewise.
86644
86645 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
86646
86647         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
86648         * config.make.in (config-cflags-sse2avx): Define.
86649         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
86650         Fix typo.
86651
86652 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
86653
86654         * scripts/config.guess: Update from upstream config git repository.
86655         * scripts/config.sub: Likewise.
86656
86657 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
86658
86659         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
86660         (EM_NUM): Update.
86661         (R_TILEPRO_*, R_TILEGX_*): New macros.
86662
86663         * scripts/firstversions.awk: Fix bug in version range handling.
86664
86665         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
86666
86667         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
86668
86669         * include/sys/epoll.h: New file.
86670         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
86671         libc_hidden_def.
86672
86673 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
86674
86675         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
86676         Avoid unnecessary __WORDSIZE == 64 test.
86677         (fmaxf): Use VEX format if possible.
86678         (fmax): Likewise.
86679         (fminf): Likewise.
86680         (fmin): Likewise.
86681
86682         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
86683         * math/math_private.h: Remove libc_fegetround* and
86684         libc_fesetround*.
86685         * sysdeps/i386/configure.in: Check for -msse2avx.
86686         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
86687         also if SSE2AVX is defined.
86688         Remove libc_fegetround* and libc_fesetround*.
86689         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
86690         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
86691         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
86692         of HAS_YMM_USABLE.
86693         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
86694         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
86695         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
86696         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
86697         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
86698
86699         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
86700
86701 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86702
86703         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
86704         size is not set.
86705         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
86706
86707 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
86708
86709         [BZ #13618]
86710         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
86711         relocation.
86712         * Makeconfig (libm): Define.
86713         * elf/Makefile: Add rules to build and run tst-relsort1.
86714         * elf/tst-relsort1.c: New file.
86715         * elf/tst-relsort1mod1.c: New file.
86716         * elf/tst-relsort1mod2.c: New file.
86717
86718 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
86719
86720         * math/s_ldexp.c: Remove __STDC__ conditionals.
86721         * math/s_ldexpf.c: Likewise.
86722         * math/s_ldexpl.c: Likewise.
86723         * math/s_nextafter.c: Likewise.
86724         * math/s_nexttowardf.c: Likewise.
86725         * math/s_significand.c: Likewise.
86726         * math/s_significandf.c: Likewise.
86727         * math/s_significandl.c: Likewise.
86728         * math/w_jnl.c: Likewise.
86729         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
86730         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
86731         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
86732         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
86733         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
86734         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
86735         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
86736         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
86737         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
86738         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
86739         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
86740         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
86741         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
86742         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
86743         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
86744         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
86745         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
86746         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
86747         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
86748         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
86749         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
86750         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
86751         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
86752         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
86753         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
86754         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
86755         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
86756         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
86757         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
86758         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
86759         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
86760         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
86761         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
86762         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
86763         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
86764         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
86765         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
86766         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
86767         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
86768         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
86769         * sysdeps/ieee754/k_standard.c: Likewise.
86770         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
86771         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
86772         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
86773         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
86774         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
86775         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
86776         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
86777         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
86778         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
86779         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
86780         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
86781         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
86782         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
86783         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
86784         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
86785         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
86786         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
86787         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
86788         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
86789         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
86790         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
86791         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
86792         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
86793         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
86794         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
86795         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
86796         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
86797         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
86798         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
86799         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
86800         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
86801         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
86802         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
86803         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
86804         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
86805         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
86806         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
86807         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
86808         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
86809         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
86810         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
86811         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
86812         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
86813         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
86814         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
86815         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
86816         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
86817         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
86818         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
86819         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
86820         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
86821         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
86822         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
86823         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
86824         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
86825         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
86826         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
86827         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
86828         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
86829         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
86830         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
86831         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
86832         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
86833         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
86834         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
86835         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
86836         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
86837         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
86838         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
86839         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
86840         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
86841         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
86842         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
86843         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
86844         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
86845         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
86846         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
86847         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
86848         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
86849         * sysdeps/ieee754/s_matherr.c: Likewise.
86850         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
86851         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
86852         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
86853         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
86854
86855 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
86856
86857         * crypt/md5.h: Remove __STDC__ conditionals.
86858         * libio/libioP.h: Likewise.
86859         * locale/programs/config.h: Likewise.
86860         * sysdeps/generic/sysdep.h: Likewise.
86861         * sysdeps/i386/asm-syntax.h: Likewise.
86862         * sysdeps/s390/asm-syntax.h: Likewise.
86863         * sysdeps/unix/sysdep.h: Likewise.
86864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
86865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
86866
86867 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
86868
86869         * libio/libio.h: Remove __STDC__ conditionals.
86870         * malloc/obstack.h: Likewise.
86871         * math/complex.h: Likewise.
86872         * math/math.h: Likewise.
86873         * sysdeps/generic/_G_config.h: Likewise.
86874         * sysdeps/gnu/_G_config.h: Likewise.
86875         * sysdeps/mach/hurd/_G_config.h: Likewise.
86876         * sysdeps/powerpc/bits/mathdef.h: Likewise.
86877         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
86878         * sysdeps/sparc/bits/mathdef.h: Likewise.
86879
86880 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
86881
86882         [BZ #13583]
86883         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
86884         Clean up HAS_* macros.
86885         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
86886         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
86887         possible.
86888         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
86889         HAS_AVX.
86890         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
86891         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
86892         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
86893         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
86894         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
86895
86896 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
86897
86898         * elf/tst-unique3.cc (gets): Remove declaration.
86899         * elf/tst-unique3lib.cc (gets): Likewise.
86900         * elf/tst-unique3lib2.cc (gets): Likewise.
86901         * elf/tst-unique4.cc (gets): Likewise.
86902
86903 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
86904
86905         * include/stdio.h: Add C++ protection.  Add gets declarations and
86906         definitions.
86907         * debug/tst-chk1.c: Don't declare gets here.
86908         * stdio-common/tst-gets.c: Likewise.
86909
86910 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
86911
86912         * posix/glob: Remove directory.
86913
86914 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
86915
86916         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
86917
86918 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
86919
86920         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
86921         of the non-standard EPFNOSUPPORT.
86922
86923 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
86924
86925         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
86926         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
86927         ANYWHERE set to 1 only on KERN_NO_SPACE error.
86928
86929 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
86930
86931         * wcsmbs/uchar.h: Test __STDC_VERSION__.
86932
86933 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
86934
86935         * nscd/aicache.c (addhstaiX): Do not cache negative results of
86936         transient errors.
86937         * nscd/grpcache.c (cache_addgr): Likewise.
86938         * nscd/hstcache.c (cache_addhst): Likewise.
86939         * nscd/initgrcache.c (addinitgroupsX): Likewise.
86940         * nscd/pwdcache.c (cache_addpw): Likewise.
86941         * nscd/servicescache.c (cache_addserv): Likewise.
86942
86943 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
86944
86945         * malloc/malloc.c: Various cleanups.
86946         * malloc/hooks.c: Likewise.
86947
86948         * stdlib/Makefile (tests): Add bug-fmtmsg1.
86949         * stdlib/bug-fmtmsg1.c: New file.
86950
86951         * stdlib/fmtmsg.c (init): Add missing unlock.
86952         Patch by Peng Haitao <penght@cn.fujitsu.com>.
86953
86954 2012-01-12  Marek Polacek  <polacek@redhat.com>
86955
86956         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
86957         and _GNU_SOURCE.
86958
86959 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
86960
86961         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
86962         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
86963         macro to ensure uniqueness of label name.
86964         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
86965         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
86966
86967 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
86968
86969         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
86970
86971         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
86972         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
86973         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
86974         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
86975
86976 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
86977
86978         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
86979
86980         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
86981         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
86982         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
86983
86984         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
86985
86986         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
86987         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
86988         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
86989         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
86990
86991         * math/bits/math-finite.h: Add ldexp support.
86992
86993 2012-01-10  Marek Polacek  <polacek@redhat.com>
86994
86995         * locale/programs/localedef.h (show_archive_content): Add noreturn
86996         attribute.
86997
86998 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
86999
87000         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
87001
87002 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
87003
87004         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
87005
87006         * io/Makefile (headers): Add bits/poll2.h.
87007
87008 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
87009
87010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
87011         typo #include statement.
87012
87013 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
87014
87015         * include/sys/cdefs.h: Define __attribute_alloc_size.
87016         * catgets/gencat.c: Add alloc_size attribute and apply consistently
87017         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
87018         * elf/pldd.c: Likewise.
87019         * iconv/iconv_charmap.c: Likewise.
87020         * iconv/iconvconfig.c: Likewise.
87021         * iconv/strtab.c: Likewise.
87022         * locale/programs/locale.c: Likewise.
87023         * locale/programs/localedef.h: Likewise.
87024         * locale/programs/simple-hash.c: Likewise.
87025         * nscd/nscd.h: Likewise.
87026         * nss/makedb.c: Likewise.
87027         * sysdeps/generic/ldconfig.h: Likewise.
87028         * locale/programs/localedef.c: Remove xmalloc prototype.
87029         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
87030
87031 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
87032
87033         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
87034         appropriate.
87035
87036 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
87037
87038         * math/Makefile (tests): Add tst-CMPLX.
87039         * math/tst-CMPLX.c: New file.
87040
87041         * math/complex.h (CMPLXL): Fix typo.
87042
87043         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
87044         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
87045         GLIBC_2.16.
87046         * debug/tst-chk1.c: Add poll and ppoll tests.
87047         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
87048         * include/sys/poll.h: Add hidden proto for ppoll.
87049         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
87050         * sysdeps/mach/hurd/ppoll.c: Likewise.
87051         * io/ppoll.c: Likewise.
87052         * debug/poll_chk.c: New file.
87053         * debug/ppoll_chk.c: New file.
87054         * include/bits/poll2.h: New file.
87055         * io/bits/poll2.h: New file.
87056
87057         [BZ #1350]
87058         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
87059
87060         * configure.in: static is always set to yes.  Remove.
87061         * config.make.in: Don't set build-static.
87062         * Makeconfig: Remove use of build-static.
87063         * dlfcn/Makefile: Likewise.
87064         * elf/Makefile: Likewise.
87065         * math/Makefile: Likewise.
87066         * misc/Makefile: Likewise.
87067         * nptl/Makefile: Likewise.
87068         * sysdeps/mach/hurd/Makefile: Likewise.
87069
87070         * configure.in: PWD_P is not used anymore.
87071         * config.make.in: Remove PWD_P entry.
87072
87073         * configure.in: Remove last remnants of RANLIB.
87074         No need to check for signed size_t anymore.
87075         Don't set libc_commonpagesize and libc_relro_required here for Alpha
87076         and IA-64.
87077         Remove __builtin_expect test because we require at least gcc 3.4.
87078         * aclocal.m4: Likewise.
87079
87080         * wcsmbs/mbrtoc16.c: Implement using towc function.
87081         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
87082         * wcsmbs/wcsmbsload.c: Likewise.
87083         * iconv/gconv_simple.c: Likewise.
87084         * iconv/gconv_int.h: Likewise.
87085         * iconv/gconv_builtin.h: Likewise.
87086         * iconv/iconv_prog.c: Remove CHAR16 handling.
87087
87088         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
87089
87090         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
87091
87092         * configure.in: Remove --with-elf and --enable-bounded options.
87093         Dont set base_machine for ia64.  More non-ELF conditions removed.
87094         Remove testing and setting of leading underscore information.
87095         * config.make.in (build-bounded): Set to no.
87096         * config.h.in: Remove NO_UNDERSCORES entry.
87097         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
87098         them.
87099         * csu/start.c: Remove !NO_UNDERSCORE code.
87100         * locale/localeinfo.h: Likewise.
87101         * sysdeps/generic/machine-gmon.h: Likewise.
87102         * sysdeps/generic/sysdep.h: Likewise.
87103         * sysdeps/i386/sysdep.h: Likewise.
87104         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
87105         * sysdeps/mach/sysdep.h: Likewise.
87106         * sysdeps/s390/s390-32/sysdep.h: Likewise.
87107         * sysdeps/s390/s390-64/sysdep.h: Likewise.
87108         * sysdeps/sh/sysdep.h: Likewise.
87109         * sysdeps/sparc/sparc32/alloca.S: Likewise.
87110         * sysdeps/unix/i386/sysdep.S: Likewise.
87111         * sysdeps/unix/sparc/start.c: Likewise.
87112         * sysdeps/unix/sparc/sysdep.S: Likewise.
87113         * sysdeps/unix/sparc/sysdep.h: Likewise.
87114         * sysdeps/unix/start.c: Likewise.
87115         * sysdeps/unix/x86_64/sysdep.S: Likewise.
87116         * sysdeps/x86_64/sysdep.h: Likewise.
87117
87118 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
87119
87120         [BZ #13553]
87121         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
87122         for non-gcc.
87123         * argp/argp-fmtstream.h: Use const instead __const.
87124         * argp/argp.h: Likewise.
87125         * assert/assert.h: Likewise.
87126         * bits/fenv.h: Likewise.
87127         * bits/sched.h: Likewise.
87128         * bits/sigset.h: Likewise.
87129         * bits/sigthread.h: Likewise.
87130         * catgets/nl_types.h: Likewise.
87131         * conform/data/pthread.h-data: Likewise.
87132         * crypt/crypt-private.h: Likewise.
87133         * crypt/crypt.h: Likewise.
87134         * crypt/crypt_util.c: Likewise.
87135         * ctype/ctype.h: Likewise.
87136         * debug/execinfo.h: Likewise.
87137         * debug/mbsnrtowcs_chk.c: Likewise.
87138         * debug/mbsrtowcs_chk.c: Likewise.
87139         * debug/wcsnrtombs_chk.c: Likewise.
87140         * debug/wcsrtombs_chk.c: Likewise.
87141         * debug/wcstombs_chk.c: Likewise.
87142         * dirent/dirent.h: Likewise.
87143         * dlfcn/dlfcn.h: Likewise.
87144         * elf/neededtest4.c: Likewise.
87145         * grp/grp.h: Likewise.
87146         * gshadow/gshadow.h: Likewise.
87147         * iconv/gconv.h: Likewise.
87148         * iconv/gconv_int.h: Likewise.
87149         * iconv/gconv_simple.c: Likewise.
87150         * iconv/iconv.h: Likewise.
87151         * iconv/loop.c: Likewise.
87152         * iconv/skeleton.c: Likewise.
87153         * include/aio.h: Likewise.
87154         * include/aliases.h: Likewise.
87155         * include/argz.h: Likewise.
87156         * include/arpa/inet.h: Likewise.
87157         * include/assert.h: Likewise.
87158         * include/dirent.h: Likewise.
87159         * include/dlfcn.h: Likewise.
87160         * include/execinfo.h: Likewise.
87161         * include/fcntl.h: Likewise.
87162         * include/fenv.h: Likewise.
87163         * include/glob.h: Likewise.
87164         * include/grp.h: Likewise.
87165         * include/libintl.h: Likewise.
87166         * include/mntent.h: Likewise.
87167         * include/netdb.h: Likewise.
87168         * include/pwd.h: Likewise.
87169         * include/rpc/netdb.h: Likewise.
87170         * include/sched.h: Likewise.
87171         * include/search.h: Likewise.
87172         * include/shadow.h: Likewise.
87173         * include/signal.h: Likewise.
87174         * include/stdio.h: Likewise.
87175         * include/stdlib.h: Likewise.
87176         * include/string.h: Likewise.
87177         * include/sys/socket.h: Likewise.
87178         * include/sys/stat.h: Likewise.
87179         * include/sys/statfs.h: Likewise.
87180         * include/sys/statvfs.h: Likewise.
87181         * include/sys/syslog.h: Likewise.
87182         * include/sys/time.h: Likewise.
87183         * include/sys/uio.h: Likewise.
87184         * include/time.h: Likewise.
87185         * include/unistd.h: Likewise.
87186         * include/utmp.h: Likewise.
87187         * include/wchar.h: Likewise.
87188         * include/wctype.h: Likewise.
87189         * inet/aliases.h: Likewise.
87190         * inet/arpa/inet.h: Likewise.
87191         * inet/netinet/ether.h: Likewise.
87192         * inet/netinet/in.h: Likewise.
87193         * intl/libintl.h: Likewise.
87194         * io/bits/fcntl2.h: Likewise.
87195         * io/fcntl.h: Likewise.
87196         * io/ftw.h: Likewise.
87197         * io/sys/poll.h: Likewise.
87198         * io/sys/stat.h: Likewise.
87199         * io/sys/statfs.h: Likewise.
87200         * io/sys/statvfs.h: Likewise.
87201         * io/utime.h: Likewise.
87202         * libio/bits/stdio.h: Likewise.
87203         * libio/bits/stdio2.h: Likewise.
87204         * libio/libio.h: Likewise.
87205         * libio/libioP.h: Likewise.
87206         * libio/stdio.h: Likewise.
87207         * locale/lc-ctype.c: Likewise.
87208         * locale/locale.h: Likewise.
87209         * login/utmp.h: Likewise.
87210         * malloc/arena.c: Likewise.
87211         * malloc/malloc.c: Likewise.
87212         * malloc/malloc.h: Likewise.
87213         * malloc/mcheck.c: Likewise.
87214         * malloc/mtrace.c: Likewise.
87215         * math/bits/mathcalls.h: Likewise.
87216         * math/fenv.h: Likewise.
87217         * math/math_private.h: Likewise.
87218         * misc/bits/error.h: Likewise.
87219         * misc/bits/syslog.h: Likewise.
87220         * misc/err.h: Likewise.
87221         * misc/error.h: Likewise.
87222         * misc/fstab.h: Likewise.
87223         * misc/mntent.h: Likewise.
87224         * misc/regexp.h: Likewise.
87225         * misc/search.h: Likewise.
87226         * misc/sgtty.h: Likewise.
87227         * misc/sys/mman.h: Likewise.
87228         * misc/sys/syslog.h: Likewise.
87229         * misc/sys/uio.h: Likewise.
87230         * misc/sys/xattr.h: Likewise.
87231         * misc/ttyent.h: Likewise.
87232         * nis/rpcsvc/ypclnt.h: Likewise.
87233         * nss/nss.h: Likewise.
87234         * posix/bits/unistd.h: Likewise.
87235         * posix/fnmatch.h: Likewise.
87236         * posix/glob.h: Likewise.
87237         * posix/sched.h: Likewise.
87238         * posix/spawn.h: Likewise.
87239         * posix/sys/wait.h: Likewise.
87240         * posix/unistd.h: Likewise.
87241         * posix/wordexp.h: Likewise.
87242         * pwd/pwd.h: Likewise.
87243         * resolv/netdb.h: Likewise.
87244         * resource/sys/resource.h: Likewise.
87245         * rt/aio.h: Likewise.
87246         * rt/bits/mqueue2.h: Likewise.
87247         * rt/mqueue.h: Likewise.
87248         * shadow/shadow.h: Likewise.
87249         * signal/signal.h: Likewise.
87250         * socket/send.c: Likewise.
87251         * socket/sendto.c: Likewise.
87252         * socket/sys/socket.h: Likewise.
87253         * stdio-common/printf.h: Likewise.
87254         * stdlib/bits/stdlib.h: Likewise.
87255         * stdlib/fmtmsg.h: Likewise.
87256         * stdlib/monetary.h: Likewise.
87257         * stdlib/stdlib.h: Likewise.
87258         * stdlib/ucontext.h: Likewise.
87259         * streams/stropts.h: Likewise.
87260         * string/argz.h: Likewise.
87261         * string/bits/string2.h: Likewise.
87262         * string/string.h: Likewise.
87263         * string/strings.h: Likewise.
87264         * sunrpc/rpc/auth.h: Likewise.
87265         * sunrpc/rpc/auth_des.h: Likewise.
87266         * sunrpc/rpc/clnt.h: Likewise.
87267         * sunrpc/rpc/netdb.h: Likewise.
87268         * sunrpc/rpc/pmap_clnt.h: Likewise.
87269         * sunrpc/rpc/xdr.h: Likewise.
87270         * sysdeps/generic/inttypes.h: Likewise.
87271         * sysdeps/generic/net/if.h: Likewise.
87272         * sysdeps/generic/sys/swap.h: Likewise.
87273         * sysdeps/gnu/net/if.h: Likewise.
87274         * sysdeps/gnu/utmpx.h: Likewise.
87275         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
87276         * sysdeps/i386/i486/bits/string.h: Likewise.
87277         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
87278         * sysdeps/s390/bits/string.h: Likewise.
87279         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
87280         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
87281         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
87282         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
87283         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
87284         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
87285         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
87286         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
87287         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
87288         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
87289         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
87290         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
87291         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
87292         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
87293         * sysdeps/unix/sysv/linux/readv.c: Likewise.
87294         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
87295         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
87296         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
87297         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
87298         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
87299         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
87300         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
87301         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
87302         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
87303         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
87304         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
87305         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
87306         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
87307         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
87308         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
87309         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
87310         * sysvipc/sys/ipc.h: Likewise.
87311         * sysvipc/sys/msg.h: Likewise.
87312         * sysvipc/sys/sem.h: Likewise.
87313         * sysvipc/sys/shm.h: Likewise.
87314         * termios/termios.h: Likewise.
87315         * time/sys/time.h: Likewise.
87316         * time/time.h: Likewise.
87317         * wcsmbs/bits/wchar2.h: Likewise.
87318         * wcsmbs/uchar.h: Likewise.
87319         * wcsmbs/wchar.h: Likewise.
87320         * wctype/wctype.h: Likewise.
87321
87322         [BZ #13551]
87323         * Makeconfig: Remove all but ELF support including AIX support.
87324         * Makerules: Likewise.
87325         * config.h.in: Likewise.
87326         * config.make.in: Likewise.
87327         * configure: Likewise.
87328         * configure.in: Likewise.
87329         * csu/Makefile: Likewise.
87330         * csu/version.c: Likewise.
87331         * debug/Makefile: Likewise.
87332         * dlfcn/Makefile: Likewise.
87333         * elf/Makefile: Likewise.
87334         * extra-lib.mk: Likewise.
87335         * iconv/Makefile: Likewise.
87336         * include/libc-symbols.h: Likewise.
87337         * include/shlib-compat.h: Likewise.
87338         * resolv/Makefile: Likewise.
87339         * resolv/res_libc.c: Likewise.
87340         * rt/Makefile: Likewise.
87341         * sysdeps/i386/asm-syntax.h: Likewise.
87342         * sysdeps/i386/sysdep.h: Likewise.
87343         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
87344         * sysdeps/mach/sysdep.h: Likewise.
87345         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
87346         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
87347         * sysdeps/s390/asm-syntax.h: Likewise.
87348         * sysdeps/s390/s390-32/sysdep.h: Likewise.
87349         * sysdeps/s390/s390-64/sysdep.h: Likewise.
87350         * sysdeps/sh/sysdep.h: Likewise.
87351         * sysdeps/unix/sparc/sysdep.h: Likewise.
87352         * sysdeps/wordsize-32/divdi3.c: Likewise.
87353         * sysdeps/x86_64/sysdep.h: Likewise.
87354
87355         * argp/Versions: Remove _argp_unlock_xxx.
87356
87357         [BZ #13559]
87358         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
87359         * abilist/libBrokenLocale.abilist: Likewise.
87360         * abilist/libanl.abilist: Likewise.
87361         * abilist/libc.abilist: Likewise.
87362         * abilist/libcrypt.abilist: Likewise.
87363         * abilist/libdl.abilist: Likewise.
87364         * abilist/libm.abilist: Likewise.
87365         * abilist/libnsl.abilist: Likewise.
87366         * abilist/libpthread.abilist: Likewise.
87367         * abilist/libresolv.abilist: Likewise.
87368         * abilist/librt.abilist: Likewise.
87369         * abilist/libthread_db.abilist: Likewise.
87370         * abilist/libutil.abilist: Likewise.
87371         * abilist/libnss_db.abilist: New file.
87372
87373         * scripts/abilist.awk: Add support for indirect functions.
87374
87375         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
87376
87377         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
87378
87379         * shlib-versions: Remove entries for ports architectures.
87380
87381         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
87382         files in ports.
87383         * elf/stackguard-macros.h: Remove support for IA-64.
87384         * elf/tst-auditmod1.c: Likewise.
87385         * sysdeps/generic/ldsodefs.h: Likewise.
87386
87387         * sysdeps/unix/sysv/linux/configure.in: Ports should define
87388         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
87389         configure files.
87390
87391         [BZ #13552]
87392         * configure.in: Remove --enable-omitfp support.
87393         * FAQ.in: Adjust.
87394         * config.make.in: Likewise.
87395         * Makeconfig: Likewise.
87396         * manual/install.texi: Likewise.
87397
87398         In case anyone cares, the IA-64 architecture could move to ports.
87399         * sysdeps/ia64/*: Removed.
87400         * sysdeps/unix/sysv/linux/ia64/*: Removed.
87401         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
87402
87403         [BZ #13555]
87404         * configure.in: Remove entries for unsupported architectures.
87405
87406         [BZ #13533]
87407         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
87408         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
87409         routines.
87410         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
87411         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
87412         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
87413         fall back to using wcrtomb.
87414         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
87415         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
87416         renaming.
87417         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
87418         * wcsmbs/tst-c16c32-1.c: New file.
87419
87420         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
87421         local variable.
87422
87423         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
87424
87425         * elf/tst-unique3.cc: Add explicit declaration of gets.
87426         * elf/tst-unique3lib.cc: Likewise.
87427         * elf/tst-unique3lib2.cc: Likewise.
87428         * elf/tst-unique4.cc: Likewise.
87429
87430         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
87431
87432 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
87433
87434         [BZ #13566]
87435         * assert/assert.h (static_assert): Don't define for C++.
87436         * libio/stdio.h (gets): Do declare for C++ <= C++11.
87437         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
87438
87439 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
87440
87441         * iconv/loop.c (single loop): Fix assertion in storing of
87442         remaining bytes.
87443
87444         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
87445
87446 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
87447
87448         * posix/getconf.c: Update copyright year.
87449         * nss/getent.c: Likewise.
87450         * nss/makedb.c: Likewise.
87451         * iconv/iconvconfig.c: Likewise.
87452         * iconv/iconv_prog.c: Likewise.
87453         * elf/ldconfig.c: Likewise.
87454         * elf/pldd.c: Likewise.
87455         * elf/sotruss.ksh: Likewise.
87456         * catgets/gencat.c: Likewise.
87457         * csu/version.c: Likewise.
87458         * elf/ldd.bash.in: Likewise.
87459         * elf/sprof.c (print_version): Likewise.
87460         * locale/programs/locale.c: Likewise.
87461         * locale/programs/localedef.c: Likewise.
87462         * login/programs/pt_chown.c: Likewise.
87463         * nscd/nscd.c (print_version): Likewise.
87464         * debug/xtrace.sh: Likewise.
87465         * malloc/memusage.sh: Likewise.
87466         * malloc/mtrace.pl: Likewise.
87467         * debug/catchsegv.sh: Likewise.
87468
87469 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
87470
87471         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
87472         pure attribute.
87473
87474 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
87475
87476         [BZ #13533]
87477         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
87478         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
87479         transformations.
87480         * iconv/gconv_int.h: Likewise.
87481         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
87482         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
87483         from libc for GLIBC_2.16.
87484         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
87485         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
87486         * wcsmbs/uchar.h: Really define mbstate_t.
87487         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
87488         * wcsmbs/c16rtomb.c: New file.
87489         * wcsmbs/mbrtoc16.c: New file.
87490         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
87491         for C/POSIX locale.
87492         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
87493         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
87494
87495         * wcsmbs/wchar.h: Add missing __restrict.
87496
87497 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
87498
87499         [BZ #13532]
87500         * time/Makefile (routines): Add timespec_get.
87501         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
87502         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
87503         timespec for ISO C11.
87504         * time/timespec_get.c: New file.
87505         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
87506         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
87507
87508         [BZ #13531]
87509         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
87510         * stdlib/stdlib.h: Declare aligned_alloc.
87511         * Versions.def: Add GLIBC_2.16 for libc.
87512         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
87513
87514         [BZ 13527]
87515         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
87516         ISO C11.
87517
87518         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
87519         code.
87520
87521         [BZ #13528]
87522         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
87523
87524         [BZ #13529]
87525         * assert/assert.h (static_assert): Define.
87526
87527         * version.h: Update for 2.16 development version.
87528
87529         [BZ #13526]
87530         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
87531         _ISOC11_SOURCE.
87532
87533         * version.h (RELEASE): Bump for 2.15 release.
87534         * include/features.h (__GLIBC_MINOR__): Bump to 15.
87535
87536         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
87537         Patch by Marek Polacek <mpolacek@redhat.com>.
87538
87539         * bits/byteswap.h: Protect long long constants with __extension__.
87540         * sysdeps/i386/bits/byteswap.h: Likewise.
87541         * sysdeps/ia64/bits/byteswap.h: Likewise.
87542         * sysdeps/s390/bits/byteswap.h: Likewise.
87543         * sysdeps/x86_64/bits/byteswap.h: Likewise.
87544
87545 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87546
87547         [BZ #13540]
87548         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
87549         destination buffer.
87550         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
87551
87552 2011-12-23  Marek Polacek  <polacek@redhat.com>
87553
87554         * elf/dl-addr.c (determine_info): Add inline keyword.
87555         * elf/tst-auditmod4b.c (check_avx): Likewise.
87556         * elf/tst-auditmod6b.c (check_avx): Likewise.
87557         * elf/tst-auditmod6c.c (check_avx): Likewise.
87558         * elf/tst-auditmod7b.c (check_avx): Likewise.
87559
87560 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
87561
87562         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
87563         !__SSE_MATH__.
87564
87565 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87566
87567         [BZ #13540]
87568         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
87569         processing for last bytes.
87570
87571 2011-08-06  Bruno Haible  <bruno@clisp.org>
87572
87573         [BZ #13061]
87574         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
87575         U+0385, not to U+1FEE.
87576
87577         [BZ #13062]
87578         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
87579         entry for U+00A5 U+0301.
87580
87581 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
87582
87583         [BZ #13166]
87584         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
87585         buffer for the output is too small.
87586
87587         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
87588         optimization.
87589
87590         [BZ #13185]
87591         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
87592         SSE flags if possible.
87593
87594 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87595
87596         [BZ #13540]
87597         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
87598         processing for last bytes.
87599
87600 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
87601
87602         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
87603         (syscall-list-default-options, syscall-list-default-condition)
87604         (syscall-list-includes): Define.
87605         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
87606         list of ABIs and options and #if conditions for each ABI.  Do not
87607         handle common syscalls between ABIs specially.
87608         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
87609         Remove.
87610         (syscall-list-variants, syscall-list-32bit-options)
87611         (syscall-list-32bit-condition, syscall-list-64bit-options)
87612         (syscall-list-64bit-condition): Define.
87613         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
87614         (syscall-list-variants, syscall-list-32bit-options)
87615         (syscall-list-32bit-condition, syscall-list-64bit-options)
87616         (syscall-list-64bit-condition): Define.
87617         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
87618         Remove.
87619         (syscall-list-variants, syscall-list-32bit-options)
87620         (syscall-list-32bit-condition, syscall-list-64bit-options)
87621         (syscall-list-64bit-condition): Define.
87622         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
87623         Remove.
87624         (syscall-list-variants, syscall-list-32bit-options)
87625         (syscall-list-32bit-condition, syscall-list-64bit-options)
87626         (syscall-list-64bit-condition): Define.
87627
87628 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
87629
87630         * locale/iso-639.def: Add brx entry.
87631
87632         [BZ #13328]
87633         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
87634         Proposed by Mariusz_Cukr <marcukr@op.pl>.
87635
87636         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
87637         __feraiseexcept_renamed.
87638
87639 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
87640
87641         [BZ #13538]
87642         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
87643         EPOLLET with unsigned values.
87644         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
87645         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
87646
87647         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
87648         to large cancellation.
87649         * math/s_cacoshf.c: Likewise.
87650         * math/s_cacoshl.c: Likewise.
87651
87652 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
87653
87654         [BZ #13305]
87655         [BZ #12786]
87656         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
87657         * math/s_cacoshf.c: Likewise.
87658         * math/s_cacoshl.c: Likewise.
87659
87660 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
87661
87662         [BZ #13439]
87663         * iconv/gconv.h: Define __GCONV_SWAP.
87664         * iconvdata/unicode.c: The swap bit must be stored in __flags.
87665         * iconvdata/utf-16.c: Likewise.
87666         * iconvdata/utf-32.c: Likewise.
87667
87668 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
87669
87670         [BZ #13524]
87671         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
87672         numerator after shifting it by one limb.
87673
87674 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
87675
87676         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
87677         under [__USE_EXTERN_INLINES].
87678
87679 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
87680
87681         [BZ #13446]
87682         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
87683
87684 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
87685
87686         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
87687         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
87688         optimized code.
87689         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
87690         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
87691         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
87692         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
87693         for strncasecmp/strncasecmp_l compilation.
87694         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
87695         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
87696
87697 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
87698
87699         [BZ #13484]
87700         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
87701         of __asm__.
87702
87703 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
87704
87705         [BZ #13506]
87706         * time/tzfile.c (__tzfile_read): Check values from file header.
87707
87708 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
87709
87710         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
87711         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
87712         * powerpc/powerpc32/dl-start.S: Likewise.
87713         * powerpc/powerpc32/elf/start.S: Likewise.
87714         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
87715         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
87716         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
87717         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
87718         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
87719         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
87720         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
87721         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
87722         * powerpc/powerpc32/fpu/s_round.S: Likewise.
87723         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
87724         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
87725         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
87726         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
87727         * powerpc/powerpc32/memset.S: Likewise.
87728         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
87729         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
87730         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
87731         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
87732         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
87733         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
87734         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
87735         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
87736         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
87737         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
87738         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
87739         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
87740         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
87741
87742 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
87743
87744         * math/libm-test.inc: Added more nearbyint tests.
87745         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
87746         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
87747         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
87748         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
87749
87750 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
87751
87752         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
87753         FD_CLOEXEC.
87754
87755 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87756
87757         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
87758         Add wcscpy-ssse3 wcscpy-c.
87759         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
87760         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
87761         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
87762         * sysdeps/x86_64/wcschr.S: New file.
87763         * sysdeps/x86_64/wcsrchr.S: New file.
87764         * string/test-strcmp.c: Remove checking of wcscmp function for
87765         wrong alignments.
87766         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
87767         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
87768         wcsrchr-sse2 wcsrchr-c.
87769         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
87770         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
87771         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
87772         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
87773         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
87774         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
87775         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
87776         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
87777         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
87778         * wcsmbc/wcschr.c (WCSCHR): New macro.
87779
87780 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87781
87782         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
87783         * wcsmbs/test-wcsrchr.c: New file.
87784         * string/test-strrchr.c: Add wcsrchr support.
87785         (WIDE): New macro.
87786         * wcsmbs/test-wcscpy.c: New file.
87787         * string/test-strcpy.c: Add wcscpy support.
87788         (WIDE): New macro.
87789
87790 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
87791
87792         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
87793         the inner loop.
87794
87795 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
87796
87797         [BZ #13472]
87798         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
87799
87800 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
87801
87802         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
87803         Minor optimizations.
87804
87805         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
87806         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
87807         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
87808
87809 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
87810
87811         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
87812         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
87813         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
87814         for gcc to avoid warnings.
87815         * inet/Makefile (tests): Add tst-checks.
87816         * inet/tst-checks.c: New file.
87817
87818         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
87819         warning.
87820
87821         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
87822         __wmemcmp_sse2.
87823
87824         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
87825         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
87826
87827         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
87828
87829 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
87830
87831         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
87832         problem.
87833
87834         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
87835
87836 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
87837
87838         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
87839         conditional on GCC version.
87840         (__arch_compare_and_exchange_val_8_acq)
87841         (__arch_compare_and_exchange_val_16_acq)
87842         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
87843         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
87844         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
87845
87846 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
87847
87848         * sysdeps/sh/backtrace.c: New file.
87849
87850 2011-12-02  Andreas Schwab  <schwab@redhat.com>
87851
87852         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
87853         parenthesis.
87854
87855 2011-12-01  Andreas Schwab  <schwab@redhat.com>
87856
87857         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
87858         falling back to utime.
87859
87860 2011-11-30  Andreas Schwab  <schwab@redhat.com>
87861
87862         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
87863         expectations for float.
87864
87865 2011-11-29  Andreas Schwab  <schwab@redhat.com>
87866
87867         * locale/weight.h (findidx): Add parameter len.
87868         * locale/weightwc.h (findidx): Likewise.
87869         * posix/fnmatch_loop.c (FCT): Adjust caller.
87870         * posix/regcomp.c (build_equiv_class): Likewise.
87871         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
87872         * posix/regexec.c (check_node_accept_bytes): Likewise.
87873         * string/strcoll_l.c (STRCOLL): Likewise.
87874         * string/strxfrm_l.c (STRXFRM): Likewise.
87875
87876 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
87877
87878         * Makefile.in: Remove CVSOPT handling.
87879         * configure.in: Remove use of AC_REVISION.
87880         * iconvdata/Makefile (distribute): No need to filter out CVS.
87881         * scripts/list-sources.sh: Remove CVS, subversion and monotone
87882         handling.
87883
87884 2011-11-16  Andreas Schwab  <schwab@redhat.com>
87885
87886         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
87887         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
87888         [USE_AS_STRNCASECMP_L]: Likewise.
87889         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
87890         NO_TLS_DIRECT_SEG_REFS.
87891         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
87892         Fix argument offsets for non-PIC.
87893         [USE_AS_STRNCASECMP_L]: Likewise.
87894         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
87895         NO_TLS_DIRECT_SEG_REFS.
87896
87897 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
87898
87899         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
87900         O_CLOEXEC.
87901         * locale/loadlocale.c (_nl_load_locale): Likewise.
87902
87903 2011-11-15  Andreas Schwab  <schwab@redhat.com>
87904
87905         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
87906         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
87907         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
87908         (SYSCALL_GETTIME): Set errno on error.
87909
87910         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
87911         count references to noai6ai_cached.
87912
87913 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
87914
87915         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
87916
87917         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
87918         FD_CLOEXEC for /proc/self/maps.
87919
87920         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
87921         FD_CLOEXEC for /proc/meminfo.
87922
87923         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
87924         gai.conf.
87925
87926         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
87927         FD_CLOEXEC for given file.
87928
87929         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
87930
87931         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
87932         FD_CLOEXEC for /etc/hosts.
87933         (_gethtent): Likewise.
87934
87935         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
87936
87937         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
87938         cancellation and set FD_CLOEXEC for /etc/netgroup.
87939
87940         * nss/nss_files/files-key.c (search): Don't allow cancellation when
87941         reading /etc/publickey.
87942
87943         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
87944         allow cancellation when reading /etc/group.
87945
87946         * nss/nss_files/files-alias.c (internal_setent): Don't allow
87947         cancellation.
87948         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
87949
87950         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
87951         when using data file.
87952
87953         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
87954
87955         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
87956         (write_nis_obj): Use "c" and "e" in fopen.
87957
87958         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
87959
87960         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
87961
87962         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
87963
87964         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
87965
87966         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
87967         locale.alias.
87968
87969         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
87970
87971         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
87972
87973         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
87974
87975         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
87976         file parsing and set FD_CLOEXEC.
87977
87978 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
87979
87980         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
87981
87982 2011-11-14  Andreas Schwab  <schwab@redhat.com>
87983
87984         * malloc/arena.c (arena_get2): Don't call reused_arena when
87985         _int_new_arena failed.
87986
87987 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
87988
87989         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
87990         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
87991         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
87992         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
87993         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
87994         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
87995         to compile strcasecmp and strncasecmp.
87996         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
87997         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
87998
87999         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
88000
88001 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
88002
88003         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
88004         locale-defines.sym to gen-as-const-headers.
88005         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
88006         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
88007         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
88008         to compile strcasecmp and strncasecmp.
88009         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
88010         strcasecmp_l and strncasecmp_l.
88011         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
88012         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
88013         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
88014         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
88015         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
88016         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
88017         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
88018         * sysdeps/i386/i686/multiarch/strncase.S: New file.
88019         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
88020         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
88021         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
88022
88023 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
88024
88025         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
88026         result of SYSDEP_GETTIME_CPU to retval.
88027         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
88028         parameter list to macro.  Remove trailing semicolon.  Adjust users.
88029
88030         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
88031         variable.
88032
88033         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
88034         mantissa words.
88035         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
88036
88037         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
88038         from unused variable.
88039
88040         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
88041         DWARF definitions.
88042         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
88043         for assembling.
88044
88045         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
88046         over namespaces.
88047
88048         * sunrpc/rpc_prot.c (rejected): Fix case value.
88049
88050         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
88051         unsigned long long int to avoid warnings in shift.
88052
88053         * posix/regex_internal.c (re_string_reconstruct): Actually use result
88054         of use of trans.
88055         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
88056         variable tmp.
88057
88058         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
88059         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
88060         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
88061
88062         * nis/nis_table.c (nis_list): Use variable of correct type for
88063         result of __follow_path call.
88064
88065 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
88066
88067         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
88068         of math functions ceil, trunc, floor, round, and sqrt, when
88069         avaliable on the platform.
88070         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
88071         name clash.
88072         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
88073         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
88074         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
88075
88076 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
88077
88078         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
88079         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
88080
88081 2011-11-11  Roland McGrath  <roland@hack.frob.com>
88082
88083         * include/unistd.h: Fix __readlink return type.
88084         Reported by Chris Metcalf <cmetcalf@tilera.com>.
88085
88086 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
88087
88088         * stdlib/ucontext.h: Undo last change for makecontext.
88089
88090 2011-11-11  Andreas Schwab  <schwab@redhat.com>
88091
88092         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
88093
88094         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
88095         * setjmp/setjmp.h: Mark functions as non-leaf.
88096         * setjmp/bits/setjmp2.h: Likewise.
88097         * stdlib/ucontext.h: Likewise.
88098
88099 2011-11-10  Andreas Schwab  <schwab@redhat.com>
88100
88101         * malloc/arena.c (_int_new_arena): Don't increment narenas.
88102         (reused_arena): Don't check arena limit.
88103         (arena_get2): Atomically check arena limit.
88104
88105 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
88106
88107         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
88108         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
88109
88110         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
88111         instructions.
88112
88113 2011-11-07  Andreas Schwab  <schwab@redhat.com>
88114
88115         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
88116         handler when locking.
88117
88118         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
88119         Fix size of allocated buffer.
88120
88121 2011-11-04  Andreas Schwab  <schwab@redhat.com>
88122
88123         [BZ #10103]
88124         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
88125         declarations for long double functions.
88126         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
88127
88128         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
88129
88130 2011-11-03  Andreas Schwab  <schwab@redhat.com>
88131
88132         * nscd/nscd.c (main): Don't start AVC thread until credentials are
88133         installed.
88134
88135         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
88136         is disabled.
88137
88138 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88139
88140         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
88141
88142 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
88143
88144         * include/alloca.h (stackinfo_alloca_round): Define.
88145         (extend_alloca): Use it.
88146         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
88147         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
88148         here.
88149
88150         * scripts/check-local-headers.sh: Ignore libaudit.h.
88151
88152         * nscd/Makefile (extra-objs): Make recursively expanded.
88153
88154 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
88155
88156         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
88157         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
88158
88159         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
88160         * posix/tst-rfc3484-2.c: Likewise.
88161         * posix/tst-rfc3484-3.c: Likewise.
88162
88163         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
88164         process_vm_writev.
88165         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
88166         process_vm_writev.
88167         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
88168         process_vm_writev from libc using GLIBC_2.15 version.
88169
88170         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
88171
88172 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
88173
88174         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
88175         stack usage.
88176
88177 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
88178
88179         [BZ #13367]
88180         * nss/getent.c (initgroups_keys): Show error message in case no group
88181         names are given.
88182
88183         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
88184         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
88185         __bump_nl_timestamp.
88186         * nscd/connections (nscd_init): When host database is served open
88187         netlink socket and request notification about configuration changes.
88188         (main_loop_poll): Track netlink file descriptor and bump timestamp
88189         in case data becomes available.
88190         (main_loop_epoll): Likewise.
88191         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
88192         (database_pers_head): Add extra_data fileds.
88193         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
88194         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
88195         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
88196         Adjust caller.
88197         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
88198         in6ai data, call __free_in6ai.
88199         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
88200         Add -DHAVE_NETLINK.
88201         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
88202         interface information.  Reuse previous data if netlink timestamp
88203         is not changed.
88204         (__bump_nl_timestamp): New function.
88205         (__free_in6ai): New function.
88206
88207 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
88208
88209         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
88210         close_not_cancel_no_status here.
88211         (__check_pf): Reorganize code a bit to not call close twice if OOM.
88212
88213 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
88214
88215         [BZ #13276]
88216         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
88217         return value.
88218
88219         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
88220         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
88221         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
88222
88223 2011-07-03  Andreas Jaeger  <aj@suse.de>
88224
88225         [BZ #10709]
88226         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
88227         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
88228         * math/libm-test.inc (sin_test): Add test case.
88229
88230 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
88231
88232         [BZ #13337]
88233         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
88234         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
88235
88236         * elf/chroot_canon.c (chroot_canon): Cleanups.
88237
88238         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
88239
88240         [BZ #13335]
88241         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
88242         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
88243
88244         * string/test-strchr.c: Make usable for strchrnul testing.
88245         * string/test-strchrnul.c: New file.
88246         * string/Makefile (strop-tests): Add strchrnul.
88247
88248         * po/it.po: Update from translation team.
88249         * po/es.po: Likewise.
88250
88251 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
88252
88253         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
88254         the three constants needed as parameters.  Drop the others.
88255         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
88256         __m128i_strloadu_tolower.
88257         Create and initialize variable zero and use it in all the places
88258         where _mm_setzero_si128 was used.
88259
88260         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
88261         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
88262         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
88263         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
88264         anymore.
88265         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
88266         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
88267         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
88268         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
88269         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
88270         __mpranred, __mptan.
88271         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
88272         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
88273         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
88274         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
88275         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
88276         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
88277         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
88278         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
88279         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
88280
88281 2011-10-28  Andreas Schwab  <schwab@redhat.com>
88282
88283         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
88284         redefine if SHARED.
88285         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
88286
88287         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
88288         wide char related routines to wcsmbs subdir.
88289
88290 2011-10-27  Andreas Schwab  <schwab@redhat.com>
88291
88292         [BZ #13344]
88293         * misc/sys/cdefs.h (__THROWNL): Define.
88294         * posix/unistd.h: Use __THREADNL instead of __THREAD
88295         for memory synchronization functions.
88296
88297 2011-10-26  Roland McGrath  <roland@hack.frob.com>
88298
88299         [BZ #13349]
88300         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
88301         doesn't exist.
88302         * manual/stdio.texi (Obstack Streams): Node removed.
88303
88304 2011-10-26  Andreas Schwab  <schwab@redhat.com>
88305
88306         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
88307         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
88308         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
88309
88310         * math/math_private.h (math_force_eval): Allow non-addressable
88311         arguments.
88312         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
88313
88314 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
88315
88316         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
88317         file is not needed.
88318
88319         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
88320         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
88321         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
88322         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
88323         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
88324         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
88325         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
88326         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
88327         Add AVX variants.
88328         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
88329         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
88330         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
88331         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
88332         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
88333         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
88334         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
88335         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
88336         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
88337         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
88338         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
88339         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
88340         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
88341         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
88342         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
88343         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
88344         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
88345         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
88346         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
88347
88348         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
88349         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
88350
88351         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
88352         place.  Use VEX encoding when compiling for AVX.
88353
88354 2011-10-25  Andreas Schwab  <schwab@redhat.com>
88355
88356         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
88357         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
88358
88359         * string/test-strchr.c (do_test): Don't generate NUL bytes.
88360
88361 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
88362
88363         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
88364         useless if() expression.
88365         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
88366         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
88367         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
88368         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
88369         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
88370         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
88371         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
88372         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
88373         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
88374         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
88375         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
88376         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
88377         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
88378         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
88379         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
88380         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
88381         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
88382         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
88383         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
88384
88385         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
88386
88387 2011-10-25  Andreas Schwab  <schwab@redhat.com>
88388
88389         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
88390         condition.
88391         * elf/dl-fini.c (_dl_sort_fini): Likewise.
88392
88393 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
88394
88395         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
88396         .text section.  Avoid duplicate constants.
88397         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
88398         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
88399         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
88400         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
88401         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
88402         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
88403         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
88404         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
88405         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
88406         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
88407         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
88408         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
88409         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
88410         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
88411         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
88412         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
88413         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
88414         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
88415         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
88416         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
88417         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
88418         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
88419         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
88420         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
88421         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
88422         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
88423         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
88424         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
88425         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
88426         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
88427         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
88428         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
88429         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
88430         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
88431         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
88432         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
88433         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
88434         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
88435         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
88436         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
88437         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
88438         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
88439         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
88440         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
88441         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
88442
88443 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
88444
88445         * sysdeps/x86_64/dla.h: Move to ...
88446         * sysdeps/x86_64/fpu/dla.h: ...here.
88447         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
88448         situations.  Use __builtin_fma only for gcc 4.6 and up.
88449
88450         * config.make.in: Add have-mfma4 entry.
88451         * configure.in: Substitute libc_cv_cc_fma4.
88452         * math/Makefile (dbl-only-routines): Add sincostab.
88453         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
88454         Use __sincostab not sincos.
88455         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
88456         name is a macro.
88457         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
88458         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
88459         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
88460         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
88461         using __copysign.
88462         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
88463         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
88464         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
88465         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
88466         and __inv.
88467         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
88468         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
88469         __copysign.
88470         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
88471         define aliases when function name is a macro.
88472         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
88473         sysdeps/ieee754/dbl-64/sincos.tbl.
88474         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
88475         fma4-enabled routines.
88476         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
88477         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
88478         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
88479         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
88480         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
88481         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
88482         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
88483         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
88484         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
88485         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
88486         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
88487         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
88488         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
88489         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
88490         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
88491         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
88492         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
88493         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
88494         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
88495         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
88496         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
88497         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
88498         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
88499         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
88500         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
88501         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
88502         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
88503         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
88504         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
88505         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
88506
88507         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
88508         rename.
88509         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
88510         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
88511         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
88512         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
88513         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
88514         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
88515         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
88516         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
88517
88518 2011-10-24  Andreas Schwab  <schwab@redhat.com>
88519
88520         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
88521
88522 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
88523
88524         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
88525
88526         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
88527         prediction.
88528         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
88529
88530         * string/strnlen.c: Don't define STRNLEN, reverse logic.
88531         Remove unused variable magic_bits.
88532         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
88533
88534         * string/strnlen.c: Define and use STRNLEN macro.
88535         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
88536         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
88537         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
88538         * wcsmbs/wcslen.c: Define and use WCSLEN.
88539         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
88540         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
88541         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
88542         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
88543         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
88544         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
88545         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
88546
88547 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
88548
88549         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
88550         strnlen-sse2-no-bsf.
88551         Rename strlen-no-bsf to strlen-sse2-no-bsf.
88552         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
88553         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
88554         Add strnlen support.
88555         (USE_AS_STRNLEN): New macro.
88556         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
88557         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
88558         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
88559         * sysdeps/x86_64/wcslen.S: New file.
88560
88561 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
88562
88563         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
88564         XMM-moves are used for copying on small sizes.
88565
88566 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
88567
88568         * wcsmbs/Makefile (strop-tests): Add wcschr.
88569         * wcsmbs/test-wcschr.c: New file.
88570         * string/test-strchr.c: Update.
88571         Add wcschr support.
88572         (WIDE): New macro.
88573
88574 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
88575
88576         * wcsmbs/Makefile (strop-tests): Add wcslen.
88577         * wcsmbs/test-wcslen.c: New file.
88578         * string/test-strlen.c: Update.
88579         Add wcslen support.
88580         (WIDE): New macro.
88581
88582 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
88583
88584         * po/it.po: Update from translation team.
88585
88586 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
88587
88588         * sysdeps/x86_64/wcscmp.S: Update.
88589         Fix wrong comparison semantics.
88590         wcscmp shall use signed comparison not unsigned.
88591         Don't use substraction to avoid overflow bug.
88592         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
88593         * wcsmbc/wcscmp.c: Likewise.
88594         * string/test-strcmp.c: Likewise.
88595         Add new tests to check cases with negative values.
88596
88597 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
88598
88599         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
88600         * sysdeps/x86_64/dla.h: ...here.  New file.
88601         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
88602         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
88603         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
88604         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
88605         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
88606         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
88607         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
88608         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
88609         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
88610
88611 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
88612
88613         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
88614         __ynl_finite aliases.
88615
88616 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
88617
88618         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
88619
88620         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
88621         define DLA_FMA.
88622         [DLA_FMA] (EMULV): Use DLA_FMA.
88623         [DLA_FMA] (MUL12): Use EMULV.
88624         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
88625         that are not needed.
88626         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
88627         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
88628         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
88629         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
88630         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
88631         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
88632         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
88633
88634 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
88635
88636         * math/s_nan.c: Undef __nan.
88637         * math/s_nanf.c: Undef __nanf.
88638         * math/s_nanl.c: Undef __nanl.
88639         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
88640         "math_private.h".
88641
88642 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
88643
88644         * math/s_catan.c: Add branch predictions.
88645         * math/s_catanf.c: Likewise.
88646         * math/s_catanh.c: Likewise.
88647         * math/s_catanhf.c: Likewise.
88648         * math/s_catanhl.c: Likewise.
88649         * math/s_catanl.c: Likewise.
88650         * math/s_cexp.c: Likewise.
88651         * math/s_cexpf.c: Likewise.
88652         * math/s_cexpl.c: Likewise.
88653         * math/s_clog.c: Likewise.
88654         * math/s_clog10.c: Likewise.
88655         * math/s_clog10f.c: Likewise.
88656         * math/s_clog10l.c: Likewise.
88657         * math/s_clogf.c: Likewise.
88658         * math/s_clogl.c: Likewise.
88659         * math/s_csqrt.c: Likewise.
88660         * math/s_csqrtf.c: Likewise.
88661         * math/s_csqrtl.c: Likewise.
88662         * math/s_ctanf.c: Likewise.
88663         * math/s_ctanh.c: Likewise.
88664         * math/s_ctanhf.c: Likewise.
88665         * math/s_ctanhl.c: Likewise.
88666         * math/s_ctanl.c: Likewise.
88667
88668         * math/math_private.h: Define __nan, __nanf, __nanl.
88669         * math/s_cacosh.c: Include <math_private.h>.
88670         * math/s_cacoshl.c: Likewise.
88671         * math/s_casinh.c: Likewise.
88672         * math/s_casinhf.c: Likewise.
88673         * math/s_casinhl.c: Likewise.
88674         * math/s_ccos.c: Rely entire on ccosh.
88675         * math/s_ccosf.c: Rely entire on ccoshf.
88676         * math/s_ccosl.c: Rely entirely on ccoshl.
88677         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
88678         Remove tests for FE_INVALID.
88679         * math/s_ccoshf.c: Likewise.
88680         * math/s_ccoshl.c: Likewise.
88681         * math/s_csin.c: Likewise.
88682         * math/s_csinf.c: Likewise.
88683         * math/s_csinh.c Likewise.
88684         * math/s_csinhf.c: Likewise.
88685         * math/s_csinhl.c: Likewise.
88686         * math/s_csinl.c: Likewise.
88687         * math/s_ctan.c: Likewise.
88688         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
88689         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
88690         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
88691
88692 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
88693
88694         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
88695         compilation problems.
88696
88697         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
88698         __builtin_expect.
88699
88700 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
88701
88702         * sysdeps/i386/configure.in: Test for -mfma4 option.
88703         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
88704         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
88705         COMMON_CPUID_INDEX_80000001.
88706         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
88707         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
88708         use it if FMA3 is not supported.
88709         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
88710
88711         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
88712         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
88713
88714 2011-10-20  Andreas Schwab  <schwab@redhat.com>
88715
88716         [BZ #12892]
88717         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
88718         it would create a cycle with a link time dependency.
88719
88720 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
88721
88722         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
88723         instruction.
88724         * string/Makefile (strop-tests): Add rawmemchr.
88725         * string/test-rawmemchr.c: New file.
88726
88727         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
88728         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
88729         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
88730         when compiling str{,n}casecmp and when AVX is available.  Hook up
88731         new optimized code in initializers.
88732
88733 2011-10-19  Andreas Schwab  <schwab@redhat.com>
88734
88735         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
88736         __feraiseexcept instead of feraiseexcept.
88737
88738 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
88739
88740         * math/math_private.h: Define defaults for libc_fetestexcept and
88741         libc_feupdateenv.
88742         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
88743         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
88744         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
88745         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
88746         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
88747         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
88748         libc_fetestexcept and libc_feupdateenv.
88749
88750         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
88751         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
88752         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
88753         * sysdeps/x86_64/fpu/math_private.h: Define special version of
88754         libc_feholdexcept_setround.
88755
88756         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
88757         Add s_nearbyint-c and s_nearbyintf-c.
88758         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
88759         nearbyintf inlines.
88760         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
88761         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
88762         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
88763         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
88764
88765         * math/math_private.h: Define defaults for libc_fegetround,
88766         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
88767         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
88768         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
88769         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
88770         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
88771         standard functions.
88772         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
88773         Remove comments and hacks for old compiler versions.
88774         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
88775         libc_fegetround, libc_fesetround, libc_feholdexcept, and
88776         libc_feholdexceptl.
88777
88778 2011-10-18  Andreas Schwab  <schwab@redhat.com>
88779
88780         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
88781         (__feraiseexcept_renamed): Add __NTH.
88782         (feraiseexcept): Add __NTH.  Rename local variables to fix
88783         namespace violations.
88784
88785 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
88786
88787         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
88788
88789         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
88790
88791         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
88792         recently added interfaces.
88793         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
88794
88795         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
88796         about macro parameter expansion.
88797
88798         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
88799         __NO_MATH_INLINES is defined.  Cleanups.
88800
88801         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
88802         and __floorf is target has SSE4.1.
88803         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
88804         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
88805         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
88806         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
88807
88808         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
88809         name.
88810         (floorf): Likewise.
88811
88812         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
88813
88814 2011-10-17  Andreas Schwab  <schwab@redhat.com>
88815
88816         * misc/sys/cdefs.h: Fix last change.
88817
88818         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
88819         database lookup.
88820
88821 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
88822
88823         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
88824
88825         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
88826         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
88827         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
88828         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
88829         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
88830         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
88831         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
88832         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
88833         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
88834         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
88835         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
88836         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
88837         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
88838         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
88839         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
88840         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
88841         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
88842         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
88843         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
88844         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
88845         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
88846         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
88847
88848         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
88849         ceil, ceilf, floor, floorf.
88850
88851         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
88852         Perform IRELATIVE relocations last.
88853
88854         * elf/do-rel.h: Add another parameter nrelative, replacing the
88855         local variable with the same name.  Change name of the function
88856         to end in Rel or Rela (uppercase).
88857         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
88858         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
88859         elf_dynamic_do_##reloc function.
88860
88861 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
88862
88863         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
88864         is sufficient, at least on modern CPUs.
88865
88866         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
88867
88868         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
88869         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
88870
88871         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
88872         __expl_finite.
88873         * math/bits/math-finite.h: Add entries for exp.
88874         * math/e_expl.c: Add __*_finite alias.
88875         * sysdeps/i386/fpu/e_exp.S: Likewise.
88876         * sysdeps/i386/fpu/e_expf.S: Likewise.
88877         * sysdeps/i386/fpu/e_expl.c: Likewise.
88878         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
88879         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
88880         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
88881         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
88882         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
88883         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
88884         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
88885
88886         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
88887         is sufficient, at least on modern CPUs.
88888
88889         * ctype/ctype-info.c (__ctype_init): Define.
88890         * include/ctype.h (__ctype_init): Declare.
88891         (__ctype_b_loc): The variable is always initialized.
88892         (__ctype_toupper_loc): Likewise.
88893         (__ctype_tolower_loc): Likewise.
88894         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
88895         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
88896
88897 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
88898
88899         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
88900
88901         * configure.in: Also look in $cxxmachine/include for C++ system
88902         headers.
88903
88904 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
88905
88906         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
88907         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
88908         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
88909         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
88910         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
88911         (USE_AS_WMEMCMP): New macro.
88912         Fixing indents.
88913         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
88914         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
88915         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
88916         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
88917         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
88918         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
88919         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
88920         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
88921         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
88922         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
88923         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
88924         (USE_AS_WMEMCMP): New macro.
88925         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
88926         * sysdeps/string/test-memcmp.c: Update.
88927         Fix simple_wmemcmp.
88928         Add new tests.
88929         * wcsmbs/wmemcmp.c: Update.
88930         (WMEMCMP): New macro.
88931         Fix overflow bug.
88932
88933 2011-10-12  Andreas Jaeger  <aj@suse.de>
88934
88935         [BZ #13268]
88936         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
88937
88938 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
88939
88940         * libio/iofwide.c (do_length): Avoid warning.
88941
88942         * ctype/ctype.h (__isctype_f): Add missing __THROW.
88943
88944 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
88945
88946         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
88947
88948         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
88949         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
88950         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
88951         * sysdeps/i386/i686/fpu/e_log.S: New file.
88952         * sysdeps/i386/i686/fpu/e_logf.S: New file.
88953         * sysdeps/i386/i686/fpu/e_logl.S: New file.
88954
88955         * ctype/ctype.h: Add support for inlined isXXX functions when
88956         compiling C++ code.
88957
88958 2011-10-14  Andreas Schwab  <schwab@redhat.com>
88959
88960         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
88961
88962         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
88963
88964 2011-10-13  Roland McGrath  <roland@hack.frob.com>
88965
88966         [BZ #13291]
88967         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
88968
88969 2011-10-13  Andreas Schwab  <schwab@redhat.com>
88970
88971         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
88972         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
88973         feraiseexcept.
88974
88975         * sysdeps/x86_64/memrchr.S: Check for zero size.
88976
88977         * string/stratcliff.c: Add memrchr tests.
88978
88979 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
88980
88981         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
88982         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
88983         rawmemchr-sse2 rawmemchr-sse2-bsf.
88984         * sysdeps/i386/i686/multiarch/memchr.S: New file.
88985         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
88986         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
88987         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
88988         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
88989         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
88990         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
88991         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
88992         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
88993         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
88994         * string/memrchr.c (MEMRCHR): New macro.
88995
88996 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
88997
88998         Add integration with gcc's -ffinite-math-only and optimize wrapper
88999         functions in libm.
89000         * Versions.def: Define GLIBC_2.15 version for libm.
89001         * math/Makefile (headers): Add bits/math-finite.h.
89002         * math/bits/math-finite.h: New file.
89003         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
89004         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
89005         * math/e_acoshl.c: Add __*_finite alias.
89006         * math/e_acosl.c: Likewise.
89007         * math/e_asinl.c: Likewise.
89008         * math/e_atan2l.c: Likewise.
89009         * math/e_atanhl.c: Likewise.
89010         * math/e_coshl.c: Likewise.
89011         * math/e_exp10.c: Likewise.
89012         * math/e_exp10f.c: Likewise.
89013         * math/e_exp10l.c: Likewise.
89014         * math/e_exp2l.c: Likewise.
89015         * math/e_fmodl.c: Likewise.
89016         * math/e_gammal_r.c: Likewise.
89017         * math/e_hypotl.c: Likewise.
89018         * math/e_j0l.c: Likewise.
89019         * math/e_j1l.c: Likewise.
89020         * math/e_jnl.c: Likewise.
89021         * math/e_lgammal_r.c: Likewise.
89022         * math/e_log10l.c: Likewise.
89023         * math/e_log2l.c: Likewise.
89024         * math/e_logl.c: Likewise.
89025         * math/e_powl.c: Likewise.
89026         * math/e_sinhl.c: Likewise.
89027         * math/e_sqrtl.c: Likewise.
89028         * math/e_scalb.c: Completely rewritten and optimized.
89029         * math/e_scalbf.c: Likewise.
89030         * math/e_scalbl.c: Likewise.
89031         * math/w_acos.c: Likewise.
89032         * math/w_acosf.c: Likewise.
89033         * math/w_acosl.c: Likewise.
89034         * math/w_acosh.c: Likewise.
89035         * math/w_acoshf.c: Likewise.
89036         * math/w_acoshl.c: Likewise.
89037         * math/w_asin.c: Likewise.
89038         * math/w_asinf.c: Likewise.
89039         * math/w_asinl.c: Likewise.
89040         * math/w_atan2.c: Likewise.
89041         * math/w_atan2f.c: Likewise.
89042         * math/w_atan2l.c: Likewise.
89043         * math/w_atanh.c: Likewise.
89044         * math/w_atanhf.c: Likewise.
89045         * math/w_atanhl.c: Likewise.
89046         * math/w_exp10.c: Likewise.
89047         * math/w_exp10f.c: Likewise.
89048         * math/w_exp10l.c: Likewise.
89049         * math/w_fmod.c: Likewise.
89050         * math/w_fmodf.c: Likewise.
89051         * math/w_fmodl.c: Likewise.
89052         * math/w_j0.c: Likewise.
89053         * math/w_j0f.c: Likewise.
89054         * math/w_j0l.c: Likewise.
89055         * math/w_j1.c: Likewise.
89056         * math/w_j1f.c: Likewise.
89057         * math/w_j1l.c: Likewise.
89058         * math/w_jn.c: Likewise.
89059         * math/w_jnf.c: Likewise.
89060         * math/w_log.c: Likewise.
89061         * math/w_logf.c: Likewise.
89062         * math/w_logl.c: Likewise.
89063         * math/w_log10.c: Likewise.
89064         * math/w_log10f.c: Likewise.
89065         * math/w_log10l.c: Likewise.
89066         * math/w_log2.c: Likewise.
89067         * math/w_log2f.c: Likewise.
89068         * math/w_log2l.c: Likewise.
89069         * math/w_pow.c: Likewise.
89070         * math/w_powf.c: Likewise.
89071         * math/w_powl.c: Likewise.
89072         * math/w_remainder.c: Likewise.
89073         * math/w_remainderf.c: Likewise.
89074         * math/w_remainderl.c: Likewise.
89075         * math/w_scalb.c: Likewise.
89076         * math/w_scalbf.c: Likewise.
89077         * math/w_scalbl.c: Likewise.
89078         * math/w_sqrt.c: Likewise.
89079         * math/w_sqrtf.c: Likewise.
89080         * math/w_sqrtl.c: Likewise.
89081         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
89082         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
89083         used.
89084         * math/math_private.h: Declare __kernel_standard_f.
89085         * math/w_cosh.c: Remove cruft and optimize a bit.
89086         * math/w_coshf.c: Likewise.
89087         * math/w_coshl.c: Likewise.
89088         * math/w_exp2.c: Likewise.
89089         * math/w_exp2f.c: Likewise.
89090         * math/w_exp2l.c: Likewise.
89091         * math/w_hypot.c: Likewise.
89092         * math/w_hypotf.c: Likewise.
89093         * math/w_hypotl.c: Likewise.
89094         * math/w_lgamma.c: Likewise.
89095         * math/w_lgamma_r.c: Likewise.
89096         * math/w_lgammaf.c: Likewise.
89097         * math/w_lgammaf_r.c: Likewise.
89098         * math/w_lgammal.c: Likewise.
89099         * math/w_lgammal_r.c: Likewise.
89100         * math/w_sinh.c: Likewise.
89101         * math/w_sinhf.c: Likewise.
89102         * math/w_sinhl.c: Likewise.
89103         * math/w_tgamma.c: Likewise.
89104         * math/w_tgammaf.c: Likewise.
89105         * math/w_tgammal.c: Likewise.
89106         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
89107         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
89108         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
89109         Minor optimizations.  Pretty printing.  Remove cruft.
89110         * sysdeps/i386/fpu/e_acosf.S: Likewise.
89111         * sysdeps/i386/fpu/e_acosh.S: Likewise.
89112         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
89113         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
89114         * sysdeps/i386/fpu/e_acosl.c: Likewise.
89115         * sysdeps/i386/fpu/e_asin.S: Likewise.
89116         * sysdeps/i386/fpu/e_asinf.S: Likewise.
89117         * sysdeps/i386/fpu/e_atan2.S: Likewise.
89118         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
89119         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
89120         * sysdeps/i386/fpu/e_atanh.S: Likewise.
89121         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
89122         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
89123         * sysdeps/i386/fpu/e_exp10.S: Likewise.
89124         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
89125         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
89126         * sysdeps/i386/fpu/e_exp2.S: Likewise.
89127         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
89128         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
89129         * sysdeps/i386/fpu/e_fmod.S: Likewise.
89130         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
89131         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
89132         * sysdeps/i386/fpu/e_hypot.S: Likewise.
89133         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
89134         * sysdeps/i386/fpu/e_log.S: Likewise.
89135         * sysdeps/i386/fpu/e_log10.S: Likewise.
89136         * sysdeps/i386/fpu/e_log10f.S: Likewise.
89137         * sysdeps/i386/fpu/e_log10l.S: Likewise.
89138         * sysdeps/i386/fpu/e_log2.S: Likewise.
89139         * sysdeps/i386/fpu/e_log2f.S: Likewise.
89140         * sysdeps/i386/fpu/e_log2l.S: Likewise.
89141         * sysdeps/i386/fpu/e_logf.S: Likewise.
89142         * sysdeps/i386/fpu/e_logl.S: Likewise.
89143         * sysdeps/i386/fpu/e_pow.S: Likewise.
89144         * sysdeps/i386/fpu/e_powf.S: Likewise.
89145         * sysdeps/i386/fpu/e_powl.S: Likewise.
89146         * sysdeps/i386/fpu/e_remainder.S: Likewise.
89147         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
89148         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
89149         * sysdeps/i386/fpu/e_scalb.S: Likewise.
89150         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
89151         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
89152         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
89153         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
89154         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
89155         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
89156         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
89157         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
89158         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
89159         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
89160         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
89161         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
89162         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
89163         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
89164         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
89165         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
89166         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
89167         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
89168         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
89169         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
89170         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
89171         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
89172         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
89173         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
89174         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
89175         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
89176         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
89177         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
89178         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
89179         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
89180         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
89181         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
89182         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
89183         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
89184         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
89185         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
89186         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
89187         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
89188         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
89189         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
89190         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
89191         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
89192         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
89193         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
89194         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
89195         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
89196         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
89197         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
89198         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
89199         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
89200         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
89201         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
89202         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
89203         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
89204         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
89205         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
89206         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
89207         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
89208         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
89209         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
89210         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
89211         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
89212         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
89213         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
89214         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
89215         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
89216         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
89217         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
89218         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
89219         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
89220         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
89221         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
89222         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
89223         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
89224         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
89225         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
89226         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
89227         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
89228         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
89229         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
89230         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
89231         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
89232         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
89233         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
89234         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
89235         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
89236         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
89237         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
89238         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
89239         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
89240         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
89241         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
89242         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
89243         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
89244         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
89245         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
89246         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
89247         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
89248         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
89249         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
89250         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
89251         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
89252         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
89253         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
89254         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
89255         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
89256         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
89257         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
89258         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
89259         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
89260         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
89261         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
89262         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
89263         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
89264         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
89265         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
89266         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
89267         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
89268         (__isnanf): Likewise.
89269         (__isinf_ns): Likewise.
89270         (__isinf_nsf): Likewise.
89271         (__finite): Likewise.
89272         (__finitef): Likewise.
89273         (__ieee754_sqrt): Define as macro.
89274         (__ieee754_sqrtf): Define as macro.
89275         (__ieee754_sqrtl): Define as macro.
89276         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
89277         inlined copy.
89278         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
89279         __FINITE_MATH_ONLY__ consistent.
89280         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
89281
89282 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
89283
89284         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
89285         of rawmemchr.
89286
89287         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
89288
89289 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
89290
89291         * po/ja.po: Update from translation team.
89292
89293 2011-10-08  Roland McGrath  <roland@hack.frob.com>
89294
89295         * locale/programs/locarchive.c (prepare_address_space): New function.
89296         (create_archive, enlarge_archive, open_archive): Use it.
89297
89298         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
89299         inside [SHARED], where it is used.
89300
89301         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
89302
89303         * nss/getent.c (netgroup_keys): Remove unused variable.
89304         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
89305
89306 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
89307
89308         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
89309         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
89310         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
89311         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
89312         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
89313         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
89314         * math/Makefile (libm-calls): Add s_isinf_ns.
89315         * math/divtc3.c: Use __isinf_nsl instead of isinf.
89316         * math/multc3.c: Likewise.
89317         * math/s_casin.c: Likewise.
89318         * math/s_casinf.c: Likewise.
89319         * math/s_casinl.c: Likewise.
89320         * math/s_ccos.c: Likewise.
89321         * math/s_ccosf.c: Likewise.
89322         * math/s_ccosl.c: Likewise.
89323         * math/s_ctan.c: Likewise.
89324         * math/s_ctanf.c: Likewise.
89325         * math/s_ctanh.c: Likewise.
89326         * math/s_ctanhf.c: Likewise.
89327         * math/s_ctanhl.c: Likewise.
89328         * math/s_ctanl.c: Likewise.
89329         * math/w_fmod.c: Likewise.
89330         * math/w_fmodf.c: Likewise.
89331         * math/w_fmodl.c: Likewise.
89332         * math/w_remainder.c: Likewise.
89333         * math/w_remainderf.c: Likewise.
89334         * math/w_remainderl.c: Likewise.
89335         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
89336         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
89337         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
89338         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
89339         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
89340         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
89341         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
89342         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
89343
89344         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
89345         of the number.
89346         * stdio-common/printf_fphex.c: Likewise.
89347         * stdio-common/printf_size.c: Likewise.
89348
89349         * math/e_exp10.c: Include math_private.h using <...> not "...".
89350         * math/e_exp10f.c: Likewise.
89351         * math/e_exp10l.c: Likewise.
89352         * math/e_exp2l.c: Likewise.
89353         * math/e_j0l.c: Likewise.
89354         * math/e_j1l.c: Likewise.
89355         * math/e_jnl.c: Likewise.
89356         * math/e_lgammal_r.c: Likewise.
89357         * math/e_rem_pio2l.c: Likewise.
89358         * math/e_scalb.c: Likewise.
89359         * math/e_scalbf.c: Likewise.
89360         * math/e_scalbl.c: Likewise.
89361         * math/k_cosl.c: Likewise.
89362         * math/k_sinl.c: Likewise.
89363         * math/k_tanl.c: Likewise.
89364         * math/s_cacoshf.c: Likewise.
89365         * math/s_catan.c: Likewise.
89366         * math/s_catanf.c: Likewise.
89367         * math/s_catanh.c: Likewise.
89368         * math/s_catanhf.c: Likewise.
89369         * math/s_catanhl.c: Likewise.
89370         * math/s_catanl.c: Likewise.
89371         * math/s_ccosh.c: Likewise.
89372         * math/s_ccoshf.c: Likewise.
89373         * math/s_ccoshl.c: Likewise.
89374         * math/s_cexp.c: Likewise.
89375         * math/s_cexpf.c: Likewise.
89376         * math/s_cexpl.c: Likewise.
89377         * math/s_clog.c: Likewise.
89378         * math/s_clog10.c: Likewise.
89379         * math/s_clog10f.c: Likewise.
89380         * math/s_clog10l.c: Likewise.
89381         * math/s_clogf.c: Likewise.
89382         * math/s_clogl.c: Likewise.
89383         * math/s_csin.c: Likewise.
89384         * math/s_csinf.c: Likewise.
89385         * math/s_csinh.c: Likewise.
89386         * math/s_csinhf.c: Likewise.
89387         * math/s_csinhl.c: Likewise.
89388         * math/s_csinl.c: Likewise.
89389         * math/s_csqrt.c: Likewise.
89390         * math/s_csqrtf.c: Likewise.
89391         * math/s_csqrtl.c: Likewise.
89392         * math/s_ctan.c: Likewise.
89393         * math/s_ctanf.c: Likewise.
89394         * math/s_ctanh.c: Likewise.
89395         * math/s_ctanhf.c: Likewise.
89396         * math/s_ctanhl.c: Likewise.
89397         * math/s_ctanl.c: Likewise.
89398         * math/s_ldexp.c: Likewise.
89399         * math/s_ldexpf.c: Likewise.
89400         * math/s_ldexpl.c: Likewise.
89401         * math/s_significand.c: Likewise.
89402         * math/s_significandf.c: Likewise.
89403         * math/s_significandl.c: Likewise.
89404         * math/w_acos.c: Likewise.
89405         * math/w_acosf.c: Likewise.
89406         * math/w_acosh.c: Likewise.
89407         * math/w_acoshf.c: Likewise.
89408         * math/w_acoshl.c: Likewise.
89409         * math/w_acosl.c: Likewise.
89410         * math/w_asin.c: Likewise.
89411         * math/w_asinf.c: Likewise.
89412         * math/w_asinl.c: Likewise.
89413         * math/w_atan2.c: Likewise.
89414         * math/w_atan2f.c: Likewise.
89415         * math/w_atan2l.c: Likewise.
89416         * math/w_atanh.c: Likewise.
89417         * math/w_atanhf.c: Likewise.
89418         * math/w_atanhl.c: Likewise.
89419         * math/w_cosh.c: Likewise.
89420         * math/w_coshf.c: Likewise.
89421         * math/w_coshl.c: Likewise.
89422         * math/w_dremf.c: Likewise.
89423         * math/w_exp10.c: Likewise.
89424         * math/w_exp10f.c: Likewise.
89425         * math/w_exp10l.c: Likewise.
89426         * math/w_exp2.c: Likewise.
89427         * math/w_exp2f.c: Likewise.
89428         * math/w_fmod.c: Likewise.
89429         * math/w_fmodf.c: Likewise.
89430         * math/w_fmodl.c: Likewise.
89431         * math/w_hypot.c: Likewise.
89432         * math/w_hypotf.c: Likewise.
89433         * math/w_hypotl.c: Likewise.
89434         * math/w_j0.c: Likewise.
89435         * math/w_j0f.c: Likewise.
89436         * math/w_j0l.c: Likewise.
89437         * math/w_j1.c: Likewise.
89438         * math/w_j1f.c: Likewise.
89439         * math/w_j1l.c: Likewise.
89440         * math/w_jn.c: Likewise.
89441         * math/w_jnf.c: Likewise.
89442         * math/w_jnl.c: Likewise.
89443         * math/w_lgamma.c: Likewise.
89444         * math/w_lgamma_r.c: Likewise.
89445         * math/w_lgammaf.c: Likewise.
89446         * math/w_lgammaf_r.c: Likewise.
89447         * math/w_lgammal.c: Likewise.
89448         * math/w_lgammal_r.c: Likewise.
89449         * math/w_log.c: Likewise.
89450         * math/w_log10.c: Likewise.
89451         * math/w_log10f.c: Likewise.
89452         * math/w_log10l.c: Likewise.
89453         * math/w_log2.c: Likewise.
89454         * math/w_log2f.c: Likewise.
89455         * math/w_log2l.c: Likewise.
89456         * math/w_logf.c: Likewise.
89457         * math/w_logl.c: Likewise.
89458         * math/w_pow.c: Likewise.
89459         * math/w_powf.c: Likewise.
89460         * math/w_powl.c: Likewise.
89461         * math/w_remainder.c: Likewise.
89462         * math/w_remainderf.c: Likewise.
89463         * math/w_remainderl.c: Likewise.
89464         * math/w_scalb.c: Likewise.
89465         * math/w_scalbf.c: Likewise.
89466         * math/w_scalbl.c: Likewise.
89467         * math/w_sinh.c: Likewise.
89468         * math/w_sinhf.c: Likewise.
89469         * math/w_sinhl.c: Likewise.
89470         * math/w_sqrt.c: Likewise.
89471         * math/w_sqrtf.c: Likewise.
89472         * math/w_sqrtl.c: Likewise.
89473         * math/w_tgamma.c: Likewise.
89474         * math/w_tgammaf.c: Likewise.
89475         * math/w_tgammal.c: Likewise.
89476
89477         * po/ja.po: Update from translation team.
89478
89479 2011-09-29  Andreas Jaeger  <aj@suse.de>
89480
89481         [BZ #13179]
89482         * sunrpc/netname.c (netname2host): Fix logic.
89483
89484         [BZ #6779]
89485         [BZ #6783]
89486         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
89487         correctly.
89488         * math/w_remainder.c (__remainder): Likewise.
89489         * math/w_remainderf.c (__remainderf): Likewise.
89490         * math/libm-test.inc (remainder_test): Add test cases.
89491
89492 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89493
89494         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
89495         sdiv_qrnnd.
89496
89497 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
89498
89499         * string/test-memcmp.c: Avoid unncessary #defines.
89500         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
89501
89502 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
89503
89504         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
89505         Use new sse2 version for core i3 - i7 as it's faster
89506         than sse42 version.
89507         (bit_Prefer_PMINUB_for_stringop): New.
89508         * sysdeps/x86_64/rawmemchr.S: Update.
89509         Replace with faster SSE2 version.
89510         * sysdeps/x86_64/memrchr.S: New file.
89511         * sysdeps/x86_64/memchr.S: Update.
89512         Replace with faster SSE2 version.
89513
89514 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
89515
89516         * elf/dl-load.c (lose): Add cast to avoid warning.
89517
89518 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
89519
89520         * po/ca.po: Update from translation team.
89521
89522         * inet/getnetgrent_r.c: Hook up nscd.
89523         * nscd/Makefile (routines): Add nscd_netgroup.
89524         (nscd-modules): Add netgroupcache.
89525         (CFLAGS-netgroupcache.c): Define.
89526         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
89527         (cache_search): Add const to second parameter.
89528         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
89529         INNETGR.
89530         (dbs): Add netgrdb entry.
89531         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
89532         (verify_persistent_db): Handle netgrdb.
89533         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
89534         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
89535         GETFDNETGR.
89536         (netgroup_response_header): Define.
89537         (innetgroup_response_header): Define.
89538         (datahead): Add netgroup_response_header and innetgroup_response_header
89539         elements.
89540         * nscd/nscd.conf: Add entries for netgroup cache.
89541         * nscd/nscd.h (dbtype): Add netgrdb.
89542         (_PATH_NSCD_NETGROUP_DB): Define.
89543         (netgroup_iov_disabled): Declare.
89544         (xmalloc, xcalloc, xrealloc): Move declarations here.
89545         (cache_search): Adjust prototype.
89546         Add netgroup-related prototypes.
89547         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
89548         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
89549         (__nscd_innetgr): Declare.
89550         * nscd/selinux.c (perms): Use access_vector_t as element type and
89551         add netgroup-related initializers.
89552         * nscd/netgroupcache.c: New file.
89553         * nscd/nscd_netgroup.c: New file.
89554         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
89555         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
89556         For four parameters use innetgr.
89557         * nss/nss_files/files-init.c: Add definition and callback for netgr.
89558         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
89559         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
89560         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
89561
89562         * nscd/connections.c (register_traced_file): Don't register file
89563         for disabled databases.
89564
89565 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
89566
89567         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
89568
89569         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
89570         from tree and freeing node.
89571
89572 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
89573
89574         * nss/nsswitch.c (__nss_database_lookup): Handle
89575         nss_parse_service_list out of memory case.
89576
89577 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
89578
89579         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
89580         out of memory case.
89581
89582 2011-10-04  Andreas Schwab  <schwab@redhat.com>
89583
89584         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
89585         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
89586         pass it down.
89587         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
89588         elf_machine_rela, elf_machine_lazy_rel.
89589         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
89590         (ELF_DYNAMIC_DO_REL): Likewise.
89591         (ELF_DYNAMIC_DO_RELA): Likewise.
89592         (ELF_DYNAMIC_RELOCATE): Likewise.
89593         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
89594         to ELF_DYNAMIC_DO_REL.
89595         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
89596         (dl_main): In trace mode always set __RTLD_NOIFUNC.
89597         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
89598         elf_machine_rela.
89599         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
89600         skip_ifunc, don't call ifunc function if non-zero.
89601         (elf_machine_rela): Likewise.
89602         (elf_machine_lazy_rel): Likewise.
89603         (elf_machine_lazy_rela): Likewise.
89604         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
89605         (elf_machine_lazy_rel): Likewise.
89606         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
89607         Likewise.
89608         (elf_machine_lazy_rel): Likewise.
89609         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
89610         Likewise.
89611         (elf_machine_lazy_rel): Likewise.
89612         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
89613         (elf_machine_lazy_rel): Likewise.
89614         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
89615         (elf_machine_lazy_rel): Likewise.
89616         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
89617         (elf_machine_lazy_rel): Likewise.
89618         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
89619         (elf_machine_lazy_rel): Likewise.
89620         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
89621         (elf_machine_lazy_rel): Likewise.
89622         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
89623         (elf_machine_lazy_rel): Likewise.
89624
89625 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
89626
89627         * nss/nss_files/files-init.c (_nss_files_init): Use static
89628         initialization for all the *_traced_file variables.
89629
89630 2011-09-28  Andreas Schwab  <schwab@redhat.com>
89631
89632         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
89633
89634 2011-09-27  Roland McGrath  <roland@hack.frob.com>
89635
89636         [BZ #13226]
89637         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
89638
89639 2011-09-27  Andreas Schwab  <schwab@redhat.com>
89640
89641         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
89642         Reread the line before reparsing it.
89643
89644 2011-09-26  Andreas Schwab  <schwab@redhat.com>
89645
89646         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
89647
89648 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
89649             Maxim Kuvyrkov  <maxim@codesourcery.com>
89650             Joseph Myers  <joseph@codesourcery.com>
89651
89652         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
89653         if needed for __stack_chk_guard.
89654
89655 2011-09-19  Roland McGrath  <roland@hack.frob.com>
89656
89657         * sysdeps/posix/spawni.c (script_execute): Always define it.
89658         It will be optimized away if unused.
89659         (maybe_script_execute): New function.
89660         (__spawni): Call it.
89661
89662         * Makerules: Don't include tls.make.
89663         (config-tls): Always set to thread.
89664         * tls.make.c: File removed.
89665
89666 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
89667
89668         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
89669         * config.make.in (CPPFLAGS-config): New substituted variable.
89670
89671 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
89672
89673         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
89674
89675         [BZ #13192]
89676         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
89677         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
89678
89679 2011-09-15  Roland McGrath  <roland@hack.frob.com>
89680
89681         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
89682         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
89683         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
89684         (CALL_FAIL): Likewise.
89685         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
89686         (CALL_FAIL): Macro removed.
89687         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
89688
89689 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
89690
89691         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
89692         for __FINITE_MATH_ONLY__ == 1.
89693
89694 2011-09-15  Andreas Schwab  <schwab@redhat.com>
89695
89696         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
89697         __ieee754_sqrt instead of sqrt.
89698         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
89699         __ieee754_sqrtf instead of sqrtf.
89700         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
89701         __floorf instead of floorf.
89702         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
89703         __floorf, __truncf instead of floorf, truncf.
89704
89705 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
89706
89707         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
89708
89709         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
89710         __extern_always_inline.
89711         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
89712         32-bit.
89713
89714 2011-09-14  Andreas Schwab  <schwab@redhat.com>
89715
89716         * elf/rtld.c (dl_main): Also relocate in dependency order when
89717         doing symbol dependency testing.
89718
89719 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
89720
89721         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
89722         Always define `refsym'.
89723
89724 2011-09-13  Andreas Schwab  <schwab@redhat.com>
89725
89726         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
89727         (__FD_ELT): Renamed from __FDELT.
89728         * misc/bits/select2.h (__FD_ELT): Likewise.
89729         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
89730         __FD_MASK instead of __FDELT, __FDMASK.
89731         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
89732         Likewise.
89733         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
89734         Likewise.
89735
89736         * elf/Makefile (gen-ldd): Fix pattern.
89737
89738         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
89739         (init_tls): Likewise.
89740
89741 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
89742
89743         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
89744
89745 2011-09-12  Andreas Schwab  <schwab@redhat.com>
89746
89747         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
89748         `struct cmsghdr *' instead of `void *'.
89749         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
89750         Likewise.
89751
89752 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
89753
89754         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
89755         if non-absolute.
89756         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
89757         ldd_rewrite_script.
89758
89759 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
89760
89761         * configure.in: Remove --with-tls option.
89762         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
89763         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
89764         out in case it is missing.
89765         * sysdeps/ia64/elf/configure.in: Likewise.
89766         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
89767         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
89768         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
89769         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
89770         * sysdeps/sh/elf/configure.in: Likewise.
89771         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
89772         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
89773         * sysdeps/x86_64/elf/configure.in: Likewise.
89774         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
89775         * sysdeps/mach/hurd/tls.h: Likewise.
89776
89777         [BZ #13067]
89778         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
89779
89780         [BZ #13090]
89781         * configure.in: Fix use of AC_INIT.
89782
89783         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
89784
89785 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
89786
89787         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
89788         __set_errno.
89789         * malloc/hooks.c: Likewise.
89790
89791         [BZ #11929]
89792         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
89793         variables statically.
89794         (narenas): Initialize.
89795         (list_lock): Initialize.
89796         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
89797         initializtion of main_arena and list_lock.  Small cleanups.
89798         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
89799         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
89800         Add initializers to main_arena and mp_.
89801         (malloc_state): Remove pagesize member.  Change all users to use
89802         GLRO(dl_pagesize).
89803
89804         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
89805         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
89806         is always initialized.
89807
89808         * malloc/malloc.c: Removed unused configurations and dead code.
89809         * malloc/arena.c: Likewise.
89810         * malloc/hooks.c: Likewise.
89811         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
89812
89813         * include/tls.h: Removed.  USE___THREAD must always be defined.
89814         * bits/libc-tsd.h: Don't handle !USE___THREAD.
89815         * elf/dl-libc.c: Likewise.
89816         * elf/dl-tsd.c: Likewise.
89817         * include/errno.h: Likewise.
89818         * include/netdb.h: Likewise.
89819         * include/resolv.h: Likewise.
89820         * inet/herrno-loc.c: Likewise.
89821         * inet/herrno.c: Likewise.
89822         * malloc/arena.c: Likewise.
89823         * malloc/hooks.c: Likewise.
89824         * malloc/malloc.c: Likewise.
89825         * resolv/res-state.c: Likewise.
89826         * resolv/res_libc.c: Likewise.
89827         * sysdeps/i386/dl-machine.h: Likewise.
89828         * sysdeps/ia64/dl-machine.h: Likewise.
89829         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
89830         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
89831         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
89832         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
89833         * sysdeps/sh/dl-machine.h: Likewise.
89834         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
89835         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
89836         * sysdeps/unix/i386/sysdep.S: Likewise.
89837         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
89838         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
89839         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
89840         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
89841         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
89842         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
89843         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
89844         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
89845         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
89846         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
89847         * sysdeps/unix/x86_64/sysdep.S: Likewise.
89848         * sysdeps/x86_64/dl-machine.h: Likewise.
89849         * tls.make.c: Likewise.
89850
89851         * configure.in: Remove --with-__thread option.  Make tests for
89852         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
89853         tls_model attribute fail if no support is available.  Remove
89854         USE_IN_LIBIO.
89855         * Makeconfig: Adjust for dropped configure option.  All features are
89856         now mandatory.
89857         * Makerules: Likewise.
89858         * Versions.def: Likewise.
89859         * argp/argp-fmtstream.c: Likewise.
89860         * argp/argp-fmtstream.h: Likewise.
89861         * argp/argp-help.c: Likewise.
89862         * assert/assert.c: Likewise.
89863         * config.h.in: Likewise.
89864         * config.make.in: Likewise.
89865         * configure: Likewise.
89866         * configure.in: Likewise.
89867         * csu/Versions: Likewise.
89868         * csu/init.c: Likewise.
89869         * elf/tst-audit2.c: Likewise.
89870         * elf/tst-tls10.c: Likewise.
89871         * elf/tst-tls10.h: Likewise.
89872         * elf/tst-tls11.c: Likewise.
89873         * elf/tst-tls12.c: Likewise.
89874         * elf/tst-tls14.c: Likewise.
89875         * elf/tst-tlsmod11.c: Likewise.
89876         * elf/tst-tlsmod12.c: Likewise.
89877         * elf/tst-tlsmod13.c: Likewise.
89878         * elf/tst-tlsmod13a.c: Likewise.
89879         * elf/tst-tlsmod14a.c: Likewise.
89880         * elf/tst-tlsmod15b.c: Likewise.
89881         * elf/tst-tlsmod16a.c: Likewise.
89882         * elf/tst-tlsmod16b.c: Likewise.
89883         * elf/tst-tlsmod7.c: Likewise.
89884         * elf/tst-tlsmod8.c: Likewise.
89885         * elf/tst-tlsmod9.c: Likewise.
89886         * gmon/gmon.c: Likewise.
89887         * grp/fgetgrent_r.c: Likewise.
89888         * grp/putgrent.c: Likewise.
89889         * hurd/fopenport.c: Likewise.
89890         * include/libc-symbols.h: Likewise.
89891         * include/tls.h: Likewise.
89892         * intl/gettextP.h: Likewise.
89893         * intl/loadinfo.h: Likewise.
89894         * locale/global-locale.c: Likewise.
89895         * locale/localeinfo.h: Likewise.
89896         * mach/devstream.c: Likewise.
89897         * malloc/arena.c: Likewise.
89898         * malloc/set-freeres.c: Likewise.
89899         * misc/err.c: Likewise.
89900         * misc/getttyent.c: Likewise.
89901         * misc/mntent_r.c: Likewise.
89902         * posix/getopt.c: Likewise.
89903         * posix/wordexp.c: Likewise.
89904         * pwd/fgetpwent_r.c: Likewise.
89905         * resolv/Versions: Likewise.
89906         * resolv/res_hconf.c: Likewise.
89907         * shadow/fgetspent_r.c: Likewise.
89908         * shadow/putspent.c: Likewise.
89909         * stdio-common/printf_fphex.c: Likewise.
89910         * stdio-common/tmpfile.c: Likewise.
89911         * stdlib/abort.c: Likewise.
89912         * stdlib/fmtmsg.c: Likewise.
89913         * sunrpc/auth_unix.c: Likewise.
89914         * sunrpc/clnt_perr.c: Likewise.
89915         * sunrpc/clnt_tcp.c: Likewise.
89916         * sunrpc/clnt_udp.c: Likewise.
89917         * sunrpc/clnt_unix.c: Likewise.
89918         * sunrpc/openchild.c: Likewise.
89919         * sunrpc/svc_simple.c: Likewise.
89920         * sunrpc/svc_tcp.c: Likewise.
89921         * sunrpc/svc_udp.c: Likewise.
89922         * sunrpc/svc_unix.c: Likewise.
89923         * sunrpc/xdr.c: Likewise.
89924         * sunrpc/xdr_array.c: Likewise.
89925         * sunrpc/xdr_rec.c: Likewise.
89926         * sunrpc/xdr_ref.c: Likewise.
89927         * sunrpc/xdr_stdio.c: Likewise.
89928
89929 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
89930
89931         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
89932
89933 2011-07-03  Andreas Jaeger  <aj@suse.de>
89934
89935         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
89936         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
89937         regenerate with gen-libm-tests.pl.
89938
89939 2010-05-12  Petr Baudis  <pasky@suse.cz>
89940
89941         [BZ #11589]
89942         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
89943         around j0() zero points by switching to j1().
89944         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
89945         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
89946         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
89947         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
89948
89949 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
89950
89951         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
89952         instead of 0.
89953         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
89954         instead of 0.
89955         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
89956         Patch in part by Pavel Roskin <proski@gnu.org>.
89957
89958         [BZ #13138]
89959         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
89960         realloc.
89961         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
89962         Free memory block if necessary.
89963
89964         [BZ #12847]
89965         * libio/genops.c (INTDEF): For string streams the _lock pointer can
89966         be NULL.  Don't lock in this case.
89967
89968 2011-09-09  Roland McGrath  <roland@hack.frob.com>
89969
89970         * elf/elf.h (ELFOSABI_GNU): New macro.
89971         (ELFOSABI_LINUX): Define to that.
89972
89973 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
89974
89975         * string/strncat.c (strncat): Undef the symbol in case it has been
89976         defined in bits/string.h.
89977
89978 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
89979
89980         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
89981
89982         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
89983         link map.
89984
89985 2011-08-17  Andreas Jaeger  <aj@suse.de>
89986
89987         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
89988
89989 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
89990             Ian Lance Taylor  <iant@google.com>
89991
89992         * math/libm-test.inc (lround_test): New testcase.
89993         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
89994
89995 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
89996
89997         * Makefile: Remove support for automatic cvs check-ins.
89998         * Makerules: Likewise.
89999         * config.make.in: Likewise.
90000         * configure.in: Likewise.
90001         * intl/Makefile: Likewise.
90002         * locale/Makefile: Likewise.
90003         * po/Makefile: Likewise.
90004         * posix/Makefile: Likewise.
90005         * sysdeps/gnu/Makefile: Likewise.
90006         * sysdeps/mach/hurd/Makefile: Likewise.
90007         * sysdeps/sparc/sparc32/Makefile: Likewise.
90008
90009         [BZ #13118]
90010         * posix/Makefile (bug-regex32-ENV): Define.
90011         Patch by John Stanley <jpsinthemix@verizon.net>.
90012
90013         * misc/Makefile (headers): Add bits/select2.h.
90014         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
90015         * misc/bits/select2.h: New file.
90016         * include/bits/select2.h: New file.
90017         * debug/Makefile (routines): Add fdelt_chk.
90018         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
90019         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
90020         FD_ISSET.
90021         * debug/fdelt_chk.c: New file.
90022
90023         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
90024         * wcsmbs/test-wmemcmp.c: Likewise.
90025         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
90026         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
90027
90028 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
90029
90030         * string/Makefile (strop-tests): Add memcmp.
90031         * string/test-wmemcmp.c: New file.
90032         * string/test-memcmp.c: Add wmemcmp support.
90033
90034 2011-09-08  Roland McGrath  <roland@hack.frob.com>
90035
90036         [BZ #13153]
90037         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
90038         2011-07-19 change.
90039
90040         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
90041         garbage value in a __mach_port_mod_refs call in the cases of the
90042         task-self and thread-self ports.
90043
90044 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90045
90046         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
90047
90048 2011-09-08  Andreas Schwab  <schwab@redhat.com>
90049
90050         * elf/dl-load.c (lose): Check for non-null L.
90051
90052 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
90053
90054         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
90055
90056         * elf/dl-libc.c (dlerror_run): Pass back error code from
90057         dl_catch_error.
90058
90059         [BZ #13123]
90060         * elf/dl-load.c (lose): Free l_origin if it is valid.
90061
90062         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
90063         names.
90064         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
90065         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
90066         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
90067         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
90068         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
90069         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
90070
90071 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
90072
90073         * sysdeps/powerpc/fpu/e_hypot.c: New file.
90074         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
90075         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
90076         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
90077         * sysdeps/powerpc/fpu/k_cosf.c: New file.
90078         * sysdeps/powerpc/fpu/k_sinf.c: New file.
90079         * sysdeps/powerpc/fpu/s_cosf.c: New file.
90080         * sysdeps/powerpc/fpu/s_sinf.c: New file.
90081         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
90082         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
90083
90084 2011-08-15  Alan Modra  <amodra@gmail.com>
90085
90086         [BZ #13092]
90087         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
90088         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
90089         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
90090         ppc_mcount to static-only-routines.
90091         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
90092         __mcount_internal.
90093         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
90094         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
90095
90096 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
90097
90098         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
90099         for finite and infinity parameters.
90100
90101 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
90102
90103         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
90104         and add nop instructions for throughput optimization.
90105         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
90106
90107 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
90108
90109         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
90110         aligned copy for power7 with vector-scalar instructions.
90111         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
90112
90113 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
90114
90115         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
90116         AVX check.
90117
90118 2011-09-07  Andreas Schwab  <schwab@redhat.com>
90119
90120         [BZ #13144]
90121         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
90122         last change.
90123
90124 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
90125
90126         * sysdeps/unix/sysv/linux/x86_64/init-first.c
90127         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
90128         syscall wrapper around clock_gettime in __vdso_clock_gettime.
90129         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
90130         clock_gettime.
90131
90132 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
90133
90134         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
90135         Forgot to demangle the pointer.
90136
90137         * sysdeps/i386/sysdep.h: Define atom_text_section.
90138         * sysdeps/x86_64/sysdep.h: Likewise.
90139         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
90140         section with atom_text_section.
90141         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
90142         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
90143         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
90144         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
90145         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
90146
90147         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
90148         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
90149         already be defined.  Change to take two parameters and don't assign
90150         result to variable.  Adjust all users.
90151         Define INTERNAL_GETTIME if not already defined.
90152         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
90153         call.
90154         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
90155         HAVE_CLOCK_GETTIME_VSYSCALL.
90156         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
90157
90158         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
90159         gettimeofday vsyscall, just use time.
90160
90161 2011-09-06  Andreas Schwab  <schwab@redhat.com>
90162
90163         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
90164         <errno.h>.
90165
90166 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
90167
90168         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
90169         syscall on x86-64.
90170         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
90171         syscall.
90172         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
90173         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
90174         syscall if possible.
90175
90176 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
90177
90178         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
90179         e_ident.  Don't pass to find_mapsXX.
90180         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
90181
90182 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
90183
90184         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90185         strchr-sse2-no-bsf strrchr-sse2-no-bsf
90186         * sysdeps/x86_64/multiarch/strchr.S: Update.
90187         Check bit_slow_BSF bit.
90188         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
90189         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
90190         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
90191
90192 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
90193
90194         [BZ #13134]
90195         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
90196         before glibc 2.15.
90197         (tryshell): Define.
90198         (__spawni): Change last parameter to be flag.  Test
90199         SPAWN_XFLAGS_USE_PATH flag to use path or not.
90200         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
90201         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
90202         * posix/spawni.c: Likewise.
90203         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
90204         * posix/spawnp.c: Likewise.  Change normal version to use
90205         SPAWN_XFLAGS_USE_PATH.
90206         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
90207         SPAWN_XFLAGS_TRY_SHELL.
90208
90209         [BZ #13150]
90210         * posix/glob.h: Remove gcc 1.x support.
90211
90212         [BZ #13068]
90213         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
90214
90215 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
90216
90217         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90218         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
90219         strrchr-sse2-bsf
90220         * sysdeps/i386/i686/multiarch/strchr.S: New file.
90221         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
90222         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
90223         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
90224         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
90225         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
90226
90227 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
90228
90229         * sysdeps/x86_64/wcscmp.S: New file.
90230
90231         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
90232         wcscmp-c wcscmp-sse2
90233         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
90234         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
90235         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
90236         * wcsmbs/wcscmp.c: Allow renaming.
90237
90238 2011-09-05  David S. Miller  <davem@davemloft.net>
90239
90240         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
90241         stack slot, rather than the struct return pointer slot.
90242         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
90243         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
90244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
90245         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
90246
90247 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
90248
90249         * po/ja.po: Update from translation team.
90250
90251         [BZ #13144]
90252         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
90253         kernel in 64-bit binaries.
90254
90255 2011-09-01  David S. Miller  <davem@davemloft.net>
90256
90257         * elf/elf.h (HWCAP_SPARC_*): Move to..
90258         * sysdeps/sparc/sysdep.h: this new file and add new values.
90259         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
90260         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
90261         _DL_HWCAP_COUNT to 24.
90262         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
90263         entries.
90264         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
90265         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
90266         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
90267         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
90268         instead of magic constants.
90269         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
90270
90271 2011-08-31  David S. Miller  <davem@davemloft.net>
90272
90273         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
90274         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
90275         Reimplement to do errno handling inline.
90276         (SYSCALL_ERROR_HANDLER): New macro.
90277         (__SYSCALL_STRING): Do not do errno handling in asm.
90278         (__CLONE_SYSCALL_STRING): Delete.
90279         (__INTERNAL_SYSCALL_STRING): Delete.
90280         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
90281         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
90282         (PSEUDO): Reimplement to do errno handling inline.
90283         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
90284         (SYSCALL_ERROR_HANDLER): New macro.
90285         (__SYSCALL_STRING): Do not do errno handling in asm.
90286         (__CLONE_SYSCALL_STRING): Delete.
90287         (__INTERNAL_SYSCALL_STRING): Delete.
90288         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
90289         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
90290         i386.
90291         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
90292         (inline_syscall*): Add 'err' argument.
90293         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
90294         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
90295         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
90296         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
90297
90298         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
90299         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
90300
90301 2011-08-30  Andreas Schwab  <schwab@redhat.com>
90302
90303         * elf/rtld.c (dl_main): Relocate objects in dependency order.
90304
90305 2011-08-29  Jiri Olsa <jolsa@redhat.com>
90306
90307         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
90308         directive.
90309
90310 2011-08-24  David S. Miller  <davem@davemloft.net>
90311
90312         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
90313
90314 2011-08-24  Andreas Schwab  <schwab@redhat.com>
90315
90316         * elf/Makefile: Add rules to build and run unload8 test.
90317         * elf/unload8.c: New file.
90318         * elf/unload8mod1.c: New file.
90319         * elf/unload8mod1x.c: New file.
90320         * elf/unload8mod2.c: New file.
90321         * elf/unload8mod3.c: New file.
90322
90323         * elf/dl-close.c (_dl_close_worker): Reset private search list if
90324         it wasn't used.
90325
90326 2011-08-23  David S. Miller  <davem@davemloft.net>
90327
90328         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
90329         subtract stack bias.
90330         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
90331         %sp not %fp in calculations.
90332         (_JMPBUF_UNWINDS_ADJ): Likewise.
90333
90334         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
90335         (aio_suspend): Call it to force an exception region around the
90336         AIO_MISC_WAIT() invocation.
90337
90338 2011-08-23  Andreas Schwab  <schwab@redhat.com>
90339
90340         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
90341         backslash.
90342
90343 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
90344
90345         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
90346         protection macro.
90347         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
90348         and <dl-machine.h>.
90349         (Elf64_FuncDesc): Remove.
90350
90351 2011-08-22  David S. Miller  <davem@davemloft.net>
90352
90353         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
90354         sigaltstack check, add missing cfi directives.
90355         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
90356         missing cfi directives, and sigaltstack handling.
90357
90358 2011-08-16  Andreas Schwab  <schwab@redhat.com>
90359
90360         [BZ #11724]
90361         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
90362         object is seen twice.
90363         * elf/dl-fini.c (_dl_sort_fini): Likewise.
90364
90365         * elf/Makefile (distribute): Add tst-initorder2.c.
90366         (tests): Add tst-initorder2.
90367         (modules-names): Add tst-initorder2a tst-initorder2b
90368         tst-initorder2c tst-initorder2d.  Add rules to build them.
90369         ($(objpfx)tst-initorder2.out): New rule.
90370         * elf/tst-initorder2.c: New file.
90371         * elf/tst-initorder2.exp: New file.
90372
90373 2011-08-22  Andreas Schwab  <schwab@redhat.com>
90374
90375         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
90376
90377         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
90378         dependencies back to end of function.
90379
90380         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
90381         $(elfobjdir)/ld.so.
90382
90383 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
90384
90385         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
90386         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
90387         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
90388         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
90389         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
90390         of __vdso_gettimeofday.
90391         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
90392         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
90393         attribute_hidden.
90394         (_libc_vdso_platform_setup): Remove initialization of
90395         __vdso_gettimeofday and __vdso_time.
90396
90397 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
90398
90399         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
90400         and fgetc_unlocked.
90401         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
90402         getc_unlocked.
90403
90404         * elf/dl-open.c (add_to_global): Report additions to the global scope
90405         for LD_DEBUG=scopes.
90406         (dl_open_worker): Also print scope of newly loaded dependencies.
90407         (_dl_show_scope): Indicate if there is no scope.
90408
90409         [BZ #13114]
90410         * stdio-common/Makefile (tests): Add bug24.
90411         * stdio-common/bug24.c: New file.
90412
90413 2011-08-19  Andreas Jaeger  <aj@suse.de>
90414
90415         [BZ #13114]
90416         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
90417         non-existant file when using close-on-exec mode.
90418
90419 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
90420
90421         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
90422         the very first instruction.
90423
90424         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
90425         the CFI state in the end.
90426         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
90427         inclusion of dl-trampoline.h.
90428         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
90429
90430 2011-08-19  Andreas Schwab  <schwab@redhat.com>
90431
90432         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
90433         expectations for long double.
90434
90435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
90436         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
90437
90438 2011-08-14  David S. Miller  <davem@davemloft.net>
90439
90440         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
90441         artificual limit depends upon the system page size.
90442
90443 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
90444
90445         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
90446         * resolv/Makefile: Define CFLAGS-libresolv.
90447
90448 2011-08-17  Andreas Schwab  <schwab@redhat.com>
90449
90450         * nss/makedb.c (compute_tables): Make variables used in nested
90451         function static.
90452
90453 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
90454
90455         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
90456         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
90457         if buffer was too small.
90458
90459         * elf/pldd.c (main): Attach to all threads in the process.
90460         Rewrite /proc handling to use *at functions.
90461
90462 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
90463
90464         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
90465         specifies first scope to show.
90466         (dl_open_worker): Update callers.  Move printing scope of new
90467         object to before the relocation.
90468         * elf/rtld.c (dl_main): Update _dl_show_scope call.
90469         * sysdeps/generic/ldsodefs.h: Update declaration.
90470
90471         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
90472         string for the scope number.
90473
90474 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
90475
90476         * nscd/servicescache.c (cache_addserv): Make sure written is always
90477         initialized.
90478
90479 2011-08-14  Roland McGrath  <roland@hack.frob.com>
90480
90481         * sysdeps/i386/i486/bits/atomic.h
90482         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
90483         statement expression, so as to suppress "set but not used" warning.
90484         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
90485
90486         * string/strncat.c (STRNCAT): Use prototype definition.
90487
90488         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
90489         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
90490         -Iprograms here.
90491         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
90492         (localedef-modules): Add localedef.
90493         (locale-modules): Add locale.
90494
90495         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
90496         * elf/rtld.c (dl_main): Invert order of assignment in last change,
90497         to avoid a warning.
90498
90499 2011-08-14  David S. Miller  <davem@davemloft.net>
90500
90501         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
90502         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
90503
90504 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
90505
90506         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
90507         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
90508         * elf/rtld.c (dl_main): Set l_name of vDSO.
90509         Call _dl_show_scope when DL_DEBUG_SCOPES.
90510         (process_dl_debug): Recognize scopes flag and also set it for all.
90511         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
90512         Declare _dl_show_scope.
90513
90514         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
90515         (do_dlopen): Pass caller_dlopen to dl_open.
90516         (__libc_dlopen_mode): Initialize caller_dlopen.
90517
90518         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
90519         of libc.  Make tolower call locale-independent.  Optimize a bit by
90520         using isdigit instead of isalnum.
90521         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
90522
90523 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
90524
90525         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
90526         was a dependency or dynamically loaded.
90527
90528 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
90529
90530         * intl/l10nflist.c: Allow architecture-specific pop function.
90531         * sysdeps/x86_64/l10nflist.c: New file.
90532
90533         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
90534         classification.
90535
90536 2011-08-10  Andreas Schwab  <schwab@redhat.com>
90537
90538         * include/dirent.h: Add libc_hidden_proto for scandirat and
90539         scandirat64.  Don't declare __scandirat64.
90540         * dirent/scandirat.c: Add libc_hidden_def.
90541         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
90542         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
90543
90544 2011-08-10  David S. Miller  <davem@davemloft.net>
90545
90546         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
90547         enum.
90548         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
90549         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
90550         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
90551
90552 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
90553
90554         * Versions.def [libc]: Add GLIBC_2.15.
90555         * dirent/Makefile (routines): Add scandirat and scandirat64.
90556         * dirent/Versions [libc]: Export scandirat and scandirat64 for
90557         GLIBC_2.15.
90558         * dirent/dirent.h: Declare scandirat and scandirat64.
90559         * dirent/scandirat.c: New file.
90560         * dirent/scandirat64.c: New file.
90561         * sysdeps/wordsize-64/scandirat.c: New file.
90562         * sysdeps/wordsize-64/scandirat64.c: New file.
90563         * dirent/opendir.c: Define opendirat.
90564         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
90565         using scandirat.
90566         * dirent/scandir64.c: Adjust for scandir.c change.
90567         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
90568         __scandirat64, and __scandir_cancel_handler.
90569         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
90570         additional parameter and use openat instead of open (outside of ld.so).
90571         Add new __opendir as wrapper around __opendirat.
90572         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
90573         here without requiring old scandirat implementation.
90574
90575 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
90576
90577         * dirent/scandir.c (cancel_handler): Renamed to
90578         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
90579         defined.  Adjust users.
90580         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
90581         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
90582
90583 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
90584
90585         * string/test-string.h (IMPL): Use __STRING to expand name and then
90586         stringify it.
90587
90588         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
90589         of cleanups.
90590
90591 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
90592
90593         * string/Makefile: Update.
90594         (strop-tests): Append strncat.
90595         * string/test-wcscmp.c: New file.
90596         New comprehensive test for wcscmp.
90597         * string/test-strcmp.c: Update.
90598         (WIDE): New define.
90599
90600 2011-07-22  Andreas Schwab  <schwab@redhat.com>
90601
90602         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
90603         line.
90604
90605 2011-07-26  Andreas Schwab  <schwab@redhat.com>
90606
90607         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
90608         encoding to ACE if AI_IDN.
90609
90610 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
90611
90612         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
90613         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
90614
90615 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
90616
90617         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
90618         Fix overflow bug in strncat.
90619         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
90620
90621         * string/test-strncat.c: Update.
90622         Add new tests for checking overflow bugs.
90623
90624 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
90625
90626         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90627         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
90628         * sysdeps/i386/i686/multiarch/strcat.S: New file.
90629         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
90630         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
90631         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
90632         * sysdeps/i386/i686/multiarch/strncat.S: New file.
90633         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
90634         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
90635
90636         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
90637         (USE_AS_STRCAT): Define.
90638         Add strcat and strncat support.
90639         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
90640
90641 2011-07-25  Andreas Schwab  <schwab@redhat.com>
90642
90643         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
90644         __n bigger than INT_MAX+1.
90645         (__strncmp_g): Likewise.
90646
90647 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
90648
90649         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
90650         * libio/stido.h: Likewise.
90651
90652         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
90653         (AF_NFC): Define.
90654         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
90655         (AF_NFC): Define.
90656
90657         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
90658         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
90659         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
90660         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
90661         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
90662
90663         [BZ #13021]
90664         * scripts/test-installation.pl: Don't expect libnss_test1 to be
90665         installed.
90666
90667         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
90668         typo.
90669         (_dl_x86_64_save_sse): Likewise.
90670
90671 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
90672
90673         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
90674         OSXSAVE.
90675         (_dl_x86_64_save_sse): Likewise.
90676
90677         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
90678
90679         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
90680
90681 2011-07-21  Andreas Schwab  <schwab@redhat.com>
90682
90683         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
90684         change.
90685         (_dl_x86_64_save_sse): Use correct AVX check.
90686
90687 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
90688
90689         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
90690         bug in strncpy/strncat.
90691         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
90692
90693 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
90694
90695         * string/tester.c (test_strcat): Add tests for different alignments
90696         of source and destination.
90697         (test_strncat): Likewise.
90698
90699 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
90700
90701         [BZ #12852]
90702         * posix/glob.c (glob): Check passed in values before using them in
90703         expressions to avoid some overflows.
90704         (glob_in_dir): Likewise.
90705
90706         [BZ #13007]
90707         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
90708         check for AVX enablement so that we don't crash with old kernels and
90709         new hardware.
90710         * elf/tst-audit4.c: Add same checks here.
90711         * elf/tst-audit6.c: Likewise.
90712
90713         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
90714
90715 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
90716
90717         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
90718
90719 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
90720
90721         * po/cs.po: Update from translation team.
90722         * po/bg.po: Likewise.
90723
90724 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
90725
90726         * misc/sys/cdefs.h: Add support for const attribute.
90727         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
90728         to gnu_dev_{major,minor,makedev} functions.
90729
90730 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
90731
90732         * intl/dcigettext.c (get_output_charset): Add missing bracket.
90733
90734 2011-07-20  Andreas Schwab  <schwab@redhat.com>
90735
90736         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
90737         strlen results.
90738
90739 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
90740
90741         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
90742         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
90743         register in order to avoid conflicts with the soft frame pointer
90744         being held in r11 when necessary.
90745         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
90746         (INTERNAL_VSYSCALL_NCS): Likewise.
90747
90748 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
90749
90750         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
90751         * elf/dl-fini.c (_dl_fini): Adjust caller.
90752         * elf/dl-close.c (_dl_close_worker): Likewise.
90753         * sysdeps/generic/ldsodefs.h: Adjust declaration.
90754
90755 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
90756
90757         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
90758         "aux_cache->nlibs < 0".
90759
90760         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
90761         in the reload-count case.
90762
90763 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
90764
90765         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90766         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
90767         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
90768         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
90769         * sysdeps/x86_64/multiarch/strcat.S: New file.
90770         * sysdeps/x86_64/multiarch/strncat.S: New file.
90771         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
90772         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
90773         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
90774         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
90775         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
90776         (USE_AS_STRCAT): Define.
90777         Add strcat and strncat support.
90778         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
90779         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
90780         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
90781         * string/strncat.c: Update.
90782         (USE_AS_STRNCAT): Define.
90783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
90784         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
90785         and i7.
90786         * sysdeps/x86_64/multiarch/init-arch.h
90787         (bit_Prefer_PMINUB_for_stringop): New.
90788         (index_Prefer_PMINUB_for_stringop): Likewise.
90789         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
90790         bit_Prefer_PMINUB_for_stringop.
90791
90792 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
90793
90794         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
90795         buffer64.
90796         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
90797         of casting of buffer.
90798         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
90799         buffer32 and buffer64.
90800         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
90801         writes instead of casting of buffer.
90802         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
90803         buffer32.
90804         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
90805         casting of buffer.
90806
90807 2011-07-19  Andreas Schwab  <schwab@redhat.com>
90808
90809         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
90810
90811 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
90812
90813         * nscd/nscd.c (termination_handler): Don't do anything for a database
90814         if it has not yet been initialized.
90815
90816 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
90817
90818         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
90819
90820 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
90821
90822         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
90823
90824 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
90825
90826         * po/nl.po: Update from translation team.
90827         * po/sv.po: Likewise.
90828
90829 2011-07-16  Roland McGrath  <roland@hack.frob.com>
90830
90831         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
90832         now disallowed by GCC.
90833
90834         * configure.in (use-default-link): Default to yes if a test -shared
90835         link meets our qualifications.
90836         * configure: Regenerated.
90837
90838         * config.make.in (output-format): New variable.
90839         * configure.in: Check for ld --print-output-format support.
90840         * configure: Regenerated.
90841         * Makerules ($(common-objpfx)format.lds)
90842         [$(output-format) != unknown]: Just use $(output-format),
90843         instead of the linker-script munging.
90844
90845 2011-07-14  Roland McGrath  <roland@hack.frob.com>
90846
90847         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
90848         of $(common-objpfx)shlib.lds.
90849         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
90850
90851         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
90852         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
90853
90854         * configure.in (-z relro check): Adjust test code to add a large
90855         writable data section after it.
90856         * configure: Regenerated.
90857
90858 2011-07-11  Roland McGrath  <roland@hack.frob.com>
90859
90860         * configure.in (-z relro check): Fix test code to make the variable
90861         truly const.
90862         * configure: Regenerated.
90863
90864 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
90865
90866         * nscd/nscd.h (struct traced_file): Define.
90867         (struct database_dyn): Remove inotify_descr, reset_res, and filename
90868         elements.  Add traced_files.
90869         (inotify_fd): Declare.
90870         (register_traced_file): Declare.
90871         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
90872         (inotify_fd): Export.
90873         (resolv_conf_descr): Remove.
90874         (nscd_init): Move inotify descriptor creation to main.
90875         Don't register files for notification here.
90876         (register_traced_file): New function.
90877         (invalidate_cache): Don't use reset_res to determine whether to call
90878         res_init, go through the list of registered files.
90879         (main_loop_poll): The inotify descriptors are now stored in the
90880         structures for the traced files.
90881         (main_loop_epoll): Likewise.
90882         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
90883         to __nss_disable_nscd.
90884         * nscd/cache.c (prune_cache): There is no single inotify descriptor
90885         for a database anymore.  Check the records for all the registered
90886         files instead.
90887         * nss/Makefile (libnss_files-routines): Add files-init.
90888         (libnss_db-routines): Add db-init.
90889         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
90890         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
90891         * nss/nss_db/db-init.c: New file.
90892         * nss/nss_files/files-init.c: New file.
90893         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
90894         __nss_lookup_function.
90895         (__nss_lookup_function): Call nss_load_library.
90896         (nss_load_all_libraries): New function.
90897         (__nss_disable_nscd): Take parameter with callback function for files
90898         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
90899         used for the cached services.
90900         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
90901         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
90902         options for features to all the files in nscd.
90903
90904         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
90905
90906 2011-07-10  Roland McGrath  <roland@hack.frob.com>
90907
90908         * csu/elf-init.c (__libc_csu_init): Comment typo.
90909
90910 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
90911
90912         * po/pl.po: Update from translation team.
90913         * po/ja.po: Likewise.
90914         * po/ru.po: Likewise.
90915         * po/ko.po: Likewise.
90916         * po/fr.po: Likewise.
90917
90918 2011-07-09  Roland McGrath  <roland@hack.frob.com>
90919
90920         * configure.in (.ctors/.dtors header and trailer check):
90921         Use an empirical test on a built program.
90922         * configure: Regenerated.
90923
90924         * configure.in (-z relro check): Use an empirical test on a built DSO.
90925         Detect, but do not require, on ia64.
90926         * configure: Regenerated.
90927
90928         * configure.in (READELF): Find it with AC_CHECK_TOOL.
90929         Update tests that use readelf to use $READELF instead.
90930         * configure: Regenerated.
90931
90932 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
90933
90934         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
90935         if the result is not used.
90936
90937 2011-07-05  Andreas Jaeger  <aj@suse.de>
90938
90939         [BZ #9696]
90940         * stdlib/tst-strtod.c: Add testcase.
90941
90942 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
90943
90944         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
90945         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
90946         The latter has a higher limit.  Take additional parameter to pass to
90947         the new function.
90948         (__pathconf): Pass file to __statfs_link_max.
90949         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
90950         __statfs_link_max.
90951         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
90952         __statfs_link_max.
90953
90954         [BZ #12868]
90955         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
90956         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90957         Handle Lustre.
90958         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
90959         (__statfs_filesize_max): Likewise.
90960         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
90961
90962 2011-07-05  Andreas Jaeger  <aj@suse.de>
90963
90964         * resolv/res_comp.c (dn_skipname): Remove unused variable.
90965
90966 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
90967
90968         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
90969         `status' variable.
90970         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
90971         Likewise.
90972
90973 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
90974
90975         * Makefile (strop-tests): Add strncat.
90976         * string/test-strncat.c: New file.
90977
90978 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
90979
90980         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
90981
90982 2011-06-21  Andreas Jaeger  <aj@suse.de>
90983
90984         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
90985         Copy rule from iconvdata/Makefile.
90986
90987 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
90988
90989         [BZ #12922]
90990         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
90991         but no long options are defined, just return 'W'.
90992
90993 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
90994
90995         [BZ #9696]
90996         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
90997
90998 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
90999
91000         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
91001         netgroups to read.
91002         (innetgr): Likewise.
91003
91004 2011-07-05  Roland McGrath  <roland@hack.frob.com>
91005
91006         * config.make.in (install_root): Default to $(DESTDIR).
91007
91008 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
91009
91010         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
91011
91012 2011-07-02  Roland McGrath  <roland@hack.frob.com>
91013
91014         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
91015
91016         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
91017         containing directory rather than embedding absolute directory names.
91018
91019         * scripts/check-local-headers.sh: Rewritten using awk.
91020         Match by word, not by line.  Print error messages for matches.
91021         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
91022
91023         * Makerules [shlib-lds-flags empty]:
91024         ($(common-objpfx)libc_pic.opts): New target.
91025         ($(common-objpfx)libc_pic.os.clean): New target.
91026         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
91027
91028         * config.make.in (OBJCOPY): New variable.
91029         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
91030         * configure: Regenerated.
91031
91032         * config.make.in (use-default-link): New variable.
91033         * configure.in (use_default_link): Grok --with-default-link to set it.
91034         * configure: Regenerated.
91035         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
91036         (shlib-lds, shlib-lds-flags): Define to empty.
91037
91038         * Makerules (shlib-lds): New variable.
91039         (shlib-lds-flags): New variable.
91040         (build-shlib, build-moduile, build-module-asneeded): Use it.
91041         ($(common-objpfx)libc.so): Use $(shlib-lds).
91042         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
91043         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
91044
91045         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
91046         DT_FLAGS/DT_FLAGS_1 with zero flags.
91047
91048         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
91049         linker script munging.
91050
91051 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
91052
91053         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
91054         as 128-bit value.
91055         * crypt/sha512.c (sha512_process_block): Perform total addition using
91056         128-bit if possible.
91057         (__sha512_finish_ctx): Likewise.
91058         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
91059         as 64-bit value.
91060         * crypt/sha256.c (SWAP64): Define.
91061         (sha256_process_block): Perform total addition using 64-bit if
91062         possible.
91063         (__sha256_finish_ctx): Likewise.
91064
91065 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
91066
91067         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
91068         * nscd/initgrcache.c (addinitgroupsX): Likewise.
91069         * nscd/hstcache.c (cache_addhst): Likewise.
91070         * nscd/grpcache.c (cache_addgr): Likewise.
91071         * nscd/aicache.c (addhstaiX): Likewise.
91072         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
91073
91074 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
91075
91076         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
91077         * nscd/initgrcache.c (addinitgroupsX): Likewise.
91078         * nscd/hstcache.c (cache_addhst): Likewise.
91079         * nscd/grpcache.c (cache_addgr): Likewise.
91080         * nscd/aicache.c (addhstaiX): Likewise.
91081
91082 2011-07-01  Andreas Schwab  <schwab@redhat.com>
91083
91084         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
91085         domain only when needed.
91086
91087 2011-06-30  Andreas Schwab  <schwab@redhat.com>
91088
91089         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
91090         is always restored.
91091
91092 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
91093
91094         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
91095         are re-adding the entry.
91096         * nscd/servicescache.c (cache_addserv): Likewise.
91097
91098 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
91099
91100         * sysdeps/generic/dl-irel.h: fix protection against multiple
91101         inclusions.
91102         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
91103
91104 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
91105
91106         [BZ #12935]
91107         * malloc/memusage.sh: Fix quoting in message.
91108         * debug/xtrace.sh: Likewise.
91109
91110         * configure.in: Remove support for --experimental-malloc option, make
91111         it the default.
91112         * config.make.in: Likewise.
91113         * malloc/Makefile: Likewise.
91114
91115 2011-06-27  Andreas Schwab  <schwab@redhat.com>
91116
91117         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
91118         two-byte characters.
91119
91120 2011-06-27  Roland McGrath  <roland@hack.frob.com>
91121
91122         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
91123         AC_CACHE_CHECK invocation.
91124         * configure: Regenerated.
91125
91126         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
91127
91128 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
91129
91130         [BZ #12350]
91131         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
91132         bit from old_res_options.
91133
91134         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
91135
91136         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
91137         value type for setfct.
91138
91139 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
91140
91141         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
91142         __gettimeofday instead of gettimeofday.
91143
91144 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
91145
91146         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
91147
91148 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
91149
91150         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
91151
91152         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
91153         info.
91154
91155 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
91156
91157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
91158         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
91159         strcpy-sse2-unaligned strncpy-sse2-unaligned
91160         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
91161         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
91162         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
91163         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
91164         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
91165         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
91166         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
91167         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
91168         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
91169         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
91170         (STRCPY): Support SSE2 and SSSE3 versions.
91171
91172 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
91173
91174         [BZ #12874]
91175         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
91176         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
91177         kernels which artificially limit size of requests.
91178
91179 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
91180
91181         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
91182         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
91183         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
91184         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
91185         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
91186         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
91187         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
91188         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
91189         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
91190         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
91191         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
91192         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
91193         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
91194         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
91195         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
91196         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
91197         Enable unaligned load optimization for Intel Core i3, i5 and i7
91198         processors.
91199         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
91200         Define.
91201         (index_Fast_Unaligned_Load): Define.
91202         (HAS_FAST_UNALIGNED_LOAD): Define.
91203
91204 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
91205
91206         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
91207
91208 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
91209
91210         [BZ #12907]
91211         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
91212         until it is clear that the information is realy needed.
91213         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
91214
91215 2011-06-22  Andreas Schwab  <schwab@redhat.com>
91216
91217         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
91218
91219 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
91220
91221         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
91222         /sys/devices/system/cpu/online if it is usable.
91223
91224         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
91225         reading the information from the /proc filesystem to once a second.
91226
91227 2011-06-21  Andreas Jaeger  <aj@suse.de>
91228
91229         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
91230         NULL after inclusion of kernel headers.
91231
91232 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
91233
91234         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
91235         calls to internal_setent.
91236
91237         [BZ #12885]
91238         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
91239         addresses using gethostbyname4_r ignore IPv4 addresses.
91240
91241         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
91242         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
91243
91244         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
91245
91246 2011-06-20  David S. Miller  <davem@davemloft.net>
91247
91248         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
91249         inclusions.
91250         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
91251
91252         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
91253         (elf_irel): Use it.
91254         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
91255         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
91256         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
91257         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
91258         * sysdeps/x86_64/dl-irel.h: Likewise.
91259
91260         * elf/dl-runtime.c: Use elf_ifunc_invoke.
91261         * elf/dl-sym.c: Likewise.
91262
91263 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
91264
91265         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
91266         need to dereference resplen2.
91267
91268 2011-06-14  Andreas Schwab  <schwab@redhat.com>
91269
91270         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
91271
91272 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
91273
91274         * Makeconfig: Define vardbdir and inst_vardbdir.
91275         * nss/Makefile: Add rules to install db-Makefile.
91276
91277         * nss/nss_db/db-XXX.c: Cleanup.
91278
91279         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
91280         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
91281         GLIBC_PRIVATE.
91282         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
91283         * nss/makedb.c: Implement -g option to specify that value strings
91284         are generated and should not be added to table iterated over for
91285         get*ent calls.
91286         * nss/nss_db/db-initgroups.c: New file.
91287
91288         * nss/getent.c: Add support for initgroups lookups through getgrouplist
91289         interface.
91290
91291         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
91292         (internal_getgrouplist): Adjust to name change.
91293         Update use_initgroups_entry if this is not the first call.
91294         * nss/databases.def: Add initgroups entry.
91295
91296         * nss/makedb.c (compute_tables): Check result of multiple hash table
91297         sizes to minimize maximum chain length.
91298
91299 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
91300
91301         * Versions.def: Add entry for libnss_db.
91302         * shlib-versions: Likewise.
91303         * nss/Makefile: Add rules to build libnss_db.
91304         * nss/Versions: Add libnss_db information.  Organize libnss_files
91305         entries better.
91306         * nss/db-Makefile: Add gshadow support.  Change rules for the new
91307         makedb progra.  Some minor improvements to generate smaller files.
91308         * nss/nss_db/nss_db.h: Move NSS database header data structures to
91309         here from...
91310         * nss/makedb.c: ...here.
91311         Improve database format to be smaller and require less memory at
91312         runtime.
91313         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
91314         db anymore.
91315         * nss/nss_db/db-netgrp.c: Likewise.
91316         * nss/nss_db/db-open.c: Likewise.
91317         * nss/nss_files/flies-XXX.x: Adjust comments.
91318         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
91319         * nss/nss_files/files-grp.c: Likewise.
91320         * nss/nss_files/files-hosts.c: Likewise.
91321         * nss/nss_files/files-network.c: Likewise.
91322         * nss/nss_files/files-proto.c: Likewise.
91323         * nss/nss_files/files-pwd.c: Likewise.
91324         * nss/nss_files/files-rpc.c: Likewise.
91325         * nss/nss_files/files-service.c: Likewise.
91326         * nss/nss_files/files-sgrp.c: Likewise.
91327         * nss/nss_files/files-spwd.c: Likewise.
91328         * nss/nss_db/db-alias.c: Removed.
91329         * nss/nss_db/dummy-db.h: Removed.
91330
91331 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
91332
91333         * nss/makedb.c: Rewritten to not use database library.
91334         * nss/Makefile: Update to build new makedb program.
91335
91336 2011-06-14  Andreas Jaeger  <aj@suse.de>
91337
91338         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
91339         memset declaration.
91340
91341 2011-06-10  Andreas Schwab  <schwab@redhat.com>
91342
91343         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
91344         tmpbuf.
91345
91346 2011-06-10  Roland McGrath  <roland@hack.frob.com>
91347
91348         * Makerules (shlib.lds): Fail if the linker script comes out empty.
91349         * elf/Makefile ($(objpfx)ld.so): Likewise.
91350
91351         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
91352         Don't list ld.so twice in dependencies.
91353
91354         * posix/bug-regex31.c: Include <stdlib.h>.
91355
91356         * nscd/hstcache.c (cache_addhst): Remove unused variable.
91357
91358         * nis/nss_compat/compat-spwd.c
91359         (getspent_next_nss_netgr): Remove unused variable.
91360         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
91361
91362         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
91363         nonmembers" output to use the right array.
91364
91365         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
91366
91367         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
91368
91369         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
91370         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
91371         * catgets/gencat.c (read_input_file): Likewise.
91372         * locale/programs/locarchive.c (enlarge_archive): Likewise.
91373
91374         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
91375         variable definition inside #if's controlling its use.
91376
91377         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
91378
91379         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
91380
91381         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
91382
91383         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
91384         unreachable code.
91385
91386         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
91387
91388         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
91389         * configure: Regenerated.
91390
91391         * Makerules: Revert last change.
91392         * elf/Makefile: Likewise.
91393
91394 2011-06-09  Roland McGrath  <roland@hack.frob.com>
91395
91396         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
91397         * elf/Makefile ($(objpfx)librtld.os): Likewise.
91398         (reloc-link): Likewise.
91399
91400 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
91401
91402         * elf/Makefile: Add rules to build pldd.
91403         * elf/pldd.c: New file.
91404         * elf/pldd-xx.c: New file.
91405
91406 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
91407
91408         * version.h: Update for 2.15 development version.
91409
91410 2011-06-07  David S. Miller  <davem@davemloft.net>
91411
91412         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
91413         ifuncs.
91414         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
91415         elf_machine_lazy_rel): Likewise.
91416         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
91417         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
91418         elf_machine_lazy_rel): Likewise.
91419         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
91420         dl_hwcap via passed in argument.
91421         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
91422         Likewise.
91423
91424 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
91425
91426         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
91427
91428 2011-06-06  Roland McGrath  <roland@hack.frob.com>
91429
91430         [BZ #12849]
91431         * manual/fdl-1.1.texi: New file, verbatim from:
91432         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
91433         * manual/lgpl-2.1.texi: New file, verbatim from:
91434         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
91435         * manual/Makefile (licenses): New variable, list those new file names.
91436         (texis): Use it.
91437         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
91438
91439         * manual/fdl.texi: File removed.
91440         * manual/lesser.texi: File removed.
91441         * manual/libc.texinfo (Copying, Documentation License):
91442         Use new @include file names, put @appendix directive before @include.
91443
91444 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
91445
91446         [BZ #12841]
91447         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
91448         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
91449         (mq_open): Add __NTH.
91450
91451 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
91452
91453         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
91454         Assume Intel Core i3/i5/i7 processor if AVX is available.
91455
91456 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
91457
91458         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
91459         typo.
91460
91461 2011-05-31  Andreas Schwab  <schwab@redhat.com>
91462
91463         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
91464         memory.  Use alloca_account.  Fix memory leak when retrying.
91465
91466 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
91467
91468         * version.h (RELEASE): Bump for 2.14 release.
91469         * include/features.h (__GLIBC_MINOR__): Bump to 14.
91470
91471         * config.make.in (RANLIB): Remove entry.
91472
91473 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
91474
91475         * po/Makefile (po-sed-cmd): Add ksh to extensions.
91476         (libc.pot): Work around missing support for .ksh extension in xgettext.
91477
91478         [BZ #12684]
91479         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
91480         if both request failed.
91481         (send_dg): In case of server errors clear resplen or *resplen2.
91482
91483         [BZ #12454]
91484         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
91485         when there are multiple maps.
91486         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
91487         (_dl_fini): Remove test here.
91488
91489         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
91490
91491 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
91492
91493         [BZ #12350]
91494         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
91495         bit from old_res_options.
91496         (gaih_inet): Likewise.
91497
91498         [BZ #11099]
91499         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
91500         as signed.
91501
91502         * resolv/res_init.c (res_setoptions): Make the code more compact.
91503
91504         [BZ #11558]
91505         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
91506         set RES_USEVC.
91507
91508         [BZ #11634]
91509         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
91510
91511         * malloc/malloc.h: Mark malloc hook variables as deprecated.
91512
91513         [BZ #11781]
91514         * malloc/malloc.h: Declare malloc hook variables as volatile.
91515
91516         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
91517         in last patch.
91518
91519         [BZ #11799]
91520         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
91521         raise in the comment.
91522         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
91523         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
91524         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
91525
91526 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
91527
91528         [BZ #12811]
91529         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
91530         grow the buffers more if it already has to be sufficient.
91531         (build_wcs_upper_buffer): Likewise.
91532         * posix/regexec.c (check_matching): Likewise.
91533         (clean_state_log_if_needed): Likewise.
91534         (extend_buffers): Don't enlarge buffers beyond size of the input
91535         buffer.
91536         Patches mostly by Emil Wojak <emil@wojak.eu>.
91537         * posix/bug-regex32.c: New file.
91538         * posix/Makefile (tests): Add bug-regex32.
91539
91540         * locale/findlocale.c (_nl_find_locale): Return right away if
91541         _nl_explode_name failed.
91542         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
91543
91544         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
91545
91546         * debug/xtrace.sh: Unify messages.
91547         * malloc/memusage.sh: Likewise.
91548
91549         [BZ #12813]
91550         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
91551         time symbol from vDSO.  Substitute with vsyscall if not available.
91552         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
91553         __vdso_time.
91554
91555         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
91556         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
91557         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
91558         Add sendmmsg and internal_sendmmsg.
91559         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
91560         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
91561         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
91562
91563         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
91564         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
91565         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
91566
91567 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
91568
91569         [BZ #12813]
91570         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
91571         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
91572         available.
91573         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
91574         __vdso_getcpu.
91575
91576         [BZ #12814]
91577         * iconvdata/Makefile (tests): Add bug-iconv9.
91578         * iconvdata/bug-iconv9.c: New file.
91579
91580 2011-05-27  Andreas Schwab  <schwab@redhat.com>
91581
91582         [BZ #12814]
91583         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
91584
91585 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
91586
91587         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
91588         (struct user_regs_struct): Change intcs field back to cs.
91589
91590 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
91591
91592         * po/ja.po: Update from translation team.
91593
91594 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
91595
91596         [BZ #12795]
91597         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
91598         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
91599
91600 2011-05-20  Andreas Schwab  <schwab@redhat.com>
91601
91602         * stdlib/longlong.h: Update from GCC.
91603
91604 2011-05-23  Andreas Schwab  <schwab@redhat.com>
91605
91606         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
91607         parameter name.
91608         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
91609         Add parameter name.
91610         (__sysconf): Pass it down.
91611
91612 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
91613
91614         [BZ #12671]
91615         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
91616         some situations.
91617         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
91618         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
91619         add in in __libc_use_alloca calls.  Adjust callers.
91620         (glob): Use malloc in some situations.
91621
91622         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
91623         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
91624         pltexit.
91625
91626 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
91627
91628         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
91629         and CLOCK_BOOTTIME_ALARM.
91630
91631         [BZ #12782]
91632         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
91633         is returned.
91634
91635         * string/_strerror.c (__strerror_r): Print negative errors as signed
91636         numbers.
91637
91638         [BZ #12777]
91639         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
91640         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
91641         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
91642
91643         * configure.in: Fix typo in redirection and correct removal of test
91644         files in two cases.
91645
91646         [BZ #12788]
91647         * locale/setlocale.c (new_composite_name): Fix test to check for
91648         identical name of all categories.
91649
91650         [BZ #12792]
91651         * libio/filedoalloc.c (local_isatty): New function.
91652         (_IO_file_doallocate): Use local_isatty.
91653         * stdio-common/perror.c (perror): In case a new stream is used
91654         forward the stream error.
91655         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
91656         error flag.
91657
91658 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
91659
91660         [BZ #11884]
91661         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
91662         alloca.
91663         * include/alloca.h (extend_alloca_account): Define.
91664
91665         [BZ #11857]
91666         * posix/regex.h: Fix comments with documentation of user-accessible
91667         fields after compilation and describe correct free'ing of pattern
91668         after re_compile_pattern.
91669         Patch by Reuben Thomas <rrt@sc3d.org>.
91670
91671 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
91672
91673         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
91674         and -mno-altivec to prevent the compiler from using Altivec and/or
91675         VSX instructions when the corresponding registers are not available.
91676
91677 2011-05-19  Andreas Schwab  <schwab@redhat.com>
91678
91679         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
91680
91681 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
91682
91683         * libio/freopen.c (freopen): Use __dup2, not dup2.
91684         * libio/freopen64.c (freopen64): Likewise.
91685
91686 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
91687
91688         [BZ #12775]
91689         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
91690         * math/Makefile (tests): Add test-powl.
91691         (CFLAGS-test-powl.c): Define.
91692         * math/test-powl.c: New file.
91693
91694 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
91695
91696         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
91697
91698 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
91699
91700         [BZ #11837]
91701         * iconvdata/gb18030.c: Update to GB18020-2005.
91702
91703 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
91704
91705         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
91706         RE_SYNTAX_POSIX_AWK): Update to match recent development.
91707         Patch by Aharon Robbins <arnold@skeeve.com>.
91708
91709         [BZ #11892]
91710         * stdlib/putenv.c (putenv): Don't always create copy of the variable
91711         on the stack.
91712
91713         [BZ #11895]
91714         * misc/pselect.c (__pselect): Handle timeout value errors hidden
91715         through underflows.
91716
91717         [BZ #12766]
91718         * misc/error.c (error_at_line): Ensure file_name and old_file_name
91719         point to strings before performing equality test for error_one_per_line
91720         mode.
91721
91722         [BZ #11697]
91723         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
91724
91725         [BZ #11820]
91726         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
91727         (struct user_fpregs_struct): Avoid __uint*_t types.
91728
91729         [BZ #6420]
91730         * malloc/mtrace.c (tr_where): Add additional parameter to point to
91731         symbol info.  Use it instead of calling _dl_addr locally.
91732         (lock_and_info): New function.
91733         (tr_freehook): Call lock_and_info and pass symbol info as additional
91734         parameter to tr_where.
91735         (tr_mallochook): Likewise.
91736         (tr_reallochook): Likewise.
91737         (tr_memalignhook): Likewise.
91738
91739         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
91740         used and couldn't be at all thread-safe.
91741
91742 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
91743
91744         * libio/freopen.c (freopen): Don't close old file descriptor
91745         before the new one is opened.  Instead dup the new file descriptor
91746         to the old one after the new stream is created.
91747         * libio/freopen64.c (freopen64): Likewise.
91748         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
91749         * libio/fileops.c (_IO_new_file_close_it): Handle new
91750         _IO_FLAGS2_NOCLOSE flag.
91751         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
91752         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
91753         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
91754         _IO_FLAGS2_NOCLOSE flag.
91755         * include/unistd.h: Add hidden_proto for dup3.
91756         Define __have_dup3.
91757         * io/dup3.c: Define hidden symbol.
91758         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
91759
91760         [BZ #7101]
91761         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
91762         when an incomplete long option is used.
91763         * posix/tst-getopt_long1.c: New file.
91764         * posix/Makefile (tests): Add tst-getopt_long1.
91765
91766         [BZ #10138]
91767         * scripts/config.guess: Update from autoconf-2.68.
91768         * scripts/config.sub: Likewise.
91769
91770         [BZ #10157]
91771         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
91772         tests into ...
91773         (has_cpuclock): ...this.  New function.
91774         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
91775         macro here based on has_cpuclock code.
91776
91777         [BZ #10149]
91778         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
91779         First byte (not low byte) is now always NUL.
91780         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
91781
91782         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
91783         Use non-cancelable interfaces.
91784
91785         [BZ #9809]
91786         * locale/iso-639.def: Add entry for Sorani.
91787
91788         [BZ #11901]
91789         * include/stdlib.h: Move include protection to the right place.
91790         Define abort_msg_s.  Declare __abort_msg with it.
91791         * stdlib/abort.c (__abort_msg): Adjust type.
91792         * assert/assert.c (__assert_fail_base): New function.  Majority
91793         of code from __assert_fail.  Allocate memory for __abort_msg with
91794         mmap.
91795         (__assert_fail): Now call __assert_fail_base.
91796         * assert/assert-perr.c: Remove bulk of implementation.  Use
91797         __assert_fail_base.
91798         * include/assert.hL Declare __assert_fail_base.
91799         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
91800         mmap.
91801         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
91802
91803 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
91804
91805         [BZ #11952]
91806         [BZ #12453]
91807         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
91808         until all modules are registered in the DTV.
91809         * elf/Makefile: Add rules to build and run tst-tls19.
91810         * elf/tst-tls19.c: New file.
91811         * elf/tst-tls19mod1.c: New file.
91812         * elf/tst-tls19mod2.c: New file.
91813         * elf/tst-tls19mod3.c: New file.
91814         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
91815
91816         [BZ #12083]
91817         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
91818         correctly.
91819
91820         [BZ #12601]
91821         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
91822         two-byte sequence errors.
91823         * iconvdata/Makefile (tests): Add bug-iconv8.
91824         * iconvdata/bug-iconv8.c: New file.
91825
91826         [BZ #12626]
91827         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
91828         buf2 definition.
91829
91830         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
91831
91832         [BZ #12432]
91833         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
91834         (dummy_getcfa): New function.
91835         (init): Get _Unwind_GetCFA address, use dummy if not found.
91836         (backtrace_helper): In recursion check, also check whether CFA changes.
91837         (__backtrace): Completely initialize arg.
91838
91839         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
91840         storing incomplete byte sequence in state object.  Avoid testing for
91841         guaranteed too small input if we know there is enough data available.
91842
91843 2011-05-11  Andreas Schwab  <schwab@redhat.com>
91844
91845         * Makeconfig (+link-pie): Indent.
91846         * Rules (binaries-pie): Define if $(have-fpie) and
91847         $(build-shared).
91848         (binaries-shared): Also filter out $(binaries-pie).
91849         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
91850         * nscd/Makefile (others-pie): Add nscd.
91851         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
91852         ($(objpfx)nscd): Remove command override.
91853         * login/Makefile (others-pie): Add pt_chown.
91854         ($(objpfx)pt_chown): Remove command override.
91855         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
91856         remove command overrides.
91857
91858 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
91859
91860         * libio/tst_putwc.c: Fix error messages.
91861
91862         [BZ #12724]
91863         * libio/fileops.c (_IO_new_file_close_it): Always flush when
91864         currently writing and seek to current position when not.
91865         * libio/Makefile (tests): Add bug-fclose1.
91866         * libio/bug-fclose1.c: New file.
91867
91868 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
91869
91870         [BZ #12511]
91871         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
91872         don't set DF_1_NODELETE here.
91873         (do_lookup_x): When entering new entry test for copy relocation
91874         and if necessary set DF_1_NODELETE flag.
91875         * elf/tst-unique4.cc: New file.
91876         * elf/tst-unique4.h: New file.
91877         * elf/tst-unique4lib.cc: New file.
91878         * elf/Makefile: Add rules to build and run tst-unique4.
91879         Patch by Piotr Bury <pbury@goahead.com>.
91880
91881 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
91882
91883         [BZ #12052]
91884         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
91885
91886         [BZ #12625]
91887         * misc/mntent_r.c (addmntent): Flush the stream after the output
91888
91889         [BZ #12393]
91890         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
91891         (is_trusted_path_normalize): Skip initial colon.  Append slash
91892         to empty buffer.  Duplicate is_trusted_path code but allow
91893         constructed patch to be prefix.
91894         (is_dst): Allow $ORIGIN followed by /.
91895         (_dl_dst_substitute): Correct clearing of check_for_trusted.
91896         Correct testing of result of is_trusted_path_normalize
91897         (decompose_rpath): Fix warning.
91898
91899 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
91900
91901         [BZ #11257]
91902         * grp/initgroups.c (internal_getgrouplist): When we found the service
91903         list through the initgroups entry in nsswitch.conf do not always
91904         continue on a successful lookup.  Don't always use the
91905         __nss_group_database value if it is set.
91906         * nss/nsswitch.conf (initgroups): Change action for successful db
91907         lookup to continue for compatibility.
91908
91909 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
91910
91911         [BZ #11532]
91912         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
91913         and CP774 modules.
91914         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
91915         and CP774 modules.
91916         * iconvdata/tst-tables.sh: Likewise.
91917         * iconvdata/cp770.c: New file.
91918         * iconvdata/cp771.c: New file.
91919         * iconvdata/cp772.c: New file.
91920         * iconvdata/cp773.c: New file.
91921         * iconvdata/cp774.c: New file.
91922         * iconvdata/testdata/CP770: New file.
91923         * iconvdata/testdata/CP770..UTF8: New file.
91924         * iconvdata/testdata/CP771: New file.
91925         * iconvdata/testdata/CP771..UTF8: New file.
91926         * iconvdata/testdata/CP772: New file.
91927         * iconvdata/testdata/CP772..UTF8: New file.
91928         * iconvdata/testdata/CP773: New file.
91929         * iconvdata/testdata/CP773..UTF8: New file.
91930         * iconvdata/testdata/CP774: New file.
91931         * iconvdata/testdata/CP774..UTF8: New file.
91932
91933         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
91934         END CHARMAP line.
91935         * iconvdata/gen-8bit-gap.sh: Likewise.
91936         * iconvdata/gen-8bit.sh: Likewise.
91937
91938         * locale/iso-639.def: Add ary entry.
91939
91940         [BZ #11258]
91941         * locale/C-translit.h.in: Add U20A1 transliteration.
91942
91943         [BZ #12178]
91944         * locale/iso-639.def: Add wae entry.
91945         Patch by Kevin Bortis <bortis@translate-wae.ch>.
91946
91947         [BZ #12545]
91948         * locale/programs/localedef.c (construct_output_path): Use ssize_t
91949         for n.
91950
91951         [BZ #12711]
91952         * locale/C-translit.h.in: Add entry for U20B9.
91953         Patch by pravin.d.s@gmail.com.
91954
91955 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
91956
91957         [BZ #12713]
91958         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
91959         ENAMETOOLONG use generic getcwd.
91960         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
91961         in rtld.  Use *stat64.
91962         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
91963         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
91964         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
91965         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
91966         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
91967         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
91968         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
91969         __fstatat64 macros.
91970         * include/dirent.h: Add libc_hidden_proto for rewinddir.
91971         * dirent/rewinddir.c: Add libc_hidden_def.
91972         * sysdeps/mach/hurd/rewinddir.c: Likewise.
91973         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
91974
91975         * include/dirent.h (__alloc_dir): Add flags parameter.
91976         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
91977         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
91978         __alloc_dir.
91979         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
91980         from fdopendir if O_CLOEXEC is already set.
91981
91982 2011-03-15  Alan Modra  <amodra@gmail.com>
91983
91984         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
91985         l_tls_firstbyte_offset non-zero.  Save padding offset in
91986         l_tls_firstbyte_offset for later use.
91987         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
91988         freeing static tls block.
91989
91990 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
91991
91992         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
91993         where #ifdef was intended.  The intent is to prevent ARG_MAX from
91994         being defined by the kernel headers.
91995
91996 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
91997
91998         [BZ #12734]
91999         * resolv/resolv.h: Define RES_NOTLDQUERY.
92000         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
92001         no-tld-query and set RES_NOTLDQUERY.
92002         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
92003         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
92004         modern BIND to search name as TLD unless forbidden.
92005
92006 2011-05-07  Petr Baudis  <pasky@suse.cz>
92007             Ulrich Drepper  <drepper@gmail.com>
92008
92009         [BZ #12393]
92010         * elf/dl-load.c (fillin_rpath): Move trusted path check...
92011         (is_trusted_path): ...to here.
92012         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
92013         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
92014         using is_trusted_path_normalize() in setuid scripts.
92015
92016 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
92017
92018         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
92019         __BEGIN/__END_DECLS.
92020
92021 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
92022
92023         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
92024         NSS_STATUS_NOTFOUND if no record was found.
92025
92026 2011-05-05  Andreas Schwab  <schwab@redhat.com>
92027
92028         * sunrpc/Makefile (headers): Add rpc/netdb.h.
92029         (headers-not-in-tirpc): Remove rpc/netdb.h
92030         * resolv/netdb.h: Revert last change.
92031
92032 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
92033
92034         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
92035         circular dependency between libgcc.a and libc.a.
92036
92037 2011-05-05  Andreas Schwab  <schwab@redhat.com>
92038
92039         * resolv/netdb.h: Don't include <rpc/netdb.h>.
92040         * nis/Makefile: Don't install rpcsvc/*.
92041         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
92042         instead of <rpc/types.h>.
92043         (MAXHOSTNAMELEN): Define.
92044
92045 2011-05-03  Andreas Schwab  <schwab@redhat.com>
92046
92047         * elf/ldconfig.c (add_dir): Don't crash on empty path.
92048
92049 2011-04-28  Maciej Babinski  <mbabinski@google.com>
92050
92051         [BZ #12714]
92052         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
92053         gethostbyname4_r when IPv6 results are possible.
92054
92055 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
92056
92057         [BZ #12723]
92058         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
92059         _PC_PIPE_BUF handling.
92060
92061 2011-04-30  Bruno Haible  <bruno@clisp.org>
92062
92063         [BZ #12717]
92064         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
92065         * resolv/netdb.h (getnameinfo): Change type of flags parameter
92066         to 'int'.
92067         * inet/getnameinfo.c (getnameinfo): Likewise.
92068
92069 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
92070
92071         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
92072         to groups setting in database lookup.
92073         * nss/nsswitch.conf: Add initgroups entry.
92074
92075 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
92076
92077         [BZ #12685]
92078         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
92079         mode string.
92080         Patch by Eric Blake <eblake@redhat.com>.
92081
92082 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
92083
92084         * sunrpc/Makefile (need-export-routines): Add svc_run.
92085         (routines): Remove svc_run.
92086         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
92087         * sunrpc/clnt_perr.c (clnt_perrno): Export.
92088         * sunrpc/svc_run.c (svc_run): Likewise.
92089         * sunrpc/svc_udp.c (svcudp_create): Likewise.
92090
92091 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
92092
92093         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
92094         problem in reallocation in last patch.
92095
92096 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
92097
92098         * sunrpc/Makefile: Move inclusion of Rules.
92099
92100 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
92101
92102         * nss/nss_files/files-initgroups.c: New file.
92103         * nss/Makefile (libnss_files-routines): Add files-initgroups.
92104         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
92105         _nss_files_initgroups_dyn.
92106
92107 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
92108
92109         * elf/elf.h (R_ARM_IRELATIVE): Define.
92110
92111 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
92112
92113         * po/ru.po: Update from translation team.
92114
92115 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
92116
92117         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
92118         dependencies.
92119
92120 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
92121
92122         [BZ #12653]
92123         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
92124         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
92125         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
92126         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
92127         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
92128
92129 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
92130
92131         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
92132         differing bytes.
92133         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
92134         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
92135         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
92136
92137 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
92138
92139         [BZ #12420]
92140         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
92141         storing it.
92142         * stdlib/bug-getcontext.c: New file.
92143         * stdlib/Makefile: Add rules to build and run bug-getcontext.
92144
92145 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
92146
92147         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
92148         instructions into .machine "z9-109".
92149         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
92150         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
92151
92152 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
92153
92154         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
92155         between environment variables and auxiliary vector.
92156
92157 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
92158
92159         * Makefile: Add rules to build linkobj/libc.so.
92160         * include/libc-symbols.h: Define libc_hidden_nolink.
92161         * include/rpc/auth.h: Mark functions which are to be hidden.
92162         * include/rpc/auth_des.h: Likewise.
92163         * include/rpc/auth_unix.h: Likewise.
92164         * include/rpc/clnt.h: Likewise.
92165         * include/rpc/des_crypt.h: Likewise.
92166         * include/rpc/key_prot.h: Likewise.
92167         * include/rpc/pmap_clnt.h: Likewise.
92168         * include/rpc/pmap_prot.h: Likewise.
92169         * include/rpc/pmap_rmt.h: Likewise.
92170         * include/rpc/rpc_msg.h: Likewise.
92171         * include/rpc/svc.h: Likewise.
92172         * include/rpc/svc_auth.h: Likewise.
92173         * include/rpc/xdr.h: Likewise.
92174         * nis/Makefile: Link all DSOs against linkobj/libc.so.
92175         * nss/Makefile: Likewise.
92176         * sunrpc/Makefile: Don't install headers.  Build library with normal
92177         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
92178         * sunrpc/auth_des.c: Hide exported symbols by default, export some
92179         for the compat linking library.  Remove use of INTDEF/INTUSE.
92180         * sunrpc/auth_none.c: Likewise.
92181         * sunrpc/auth_unix.c: Likewise.
92182         * sunrpc/authdes_prot.c: Likewise.
92183         * sunrpc/authuxprot.c: Likewise.
92184         * sunrpc/clnt_gen.c: Likewise.
92185         * sunrpc/clnt_perr.c: Likewise.
92186         * sunrpc/clnt_raw.c: Likewise.
92187         * sunrpc/clnt_simp.c: Likewise.
92188         * sunrpc/clnt_tcp.c: Likewise.
92189         * sunrpc/clnt_udp.c: Likewise.
92190         * sunrpc/clnt_unix.c: Likewise.
92191         * sunrpc/des_crypt.c: Likewise.
92192         * sunrpc/des_soft.c: Likewise.
92193         * sunrpc/get_myaddr.c: Likewise.
92194         * sunrpc/key_call.c: Likewise.
92195         * sunrpc/key_prot.c: Likewise.
92196         * sunrpc/netname.c: Likewise.
92197         * sunrpc/pm_getmaps.c: Likewise.
92198         * sunrpc/pm_getport.c: Likewise.
92199         * sunrpc/pmap_clnt.c: Likewise.
92200         * sunrpc/pmap_prot.c: Likewise.
92201         * sunrpc/pmap_prot2.c: Likewise.
92202         * sunrpc/pmap_rmt.c: Likewise.
92203         * sunrpc/publickey.c: Likewise.
92204         * sunrpc/rpc_cmsg.c: Likewise.
92205         * sunrpc/rpc_common.c: Likewise.
92206         * sunrpc/rpc_dtable.c: Likewise.
92207         * sunrpc/rpc_prot.c: Likewise.
92208         * sunrpc/rpc_thread.c: Likewise.
92209         * sunrpc/rtime.c: Likewise.
92210         * sunrpc/svc.c: Likewise.
92211         * sunrpc/svc_auth.c: Likewise.
92212         * sunrpc/svc_authux.c: Likewise.
92213         * sunrpc/svc_raw.c: Likewise.
92214         * sunrpc/svc_run.c: Likewise.
92215         * sunrpc/svc_simple.c: Likewise.
92216         * sunrpc/svc_tcp.c: Likewise.
92217         * sunrpc/svc_udp.c: Likewise.
92218         * sunrpc/svc_unix.c: Likewise.
92219         * sunrpc/svcauth_des.c: Likewise.
92220         * sunrpc/xcrypt.c: Likewise.
92221         * sunrpc/xdr.c: Likewise.
92222         * sunrpc/xdr_array.c: Likewise.
92223         * sunrpc/xdr_float.c: Likewise.
92224         * sunrpc/xdr_intXX_t.c: Likewise.
92225         * sunrpc/xdr_mem.c: Likewise.
92226         * sunrpc/xdr_rec.c: Likewise.
92227         * sunrpc/xdr_ref.c: Likewise.
92228         * sunrpc/xdr_sizeof.c: Likewise.
92229         * sunrpc/xdr_stdio.c: Likewise.
92230
92231 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
92232
92233         [BZ #12650]
92234         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
92235         * sysdeps/ia64/dl-tls.h: Likewise.
92236         * sysdeps/powerpc/dl-tls.h: Likewise.
92237         * sysdeps/s390/dl-tls.h: Likewise.
92238         * sysdeps/sh/dl-tls.h: Likewise.
92239         * sysdeps/sparc/dl-tls.h: Likewise.
92240         * sysdeps/x86_64/dl-tls.h: Likewise.
92241         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
92242
92243 2011-03-14  Andreas Schwab  <schwab@redhat.com>
92244
92245         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
92246         rpath element also skip the following colon.
92247         (expand_dynamic_string_token): Add is_path parameter and pass
92248         down to DL_DST_REQUIRED and _dl_dst_substitute.
92249         (decompose_rpath): Call expand_dynamic_string_token with
92250         non-zero is_path.  Ignore empty rpaths.
92251         (_dl_map_object_from_fd): Call expand_dynamic_string_token
92252         with zero is_path.
92253
92254 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
92255
92256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
92257         Make cancelable.
92258
92259 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
92260
92261         [BZ #12655]
92262         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
92263         Patch by Filipe David Manana <fdmanana@apache.org>.
92264
92265 2011-04-07  Andreas Schwab  <schwab@redhat.com>
92266
92267         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
92268         Maintain aligned stack.
92269         (CHECK_RSP): Remove unused macro.
92270
92271 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
92272
92273         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
92274         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
92275
92276 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
92277
92278         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
92279
92280         * include/features.h: Mention __USE_XOPEN2K8 in comment.
92281
92282 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
92283
92284         [BZ #12518]
92285         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
92286         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
92287         * sysdeps/x86_64/memmove.c: New file.
92288         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
92289         (memcpy): Renamed to ...
92290         (__new_memcpy): This.
92291         (memcpy): Provide GLIBC_2_14 memcpy.
92292         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
92293         (memcpy): Provide GLIBC_2_2_5 memcpy.
92294
92295 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
92296
92297         [BZ #12631]
92298         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
92299
92300 2011-03-30  Andreas Schwab  <schwab@redhat.com>
92301
92302         * misc/syncfs.c: New file.
92303         * misc/Makefile (routines): Add syncfs.
92304         * posix/unistd.h: Declare syncfs.
92305         * sysdeps/unix/syscalls.list: Add syncfs.
92306
92307 2011-04-01  Andreas Schwab  <schwab@redhat.com>
92308
92309         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
92310         open_by_handle_at.
92311         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
92312         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
92313         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
92314         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
92315         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
92316         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
92317         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
92318
92319 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
92320
92321         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
92322         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
92323         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
92324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
92325         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
92326         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
92327         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
92328
92329         * io/Makefile: Compile fallocate.c, fallocate64.c, and
92330         sync_file_range.c with -fexceptions.
92331         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
92332         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
92333         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
92334         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
92335         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
92336         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
92337         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
92338         sync_file_range as cancellation point
92339         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
92340         now a wrapper around __call_sync_file_range with cancellation handling.
92341         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
92342         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
92343         function name to __call_sync_file_range.
92344         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
92345         Add call_sync_file_range.
92346
92347 2011-04-01  Andreas Schwab  <schwab@redhat.com>
92348
92349         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
92350         bits/timex.h.
92351
92352 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
92353
92354         * iconv/iconv.h: Fix typo in comment.
92355         * io/fcntl.h: Likewise.
92356         * libio/stdio.h: Likewise.
92357         * posix/spawn.h: Likewise.
92358         * posix/unistd.h: Likewise.
92359         * stdlib/stdlib.h: Likewise.
92360         * time/time.h: Likewise.
92361         * wcsmbs/wchar.h: Likewise.
92362
92363         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
92364         open_by_handle): Add.
92365         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
92366         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
92367         Augment a few comments.
92368         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
92369         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
92370         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
92371         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
92372         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
92373         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
92374         open_by_handle.
92375
92376         * io/fcntl.h (AT_EMPTY_PATH): Define.
92377
92378 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
92379
92380         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
92381         * sysdeps/unix/sysv/linux/bits/time.h: New file.
92382         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
92383         to...
92384         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
92385         * Versions.def: Add GLIBC_2.14.
92386         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
92387         Export.
92388
92389 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
92390
92391         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
92392         round counter.
92393         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
92394
92395 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
92396
92397         [BZ #12597]
92398         * string/test-strncmp.c (do_page_test): New function.
92399         (check2): Likewise.
92400         (test_main): Call check2.
92401         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
92402
92403 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
92404
92405         [BZ #12587]
92406         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
92407         Handle cache information in CPU leaf 4.
92408         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
92409
92410 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
92411
92412         [BZ #12583]
92413         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
92414         character representation.
92415         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
92416
92417 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
92418
92419         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
92420         END(__isnan) to END(__isnanf) to match function entry point/label
92421         EALIGN(__isnanf,...).
92422
92423 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
92424
92425         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
92426
92427 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
92428
92429         [BZ #12510]
92430         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
92431         copy from the symbol referenced in the relocation to initialize the
92432         used variable.
92433         Patch by Piotr Bury <pbury@goahead.com>.
92434         * elf/Makefile: Add rules to build and tst-unique3.
92435         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
92436         * elf/tst-unique3.cc: New file.
92437         * elf/tst-unique3.h: New file.
92438         * elf/tst-unique3lib.cc: New file.
92439         * elf/tst-unique3lib2.cc: New file.
92440
92441         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
92442
92443 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
92444
92445         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
92446         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
92447         to _start.
92448
92449 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
92450
92451         * elf/dl-load.c (_dl_map_object): If we are looking for the first
92452         to-be-loaded object along a path to loader is ld.so.
92453
92454 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
92455             Ulrich Drepper  <drepper@gmail.com>
92456
92457         * sysdeps/x86_64/memset.S: After aligning destination, code
92458         branches to different locations depending on the value of
92459         misalignment, when multiarch is enabled. Fix this.
92460
92461 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
92462
92463         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
92464         Set _x86_64_preferred_memory_instruction for AMD processsors.
92465         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
92466         Set bit_Prefer_SSE_for_memop for AMD processors.
92467
92468 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
92469
92470         * libio/fmemopen.c (fmemopen): Optimize a bit.
92471
92472 2011-03-03  Andreas Schwab  <schwab@redhat.com>
92473
92474         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
92475
92476 2011-03-03  Roland McGrath  <roland@redhat.com>
92477
92478         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
92479
92480 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
92481
92482         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
92483         __bzero_ultra1 instead of __memset_ultra1.
92484
92485 2011-02-23  Andreas Schwab  <schwab@redhat.com>
92486             Ulrich Drepper  <drepper@gmail.com>
92487
92488         [BZ #12509]
92489         * include/link.h (struct link_map): Add l_orig_initfini.
92490         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
92491         returning unsuccessfully.
92492         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
92493         close of a file loaded at startup, restore the original l_initfini
92494         list.
92495         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
92496         list, store the pointer.
92497         * elf/Makefile ($(objpfx)noload-mem): New rule.
92498         (noload-ENV): Define.
92499         (tests): Add $(objpfx)noload-mem.
92500         * elf/noload.c: Include <memcheck.h>.
92501         (main): Call mtrace.  Close all opened handles.
92502
92503 2011-02-17  Andreas Schwab  <schwab@redhat.com>
92504
92505         [BZ #12454]
92506         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
92507         dependencies are missing.
92508
92509 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
92510
92511         Fix __if_freereq crash: Unlike the generic version which uses free,
92512         Hurd needs munmap.
92513         * sysdeps/mach/hurd/ifreq.h: New file.
92514
92515 2011-01-27  Petr Baudis  <pasky@suse.cz>
92516             Ulrich Drepper  <drepper@gmail.com>
92517
92518         [BZ 12445]#
92519         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
92520         to extend_alloca().
92521         * stdio-common/bug23.c: New file.
92522         * stdio-common/Makefile (tests): Add bug23.
92523
92524 2010-09-28  Andreas Schwab  <schwab@redhat.com>
92525             Ulrich Drepper  <drepper@gmail.com>
92526
92527         [BZ #12489]
92528         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
92529         before performing relro protection.  At old place add assertion
92530         to make sure nothing changed.
92531
92532 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
92533             Glauber de Oliveira Costa  <glommer@gmail.com>
92534
92535         * elf/elf.h: Add new ARM TLS relocs.
92536
92537 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
92538
92539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
92540         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
92541         cast from r3.
92542         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
92543         'tests' variable.
92544         * sysdeps/wordsize-64/tst-writev.c: New file.
92545
92546 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
92547
92548         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
92549         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
92550         insns in _dl_start to prevent a TOC reference before relocs are
92551         resolved.
92552
92553 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
92554
92555         [BZ #12469]
92556         * Makeconfig: Remove RANLIB definition.
92557         * Makerules: Don't use RANLIB.
92558         * aclocal.m4: Remove ranlib test.
92559         * configure.in: No need to check for ranlib.
92560         * elf/rtld-Rules: Don't use RANLIB.
92561
92562 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
92563
92564         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
92565         protection macro.
92566         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
92567         inclusion protection macro.
92568
92569         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
92570         SIGRTMIN and SIGRTMAX and print information in that case only when
92571         SIGRTMIN is defined.
92572
92573 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
92574
92575         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
92576         arginfo fn returning -1.
92577
92578         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
92579         and thousands string is zero terminated.
92580
92581 2011-02-03  Andreas Schwab  <schwab@redhat.com>
92582
92583         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
92584         sysdeps/unix/sysv/linux/bits/socket.h.
92585
92586 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
92587
92588         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
92589         (__CPU_COUNT): Remove old macros.
92590         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
92591         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
92592         (__CPU_ALLOC, __CPU_FREE): Add macros.
92593         (__sched_cpualloc, __sched_cpufree): Add declarations.
92594
92595 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
92596
92597         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
92598         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
92599         * nscd/aicache.c (addhstaiX): Return timeout of added value.
92600         (readdhstai): Return value of addhstaiX call.
92601         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
92602         (addgrbyX): Return value returned by cache_addgr.
92603         (readdgrbyname): Return value returned by addgrbyX.
92604         (readdgrbygid): Likewise.
92605         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
92606         (addpwbyX): Return value returned by cache_addpw.
92607         (readdpwbyname): Return value returned by addhstbyX.
92608         (readdpwbyuid): Likewise.
92609         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
92610         (addservbyX): Return value returned by cache_addserv.
92611         (readdservbyname): Return value returned by addservbyX:
92612         (readdservbyport): Likewise.
92613         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
92614         (addhstbyX): Return value returned by cache_addhst.
92615         (readdhstbyname): Return value returned by addhstbyX.
92616         (readdhstbyaddr): Likewise.
92617         (readdhstbynamev6): Likewise.
92618         (readdhstbyaddrv6): Likewise.
92619         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
92620         (readdinitgroups): Return value returned by addinitgroupsX.
92621         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
92622         (prune_cache): Keep track of timeout value of re-added entries.
92623         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
92624         * nscd/nscd.h: Adjust prototypes of readd* functions.
92625
92626 2011-02-04  Roland McGrath  <roland@redhat.com>
92627
92628         * nis/nis_server.c (nis_servstate): Use the right name for 0.
92629         (nis_stats): Likewise.
92630         * nis/nis_modify.c (nis_modify): Likewise.
92631         * nis/nis_remove.c (nis_remove): Likewise.
92632         * nis/nis_add.c (nis_add): Likewise.
92633
92634         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
92635
92636         * posix/fnmatch_loop.c: Add some consts.
92637
92638         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
92639
92640 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
92641
92642         [BZ #12460]
92643         * config.make.in (config-cflags-novzeroupper): Define.
92644         * configure.in: Substitute libc_cv_cc_novzeroupper.
92645         * elf/Makefile (AVX-CFLAGS): Define.
92646         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
92647         (CFLAGS-tst-auditmod4a.c): Likewise.
92648         (CFLAGS-tst-auditmod4b.c): Likewise.
92649         (CFLAGS-tst-auditmod6b.c): Likewise.
92650         (CFLAGS-tst-auditmod6c.c): Likewise.
92651         (CFLAGS-tst-auditmod7b.c): Likewise.
92652         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
92653
92654 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
92655
92656         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
92657         function to the callback.
92658         Patch partly by Jiri Olsa <jolsa@redhat.com>.
92659
92660 2011-02-02  Andreas Schwab  <schwab@redhat.com>
92661
92662         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
92663         of errno.
92664
92665 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
92666
92667         [BZ #11724]
92668         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
92669         of constructors.
92670         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
92671         of destructors.
92672         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
92673
92674         [BZ #11724]
92675         * elf/Makefile: Add rules to build and run new test.
92676         * elf/tst-initorder.c: New file.
92677         * elf/tst-initorder.exp: New file.
92678         * elf/tst-initordera1.c: New file.
92679         * elf/tst-initordera2.c: New file.
92680         * elf/tst-initordera3.c: New file.
92681         * elf/tst-initordera4.c: New file.
92682         * elf/tst-initorderb1.c: New file.
92683         * elf/tst-initorderb2.c: New file.
92684         * elf/tst-order-a1.c: New file.
92685         * elf/tst-order-a2.c: New file.
92686         * elf/tst-order-a3.c: New file.
92687         * elf/tst-order-a4.c: New file.
92688         * elf/tst-order-b1.c: New file.
92689         * elf/tst-order-b2.c: New file.
92690         * elf/tst-order-main.c: New file.
92691         New test case by George Gensure <werkt0@gmail.com>.
92692
92693 2010-10-01  Andreas Schwab  <schwab@redhat.com>
92694
92695         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
92696         decoding ACE if AI_CANONIDN.
92697
92698 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
92699
92700         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
92701
92702 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
92703
92704         * version.h (RELEASE): Bump for 2.13 release.
92705         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
92706
92707         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
92708
92709         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
92710         MADV_NOHUGEPAGE.
92711         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
92712         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
92713         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
92714         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
92715         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
92716         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
92717
92718         * posix/getconf.c: Update copyright year.
92719         * catgets/gencat.c: Likewise.
92720         * csu/version.c: Likewise.
92721         * debug/catchsegv.sh: Likewise.
92722         * debug/xtrace.sh: Likewise.
92723         * elf/ldconfig.c: Likewise.
92724         * elf/ldd.bash.in: Likewise.
92725         * elf/sprof.c (print_version): Likewise.
92726         * iconv/iconv_prog.c: Likewise.
92727         * iconv/iconvconfig.c: Likewise.
92728         * locale/programs/locale.c: Likewise.
92729         * locale/programs/localedef.c: Likewise.
92730         * malloc/memusage.sh: Likewise.
92731         * malloc/mtrace.pl: Likewise.
92732         * nscd/nscd.c (print_version): Likewise.
92733         * nss/getent.c: Likewise.
92734
92735         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
92736         PF_CAIF, and PF_ALG.
92737         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
92738
92739 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
92740
92741         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
92742         (modules-names): Use them.
92743         (ifunc-test-modules, ifunc-pie-tests): Define.
92744         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
92745         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
92746         (test-extras): Likewise.
92747         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
92748         $(compile-command.c).
92749         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
92750         (all-built-dso): Define.
92751         (check-textrel.out, check-execstack.out): Depend on it.
92752
92753         * configure.in: Don't override --enable-multi-arch.
92754
92755 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
92756
92757         [BZ #6812]
92758         * nscd/hstcache.c (tryagain): Define.
92759         (cache_addhst): Return tryagain not notfound for temporary errors.
92760         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
92761         failed.
92762
92763 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
92764
92765         [BZ #10563]
92766         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
92767         to make the syscall.
92768         * sysdeps/unix/sysv/linux/setgroups.c: New file.
92769
92770         [BZ #12378]
92771         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
92772         and fall back to matching as normal character if the string ends before
92773         the matching ']' is found.  This is what POSIX requires.
92774         * posix/testfnm.c: Adjust test result.
92775         * posix/globtest.sh: Adjust test result.  Add new test.
92776         * posix/tst-fnmatch.input: Likewise.
92777         * posix/tst-fnmatch2.c: Add new test.
92778
92779 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
92780
92781         * elf/Makefile (check-execstack): Revert last change.  Depend on
92782         check-execstack.h.
92783         (check-execstack.h): New target.
92784         (generated): Add check-execstack.h.
92785         * elf/check-execstack.c: Include "check-execstack.h".
92786         (main): Revert last change.
92787         (handle_file): Return zero if GNU_STACK is absent and
92788         DEFAULT_STACK_PERMS doesn't include PF_X.
92789
92790 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
92791
92792         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
92793         in child fails because the descriptor is already closed.
92794         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
92795         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
92796         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
92797
92798         [BZ #12397]
92799         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
92800         syscall.
92801
92802         [BZ #10484]
92803         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
92804         temporary buffer used to handle multi lookups locally.
92805         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
92806
92807 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
92808
92809         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
92810         loader is ld.so.
92811
92812 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
92813
92814         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
92815         alignment for SSE2.
92816
92817 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
92818
92819         [BZ #12394]
92820         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
92821         characters.  When rounding increased number of integer digits recompute
92822         number of groups.
92823         * stdio-common/tst-grouping.c: New file.
92824         * stdio-common/Makefile: Add rules to build and run tst-grouping.
92825
92826 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
92827
92828         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
92829         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
92830
92831         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
92832         void.
92833         * bits/select.h: Likewise.
92834
92835 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
92836
92837         * po/ja.po: Update from translation team.
92838
92839 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
92840
92841         [BZ #11155]
92842         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
92843         implementation just like for lxstat, fxstatat, et al.
92844
92845 2010-12-27  Jim Meyering  <meyering@redhat.com>
92846
92847         [BZ #12348]
92848         * posix/regexec.c (build_trtable): Return failure indication upon
92849         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
92850
92851 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
92852
92853         [BZ #12201]
92854         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
92855         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
92856         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
92857         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
92858
92859         [BZ #12207]
92860         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
92861
92862         [BZ #12204]
92863         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
92864         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
92865
92866 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
92867
92868         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
92869         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
92870         script has SORT_BY_INIT_PRIORITY.
92871         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
92872         NO_CTORS_DTORS_SECTIONS is defined.
92873         * elf/soinit.c: Likewise.
92874         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
92875         NO_CTORS_DTORS_SECTIONS is defined.
92876         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
92877         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
92878         * sysdeps/sh/init-first.c: Likewise.
92879         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
92880
92881 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
92882
92883         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
92884         always use the slow path.
92885
92886 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
92887
92888         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
92889         similar rule which adds the sysdep directories to the header search in
92890         order to pick up the correct platform stackinfo.h.
92891         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
92892         perform test if it is, otherwise return successfully without testing.
92893         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
92894         DEFAULT_STACK_PERMS define in stackinfo.h.
92895         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
92896         defined in stackinfo.h.
92897         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
92898         DEFAULT_STACK_PERMS defined in stackinfo.h.
92899         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
92900         * sysdeps/ia64/stackinfo.h: Likewise.
92901         * sysdeps/s390/stackinfo.h: Likewise.
92902         * sysdeps/sh/stackinfo.h: Likewise.
92903         * sysdeps/sparc/stackinfo.h: Likewise.
92904         * sysdeps/x86_64/stackinfo.h: Likewise.
92905         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
92906         PF_X for powerpc64.  Retain PF_X for powerpc32.
92907
92908 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
92909
92910         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
92911         accurately.
92912         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
92913         GETDENTS_64BIT_ALIGNED.
92914
92915 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
92916
92917         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
92918
92919 2010-12-10  Andreas Schwab  <schwab@redhat.com>
92920
92921         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
92922         _GNU_SOURCE.
92923
92924         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
92925         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
92926         Remove __restrict.
92927         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
92928         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
92929
92930 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
92931
92932         [BZ #11655]
92933         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
92934         are initialized.
92935
92936 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
92937
92938         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
92939
92940 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
92941
92942         * po/it.po: Update from translation team.
92943
92944 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
92945
92946         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
92947         unused codes.
92948
92949 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
92950
92951         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
92952
92953 2010-11-24  Andreas Schwab  <schwab@redhat.com>
92954
92955         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
92956         specially.
92957         (gaih_getanswer_slice): Likewise.
92958
92959 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
92960
92961         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
92962
92963 2010-05-31  Petr Baudis  <pasky@suse.cz>
92964
92965         [BZ #11149]
92966         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
92967         silently even in the chroot mode.
92968
92969 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
92970
92971         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
92972         last patch a bit.  Pretty printing
92973
92974 2010-05-31  Petr Baudis <pasky@suse.cz>
92975
92976         [BZ #10085]
92977         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
92978         initialization of skip_initgroups_dyn.
92979
92980 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
92981
92982         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
92983         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
92984
92985 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
92986
92987         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
92988
92989 2010-11-11  Andreas Schwab  <schwab@redhat.com>
92990
92991         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
92992         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
92993         (tst-fnmatch-ENV): Set MALLOC_TRACE.
92994         ($(objpfx)tst-fnmatch-mem): New rule.
92995         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
92996         * posix/tst-fnmatch.c (main): Call mtrace.
92997
92998 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
92999
93000         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
93001         Support Intel processor model 6 and model 0x2c.
93002
93003 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
93004
93005         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
93006           signed comparison.
93007
93008 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
93009
93010         [BZ #12205]
93011         * string/test-strncasecmp.c (check_result): New function.
93012         (do_one_test): Use it.
93013         (check1): New function.
93014         (test_main): Use it.
93015         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
93016         Support strcasecmp and strncasecmp.
93017
93018 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
93019
93020         [BZ #12194]
93021         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
93022         * sysdeps/x86_64/bits/byteswap.h: Likewise.
93023
93024 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
93025
93026         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
93027         IFUNC support.
93028         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
93029         memset-x86-64.
93030         * sysdeps/x86_64/multiarch/bzero.S: New file.
93031         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
93032         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
93033         * sysdeps/x86_64/multiarch/memset.S: New file.
93034         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
93035         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
93036         Set bit_Prefer_SSE_for_memop for Intel processors.
93037         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
93038         Define.
93039         (index_Prefer_SSE_for_memop): Define.
93040         (HAS_PREFER_SSE_FOR_MEMOP): Define.
93041
93042 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
93043
93044         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
93045         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
93046
93047 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
93048
93049         [BZ #12191]
93050         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
93051         (__x86_64_raw_data_cache_size_half): Likewise.
93052         (__x86_64_raw_shared_cache_size): Likewise.
93053         (__x86_64_raw_shared_cache_size_half): Likewise.
93054
93055         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
93056         (__x86_64_raw_data_cache_size_half): Likewise.
93057         (__x86_64_raw_shared_cache_size): Likewise.
93058         (__x86_64_raw_shared_cache_size_half): Likewise.
93059         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
93060         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
93061         and __x86_64_raw_shared_cache_size_half.  Round
93062         __x86_64_data_cache_size_half, __x86_64_data_cache_size
93063         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
93064         to multiple of 256 bytes.
93065
93066 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
93067
93068         [BZ #12167]
93069         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
93070         of inacessible symlinks.  Verify result of symlink before returning it.
93071         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
93072         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
93073
93074 2010-10-28  Erich Ritz  <erichritz@gmail.com>
93075
93076         * math/math.h (isinf): Fix typo in comment.
93077
93078 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
93079
93080         * po/da.po: Update from translation team.
93081
93082 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
93083
93084         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
93085         is added to the list.
93086
93087 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
93088             Ulrich Drepper  <drepper@gmail.com>
93089
93090         * elf/dl-object.c (_dl_new_object): Don't append the new object to
93091         the global list here.  Move code to...
93092         (_dl_add_to_namespace_list): ...here.  New function.
93093         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
93094         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
93095         * elf/dl-load.c (lose): Don't remove the element from the list.
93096         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
93097         (_dl_map_object): Likewise.
93098
93099 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
93100
93101         [BZ #12159]
93102         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
93103         into all bytes of SSE register.
93104         Patch by Richard Li <richardpku@gmail.com>.
93105
93106 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
93107
93108         [BZ #12140]
93109         * malloc/malloc.c (_int_free): Fill correct number of bytes when
93110         perturbing.
93111
93112 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
93113
93114         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
93115         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
93116         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
93117         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
93118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
93119         submachine.
93120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
93121
93122 2010-10-22  Andreas Schwab  <schwab@redhat.com>
93123
93124         * include/dlfcn.h (__RTLD_SECURE): Define.
93125         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
93126         mode & __RTLD_SECURE instead.
93127         (open_path): Rename preloaded parameter to secure.
93128         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
93129         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
93130         * elf/dl-deps.c (openaux): Likewise.
93131         * elf/rtld.c (struct map_args): Remove is_preloaded.
93132         (map_doit): Don't use it.
93133         (dl_main): Likewise.
93134         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
93135         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
93136
93137 2010-09-09  Andreas Schwab  <schwab@redhat.com>
93138
93139         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
93140         (sysd-rules-targets): Remove duplicates.
93141         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
93142         rtld-%.$o dependency.
93143
93144 2010-10-18  Andreas Schwab  <schwab@redhat.com>
93145
93146         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
93147         _dl_map_object do it.
93148
93149 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
93150
93151         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
93152         fast fma builtins, define the macros in the C99 standard.
93153         (FP_FAST_FMAF): Likewise.
93154         (FP_FAST_FMAL): Likewise.
93155         * sysdeps/x86_64/bits/mathdef.h: Likewise.
93156
93157         * bits/mathdef.h: Update copyright year.
93158         * sysdeps/powerpc/bits/mathdef.h: Likewise.
93159
93160 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
93161
93162         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
93163         builtins, define the macros in the C99 standard.
93164         (FP_FAST_FMAF): Likewise.
93165         (FP_FAST_FMAL): Likewise.
93166         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
93167         multiply/add.
93168         (FP_FAST_FMAF): Likewise.
93169
93170 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
93171
93172         [BZ #3268]
93173         * math/libm-test.inc (fma_test): Some new testcases.
93174         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
93175         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
93176         y and infinite z.  Do multiplication by C already in long double.
93177         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
93178         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
93179         y and infinite z.  Do bitwise or of inexact bit into u.d.
93180         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
93181         * sysdeps/i386/fpu/s_fmaf.S: Removed.
93182         * sysdeps/i386/fpu/s_fma.S: Removed.
93183         * sysdeps/i386/fpu/s_fmal.S: Removed.
93184
93185 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
93186
93187         [BZ #3268]
93188         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
93189         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
93190         computation is not scheduled after fetestexcept.  Fix value
93191         of minimum denormal long double.
93192
93193 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
93194
93195         [BZ #3268]
93196         * math/libm-test.inc (fma_test): Add some more tests.
93197         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
93198         correctly.
93199
93200 2010-10-15  Andreas Schwab  <schwab@redhat.com>
93201
93202         * scripts/data/localplt-s390-linux-gnu.data: New file.
93203         * scripts/data/localplt-s390x-linux-gnu.data: New file.
93204
93205 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
93206
93207         [BZ #3268]
93208         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
93209         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
93210         instead of dbl-64.
93211         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
93212         inlines.
93213         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
93214         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
93215         if one of x and y is very large and the other is subnormal.
93216         * sysdeps/s390/fpu/s_fmaf.c: New file.
93217         * sysdeps/s390/fpu/s_fma.c: New file.
93218         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
93219         * sysdeps/powerpc/fpu/s_fma.S: New file.
93220         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
93221         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
93222         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
93223
93224 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
93225
93226         [BZ #3268]
93227         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
93228         fma tests.
93229         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
93230         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
93231         * sysdeps/i386/i686/multiarch/s_fma.c: Include
93232         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
93233         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
93234         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
93235         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
93236
93237 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
93238
93239         [BZ #12078]
93240         * posix/regcomp.c (parse_branch): One more memory leak plugged.
93241         * posix/bug-regex31.input: Add test case.
93242
93243 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
93244
93245         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
93246         * posix/bug-regex31.input: New file.
93247
93248         [BZ #12078]
93249         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
93250         (parse_sub_exp): Fix last change, use postorder.
93251
93252         * posix/bug-regex31.c: New file.
93253         * posix/Makefile: Add rules to build and run bug-regex31.
93254
93255         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
93256
93257         [BZ #12078]
93258         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
93259
93260         [BZ #12108]
93261         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
93262         to have entries in sys_siglist.
93263
93264         [BZ #12093]
93265         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
93266         be NULL.
93267
93268 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
93269
93270         [BZ #3268]
93271         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
93272         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
93273         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
93274         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
93275         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
93276         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
93277         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
93278         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
93279         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
93280         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
93281         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
93282         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
93283         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
93284         * math/ftestexcept.c (fetestexcept): Likewise.
93285         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
93286         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
93287         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
93288         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
93289         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
93290         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
93291         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
93292
93293 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
93294
93295         [BZ #12107]
93296         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
93297         newline.
93298
93299 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
93300
93301         * string/bug-strstr1.c: New file.
93302         * string/Makefile: Add rules to build and run bug-strstr1.
93303
93304 2010-10-05  Eric Blake  <eblake@redhat.com>
93305
93306         [BZ #12092]
93307         * string/str-two-way.h (two_way_long_needle): Always clear memory
93308         when skipping input due to the shift table.
93309
93310 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
93311
93312         [BZ #12005]
93313         * malloc/mcheck.c: Handle large requests.
93314
93315         [BZ #12077]
93316         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
93317         for strncmp and strncasecmp.
93318         * string/stratcliff.c: Add tests for strcmp and strncmp.
93319         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
93320
93321 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
93322
93323         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
93324         __set_fpscr.
93325
93326 2010-09-30  Andreas Jaeger  <aj@suse.de>
93327
93328         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
93329         (CGROUP_SUPER_MAGIC): Define.
93330         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
93331         Handle btrfs and cgroup file systems.
93332         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
93333         Likewise.
93334
93335 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
93336
93337         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
93338         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
93339
93340 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
93341
93342         [BZ #12067]
93343         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
93344         trying to locate the ELF header.
93345
93346 2010-09-27  Andreas Schwab  <schwab@redhat.com>
93347
93348         [BZ #11611]
93349         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
93350         Mask out sign-bit copies when constructing f_fsid.
93351
93352 2010-09-24  Petr Baudis <pasky@suse.cz>
93353
93354         * debug/stack_chk_fail_local.c: Add missing licence exception.
93355         * debug/warning-nop.c: Likewise.
93356
93357 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
93358
93359         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
93360         implementing getdents64 using getdents syscall, set d_type if
93361         __ASSUME_GETDENTS32_D_TYPE.
93362
93363 2010-09-16  Andreas Schwab  <schwab@redhat.com>
93364
93365         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
93366         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
93367
93368 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
93369
93370         [BZ #12037]
93371         * posix/unistd.h: Undo change of feature selection for ftruncate from
93372         2010-01-11.
93373
93374 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
93375
93376         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
93377         detection.
93378
93379 2010-09-20  Andreas Schwab  <schwab@redhat.com>
93380
93381         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
93382         fanotify_mark.
93383         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
93384
93385 2010-09-14  Andreas Schwab  <schwab@redhat.com>
93386
93387         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
93388         variables after CHECK_SP call.
93389         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
93390
93391 2010-09-13  Andreas Schwab  <schwab@redhat.com>
93392             Ulrich Drepper  <drepper@redhat.com>
93393
93394         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
93395         re-relocationg ld.so.
93396         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
93397         _dl_init_paths call.
93398         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
93399         here anymore.
93400
93401 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
93402
93403         * resolv/res_init.c (__res_vinit): Count the default server we added.
93404
93405 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
93406             Ulrich Drepper  <drepper@redhat.com>
93407
93408         [BZ #11968]
93409         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
93410         (____longjmp_chk): Use %ebx for saving value across system call.
93411         Add unwind info.
93412
93413 2010-09-06  Andreas Schwab  <schwab@redhat.com>
93414
93415         * manual/Makefile: Don't mix pattern rules with normal rules.
93416
93417 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
93418
93419         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
93420         operation.
93421         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
93422         * libio/iofopncook.c (_IO_cookie_init): Likewise.
93423         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
93424         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
93425         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
93426         Likewise.
93427
93428 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
93429
93430         [BZ #11979]
93431         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
93432         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
93433
93434 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
93435
93436         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
93437         * sysdeps/x86_64/addmul_1.S: Likewise.
93438         * sysdeps/x86_64/lshift.S: Likewise.
93439         * sysdeps/x86_64/mul_1.S: Likewise.
93440         * sysdeps/x86_64/rshift.S: Likewise.
93441         * sysdeps/x86_64/sub_n.S: Likewise.
93442         * sysdeps/x86_64/submul_1.S: Likewise.
93443
93444 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
93445
93446         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
93447         Define __sched_param instead of SCHED_* and sched_param when
93448         <bits/sched.h> is included with __need_schedparam defined.
93449         * bits/sched.h [__need_schedparam]
93450         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
93451         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
93452         (__defined_schedparam): Define to 1.
93453         (__sched_param): New structure, identical to sched_param.
93454         (__need_schedparam): Undefine.
93455
93456 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
93457
93458         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
93459         (epoll_create1): Declare.
93460
93461         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
93462
93463 2010-08-31  Andreas Schwab  <schwab@redhat.com>
93464
93465         [BZ #7066]
93466         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
93467         shifting retval into place.
93468
93469 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
93470
93471         * nis/rpcsvc/nis.h: Update copyright notice.
93472         * nis/rpcsvc/nis.x: Likewise.
93473         * nis/rpcsvc/nis_callback.h: Likewise.
93474         * nis/rpcsvc/nis_callback.x: Likewise.
93475         * nis/rpcsvc/nis_object.x: Likewise.
93476         * nis/rpcsvc/nis_tags.h: Likewise.
93477         * nis/rpcsvc/yp.h: Likewise.
93478         * nis/rpcsvc/yp.x: Likewise.
93479         * nis/rpcsvc/ypupd.h: Likewise.
93480         * nis/yp_xdr.c: Likewise.
93481         * nis/ypupdate_xdr.c: Likewise.
93482
93483         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
93484         mainly the body of pmap_getport.  Add parameters to specify timeouts.
93485         (pmap_getport): Use __libc_rpc_getport.
93486         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
93487         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
93488         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
93489
93490 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
93491
93492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
93493         fanotify_mark.
93494
93495 2010-08-27  Roland McGrath  <roland@redhat.com>
93496
93497         * sysdeps/i386/i686/multiarch/Makefile
93498         (CFLAGS-varshift.c): New variable.
93499
93500 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
93501
93502         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
93503         * sysdeps/i386/i686/multiarch/varshift.c: New file.
93504
93505         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
93506
93507         * sysdeps/x86_64/strlen.S: Minimal code improvement.
93508
93509 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
93510
93511         * sysdeps/x86_64/strlen.S: Unroll the loop.
93512         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
93513         strlen-sse2 strlen-sse2-bsf.
93514         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
93515         __strlen_no_bsf if bit_Slow_BSF is set.
93516         (__strlen_sse42): Removed.
93517         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
93518         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
93519
93520 2010-08-25  Roland McGrath  <roland@redhat.com>
93521
93522         * sysdeps/x86_64/multiarch/varshift.S: File removed.
93523         * sysdeps/x86_64/multiarch/varshift.c: New file.
93524         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
93525         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
93526         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
93527         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
93528
93529 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
93530
93531         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
93532         strlen-sse2 strlen-sse2-bsf.
93533         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
93534         __strlen_sse2_bsf if bit_Slow_BSF is unset.
93535         (__strlen_sse2): Removed.
93536         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
93537         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
93538         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
93539         bit_Slow_BSF for Atom.
93540         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
93541         (index_Slow_BSF): Define.
93542         (HAS_SLOW_BSF): Define.
93543
93544 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
93545
93546         [BZ #10851]
93547         * resolv/res_init.c (__res_vinit): When no server address at all
93548         is given default to loopback.
93549
93550 2010-08-24  Roland McGrath  <roland@redhat.com>
93551
93552         * configure.in: Remove config-name.h generation.
93553         * configure: Regenerated.
93554         * config-name.in: File removed.
93555         * scripts/config-uname.sh: New file.
93556         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
93557         ($(objdir)config-name.h): New target.
93558
93559         * sunrpc/rpc_parse.h: Avoid nested comment.
93560
93561 2010-08-24  Richard Henderson  <rth@redhat.com>
93562             Ulrich Drepper  <drepper@redhat.com>
93563             H.J. Lu  <hongjiu.lu@intel.com>
93564
93565         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
93566         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
93567         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
93568         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
93569         _mm_alignr_epi8 with _mm_loadu_si128.
93570         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
93571         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
93572         (__m128i_shift_right): Removed.
93573         * sysdeps/i386/i686/multiarch/varshift.h: New file.
93574         * sysdeps/i386/i686/multiarch/varshift.S: New file.
93575         * sysdeps/x86_64/multiarch/varshift.h: New file.
93576         * sysdeps/x86_64/multiarch/varshift.S: New file.
93577
93578 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
93579
93580         * configure.in: Move assembler checks to before sysdep dir checking.
93581
93582 2010-08-20  Petr Baudis  <pasky@suse.cz>
93583
93584         * LICENSES: Sync the sunrpc license.
93585
93586 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
93587
93588         * sunrpc/auth_des.c: Update copyright notice once again.
93589         * sunrpc/auth_none.c: Likewise.
93590         * sunrpc/auth_unix.c: Likewise.
93591         * sunrpc/authdes_prot.c: Likewise.
93592         * sunrpc/authuxprot.c: Likewise.
93593         * sunrpc/bindrsvprt.c: Likewise.
93594         * sunrpc/clnt_gen.c: Likewise.
93595         * sunrpc/clnt_perr.c: Likewise.
93596         * sunrpc/clnt_raw.c: Likewise.
93597         * sunrpc/clnt_simp.c: Likewise.
93598         * sunrpc/clnt_tcp.c: Likewise.
93599         * sunrpc/clnt_udp.c: Likewise.
93600         * sunrpc/clnt_unix.c: Likewise.
93601         * sunrpc/des_crypt.c: Likewise.
93602         * sunrpc/des_soft.c: Likewise.
93603         * sunrpc/get_myaddr.c: Likewise.
93604         * sunrpc/getrpcport.c: Likewise.
93605         * sunrpc/key_call.c: Likewise.
93606         * sunrpc/key_prot.c: Likewise.
93607         * sunrpc/openchild.c: Likewise.
93608         * sunrpc/pm_getmaps.c: Likewise.
93609         * sunrpc/pm_getport.c: Likewise.
93610         * sunrpc/pmap_clnt.c: Likewise.
93611         * sunrpc/pmap_prot.c: Likewise.
93612         * sunrpc/pmap_prot2.c: Likewise.
93613         * sunrpc/pmap_rmt.c: Likewise.
93614         * sunrpc/rpc/auth.h: Likewise.
93615         * sunrpc/rpc/auth_unix.h: Likewise.
93616         * sunrpc/rpc/clnt.h: Likewise.
93617         * sunrpc/rpc/des_crypt.h: Likewise.
93618         * sunrpc/rpc/key_prot.h: Likewise.
93619         * sunrpc/rpc/netdb.h: Likewise.
93620         * sunrpc/rpc/pmap_clnt.h: Likewise.
93621         * sunrpc/rpc/pmap_prot.h: Likewise.
93622         * sunrpc/rpc/pmap_rmt.h: Likewise.
93623         * sunrpc/rpc/rpc.h: Likewise.
93624         * sunrpc/rpc/rpc_des.h: Likewise.
93625         * sunrpc/rpc/rpc_msg.h: Likewise.
93626         * sunrpc/rpc/svc.h: Likewise.
93627         * sunrpc/rpc/svc_auth.h: Likewise.
93628         * sunrpc/rpc/types.h: Likewise.
93629         * sunrpc/rpc/xdr.h: Likewise.
93630         * sunrpc/rpc_clntout.c: Likewise.
93631         * sunrpc/rpc_cmsg.c: Likewise.
93632         * sunrpc/rpc_common.c: Likewise.
93633         * sunrpc/rpc_cout.c: Likewise.
93634         * sunrpc/rpc_dtable.c: Likewise.
93635         * sunrpc/rpc_hout.c: Likewise.
93636         * sunrpc/rpc_main.c: Likewise.
93637         * sunrpc/rpc_parse.c: Likewise.
93638         * sunrpc/rpc_parse.h: Likewise.
93639         * sunrpc/rpc_prot.c: Likewise.
93640         * sunrpc/rpc_sample.c: Likewise.
93641         * sunrpc/rpc_scan.c: Likewise.
93642         * sunrpc/rpc_scan.h: Likewise.
93643         * sunrpc/rpc_svcout.c: Likewise.
93644         * sunrpc/rpc_tblout.c: Likewise.
93645         * sunrpc/rpc_util.c: Likewise.
93646         * sunrpc/rpc_util.h: Likewise.
93647         * sunrpc/rpcinfo.c: Likewise.
93648         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
93649         * sunrpc/rpcsvc/key_prot.x: Likewise.
93650         * sunrpc/rpcsvc/klm_prot.x: Likewise.
93651         * sunrpc/rpcsvc/mount.x: Likewise.
93652         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
93653         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
93654         * sunrpc/rpcsvc/rex.x: Likewise.
93655         * sunrpc/rpcsvc/rstat.x: Likewise.
93656         * sunrpc/rpcsvc/rusers.x: Likewise.
93657         * sunrpc/rpcsvc/sm_inter.x: Likewise.
93658         * sunrpc/rpcsvc/spray.x: Likewise.
93659         * sunrpc/rpcsvc/yppasswd.x: Likewise.
93660         * sunrpc/rtime.c: Likewise.
93661         * sunrpc/svc.c: Likewise.
93662         * sunrpc/svc_auth.c: Likewise.
93663         * sunrpc/svc_authux.c: Likewise.
93664         * sunrpc/svc_raw.c: Likewise.
93665         * sunrpc/svc_run.c: Likewise.
93666         * sunrpc/svc_simple.c: Likewise.
93667         * sunrpc/svc_tcp.c: Likewise.
93668         * sunrpc/svc_udp.c: Likewise.
93669         * sunrpc/svc_unix.c: Likewise.
93670         * sunrpc/svcauth_des.c: Likewise.
93671         * sunrpc/xcrypt.c: Likewise.
93672         * sunrpc/xdr.c: Likewise.
93673         * sunrpc/xdr_array.c: Likewise.
93674         * sunrpc/xdr_float.c: Likewise.
93675         * sunrpc/xdr_mem.c: Likewise.
93676         * sunrpc/xdr_rec.c: Likewise.
93677         * sunrpc/xdr_ref.c: Likewise.
93678         * sunrpc/xdr_sizeof.c: Likewise.
93679         * sunrpc/xdr_stdio.c: Likewise.
93680
93681         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
93682         handling.
93683
93684 2010-08-19  Andreas Schwab  <schwab@redhat.com>
93685
93686         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
93687
93688 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
93689
93690         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
93691         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
93692         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
93693         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
93694         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
93695         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
93696         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
93697         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
93698         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
93699         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
93700         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
93701         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
93702         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
93703         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
93704
93705 2010-07-26  Anton Blanchard  <anton@samba.org>
93706
93707         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
93708         * malloc/arena.c (heap_trim): Likewise.
93709
93710 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
93711
93712         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
93713         here.  Not...
93714         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
93715         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
93716
93717 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
93718
93719         * sysdeps/i386/elf/Makefile: New file.
93720
93721 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
93722
93723         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
93724         from fanotify_init.
93725         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
93726         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
93727
93728 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
93729
93730         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
93731         of strncasecmp_l.
93732         * sysdeps/multiarch/strcmp.S: Likewise.
93733
93734 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
93735
93736         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
93737         strncase_l-nonascii.
93738         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
93739         Add strncase_l-ssse3.
93740         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
93741         * sysdeps/x86_64/strcmp.S: Likewise.
93742         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
93743         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
93744         * sysdeps/x86_64/strncase.S: New file.
93745         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
93746         * sysdeps/x86_64/strncase_l.S: New file.
93747         * string/Makefile (strop-tests): Add strncasecmp.
93748         * string/test-strncasecmp.c: New file.
93749
93750         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
93751         warning.
93752
93753         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
93754         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
93755
93756 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
93757
93758         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
93759
93760 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
93761
93762         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
93763         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
93764         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
93765
93766 2010-05-01  Alan Modra  <amodra@gmail.com>
93767
93768         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
93769         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
93770         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
93771         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
93772         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
93773         tidying.  Don't tail-call __sigjmp_save for static lib.
93774         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
93775         save location.
93776         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
93777         (CALL_MCOUNT): Add eh info, and nop after bl.
93778         (TAIL_CALL_SYSCALL_ERROR): New macro.
93779         (PSEUDO_RET): Use it.
93780         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
93781         Correct save location of integer regs and cr.
93782         (_dl_profile_resolve): Correct cr save location.  Delete nops
93783         after bl when SHARED.  Reduce cfi size a little by better
93784         placement of cfi directives.
93785         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
93786         make a stack frame.  Instead use parm save area as a temp.
93787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
93788         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
93789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
93790         Don't make a stack frame for parent, use parm save area.
93791         Increase child stack frame to 112 bytes.  Don't save unused reg,
93792         and adjust reg usage.  Set up cfi on error recovery and
93793         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
93794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
93795         (__makecontext): Add dummy nop after jump to exit.
93796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
93797         Use correct parm save area and cr save, reduce stack frame.
93798         Correct cfi for possible PSEUDO_RET frame setup.
93799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
93800         Branch to local label emitted by PSEUDO_RET rather than
93801         __syscall_error.
93802
93803 2010-08-12  Andreas Schwab  <schwab@redhat.com>
93804
93805         [BZ #11904]
93806         * locale/programs/locale.c (print_assignment): New function.
93807         (show_locale_vars): Use it.
93808
93809 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
93810
93811         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
93812         field.
93813         (struct statfs64): Likewise.
93814         (_STATFS_F_FLAGS): Define.
93815         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
93816         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
93817         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
93818         (ST_VALID): Define locally.
93819         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
93820         __statvfs_getflags, use the provided value.
93821         * sysdeps/unix/sysv/linux/kernel-features.h: Define
93822         __ASSUME_STATFS_F_FLAGS.
93823
93824         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
93825
93826         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
93827         Add sys/fanotify.h.
93828         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
93829         fanotify_mask for GLIBC_2.13.
93830         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
93831         fanotify_init and fanotify_mark.
93832         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
93833         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
93834
93835         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
93836         Add prlimit.
93837         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
93838         prlimit64 for GLIBC_2.13.
93839         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
93840         prlimit64.
93841         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
93842         syscall.
93843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
93844         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
93845         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
93846         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
93847         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
93848         add prlimit alias.
93849         * sysdeps/unix/sysv/linux/prlimit.c: New file.
93850
93851         [BZ #11903]
93852         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
93853         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
93854
93855         * nss/Makefile: Add rules to build and run tst-nss-test1.
93856         * shlib-versions: Add entry for libnss_test1.
93857         * nss/nss_test1.c: New file.
93858         * nss/tst-nss-test1.c: New file.
93859
93860         * nss/nsswitch.c (__nss_database_custom): Define new variable.
93861         (__nss_configure_lookup): Set appropriate entry in
93862         __nss_configure_lookup to true.
93863         * nss/nsswitch.h: Define enum with indeces of databases in
93864         databases and __nss_database_custom arrays.  Declare
93865         __nss_database_custom.
93866         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
93867         to avoid using nscd when custom rules are installed.
93868         * nss/getXXbyYY_r.c: Likewise.
93869         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
93870
93871         * nss/nss_files/files-parse.c: Whitespace fixes.
93872
93873 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
93874
93875         [BZ #11883]
93876         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
93877         * posix/fnmatch_loop.c: Likewise.
93878
93879 2010-07-17  Andi Kleen  <ak@linux.intel.com>
93880
93881         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
93882         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
93883         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
93884         * Versions.def [GLIBC_2.13]: Add.
93885
93886 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
93887
93888         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
93889         Also fail if tpwd after pwuid call is NULL.
93890
93891 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
93892
93893         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
93894         when converting to ms.
93895
93896 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
93897
93898         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
93899         EOPNOTSUPP errors with ENOTTY.
93900         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
93901         EOPNOTSUPP errors with ENOTTY.
93902
93903 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
93904
93905         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
93906         Add strcasecmp_l-ssse3.
93907         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
93908         strcasecmp.
93909         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
93910         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
93911         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
93912
93913 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
93914
93915         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
93916
93917         * string/Makefile (strop-tests): Add strcasecmp.
93918         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
93919         strcasecmp_l-nonascii.
93920         (gen-as-const-headers): Add locale-defines.sym.
93921         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
93922         * sysdeps/x86_64/strcasecmp.S: New file.
93923         * sysdeps/x86_64/strcasecmp_l.S: New file.
93924         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
93925         * sysdeps/x86_64/locale-defines.sym: New file.
93926         * string/test-strcasecmp.c: New file.
93927
93928         * string/test-strcasestr.c: Test both ends of the range of characters.
93929         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
93930
93931 2010-07-29  Roland McGrath  <roland@redhat.com>
93932
93933         [BZ #11856]
93934         * manual/locale.texi (Yes-or-No Questions): Fix example code.
93935
93936 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
93937
93938         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
93939         for ld.so.
93940
93941 2010-07-27  Andreas Schwab  <schwab@redhat.com>
93942
93943         * manual/memory.texi (Malloc Tunable Parameters): Document
93944         M_PERTURB.
93945
93946 2010-07-26  Roland McGrath  <roland@redhat.com>
93947
93948         [BZ #11840]
93949         * configure.in (-fgnu89-inline check): Set and substitute
93950         gnu89_inline, not libc_cv_gnu89_inline.
93951         * configure: Regenerated.
93952         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
93953
93954 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
93955
93956         * string/test-strnlen.c: New file.
93957         * string/Makefile (strop-tests): Add strnlen.
93958         * string/tester.c (test_strnlen): Add a few more test cases.
93959         * string/tst-strlen.c: Better error reporting.
93960
93961         * sysdeps/x86_64/strnlen.S: New file.
93962
93963 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
93964
93965         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
93966         lower-latency instructions.
93967
93968 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
93969
93970         * string/test-strcasestr.c: New file.
93971         * string/test-strstr.c: New file.
93972         * string/Makefile (strop-tests): Add strstr and strcasestr.
93973         * string/str-two-way.h: Don't undefine MAX.
93974         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
93975
93976 2010-07-21  Andreas Schwab  <schwab@redhat.com>
93977
93978         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
93979         strcasestr-nonascii.
93980         (CFLAGS-strcasestr-nonascii.c): Define.
93981         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
93982         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
93983         Remove unused attribute.
93984
93985 2010-07-20  Roland McGrath  <roland@redhat.com>
93986
93987         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
93988         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
93989         ld.so.cache was broken.  With it, there is no way to disable dsocaps
93990         like LD_HWCAP_MASK can disable hwcaps.
93991
93992 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
93993
93994         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
93995
93996 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
93997
93998         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
93999         call in strcasestr.
94000         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
94001         __strcasestr_sse42_nonascii.
94002         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
94003         strcasestr-nonascii.c.
94004         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
94005
94006 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
94007
94008         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
94009         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
94010         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
94011         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
94012
94013 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
94014
94015         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
94016         fcntl.
94017
94018 2010-07-06  Andreas Schwab  <schwab@redhat.com>
94019
94020         [BZ #11577]
94021         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
94022         dl_signal_cerror.
94023
94024 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
94025
94026         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
94027         _PC_PIPE_BUF using F_GETPIPE_SZ.
94028
94029 2010-07-05  Roland McGrath  <roland@redhat.com>
94030
94031         * manual/arith.texi (Rounding Functions): Fix rint description
94032         implicit in round description.
94033
94034 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
94035
94036         * elf/Makefile: Fix linking for a few tests to make recent linker
94037         happy.
94038
94039 2010-06-30  Andreas Schwab  <schwab@redhat.com>
94040
94041         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
94042         $(common-objpfx)libc_nonshared.a.
94043
94044 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
94045
94046         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
94047         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
94048         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
94049         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
94050         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
94051         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
94052         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
94053         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
94054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
94055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
94056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
94057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
94058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
94059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
94060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
94061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
94062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
94063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
94064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
94065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
94066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
94067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
94068         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
94069         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
94070         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
94071         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
94072         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
94073         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
94074         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
94075         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
94076         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
94077         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
94078         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
94079         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
94080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
94081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
94082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
94083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
94084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
94085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
94086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
94087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
94088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
94089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
94090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
94091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
94092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
94093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
94094
94095 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
94096
94097         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
94098         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
94099         * string/memmove.c (memmove): Renamed to ...
94100         (MEMMOVE): ...this.  Default to memmove.
94101         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
94102         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
94103         (END_CHK): Define.
94104         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
94105         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
94106         mempcpy-ssse3-back memmove-ssse3-back.
94107         * sysdeps/x86_64/multiarch/bcopy.S: New file .
94108         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
94109         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
94110         * sysdeps/x86_64/multiarch/memcpy.S: New file.
94111         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
94112         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
94113         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
94114         * sysdeps/x86_64/multiarch/memmove.c: New file.
94115         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
94116         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
94117         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
94118         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
94119         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
94120         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
94121         Define.
94122         (index_Fast_Copy_Backward): Define.
94123         (HAS_ARCH_FEATURE): Define.
94124         (HAS_FAST_REP_STRING): Define.
94125         (HAS_FAST_COPY_BACKWARD): Define.
94126
94127 2010-06-21  Andreas Schwab  <schwab@redhat.com>
94128
94129         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
94130         Restore proper fallback handling.
94131
94132 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
94133
94134         [BZ #11701]
94135         * posix/group_member.c (__group_member): Correct checking loop.
94136
94137         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
94138         OOM in getpwuid_r correctly.  Return error number when the caller
94139         should return, otherwise -1.
94140         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
94141         call returning > 0 value.
94142         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
94143
94144 2010-06-07  Andreas Schwab  <schwab@redhat.com>
94145
94146         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
94147         libc_nonshared.a from targets in modules-names.
94148
94149 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
94150
94151         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
94152         requires it.
94153
94154 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
94155
94156         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
94157         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
94158         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
94159         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
94160
94161 2010-06-02  Andreas Schwab  <schwab@redhat.com>
94162
94163         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
94164
94165 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
94166
94167         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
94168         and F_GETPIPE_SZ.
94169         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
94170         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
94171         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
94172         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
94173         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
94174         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
94175
94176 2010-06-14  Roland McGrath  <roland@redhat.com>
94177
94178         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
94179
94180 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
94181
94182         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
94183         __REDIRECT followed by __THROW.
94184         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
94185         * posix/getopt.h (getopt): Likewise.
94186
94187 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
94188
94189         * hurd/lookup-at.c (__file_name_lookup_at): Accept
94190         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
94191         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
94192         in AT_FLAGS.
94193         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
94194         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
94195
94196 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
94197
94198         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
94199
94200 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
94201
94202         [BZ #11640]
94203         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
94204         Properly check family and model.
94205
94206 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
94207
94208         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
94209
94210 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
94211
94212         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
94213
94214 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
94215
94216         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
94217         symbol reference.
94218
94219 2010-05-19  Andreas Schwab  <schwab@redhat.com>
94220
94221         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
94222         symbol reference.
94223
94224 2010-05-21  Andreas Schwab  <schwab@redhat.com>
94225
94226         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
94227         and internal_recvmmsg.
94228         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
94229         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
94230         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
94231         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
94232
94233         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
94234         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
94235         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
94236
94237 2010-05-20  Andreas Schwab  <schwab@redhat.com>
94238
94239         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
94240
94241 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
94242
94243         POWER7 optimizations.
94244         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
94245         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
94246
94247 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
94248
94249         * version.h: Update for 2.13 development version.
94250
94251 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
94252
94253         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
94254         exceptions.  Return 0.
94255
94256 2010-05-07  Roland McGrath  <roland@redhat.com>
94257
94258         * elf/ldconfig.c (main): Add a const.
94259
94260 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
94261
94262         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
94263         (args_options): Add no-idn option.
94264         (ahosts_keys_int): Add idn_flags to ai_flags.
94265         (parse_option): Handle 'i' option to clear idn_flags.
94266
94267         * malloc/malloc.c (_int_free): Possible race in the most recently
94268         added check.  Only act on the data if no current modification
94269         happened.
94270
94271 See ChangeLog.17 for earlier changes.